/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@cometchat/chat-embed@1.0.33/dist/main.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*! For license information please see main.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VisualBuilder=t():e.VisualBuilder=t()}(this,()=>(()=>{var e,t,n,r,a={46:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_outgoing-video-call.53f25a89d3793fdf2a00.svg"},60:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1803),n.b),u=new URL(n(8764),n.b),d=new URL(n(312),n.b),p=new URL(n(7495),n.b),h=new URL(n(6879),n.b),m=i()(a()),g=c()(l),f=c()(u),_=c()(d),b=c()(p),v=c()(h);m.push([e.id,`.join-group-password__wrapper {\n    height: 100%;\n    width: 100%;\n    position: fixed;\n    z-index: 10;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: #141414;\n    background: rgba(0, 0, 0, 0.5);\n    top: 0;\n    left: 0;\n}\n\n.join-group-password {\n    display: flex;\n    width: 400px;\n    padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-10, 40px);\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-10, 40px);\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.join-group-password__header {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    display: flex;\n    width: 100%;\n    font: var(--cometchat-font-heading1-bold, 700 24px Roboto);\n}\n\n.join-group-password__header-title {\n    width: 100%;\n}\n\n.join-group-password__header-close {\n    -webkit-mask: url(${g}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    -webkit-mask-size: contain;\n    cursor: pointer;\n    width: 24px;\n    height: 24px;\n    position: relative;\n}\n\n.join-group-password__header-close:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.join-group-password__content {\n    display: flex;\n    min-width: 240px;\n    max-width: 1440px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.join-group-password__content-avatar .cometchat-avatar {\n    width: 60px;\n    height: 60px;\n}\n\n.join-group-password__content-avatar .cometchat-avatar__text {\n    font: var(--cometchat-font-heading1-bold, 700 24px Roboto);\n}\n\n.join-group-password__content-text {\n    display: flex;\n    padding: 0px;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n}\n\n.join-group-password__content-text-title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n}\n\n.join-group-password__content-text-subtitle {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.join-group-password__input {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n}\n\n.join-group-password__input-label {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-caption1-medium, 500 12px Roboto);\n}\n\n.join-group-password__input input {\n    display: flex;\n    height: 36px;\n    padding: var(--cometchat-padding-2, 8px);\n    color: var(--cometchat-text-color-primary, #141414);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n}\n\n.join-group-password__input input:focus-visible {\n    outline: none;\n}\n\n.join-group-password__input input::placeholder {\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.join-group-password__button,\n.join-group-password__button .cometchat-button {\n    width: 100%;\n}\n\n.join-group-password__input-wrong {\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.selector-wrapper .cometchat-conversations .cometchat-list__header-menu .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary);\n}\n\n.cometchat-conversations .cometchat-list__header-menu .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-list__header-search-bar {\n    border-right: none;\n}\n\n.cometchat .cometchat-menu-list__sub-menu-list-item {\n    text-align: left;\n}\n\n.cometchat .cometchat-conversations-header .cometchat-menu-list__sub-menu-list {    \nwidth: 212px;\n}\n\n#logged-in-user {\n    border-bottom: 2px solid var(--cometchat-border-color-default, #E8E8E8);\n}\n\n#logged-in-user .cometchat-menu-list__sub-menu-item-title,\n#logged-in-user .cometchat-menu-list__sub-menu-list-item {\n    cursor: default;\n}\n\n\n.cometchat-menu-list__sub-menu-list-item-icon-log-out {\n    background-color: var(--cometchat-error-color, #F44649);\n}\n\n.cometchat-menu-list__sub-menu-item-title-log-out {\n    color: var(--cometchat-error-color, #F44649)\n}\n\n.chat-menu .cometchat .cometchat-menu-list__sub-menu-item-title {\n    cursor: pointer;\n}\n\n.chat-menu .cometchat .cometchat-menu-list__sub-menu {\n    box-shadow: none;\n}\n\n.chat-menu .cometchat .cometchat-menu-list__sub-menu-icon {\n    background-color: var(--cometchat-icon-color-primary, #141414);\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-conversations .cometchat-list__header {\n    min-height: 64px;\n}\n\n.cometchat-groups .cometchat-list__header {\n    height: 131px;\n}\n\n.cometchat-conversations-header {\n    display: flex;\n    width: 100%;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    justify-content: space-between;\n    gap: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-groups-header {\n    display: flex;\n    width: 100%;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    justify-content: space-between;\n    gap: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    align-self: stretch;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-conversations-header__title,\n.cometchat-groups-header__title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading1-bold, 700 24px Roboto);\n}\n\n.cometchat-groups-header .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-groups-header .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n.cometchat-conversations-header .chat-menu .cometchat-menu-list__sub-menu-list-item-icon-create-conversation {\n    -webkit-mask: url(${f}) center center no-repeat;\n}\n\n.cometchat-conversations-header .chat-menu .cometchat-menu-list__sub-menu-list-item-icon-logged-in-user {\n    -webkit-mask: url(${_}) center center no-repeat;\n}\n\n.cometchat-conversations-header .chat-menu .cometchat-menu-list__sub-menu-list-item-icon-log-out {\n    -webkit-mask: url(${b}) center center no-repeat;\n}\n\n.cometchat-groups .cometchat-list .cometchat-list__header .cometchat-button .cometchat-button__icon {\n    -webkit-mask: url(${v}), center, center, no-repeat;\n    mask: url(${v}), center, center, no-repeat;\n}\n\n@media (max-width: 768px) {\n    .join-group-password {\n        display: flex;\n        width: 320px;\n        padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-5, 20px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-5, 20px);\n        flex-direction: column;\n        align-items: flex-start;\n        gap: var(--cometchat-padding-5, 20px);\n        border-radius: var(--cometchat-radius-5, 20px);\n        border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n        background: var(--cometchat-background-color-01, #FFF);\n        box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    }\n}\n\n.cometchat-conversations .cometchat-list-item__trailing-view {\n    width: auto;\n    height: auto;\n}`,""]);const y=m},149:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/*\n   Main container for the edit preview area.\n*/\n.cometchat-edit-preview {\n    padding: var(--cometchat-padding-2, 8px);\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between;\n    align-items: flex-start;\n    margin: 0;\n    min-height: 30px;\n    height: 100%;\n    width: 100%;\n    border: none;\n    background: var(--cometchat-background-color-03);\n    border-radius: var(--cometchat-radius-1, 4px);\n    box-sizing: border-box;\n    gap: var(--cometchat-padding-1, 4px);\n    position: relative;\n}\n\n/*\n   Close button for the edit preview.\n*/\n.cometchat-edit-preview__close {\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    height: 20px;\n    width: 20px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-icon-color-primary);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    position: absolute;\n    top: var(--cometchat-padding-2, 8px);\n    right: var(--cometchat-padding-2, 8px);\n    cursor: pointer;\n}\n\n/*\n   Title text inside the edit preview.\n*/\n.cometchat-edit-preview__title {\n    font: var(--cometchat-font-body-regular);\n    color: var(--cometchat-text-color-primary);\n    font-style: normal;\n    margin: 0;\n}\n\n/*\n   Subtitle text inside the edit preview, containing the actual text being edited.\n*/\n.cometchat-edit-preview__subtitle {\n    margin: 0;\n    font-style: normal;\n    text-align: left;\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-caption1-regular);\n    word-break: break-word;\n    width: 100%;\n    overflow: hidden;\n}`,""]);const p=u},196:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-call-log-history {\n    width: 100%;\n    height: 100%;\n    overflow: hidden;\n}\n\n.cometchat-call-log-history .cometchat-list-item__leading-view,\n.cometchat-call-log-history .cometchat-avatar,\n.cometchat-call-log-history .cometchat-avatar__image {\n    height: 16px;\n    width: 16px;\n    background: transparent;\n    border-radius: 0px;\n}\n\n.cometchat-call-log-history__subtitle .cometchat-date {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n    padding: 0px;\n}\n\n.cometchat-call-log-history .cometchat-call-log-history__tail-view {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-history .cometchat-call-log-history__tail-view-disabled {\n    overflow: hidden;\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-history .cometchat-list-item__tail-view {\n    width: fit-content;\n}\n\n.cometchat-call-log-history .cometchat-list-item__trailing-view {\n    width: fit-content;\n}\n\n\n\n.cometchat-call-log-history__shimmer {\n    width: 100%;\n    height: 100%;\n    background: var(--cometchat-background-color-01, #FFF);\n\n  }\n\n  .cometchat-call-log-history__shimmer-item {\n    width: 100%;\n    height: 65px;\n    display: flex;\n    min-width: 240px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: 12px;\n  }\n\n  .cometchat-call-log-history__shimmer-item-avatar {\n    display: flex;\n    flex-shrink: 0;\n    width: 38px;\n    height: 38px;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(\n      --cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n    );\n  }\n\n  .cometchat-call-log-history__shimmer-item-body {\n    display: flex;\n    width: 100%;\n    height: 100%;\n    align-items: center;\n\n    gap: var(--cometchat-padding-2, 8px);\n  }\n\n  .cometchat-call-log-history__shimmer-item-body-title-wrapper {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: 10px;\n  }\n\n  .cometchat-call-log-history__shimmer-item-body-title {\n    width: 25%;\n    height: 16px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(\n      --cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n    );\n    animation: shimmerAnimation 1.5s infinite linear;\n\n  }\n\n  .cometchat-call-log-history__shimmer-item-body-subtitle {\n    width:20%;\n    height: 14px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(\n      --cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n    );\n    animation: shimmerAnimation 1.5s infinite linear;\n\n  }\n\n  .cometchat-call-log-history__shimmer-item-body-tail {\n    width: 50px;\n    height: 16px;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(\n      --cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n    );\n    animation: shimmerAnimation 10.5s infinite linear;\n  }\n\n  .cometchat-call-log-history .cometchat-list-item {\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    cursor: pointer;\n  } \n\n  .cometchat-call-log-history .cometchat-list-item__body {\n    padding: 0px;\n  }\n\n  @keyframes shimmerAnimation {\n      0% {\n        background-position: -468px 0;\n      }\n\n      100% {\n        background-position: 468px 0;\n      }\n    }",""]);const s=i},273:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5630),n.b),u=new URL(n(7176),n.b),d=new URL(n(8560),n.b),p=new URL(n(8065),n.b),h=i()(a()),m=c()(l),g=c()(u),f=c()(d),_=c()(p);h.push([e.id,`.cometchat-ai-assistant-chat {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n    width: 100%;\n    overflow: hidden;\n    background: var(--cometchat-background-color-02);\n    align-items: center;\n\n}\n.cometchat-ai-assistant-chat  .cometchat-message-bubble-incoming{\n    overflow: hidden;\n    max-width: 100%;\n    box-sizing: border-box;\n    align-self: flex-start;\n    padding-top: 3px;\n}\n.cometchat-ai-assistant-chat__wrapper {\n    height: 100%;\n    width: 100%;\n    overflow: hidden;\n    position: relative;\n}\n\n.cometchat-ai-assistant-chat__message-list-wrapper {\n    height: inherit;\n    width: 100%;\n    overflow: hidden;\n    box-sizing: border-box;\n}\n\n.cometchat-ai-assistant-chat__header-wrapper {\n    height: fit-content;\n    width: 100%;\n    overflow: hidden;\n}\n\n.cometchat-ai-assistant-chat__composer-wrapper {\n    height: fit-content;\n    width: 100%;\n    overflow: hidden;\n    background: transparent;\n}\n\n/* header */\n.cometchat-ai-assistant-chat .cometchat-message-header {\n    border-bottom: 1px solid var(--cometchat-border-color-light);\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-header .cometchat-list-item {\n    gap: var(--cometchat-spacing-2);\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-header .cometchat-list-item__body-title {\n    display: block;\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-header .cometchat-message-header__subtitle {\n    color: var(--cometchat-text-color-secondary);\n}\n\n.cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: var(--cometchat-spacing-2);\n\n}\n\n.cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button {\n    height: fit-content;\n    width: fit-content;\n    border: none;\n    background: transparent;\n    padding: 0;\n    margin: 0;\n    box-sizing: border-box;\n    padding: 6px;\n\n}\n\n.cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button__icon {\n    background: var(--cometchat-icon-color-secondary);\n    height: 24px;\n    width: 24px;\n}\n\n.cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-primary);\n    transition: background .4s ease-in-out;\n}\n\n/* header css end */\n\n/* composer  */\n.cometchat-ai-assistant-chat .cometchat-message-composer__input {\n    border: none;\n\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-composer {\n    border-radius: var(--cometchat-radius-4);\n    border: 1px solid var(--cometchat-border-color-default);\n    background: var(--cometchat-background-color-01);\n    margin: 0px 8px 8px;\n    width: auto;\n\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-sent .cometchat-message-list__receipt {\n    background-color: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-wait .cometchat-message-list__receipt {\n    background-color: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {\n    background-color: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view .cometchat-message-bubble__status-info-view-receipts-error {\n    height: 12px;\n    width: 12px;\n    margin-bottom: 2px;\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view {\n    gap: var(--cometchat-padding-1);\n}\n.cometchat-ai-assistant-chat__send-button-view {\n    height: 44px;\n    width: 44px;\n    border-radius: var(--cometchat-radius-max);\n    padding: var(--cometchat-padding-3);\n    border: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-04);\n    display: flex;\n    justify-content: center;\n    align-items: center;\n\n}\n\n.cometchat-ai-assistant-chat__send-button-view .cometchat-ai-assistant-chat__send-button-icon {\n    mask: url(${m}) center center no-repeat;\n    -webkit-mask: url(${m}) center center no-repeat;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    height: 20px;\n    width: 20px;\n    background: var(--cometchat-icon-color-white);\n}\n\n.cometchat-ai-assistant-chat__send-button-view--active {\n    background: var(--cometchat-secondary-button-background);\n\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-list .cometchat-list__body {\n    border: none;\n    height: 100%;\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-list__shimmer {\n    background: transparent;\n}\n\n.cometchat-ai-assistant-chat__send-button-view--streaming {\n    background: var(--cometchat-secondary-button-background);\n\n\n}\n\n.cometchat-ai-assistant-chat__send-button-view--streaming .cometchat-ai-assistant-chat__send-button-icon {\n    mask: url(${g}) center center no-repeat;\n    -webkit-mask: url(${g}) center center no-repeat;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    height: 16px;\n    width: 16px;\n    background: var(--cometchat-icon-color-white);\n    border-radius: 0px;\n}\n\n/* composer css end */\n/* message list */\n.cometchat-ai-assistant-chat .cometchat-list__empty-view {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    /* height: 90%; */\n    padding: var(--cometchat-padding-4);\n\n}\n\n.cometchat-ai-assistant-chat__empty-state-suggested-messages {\n    display: flex;\n    flex-direction: row;\n    gap: 8px;\n    flex-wrap: wrap;\n    justify-content: center;\n    align-items: center;\n    padding-top: var(--cometchat-padding-5);\n    max-width: 85%;\n}\n\n.cometchat-ai-assistant-chat__suggested-message-icon {\n    height: 16px;\n    width: 16px;\n    mask: url(${f}) center center no-repeat;\n    -webkit-mask: url(${f}) center center no-repeat;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-icon-color-secondary);\n    display: inline-block;\n\n}\n.cometchat-ai-assistant-chat__suggested-message-pill:hover{\n    background: var(--cometchat-background-color-01);\n    transition: all .4s ease-in-out;\n    cursor: pointer;\n}\n.cometchat-ai-assistant-chat__suggested-message-pill {\n    border: 1px solid var(--cometchat-border-color-default);\n    background: transparent;\n    border-radius: var(--cometchat-radius-max);\n    min-height: 32px;\n    min-width: 80px;\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-body-regular);\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-spacing-2);\n    padding: var(--cometchat-padding-2) var(--cometchat-padding-3);\n    box-sizing: border-box;\n}\n\n.cometchat-ai-assistant-chat .cometchat-message-list {\n    background: transparent;\n    max-width: calc(100% + (var(--cometchat-padding-4) * 2));\n    margin: 0 auto 17px auto;\n}\n.cometchat-ai-assistant-chat .cometchat-message-list__body\n{\npadding: 0 var(--cometchat-padding-1);\npadding-bottom: var(--cometchat-padding-2);\n\n}\n/* message list css end */\n\n/* mobile view */\n@media (max-width: 768px) {\n    .cometchat-ai-assistant-chat {\n        width: 100vw;\n        position: fixed;\n        top: 0px;\n        left: 0px;\n        z-index: 3;\n    }\n\n}\n\n/* Empty State */\n.cometchat-ai-assistant-chat__empty-state {\n    display: flex;\n    width: 100%;\n    height: 100%;\n    align-items: center;\n    justify-content: center;\n    background: transparent;\n}\n\n.cometchat-ai-assistant-chat__empty-state-content {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    /* gap: var(--cometchat-spacing-3); */\n    text-align: center;\n    padding-top: var(--cometchat-padding-2);\n}\n\n.cometchat-ai-assistant-chat .cometchat-list__body > .cometchat-list__body-intersection-top{\n    visibility: hidden;\n}\n.cometchat-ai-assistant-chat__empty-state-icon img {\n    width: 60px;\n    height: 60px;\n    object-fit: contain;\n}\n\n.cometchat-ai-assistant-chat__empty-state-icon {\n    padding-bottom: var(--cometchat-padding-5);\n}\n\n.cometchat-ai-assistant-chat__empty-state-greeting-message {\n    color: var(--cometchat-text-color-primary);\n    text-align: center;\n    font: var(--cometchat-font-heading4-medium);\n}\n\n.cometchat-ai-assistant-chat__empty-state-intro-message {\n    color: var(--cometchat-text-color-tertiary);\n    text-align: center;\n    font: var(--cometchat-font-body-regular);\n    padding-top: var(--cometchat-padding-1);\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__body\n,.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-text-bubble\n{\n    background: var(--cometchat-background-color-03);\n\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body\n{\n    background: transparent;\n\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble__wrapper{\n    gap: var(--cometchat-spacing-2);\n    padding: var(--cometchat-padding-2);\n\n}\n.cometchat-message-bubble__body.agent-assistant_custom{\n    padding: 0px;;\n\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing  .cometchat-text-bubble__body-text,\n.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-date\n{\n    color: var(--cometchat-text-color-primary);\n}\n@media (max-width: 768px) {\n    .cometchat-ai-assistant-chat__empty-state-suggested-messages {\n        max-width: 90%;\n    }\n}\n@media (max-width: 680px) {\n    .cometchat-ai-assistant-chat__empty-state-suggested-messages {\n        max-width: 100%;\n    }\n}\n\n/* Chat History Sidebar */\n.cometchat-ai-assistant-chat__sidebar {\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 60%;\n    max-width: 420px;\n    height: 100%;\n    background: var(--cometchat-background-color-01);\n    border-left: 1px solid var(--cometchat-border-color-light);\n    transform: translateX(100%);\n    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n    z-index: 1000;\n    display: flex;\n    flex-direction: column;\n}\n\n.cometchat-ai-assistant-chat__sidebar--open {\n    transform: translateX(0);\n}\n.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text {\n    -webkit-line-clamp: initial !important;\n    line-clamp: initial !important;\n    line-height: 1.75;\n}\n.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-more,\n.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-less {\n    display: none;\n}\n.cometchat-ai-assistant-chat__sidebar-content {\n    flex: 1;\n    display: flex;\n    flex-direction: column;\n    overflow: hidden;\n    background: var(--cometchat-background-color-02);\n}\n.cometchat-ai-assistant-chat__message-composer-view{\n    width: 100%;\n}\n.cometchat-ai-assistant-chat__message-composer-view--disabled {\ncursor: not-allowed ;\ncaret-color: transparent ;\nposition: relative;\n}\n\n.cometchat-ai-assistant-chat__message-composer-view--disabled * {\npointer-events: none;\n}\n\n.cometchat-ai-assistant-chat__message-composer-view--disabled:hover::before {\nopacity: 1;\nbackground: var(--cometchat-error-color);\n}\n.cometchat-ai-assistant-chat__message-composer-view--disabled .cometchat-ai-assistant-chat__send-button-view--streaming .cometchat-ai-assistant-chat__send-button-icon{\n    cursor: not-allowed ;\n    pointer-events: none ;\n}\n.cometchat-ai-assistant-message-bubble__copy{\n    mask: url(${_}) center center no-repeat;\n    -webkit-mask: url(${_}) center center no-repeat;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    display: flex;\n    justify-content: flex-start;\n    align-items: flex-start;\n    height: 20px;\n    width: 20px;\n    background: var(--cometchat-icon-color-secondary);\n\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view{\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view .cometchat{\n    display: flex;\n}\n.cometchat-ai-assistant-chat__sidebar-overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: rgba(0, 0, 0, 0.3);\n    z-index: 999;\n    opacity: 0;\n    animation: fadeIn 0.3s ease forwards;\n}\n.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body-content-view,.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body-wrapper,.cometchat-ai-assistant-chat \n.cometchat-message-bubble-incoming .cometchat-message-bubble__body.tool-result_agentic,\n.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming > div,\n.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body\n{\n  min-width: 100%  !important;\n  width: 100% !important;\n  max-width: 100% !important;\n}\n@keyframes fadeIn {\n    to {\n        opacity: 1;\n    }\n}\n\n/* Mobile responsive sidebar */\n@media (max-width: 768px) {\n    .cometchat-ai-assistant-chat__sidebar {\n        position: fixed;\n        z-index: 1000;\n    }\n    \n    .cometchat-ai-assistant-chat__sidebar--open {\n        position: fixed;\n        transform: translateX(0);\n        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    \n    .cometchat-ai-assistant-chat__sidebar-overlay {\n        position: fixed;\n        z-index: 999;\n    }\n}\n\n@media (max-width: 480px) {\n    .cometchat-ai-assistant-chat__sidebar {\n        position: fixed;\n        z-index: 1000;\n    }\n    \n    .cometchat-ai-assistant-chat__sidebar--open {\n        width: 100%;\n        max-width: none;\n        position: fixed;\n        transform: translateX(0);\n        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    \n    .cometchat-ai-assistant-chat__sidebar-overlay {\n        position: fixed;\n        z-index: 999;\n    }\n}`,""]);const b=h},312:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/user.8dfdcadd19738360c459.svg"},319:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,'.cometchat-quick-view {\n    position: relative;\n    min-width: 190px;\n    padding: 5px;\n    box-sizing: border-box;\n    background: #efefef;\n    height: fit-content;\n    width: 100%;\n    border-radius: 8px;\n}\n\n.cometchat-quick-view__content {\n    margin-left: 14px;\n}\n\n.cometchat-quick-view__container {\n    display: flex;\n    align-items: center;\n}\n\n.cometchat-quick-view-button {\n    position: absolute;\n    top: 2px;\n    right: 4px;\n    height: 16px;\n    width: 16px;\n    border: none;\n    border-radius: 0;\n    background: transparent;\n}\n\n.cometchat-quick-view-bar {\n    position: absolute;\n    height: 90%;\n    top: 5%;\n    left: 5px;\n    border-radius: 5px;\n    background: "black";\n    width: "4px";\n}\n\n.cometchat-quick-view-title {\n    margin-top: 5px;\n    margin-bottom: 10px;\n    padding: 0px;\n    font: "600 13px Inter, sans-serif";\n    color: "grey";\n}\n\n.cometchat-quick-view-subtitle {\n    margin-top: 5px;\n    margin-bottom: 5px;\n    padding: 0px;\n    text-align: left;\n    font: "400 13px Inter, sans-serif";\n    color: "grey";\n}',""]);const s=i},350:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_collaborative-whiteboard-message.247bd7060246085899a4.svg"},358:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call_end_no_fill.4a9911b198245072f6ae.svg"},440:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call_received.8a1f2ab017bbcf7bb046.svg"},465:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/phone_incoming.d8337717bd699169eaa5.svg"},539:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Italic.cd47f5421512ee65fe22.ttf"},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},571:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/more_icon.81b8f41258a897ea6ac4.svg"},642:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(9226),n.b),u=i()(a()),d=c()(l);u.push([e.id,`   /*\n    This class styles the search container.\n    It uses flexbox to align items horizontally,\n    includes padding, rounded corners, a border,\n    and a background color. It also has flexible sizing for layout adjustments.\n    */\n   .cometchat-search-bar {\n       display: flex;\n       padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n       align-items: center;\n       align-self: stretch;\n       border-radius: var(--cometchat-radius-max, 1000px);\n       border: 1px solid var(--cometchat-border-color-light);\n       background: var(--cometchat-background-color-03);\n       flex: 1 0 0;\n   }\n\n   /*\n    This class styles the search input field.\n    It occupies the full width and height,\n    has no borders, and inherits the border-radius from its parent.\n    The background is transparent to blend with the container.\n    */\n   .cometchat-search-bar__input {\n       width: 100%;\n       height: 100%;\n       border: none;\n       border-radius: none;\n       background: transparent;\n       color: var(--cometchat-text-color-primary);\n       font: var(--cometchat-font-heading4-regular);\n       font-style: normal;\n       outline: none;\n       padding-left: var(--cometchat-padding-1);\n   }\n\n   /*\n    This class styles the search icon.\n    It uses a webkit mask to display the search icon,\n    ensures the icon is centered and sized correctly,\n    and uses a background color for the icon.\n    */\n   .cometchat-search-bar__icon {\n       -webkit-mask: url(${d}) center center no-repeat;\n       mask: url(${d}) center center no-repeat;\n       display: flex;\n       width: 24px;\n       height: 24px;\n       justify-content: center;\n       align-items: center;\n       -webkit-mask-size: contain;\n       mask-size: contain;\n       background: var(--cometchat-icon-color-secondary);\n   }\n\n   /*\n    This class styles the placeholder text inside the search input field.\n    It sets the text color and font style.\n    The color is a tertiary text color for search placeholder.\n    */\n   .cometchat-search-bar__input::placeholder {\n       color: var(--cometchat-text-color-tertiary);\n       font: var(--cometchat-font-heading4-regular);\n       font-style: normal;\n\n   }`,""]);const p=u},738:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* Wrapper for the message bubble */\n.cometchat-message-bubble__wrapper {\n    display: flex;\n    position: relative;\n    max-width: 100%;\n    width: 100%;\n    box-sizing: border-box;\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n}\n\n.cometchat-message-bubble__body-reply-view{\n    width: 100%;\n    margin-bottom: 5px;\n}\n\n.cometchat-message-bubble .cometchat-menu-list__sub-menu-list{\n    height: auto;\n    max-height: 216px;\n    overflow: auto;\n}\n\n.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar,\n.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-message-bubble .cometchat-reactions{\n    width: 100%;\n    margin-top: -4px;\n}\n.cometchat-message-bubble-outgoing .cometchat-reactions{\n    justify-content: flex-end;\n}\n.cometchat-message-bubble-incoming .cometchat-reactions{\n    justify-content: flex-start;\n}\n/* Avatar styles inside the message bubble */\n.cometchat-message-bubble__leading-view {\n    position: relative;\n    border-radius: inherit;\n    display: flex;\n    width: fit-content;\n    align-self: flex-start;\n}\n\n/* Alignment styles for the message bubble */\n.cometchat-message-bubble {\n    flex: 1 1 0;\n    display: flex;\n    flex-direction: column;\n    border-radius: inherit;\n    justify-content: flex-start;\n    align-items: flex-start;\n    position: relative;\n    width: 100%;\n}\n\n\n/* Alignment for receiver's messages */\n.cometchat-message-bubble-incoming {\n    justify-content: flex-start;\n    align-items: flex-start;\n}\n.cometchat-message-bubble__text-message .cometchat-message-bubble__body-content-view{\n    width: fit-content;\n    display: flex;\n    align-self: flex-start;\n    max-width: 100%;\n}\n.cometchat-message-bubble  .cometchat-text-bubble__body-text{\ntext-align: left;\n}\n\n/* Alignment for sender's messages */\n.cometchat-message-bubble-outgoing {\n    justify-content: flex-end;\n    align-items: flex-end;\n}\n\n/* Alignment for action  messages */\n.cometchat-message-bubble-action {\n    justify-content: center;\n    align-items: center;\n}\n\n/* Background for incoming message bubble body */\n.cometchat-message-bubble-incoming .cometchat-message-bubble__body {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Background for outgoing message bubble body */\n.cometchat-message-bubble-outgoing .cometchat-message-bubble__body {\n    background: var(--cometchat-primary-color);\n}\n\n/* Body of the message bubble */\n.cometchat-message-bubble__body {\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-1, 4px) 0px var(--cometchat-padding-1, 4px);\n    flex-direction: column;\n    align-items: flex-end;\n    border-radius: var(--cometchat-radius-3, 12px);\n}\n\n/* Wrapper around the body of the message bubble */\n.cometchat-message-bubble__body-wrapper {\n    order: 2;\n}\n\n/* Title/header styles */\n.cometchat-message-bubble__header-view {\n    display: flex;\n    justify-content: flex-start;\n    align-items: flex-start;\n}\n\n/* Styles for message options */\n.cometchat-message-bubble__options {\n    background: transparent;\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    padding: 0px var(--cometchat-padding-2, 8px);\n}\n\n/* Options for incoming message bubble */\n.cometchat-message-bubble-incoming .cometchat-message-bubble__options {\n    order: 3;\n}\n\n/* Options for outgoing message bubble */\n.cometchat-message-bubble-outgoing .cometchat-message-bubble__options {\n    order: 1;\n}",""]);const s=i},790:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/audio_call_button.17b58b643e8bc12cc6b9.svg"},869:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8806),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-new-chat-view {\n    height: 100%;\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    background: var(--cometchat-background-color-01);\n}\n\n.cometchat-new-chat-view__header {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    min-height: 65px;\n    justify-content: flex-start;\n    background: inherit;\n    border-bottom: 1px solid var(--cometchat-border-color-light);\n}\n\n.cometchat-new-chat-view__header-title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading2-bold);\n}\n\n.cometchat-add-members .cometchat-add-members__back-button .cometchat-button .cometchat-button__icon {\n    -webkit-mask: url(${d}) center center no-repeat;\n}\n\n.cometchat-new-chat-view__header .cometchat-button {\n    height: fit-content;\n    width: fit-content;\n    background: transparent;\n    padding: 0px;\n}\n\n.cometchat-new-chat-view__header .cometchat-button .cometchat-button__icon {\n    height: 24px;\n    width: 24px;\n    background: var(--cometchat-icon-color-primary);\n    -webkit-mask: url(${d}) center center no-repeat;\n}\n\n.cometchat-new-chat-view__header .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-new-chat-view__tabs {\n    display: flex;\n    padding: 1px;\n    align-items: flex-start;\n    align-self: stretch;\n    border-right: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-03);\n    border-radius: var(--cometchat-radius-max, 1000px);\n    margin: var(--cometchat-margin-3, 12px) var(--cometchat-margin-4, 16px) var(--cometchat-margin-2, 8px) var(--cometchat-margin-4, 16px);\n}\n\n.cometchat-new-chat-view__tabs-tab {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: inherit;\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-heading4-medium);\n    cursor: pointer;\n}\n\n.cometchat-new-chat-view__tabs-tab-active {\n    border-right: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-01);\n    color: var(--cometchat-text-color-highlight);\n}\n\n.cometchat-new-chat-view .cometchat-list__header-search-bar {\n    padding-top: var(--cometchat-padding-2);\n}\n\n.cometchat-new-chat-view__header .cometchat-button:hover {\n    background: transparent;\n}\n\n@media (max-width: 768px) {\n    .cometchat-new-chat-view {\n        width: 100vw;\n        position: fixed;\n        top: 0px;\n        left: 0px;\n        z-index: 4;\n    }\n}`,""]);const p=u},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{"use strict";var r=n(6540),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!c.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},1030:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/format_italic.3c67d0bca15006b1bc1c.svg"},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1131:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* Container for the outgoing call UI, responsible for layout and overall styling */\n.cometchat-outgoing-call {\n    display: flex;\n    width: 360px;\n    height: 540px;\n    padding: var(--cometchat-padding-5, 20px) 0px;\n    flex-direction: column;\n    justify-content: space-between;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-01);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n/* Title for the outgoing call UI */\n.cometchat-outgoing-call__title {\n    color: var(--cometchat-text-color-primary);\n    text-align: center;\n    font: var(--cometchat-font-title-medium);\n}\n\n.cometchat-outgoing-call__title-container {\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-spacing-2);\n}\n\n/* Subtitle text for the outgoing call UI */\n.cometchat-outgoing-call__subtitle {\n    color: var(--cometchat-text-color-secondary);\n    text-align: center;\n    font: var(--cometchat-font-heading4-regular);\n}\n\n/* Avatar container for the outgoing call, controlling its size and layout */\n.cometchat-outgoing-call__avatar {\n    display: flex;\n    width: 160px;\n    height: 160px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max);\n}\n\n/* Avatar image inside the avatar container */\n.cometchat-outgoing-call__avatar .cometchat-avatar {\n    width: 160px;\n    height: 160px;\n}\n\n/* Avatar text inside the avatar container */\n.cometchat-outgoing-call__avatar .cometchat-avatar__text {\n    font: 700 64px/76.8px var(--cometchat-font-family);\n    height: fit-content;\n    width: fit-content;\n    font-style: normal;\n}\n\n/* Button container for actions during the outgoing call */\n.cometchat-outgoing-call__button .cometchat-button {\n    display: flex;\n    padding: var(--cometchat-padding-4);\n    align-items: center;\n    gap: var(--cometchat-padding-2);\n    border-radius: var(--cometchat-radius-max);\n    background: var(--cometchat-error-color);\n    justify-content: center;\n    height: fit-content;\n    width: fit-content;\n    cursor: pointer;\n}\n\n/* Icon inside the outgoing call button */\n.cometchat-outgoing-call__button .cometchat-button .cometchat-button__icon {\n    -webkit-mask-size: contain;\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-static-white);\n}\n\n/* Media query for screens with a max width of 600px */\n@media (max-width: 600px) {\n    .cometchat-outgoing-call{\n        padding: var(--cometchat-spacing-20) var(--cometchat-spacing-5) var(--cometchat-spacing-15) var(--cometchat-spacing-5);\n    }\n\n    /* Font size for avatar text in smaller screens */\n    .cometchat-outgoing-call__avatar .cometchat-avatar__text {\n        font: 700 50px/60px var(--cometchat-font-family);\n    }\n\n    /* Avatar size adjustment for smaller screens */\n    .cometchat-outgoing-call .cometchat-outgoing-call__avatar .cometchat .cometchat-avatar {\n        width: 120px;\n        height: 120px;\n    }\n\n    /* Font size adjustment for title in smaller screens */\n    .cometchat-outgoing-call__title {\n        font: var(--cometchat-font-heading1-bold);\n    }\n\n    /* Font size adjustment for subtitle in smaller screens */\n    .cometchat-outgoing-call__subtitle {\n        font: var(--cometchat-font-body-regular);\n    }\n    .cometchat-outgoing-call__avatar{\n        margin-bottom: auto;\n        margin-top: var(--cometchat-margin-10);\n    }\n\n    /* Size and border radius adjustment for the container in smaller screens */\n    .cometchat-outgoing-call,.cometchat:has(> .cometchat-outgoing-call) {\n        height: 100%;\n        width: 100%;\n        border-radius: 0;\n    }\n\n\n}",""]);const s=i},1197:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/arrow_back.dd796cd8deddca446613.svg"},1212:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(2346),n.b),u=new URL(n(1803),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`.cometchat-banned-members {\n    height: 312px;\n}\n\n.cometchat-banned-members .cometchat-list-hide-scrollbar .cometchat-list__body::-webkit-scrollbar,\n.cometchat-banned-members .cometchat-list-hide-scrollbar .cometchat-list__body::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-banned-members__empty {\n    display: flex;\n    width: 100%;\n    height: 100%;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    flex-shrink: 0;\n}\n\n.cometchat-banned-members__empty-icon {\n    -webkit-mask: url(${p}) center center no-repeat;\n    background: var(--cometchat-icon-color-secondary);\n    -webkit-mask-size: contain;\n    height: 60px;\n    width: 60px;\n}\n\n.cometchat-banned-members__empty-text {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-heading4-medium);\n}\n\n.cometchat-banned-members .cometchat-list-item__trailing-view .cometchat-button__icon-default {\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask: url(${h}), center, center, no-repeat;\n    mask: url(${h}), center, center, no-repeat;\n    -webkit-mask-size: contain;\n    width: 14px;\n    height: 14px;\n}\n\n\n\n.cometchat-banned-members__shimmer {\n    width: 100%;\n    height: 100%;\n    background: var(--cometchat-background-color-01, #fff);\n}\n\n.cometchat-banned-members__shimmer-item {\n    width: 100%;\n    height: 72px;\n    display: flex;\n    width: 100%;\n    min-width: 240px;\n    max-width: 1440px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: 12px;\n}\n\n.cometchat-banned-members__shimmer-item-avatar {\n    display: flex;\n    flex-shrink: 0;\n    width: 48px;\n    height: 48px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-shimmer-gradient-color,\n            linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n}\n\n.cometchat-banned-members__shimmer-item-title {\n    width: 50%;\n    height: 22px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(--cometchat-shimmer-gradient-color,\n            linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n    animation: shimmerAnimation 1.5s infinite linear;\n}\n\n@keyframes shimmerAnimation {\n    0% {\n        background-position: -468px 0;\n    }\n\n    100% {\n        background-position: 468px 0;\n    }\n}`,""]);const m=d},1240:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/incoming_video_no_fill.01824d5f73a4bb089c1c.svg"},1294:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/message_blocked.79ffe1a906c494f50bb9.svg"},1410:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Bold.d50a80138ec4f2fb5e9f.ttf"},1524:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(7556),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-alert-popup__backdrop {\n    background: rgba(0, 0, 0, 0.5);\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: 100%;\n    width: 100%;\n    z-index: 10;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.cometchat-alert-popup-wrapper {\n    display: flex;\n    width: 400px;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-alert-popup {\n    display: flex;\n    padding: var(--cometchat-padding-6, 24px);\n    flex-direction: column;\n    align-items: center;\n    gap: 12px;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-4, 16px);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-alert-popup__icon-wrapper {\n    display: flex;\n    width: 80px;\n    height: 80px;\n    padding: 16px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n}\n\n.cometchat-alert-popup__icon {\n    width: 48px;\n    height: 48px;\n    -webkit-mask: url(${d}) center center no-repeat;\n    background: var(--cometchat-error-color);\n    -webkit-mask-size: contain;\n}\n\n.cometchat-alert-popup__text {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n.cometchat-alert-popup__text-title {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading2-medium);\n}\n\n.cometchat-alert-popup__text-subtitle {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-alert-popup__button-wrapper {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) 0px;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n.cometchat-alert-popup__button-wrapper .cometchat-button {\n    display: flex;\n    height: 40px;\n    width: 100%;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n    background: transparent;\n}\n\n.cometchat-alert-popup__button-wrapper .cometchat-button__text {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-alert-popup__button-wrapper>.cometchat {\n    width: 100%;\n}\n\n@media (max-width: 768px) {\n    .cometchat-alert-popup-wrapper {\n        width: 320px;\n    }\n}`,""]);const p=u},1554:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-action-sheet {\n    display: flex;\n    width: max-content;\n    height: 310px;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    position: absolute;\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    overflow: hidden;\n    overflow-y: auto;\n    justify-content: flex-start;\n}\n\n\n\n.cometchat-action-sheet__item-icon {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n    mask-size: contain;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-action-sheet__item-body {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading4-regular, 400 16px Roboto);\n    line-height: 120%;\n    text-align: left;\n}\n\n.cometchat-action-sheet__item {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    padding: var(--cometchat-padding-4, 16px);\n    cursor: pointer;\n    width: 100%;\n}\n\n.cometchat-action-sheet__item:hover  {\n    background: var(--cometchat-white-hover);\n}\n.cometchat-popover .cometchat-action-sheet {\n    height: inherit;\n}",""]);const s=i},1561:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/dropdown-arrow.19438c7586194515d473.svg"},1596:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-BlackItalic.b49c4ba79204961dccd3.ttf"},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1689:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_file-message.64124f24b26099a70a27.svg"},1803:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/close.2adefe6aea2efbd3491d.svg"},2008:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-toast{\n    display: inline-block;\n    padding: var(--cometchat-padding-2,8px);\n    border-radius: var(--cometchat-radius-1,4ppx);\n    background: var(--cometchat-static-black);\n    position: fixed;\n    color: var(--cometchat-static-white, #F9F8FD);\n    font: var(--cometchat-font-caption1-regular);\n    bottom: 12px;\n    left: 50%;\n    transform: translateX(-50%);\n    z-index: 10;\n    position: absolute;\n}",""]);const s=i},2137:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_missed-video-call.77f4e98af6049b2deab0.svg"},2232:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-smart-replies__wrapper {\n  width: 100%;\n  height: 100%;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-smart-replies {\n  display: flex;\n  height: 100%;\n  width: 100%;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  flex-direction: column;\n  align-items: flex-start;\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  border-radius: var(--cometchat-radius-4, 16px);\n  background: var(--cometchat-background-color-01, #FFF);\n  box-shadow: 0px 12px 16px -4px rgb(16 24 40 / 2%), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-smart-replies__header {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  align-self: stretch;\n}\n\n.cometchat-smart-replies__header-title {\n  overflow: hidden;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-body-medium);\n  font-style: normal;\n}\n\n.cometchat-smart-replies__header-close-button {\n  mask: url(${d}) center center no-repeat;\n  -webkit-mask: url(${d}) center center no-repeat;\n  background-color: var(--cometchat-icon-color-primary, #141414);\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n}\n\n.cometchat-smart-replies__body {\n  width: 100%;\n  flex: 1 0 0;\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  text-align: left;\n}\n\n.cometchat-smart-replies__shimmer-container {\n  display: flex;\n  width: 100%;\n  flex-wrap: wrap;\n  justify-content: flex-start;\n  align-items: center;\n  gap: var(--cometchat-padding-2, 8px);\n  flex-direction: row;\n}\n\n.cometchat-smart-replies__shimmer-item {\n  flex-wrap: wrap;\n  width: 20%;\n  display: flex;\n  height: 33px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  background-size: 800px 104px;\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}\n\n.cometchat-smart-replies__items-container {\n  display: flex;\n flex-direction: column;\n  gap: var(--cometchat-padding-2, 8px);\n  justify-content: flex-start;\n}\n\n.cometchat-smart-replies__item {\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n  align-items: center;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  cursor: pointer;\n  width: 100%;\n}\n\n.cometchat-smart-replies__item:hover {\n  background: var(--cometchat-white-hover, #FAFAFA);\n  cursor: pointer;\n}\n\n.cometchat-smart-replies__item-button {\n  background-color: transparent;\n  border: none;\n  color: var(--cometchat-text-color-primary);\n  cursor: pointer;\n  width: 100%;\n  text-align: left;\n}\n`,""]);const p=u},2265:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-threaded-message {\n    height: 100%;\n    width: 100%;\n    overflow: hidden;\n    display: flex;\n    flex-direction: column;\n    background: var(--cometchat-background-color-01, #FFFFFF);\n}\n\n.cometchat-threaded-message .cometchat-threaded-message-preview__header {\n    height: 65px;\n    border-left: none;\n}\n\n.cometchat-threaded-message-list .cometchat-message-bubble .cometchat-text-bubble {\n    max-width: 280px;\n}\n\n.cometchat-composer-wrapper .cometchat-mention-list {\n    left: 8px;\n}\n\n.cometchat-threaded-message .message-composer-blocked {\n    display: flex;\n    width: 100%;\n    height: 48px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-5, 20px);\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex-shrink: 0;\n    background: var(--cometchat-background-color-04, #E8E8E8);\n}\n\n.cometchat-threaded-message .message-composer-blocked__text {\n    color: var(--cometchat-text-color-secondary, #727272);\n    font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-threaded-message .message-composer-blocked__text>a {\n    text-decoration: underline;\n    text-decoration-color: var(--cometchat-primary-color);\n    cursor: pointer;\n    color: var(--cometchat-primary-color);\n}\n\n.cometchat-threaded-message-list {\n    overflow: hidden;\n    height: 100%;\n}\n\n.cometchat-threaded-message-list .cometchat-message-list {\n    background: var(--cometchat-background-color-01, #FFFFFF);\n}\n\n.cometchat-threaded-message-composer {\n    padding: 8px;\n}\n\n.side-component-wrapper>.cometchat,\n.side-component-wrapper .cometchat-threaded-message-preview {\n    width: 100%;\n}\n\n.cometchat-threaded-message-list .cometchat-list__header {\n    border-bottom: none;\n}\n\n.cometchat-threaded-message .cometchat-action-sheet {\n    height: fit-content;\n}\n\n.cometchat-messages-wrapper .cometchat-message-list__flag-message-dialog-wrapper {\n    position: absolute;\n}\n\n.message-composer-blocked__text-unblock {\n    text-decoration: underline;\n    color: var(--cometchat-primary-color);\n    cursor: pointer;\n}",""]);const s=i},2273:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Regular.27f62b53b93858475a7f.ttf"},2311:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/format_strikethrough.f5672f5fcca9c14b22fb.svg"},2324:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_delete.ce537f017fc12fab523e.svg"},2346:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/user_empty.cce82d51a2fd34fb1414.svg"},2349:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5266),n.b),u=new URL(n(6246),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`/* Main file bubble container with flex layout, gap, and background settings */\n.cometchat-file-bubble {\n    justify-content: space-between;\n    overflow: hidden;\n    box-sizing: border-box;\n    gap: var(--cometchat-padding-2, 8px);\n    border: none;\n    border-radius: none;\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) var(--cometchat-padding-1, 4px);\n    flex-direction: row;\n    align-items: center;\n    border-radius: var(--cometchat-radius-3, 12px);\n    align-self: stretch;\n    width: 240px;\n    max-width: 240px;\n}\n.cometchat-file-bubble>div:not([class]) {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n    width: inherit;\n    overflow: hidden;\n}\n/* Body section of the file bubble with text alignment and overflow settings */\n.cometchat-file-bubble__body {\n    word-wrap: break-word;\n    text-align: left;\n    overflow: hidden;\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding);\n}\n\n/* Styling for the name inside the body */\n.cometchat-file-bubble__body-name {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    align-self: stretch;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-medium);\n    font-style: normal;\n}\n\n/* Styling for file details section (file size, type, etc.) */\n.cometchat-file-bubble__body-details {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-caption2-regular);\n    font-style: normal;\n\n}\n\n/* Leading view section (e.g., file icon) with flex settings */\n.cometchat-file-bubble__leading-view {\n    display: flex;\n    align-items: flex-start;\n    justify-content: flex-end;\n    width: fit-content;\n}\n\n/* Download icon for the tail view (right side of the file bubble) */\n.cometchat-file-bubble__tail-view-download {\n    mask: url(${p}) center center no-repeat;\n    -webkit-mask: url(${p}) center center no-repeat;\n    display: flex;\n    width: 20px;\n    height: 20px;\n    justify-content: center;\n    align-items: center;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-primary-color);\n    cursor: pointer;\n}\n\n/* Adjustments for incoming file bubble name text color */\n.cometchat-file-bubble-incoming .cometchat-file-bubble__body-name {\n    color: var(--cometchat-neutral-color-900);\n}\n\n/* Adjustments for incoming file bubble details text color */\n.cometchat-file-bubble-incoming .cometchat-file-bubble__body-details {\n    color: var(--cometchat-neutral-color-600);\n}\n\n/* Adjustments for outgoing file bubble name text color */\n.cometchat-file-bubble-outgoing .cometchat-file-bubble__body-name {\n    color: var(--cometchat-static-white);\n}\n\n/* Adjustments for outgoing file bubble details text color */\n.cometchat-file-bubble-outgoing .cometchat-file-bubble__body-details {\n    color: var(--cometchat-static-white);\n}\n\n/* Background color for incoming file bubbles */\n.cometchat-file-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Background color for outgoing file bubbles */\n.cometchat-file-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}\n\n\n/* Progress circle container with a fixed width and height */\n.cometchat-file-bubble__tail-view-download-progress {\n    position: relative;\n    width: 20px;\n    height: 20px;\n}\n\n/* SVG within the download progress container with rotation */\n.cometchat-file-bubble__tail-view-download-progress svg {\n    width: 20px;\n    height: 20px;\n    transform: rotate(-90deg);\n}\n\n/* Close icon in the progress view to stop/cancel download */\n.cometchat-file-bubble__tail-view-download-stop {\n    mask: url(${h}) center center no-repeat;\n    -webkit-mask: url(${h}) center center no-repeat;\n    background: var(--cometchat-primary-color);\n    display: flex;\n    width: 12px;\n    height: 12px;\n    justify-content: center;\n    align-items: center;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    cursor: pointer;\n}\n\n/* Background circle for the download progress */\ncircle.cometchat-file-bubble__tail-view-download-progress-background {\n    stroke: var(--cometchat-primary-color);\n    stroke-dasharray: 113 113;\n    stroke-width: 2;\n    fill: none;\n    opacity: .2;\n}\n\n/* Foreground circle that indicates download progress */\ncircle.cometchat-file-bubble__tail-view-download-progress-foreground {\n    stroke: var(--cometchat-primary-color);\n    stroke-dasharray: 0 113;\n    stroke-width: 2;\n    fill: none;\n    stroke-linecap: round;\n}\n\n/* Tail view download button for outgoing file bubble */\n.cometchat-file-bubble-outgoing .cometchat-file-bubble__tail-view-download {\n    background: var(--cometchat-static-white);\n}\n\n/* Background circle for download progress in outgoing bubble */\n.cometchat-file-bubble-outgoing circle.cometchat-file-bubble__tail-view-download-progress-background {\n    stroke: var(--cometchat-static-white);\n    opacity: .2;\n}\n\n/* Foreground circle for download progress in outgoing bubble */\n.cometchat-file-bubble-outgoing circle.cometchat-file-bubble__tail-view-download-progress-foreground {\n    stroke: var(--cometchat-static-white);\n}\n\n/* Stop download icon for outgoing file bubble */\n.cometchat-file-bubble-outgoing .cometchat-file-bubble__tail-view-download-stop {\n    background: var(--cometchat-static-white);\n}`,""]);const m=d},2440:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/delete.9436ff083c3f2bf87470.svg"},2496:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/error_icon.093f6c62b1e9dc09b727.svg"},2551:(e,t,n)=>{"use strict";var r=n(6540),a=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},m={};function g(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new g(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new g(e,2,!1,e,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(e){f[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=f.hasOwnProperty(t)?f[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(_,b);f[t]=new g(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,b);f[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,b);f[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var P,j=Object.assign;function U(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var c="\n"+a[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=i&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function G(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case k:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){$(e,t);var n=z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function oe(e,t){var n=z(t.value),r=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var _e=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Se=null,we=null;function ke(e){if(e=va(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=Ea(t),Ce(e.stateNode,e.type,t))}}function xe(e){Se?we?we.push(e):we=[e]:Se=e}function Te(){if(Se){var e=Se,t=we;if(we=Se=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ae(e,t){return e(t)}function Re(){}var Ie=!1;function Oe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ae(e,t,n)}finally{Ie=!1,(null!==Se||null!==we)&&(Re(),Te())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=Ea(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Me=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Me=!1}function Le(e,t,n,r,a,o,i,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Pe=!1,je=null,Ue=!1,Fe=null,Be={onError:function(e){Pe=!0,je=e}};function Ge(e,t,n,r,a,o,i,s,c){Pe=!1,je=null,Le.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ze(e){if(Ve(e)!==e)throw Error(o(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return ze(a),e;if(i===r)return ze(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Je=a.unstable_shouldYield,Ze=a.unstable_requestPaint,$e=a.unstable_now,Qe=a.unstable_getCurrentPriorityLevel,Xe=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2,lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,Ct,St,wt,kt,xt=!1,Tt=[],At=null,Rt=null,It=null,Ot=new Map,Nt=new Map,Mt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Pt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=va(t))&&Ct(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function jt(e){var t=ba(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void kt(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function Ft(e,t,n){Ut(e)&&n.delete(t)}function Bt(){xt=!1,null!==At&&Ut(At)&&(At=null),null!==Rt&&Ut(Rt)&&(Rt=null),null!==It&&Ut(It)&&(It=null),Ot.forEach(Ft),Nt.forEach(Ft)}function Gt(e,t){e.blockedOn===t&&(e.blockedOn=null,xt||(xt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return Gt(t,e)}if(0<Tt.length){Gt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Gt(At,e),null!==Rt&&Gt(Rt,e),null!==It&&Gt(It,e),Ot.forEach(t),Nt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)jt(n),null===n.blockedOn&&Mt.shift()}var Ht=y.ReactCurrentBatchConfig,zt=!0;function Yt(e,t,n,r){var a=vt,o=Ht.transition;Ht.transition=null;try{vt=1,Kt(e,t,n,r)}finally{vt=a,Ht.transition=o}}function qt(e,t,n,r){var a=vt,o=Ht.transition;Ht.transition=null;try{vt=4,Kt(e,t,n,r)}finally{vt=a,Ht.transition=o}}function Kt(e,t,n,r){if(zt){var a=Jt(e,t,n,r);if(null===a)zr(e,t,r,Wt,n),Lt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return At=Pt(At,e,t,n,r,a),!0;case"dragenter":return Rt=Pt(Rt,e,t,n,r,a),!0;case"mouseover":return It=Pt(It,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Ot.set(o,Pt(Ot.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Nt.set(o,Pt(Nt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&Et(o),null===(o=Jt(e,t,n,r))&&zr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else zr(e,t,r,null,n)}}var Wt=null;function Jt(e,t,n,r){if(Wt=null,null!==(e=ba(e=Ee(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var $t=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,a="value"in $t?$t.value:$t.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Xt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(ln),dn=j({},ln,{view:0,detail:0}),pn=an(dn),hn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(on=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=on=0,cn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(hn),gn=an(j({},hn,{dataTransfer:0})),fn=an(j({},dn,{relatedTarget:0})),_n=an(j({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=j({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),yn=an(j({},ln,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return wn}var xn=j({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(xn),An=an(j({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=an(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),In=an(j({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=j({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=an(On),Mn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Pn=u&&"TextEvent"in window&&!Ln,jn=u&&(!Dn||Ln&&8<Ln&&11>=Ln),Un=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Yn(e,t,n,r){xe(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Wn(e){Ur(e,0)}function Jn(e){if(K(ya(e)))return e}function Zn(e,t){if("change"===e)return t}var $n=!1;if(u){var Qn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;$n=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];Yn(t,Kn,e,Ee(e)),Oe(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function or(e,t){if("click"===e)return Jn(t)}function ir(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,fr=null,_r=null,br=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==fr||fr!==W(r)||(r="selectionStart"in(r=fr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=qr(_r,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},wr={};function kr(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return Sr[e]=n[t];return e}u&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var xr=kr("animationend"),Tr=kr("animationiteration"),Ar=kr("animationstart"),Rr=kr("transitionend"),Ir=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Ir.set(e,t),c(t,[e])}for(var Mr=0;Mr<Or.length;Mr++){var Dr=Or[Mr];Nr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Nr(xr,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Rr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,c,l){if(Ge.apply(this,arguments),Pe){if(!Pe)throw Error(o(198));var u=je;Pe=!1,je=null,Ue||(Ue=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function Ur(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&a.isPropagationStopped())break e;jr(a,s,l),o=c}else for(i=0;i<r.length;i++){if(c=(s=r[i]).instance,l=s.currentTarget,s=s.listener,c!==o&&a.isPropagationStopped())break e;jr(a,s,l),o=c}}}if(Ue)throw e=Fe,Ue=!1,Fe=null,e}function Fr(e,t){var n=t[ga];void 0===n&&(n=t[ga]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Gr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Gr]){e[Gr]=!0,i.forEach(function(t){"selectionchange"!==t&&(Pr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Gr]||(t[Gr]=!0,Br("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Zt(t)){case 1:var a=Yt;break;case 4:a=qt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===a||8===c.nodeType&&c.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ba(s)))return;if(5===(c=i.tag)||6===c){r=o=i;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,a=Ee(n),i=[];e:{var s=Ir.get(e);if(void 0!==s){var c=un,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=Tn;break;case"focusin":l="focus",c=fn;break;case"focusout":l="blur",c=fn;break;case"beforeblur":case"afterblur":c=fn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Rn;break;case xr:case Tr:case Ar:c=_n;break;case Rr:c=In;break;case"scroll":c=pn;break;case"wheel":c=Nn;break;case"copy":case"cut":case"paste":c=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=An}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,m=r;null!==m;){var g=(h=m).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==p&&null!=(g=Ne(m,p))&&u.push(Yr(m,g,h))),d)break;m=m.return}0<u.length&&(s=new c(s,l,null,n,a),i.push({event:s,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(l=n.relatedTarget||n.fromElement)||!ba(l)&&!l[ma])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?ba(l):null)&&(l!==(d=Ve(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==c?s:ya(c),h=null==l?s:ya(l),(s=new u(g,m+"leave",c,n,a)).target=d,s.relatedTarget=h,g=null,ba(a)===r&&((u=new u(p,m+"enter",l,n,a)).target=h,u.relatedTarget=d,g=u),d=g,c&&l)e:{for(p=l,m=0,h=u=c;h;h=Kr(h))m++;for(h=0,g=p;g;g=Kr(g))h++;for(;0<m-h;)u=Kr(u),m--;for(;0<h-m;)p=Kr(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Kr(u),p=Kr(p)}u=null}else u=null;null!==c&&Wr(i,s,c,u,!1),null!==l&&null!==d&&Wr(i,d,l,u,!0)}if("select"===(c=(s=r?ya(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var f=Zn;else if(zn(s))if($n)f=ir;else{f=ar;var _=rr}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(f=or);switch(f&&(f=f(e,r))?Yn(i,f,n,a):(_&&_(e,s,r),"focusout"===e&&(_=s._wrapperState)&&_.controlled&&"number"===s.type&&ee(s,"number",s.value)),_=r?ya(r):window,e){case"focusin":(zn(_)||"true"===_.contentEditable)&&(fr=_,_r=r,br=null);break;case"focusout":br=_r=fr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(i,n,a);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":yr(i,n,a)}var b;if(Dn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Vn?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(jn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Vn&&(b=en()):(Qt="value"in($t=a)?$t.value:$t.textContent,Vn=!0)),0<(_=qr(r,v)).length&&(v=new yn(v,e,null,n,a),i.push({event:v,listeners:_}),(b||null!==(b=Gn(n)))&&(v.data=b))),(b=Pn?function(e,t){switch(e){case"compositionend":return Gn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Xt=Qt=$t=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(a=new yn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b)}Ur(i,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ne(e,n))&&r.unshift(Yr(e,o,a)),null!=(o=Ne(e,t))&&r.push(Yr(e,o,a))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,a?null!=(c=Ne(n,o))&&i.unshift(Yr(n,c,s)):a||null!=(c=Ne(n,o))&&i.push(Yr(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Jr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function $r(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Zr,"")}function Qr(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(o(425))}function Xr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout(function(){throw e})}function ca(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Vt(t)}function la(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,ha="__reactProps$"+da,ma="__reactContainer$"+da,ga="__reactEvents$"+da,fa="__reactListeners$"+da,_a="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ya(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Ea(e){return e[ha]||null}var Ca=[],Sa=-1;function wa(e){return{current:e}}function ka(e){0>Sa||(e.current=Ca[Sa],Ca[Sa]=null,Sa--)}function xa(e,t){Sa++,Ca[Sa]=e.current,e.current=t}var Ta={},Aa=wa(Ta),Ra=wa(!1),Ia=Ta;function Oa(e,t){var n=e.type.contextTypes;if(!n)return Ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Na(e){return null!=e.childContextTypes}function Ma(){ka(Ra),ka(Aa)}function Da(e,t,n){if(Aa.current!==Ta)throw Error(o(168));xa(Aa,t),xa(Ra,n)}function La(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,H(e)||"Unknown",a));return j({},n,r)}function Pa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,Ia=Aa.current,xa(Aa,e),xa(Ra,Ra.current),!0}function ja(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=La(e,t,Ia),r.__reactInternalMemoizedMergedChildContext=e,ka(Ra),ka(Aa),xa(Aa,e)):ka(Ra),xa(Ra,n)}var Ua=null,Fa=!1,Ba=!1;function Ga(e){null===Ua?Ua=[e]:Ua.push(e)}function Va(){if(!Ba&&null!==Ua){Ba=!0;var e=0,t=vt;try{var n=Ua;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ua=null,Fa=!1}catch(t){throw null!==Ua&&(Ua=Ua.slice(e+1)),Ke(Xe,Va),t}finally{vt=t,Ba=!1}}return null}var Ha=[],za=0,Ya=null,qa=0,Ka=[],Wa=0,Ja=null,Za=1,$a="";function Qa(e,t){Ha[za++]=qa,Ha[za++]=Ya,Ya=e,qa=t}function Xa(e,t,n){Ka[Wa++]=Za,Ka[Wa++]=$a,Ka[Wa++]=Ja,Ja=e;var r=Za;e=$a;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Za=1<<32-it(t)+a|n<<a|r,$a=o+e}else Za=1<<o|n<<a|r,$a=e}function eo(e){null!==e.return&&(Qa(e,1),Xa(e,1,0))}function to(e){for(;e===Ya;)Ya=Ha[--za],Ha[za]=null,qa=Ha[--za],Ha[za]=null;for(;e===Ja;)Ja=Ka[--Wa],Ka[Wa]=null,$a=Ka[--Wa],Ka[Wa]=null,Za=Ka[--Wa],Ka[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=la(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ja?{id:Za,overflow:$a}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function co(e){return!(!(1&e.mode)||128&e.flags)}function lo(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(co(e))throw Error(o(418));t=la(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(co(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(co(e))throw ho(),Error(o(418));for(;t;)io(e,t),t=la(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=la(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?la(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=la(e.nextSibling)}function mo(){ro=no=null,ao=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var fo=y.ReactCurrentBatchConfig;function _o(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=wa(null),vo=null,yo=null,Eo=null;function Co(){Eo=yo=vo=null}function So(e){var t=bo.current;ka(bo),e._currentValue=t}function wo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){vo=e,Eo=yo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(Eo!==e)if(e={context:e,memoizedValue:t,next:null},null===yo){if(null===vo)throw Error(o(308));yo=e,vo.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var To=null;function Ao(e){null===To?To=[e]:To.push(e)}function Ro(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ao(t)):(n.next=a.next,a.next=n),t.interleaved=n,Io(e,r)}function Io(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Oo=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Lo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Io(e,n)}return null===(a=r.interleaved)?(t.next=t,Ao(r)):(t.next=a.next,a.next=t),r.interleaved=t,Io(e,n)}function Po(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function jo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Uo(e,t,n,r){var a=e.updateQueue;Oo=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var c=s,l=c.next;c.next=null,null===i?o=l:i.next=l,i=c;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c)}if(null!==o){var d=a.baseState;for(i=0,u=l=c=null,s=o;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(h,d,p):m))break e;d=j({},d,p);break e;case 2:Oo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=h,c=d):u=u.next=h,i|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(c=d),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);jc|=i,e.lanes=i,e.memoizedState=d}}function Fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var Bo=(new r.Component).refs;function Go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vo={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),a=nl(e),o=Do(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Lo(e,o,a))&&(rl(t,e,a,r),Po(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),a=nl(e),o=Do(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Lo(e,o,a))&&(rl(t,e,a,r),Po(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),a=Do(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Lo(e,a,r))&&(rl(t,e,r,n),Po(t,e,r))}};function Ho(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(a,o))}function zo(e,t,n){var r=!1,a=Ta,o=t.contextType;return"object"==typeof o&&null!==o?o=xo(o):(a=Na(t)?Ia:Aa.current,o=(r=null!=(r=t.contextTypes))?Oa(e,a):Ta),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Yo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Bo,No(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=xo(o):(o=Na(t)?Ia:Aa.current,a.context=Oa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Go(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Vo.enqueueReplaceState(a,a.state,null),Uo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Bo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jo(e){return(0,e._init)(e._payload)}function Zo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ul(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===N&&Jo(o)===t.type)?((r=a(t,n.props)).ref=Ko(e,t,n),r.return=e,r):((r=Ll(n.type,n.key,n.props,null,e.mode,r)).ref=Ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Pl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ul(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ll(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case C:return(t=Fl(t,e.mode,n)).return=e,t;case N:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Pl(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===a?l(e,t,n,r):null;case C:return n.key===a?u(e,t,n,r):null;case N:return h(e,t,(a=n._init)(n._payload),r)}if(te(n)||L(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case N:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function g(a,o,s,c){for(var l=null,u=null,d=o,g=o=0,f=null;null!==d&&g<s.length;g++){d.index>g?(f=d,d=null):f=d.sibling;var _=h(a,d,s[g],c);if(null===_){null===d&&(d=f);break}e&&d&&null===_.alternate&&t(a,d),o=i(_,o,g),null===u?l=_:u.sibling=_,u=_,d=f}if(g===s.length)return n(a,d),ao&&Qa(a,g),l;if(null===d){for(;g<s.length;g++)null!==(d=p(a,s[g],c))&&(o=i(d,o,g),null===u?l=d:u.sibling=d,u=d);return ao&&Qa(a,g),l}for(d=r(a,d);g<s.length;g++)null!==(f=m(d,a,g,s[g],c))&&(e&&null!==f.alternate&&d.delete(null===f.key?g:f.key),o=i(f,o,g),null===u?l=f:u.sibling=f,u=f);return e&&d.forEach(function(e){return t(a,e)}),ao&&Qa(a,g),l}function f(a,s,c,l){var u=L(c);if("function"!=typeof u)throw Error(o(150));if(null==(c=u.call(c)))throw Error(o(151));for(var d=u=null,g=s,f=s=0,_=null,b=c.next();null!==g&&!b.done;f++,b=c.next()){g.index>f?(_=g,g=null):_=g.sibling;var v=h(a,g,b.value,l);if(null===v){null===g&&(g=_);break}e&&g&&null===v.alternate&&t(a,g),s=i(v,s,f),null===d?u=v:d.sibling=v,d=v,g=_}if(b.done)return n(a,g),ao&&Qa(a,f),u;if(null===g){for(;!b.done;f++,b=c.next())null!==(b=p(a,b.value,l))&&(s=i(b,s,f),null===d?u=b:d.sibling=b,d=b);return ao&&Qa(a,f),u}for(g=r(a,g);!b.done;f++,b=c.next())null!==(b=m(g,a,f,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?f:b.key),s=i(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(a,e)}),ao&&Qa(a,f),u}return function e(r,o,i,c){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var l=i.key,u=o;null!==u;){if(u.key===l){if((l=i.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===N&&Jo(l)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=Ko(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((o=Pl(i.props.children,r.mode,c,i.key)).return=r,r=o):((c=Ll(i.type,i.key,i.props,null,r.mode,c)).ref=Ko(r,o,i),c.return=r,r=c)}return s(r);case C:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Fl(i,r.mode,c)).return=r,r=o}return s(r);case N:return e(r,o,(u=i._init)(i._payload),c)}if(te(i))return g(r,o,i,c);if(L(i))return f(r,o,i,c);Wo(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Ul(i,r.mode,c)).return=r,r=o),s(r)):n(r,o)}}var $o=Zo(!0),Qo=Zo(!1),Xo={},ei=wa(Xo),ti=wa(Xo),ni=wa(Xo);function ri(e){if(e===Xo)throw Error(o(174));return e}function ai(e,t){switch(xa(ni,t),xa(ti,e),xa(ei,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka(ei),xa(ei,t)}function oi(){ka(ei),ka(ti),ka(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ce(t,e.type);t!==n&&(xa(ti,e),xa(ei,n))}function si(e){ti.current===e&&(ka(ei),ka(ti))}var ci=wa(0);function li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=y.ReactCurrentDispatcher,hi=y.ReactCurrentBatchConfig,mi=0,gi=null,fi=null,_i=null,bi=!1,vi=!1,yi=0,Ei=0;function Ci(){throw Error(o(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function wi(e,t,n,r,a,i){if(mi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:cs,e=n(r,a),vi){i=0;do{if(vi=!1,yi=0,25<=i)throw Error(o(301));i+=1,_i=fi=null,t.updateQueue=null,pi.current=ls,e=n(r,a)}while(vi)}if(pi.current=is,t=null!==fi&&null!==fi.next,mi=0,_i=fi=gi=null,bi=!1,t)throw Error(o(300));return e}function ki(){var e=0!==yi;return yi=0,e}function xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_i?gi.memoizedState=_i=e:_i=_i.next=e,_i}function Ti(){if(null===fi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=fi.next;var t=null===_i?gi.memoizedState:_i.next;if(null!==t)_i=t,fi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(fi=e).memoizedState,baseState:fi.baseState,baseQueue:fi.baseQueue,queue:fi.queue,next:null},null===_i?gi.memoizedState=_i=e:_i=_i.next=e}return _i}function Ai(e,t){return"function"==typeof t?t(e):t}function Ri(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=fi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var c=s=null,l=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=p,s=r):l=l.next=p,gi.lanes|=d,jc|=d}u=u.next}while(null!==u&&u!==i);null===l?s=r:l.next=c,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,gi.lanes|=i,jc|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ii(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(ys=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Oi(){}function Ni(e,t){var n=gi,r=Ti(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,ys=!0),r=r.queue,zi(Li.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==_i&&1&_i.memoizedState.tag){if(n.flags|=2048,Fi(9,Di.bind(null,n,r,a,t),void 0,null),null===Ic)throw Error(o(349));30&mi||Mi(n,t,a)}return a}function Mi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Di(e,t,n,r){t.value=n,t.getSnapshot=r,Pi(t)&&ji(e)}function Li(e,t,n){return n(function(){Pi(t)&&ji(e)})}function Pi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function ji(e){var t=Io(e,1);null!==t&&rl(t,e,1,-1)}function Ui(e){var t=xi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,gi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return Ti().memoizedState}function Gi(e,t,n,r){var a=xi();gi.flags|=e,a.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var a=Ti();r=void 0===r?null:r;var o=void 0;if(null!==fi){var i=fi.memoizedState;if(o=i.destroy,null!==r&&Si(r,i.deps))return void(a.memoizedState=Fi(t,n,o,r))}gi.flags|=e,a.memoizedState=Fi(1|t,n,o,r)}function Hi(e,t){return Gi(8390656,8,e,t)}function zi(e,t){return Vi(2048,8,e,t)}function Yi(e,t){return Vi(4,2,e,t)}function qi(e,t){return Vi(4,4,e,t)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,Ki.bind(null,t,e),n)}function Ji(){}function Zi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $i(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qi(e,t,n){return 21&mi?(sr(n,t)||(n=gt(),gi.lanes|=n,jc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Xi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{vt=n,hi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?as(t,n):null!==(n=Ro(e,t,n,r))&&(rl(n,e,r,tl()),os(n,t,r))}function ns(e,t,n){var r=nl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var c=t.interleaved;return null===c?(a.next=a,Ao(t)):(a.next=c.next,c.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=Ro(e,t,a,r))&&(rl(n,e,r,a=tl()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function as(e,t){vi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:xo,useCallback:Ci,useContext:Ci,useEffect:Ci,useImperativeHandle:Ci,useInsertionEffect:Ci,useLayoutEffect:Ci,useMemo:Ci,useReducer:Ci,useRef:Ci,useState:Ci,useDebugValue:Ci,useDeferredValue:Ci,useTransition:Ci,useMutableSource:Ci,useSyncExternalStore:Ci,useId:Ci,unstable_isNewReconciler:!1},ss={readContext:xo,useCallback:function(e,t){return xi().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:Hi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xi().memoizedState=e},useState:Ui,useDebugValue:Ji,useDeferredValue:function(e){return xi().memoizedState=e},useTransition:function(){var e=Ui(!1),t=e[0];return e=Xi.bind(null,e[1]),xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,a=xi();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ic)throw Error(o(349));30&mi||Mi(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hi(Li.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Di.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xi(),t=Ic.identifierPrefix;if(ao){var n=$a;t=":"+t+"R"+(n=(Za&~(1<<32-it(Za)-1)).toString(32)+n),0<(n=yi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:xo,useCallback:Zi,useContext:xo,useEffect:zi,useImperativeHandle:Wi,useInsertionEffect:Yi,useLayoutEffect:qi,useMemo:$i,useReducer:Ri,useRef:Bi,useState:function(){return Ri(Ai)},useDebugValue:Ji,useDeferredValue:function(e){return Qi(Ti(),fi.memoizedState,e)},useTransition:function(){return[Ri(Ai)[0],Ti().memoizedState]},useMutableSource:Oi,useSyncExternalStore:Ni,useId:es,unstable_isNewReconciler:!1},ls={readContext:xo,useCallback:Zi,useContext:xo,useEffect:zi,useImperativeHandle:Wi,useInsertionEffect:Yi,useLayoutEffect:qi,useMemo:$i,useReducer:Ii,useRef:Bi,useState:function(){return Ii(Ai)},useDebugValue:Ji,useDeferredValue:function(e){var t=Ti();return null===fi?t.memoizedState=e:Qi(t,fi.memoizedState,e)},useTransition:function(){return[Ii(Ai)[0],Ti().memoizedState]},useMutableSource:Oi,useSyncExternalStore:Ni,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yc||(Yc=!0,qc=r),ps(0,t)},n}function gs(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Kc?Kc=new Set([this]):Kc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=xl.bind(null,e,t,n),t.then(e,e))}function _s(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Lo(n,t,1))),n.lanes|=1),e)}var vs=y.ReactCurrentOwner,ys=!1;function Es(e,t,n,r){t.child=null===e?Qo(t,null,n,r):$o(t,e.child,n,r)}function Cs(e,t,n,r,a){n=n.render;var o=t.ref;return ko(t,a),r=wi(e,t,n,r,o,a),n=ki(),null===e||ys?(ao&&n&&eo(t),t.flags|=1,Es(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ys(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Ml(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ll(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ws(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)return Ys(e,t,a)}return t.flags|=1,(e=Dl(o,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(cr(o,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Ys(e,t,a);131072&e.flags&&(ys=!0)}}return Ts(e,t,n,r,a)}function ks(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xa(Dc,Mc),Mc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xa(Dc,Mc),Mc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xa(Dc,Mc),Mc|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xa(Dc,Mc),Mc|=r;return Es(e,t,a,n),t.child}function xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,a){var o=Na(n)?Ia:Aa.current;return o=Oa(t,o),ko(t,a),n=wi(e,t,n,r,o,a),r=ki(),null===e||ys?(ao&&r&&eo(t),t.flags|=1,Es(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ys(e,t,a))}function As(e,t,n,r,a){if(Na(n)){var o=!0;Pa(t)}else o=!1;if(ko(t,a),null===t.stateNode)zs(e,t),zo(t,n,r),qo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,l=n.contextType;l="object"==typeof l&&null!==l?xo(l):Oa(t,l=Na(n)?Ia:Aa.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||c!==l)&&Yo(t,i,r,l),Oo=!1;var p=t.memoizedState;i.state=p,Uo(t,r,i,a),c=t.memoizedState,s!==r||p!==c||Ra.current||Oo?("function"==typeof u&&(Go(t,n,u,r),c=t.memoizedState),(s=Oo||Ho(t,n,s,r,p,c,l))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Mo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:_o(t.type,s),i.props=l,d=t.pendingProps,p=i.context,c="object"==typeof(c=n.contextType)&&null!==c?xo(c):Oa(t,c=Na(n)?Ia:Aa.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==c)&&Yo(t,i,r,c),Oo=!1,p=t.memoizedState,i.state=p,Uo(t,r,i,a);var m=t.memoizedState;s!==d||p!==m||Ra.current||Oo?("function"==typeof h&&(Go(t,n,h,r),m=t.memoizedState),(l=Oo||Ho(t,n,l,r,p,m,c)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=c,r=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,a)}function Rs(e,t,n,r,a,o){xs(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&ja(t,n,!1),Ys(e,t,o);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,s,o)):Es(e,t,s,o),t.memoizedState=r.state,a&&ja(t,n,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Da(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Da(0,t.context,!1),ai(e,t.containerInfo)}function Os(e,t,n,r,a){return mo(),go(a),t.flags|=256,Es(e,t,n,r),t.child}var Ns,Ms,Ds,Ls,Ps={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Us(e,t,n){var r,a=t.pendingProps,i=ci.current,s=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),xa(ci,1&i),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=a.children,e=a.fallback,s?(a=t.mode,s=t.child,c={mode:"hidden",children:c},1&a||null===s?s=jl(c,a,0,null):(s.childLanes=0,s.pendingProps=c),e=Pl(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Ps,e):Fs(t,c));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=jl({mode:"visible",children:r.children},a,0,null),(i=Pl(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&$o(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Ps,i);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var c=r.dgst;return r=c,Bs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(c=0!==(s&e.childLanes),ys||c){if(null!==(r=Ic)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Io(e,a),rl(r,e,a,-1))}return fl(),Bs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Al.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=la(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Ka[Wa++]=Za,Ka[Wa++]=$a,Ka[Wa++]=Ja,Za=e.id,$a=e.overflow,Ja=t),(t=Fs(t,r.children)).flags|=4096,t)}(e,t,c,a,r,i,n);if(s){s=a.fallback,c=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&c||t.child===i?(a=Dl(i,l)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==r?s=Dl(r,s):(s=Pl(s,c,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,c=null===(c=e.child.memoizedState)?js(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~n,t.memoizedState=Ps,a}return e=(s=e.child).sibling,a=Dl(s,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Fs(e,t){return(t=jl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&go(r),$o(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wo(e.return,t,n)}function Vs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Hs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Es(e,t,r.children,n),2&(r=ci.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,n,t);else if(19===e.tag)Gs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xa(ci,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===li(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===li(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function zs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ys(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jc|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Na(t.type)&&Ma(),Ks(t),null;case 3:return r=t.stateNode,oi(),ka(Ra),ka(Aa),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Ms(e,t),Ks(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ks(t),null}if(e=ri(ei.current),po(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pa]=t,r[ha]=i,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(a=0;a<Lr.length;a++)Fr(Lr[a],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Z(r,i),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fr("invalid",r);break;case"textarea":ae(r,i),Fr("invalid",r)}for(var c in be(n,i),a=null,i)if(i.hasOwnProperty(c)){var l=i[c];"children"===c?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,l,e),a=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,l,e),a=["children",""+l]):s.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Fr("scroll",r)}switch(n){case"input":q(r),X(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Xr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[pa]=t,e[ha]=r,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(c=ve(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),a=r;break;case"iframe":case"object":case"embed":Fr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Lr.length;a++)Fr(Lr[a],e);a=r;break;case"source":Fr("error",e),a=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=r;break;case"details":Fr("toggle",e),a=r;break;case"input":Z(e,r),a=J(e,r),Fr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=j({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Fr("invalid",e)}for(i in be(n,a),l=a)if(l.hasOwnProperty(i)){var u=l[i];"style"===i?fe(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Fr("scroll",e):null!=u&&v(e,i,u,c))}switch(n){case"input":q(e),X(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Ks(t),null;case 13:if(ka(ci),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&1&t.mode&&!(128&t.flags))ho(),mo(),t.flags|=98560,i=!1;else if(i=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[pa]=t}else mo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),i=!1}else null!==oo&&(sl(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ci.current?0===Lc&&(Lc=3):fl())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return oi(),Ms(e,t),null===e&&Vr(t.stateNode.containerInfo),Ks(t),null;case 10:return So(t.type._context),Ks(t),null;case 19:if(ka(ci),null===(i=t.memoizedState))return Ks(t),null;if(r=!!(128&t.flags),null===(c=i.rendering))if(r)qs(i,!1);else{if(0!==Lc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=li(e))){for(t.flags|=128,qs(i,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(c=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,e=c.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xa(ci,1&ci.current|2),t.child}e=e.sibling}null!==i.tail&&$e()>Hc&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=li(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!c.alternate&&!ao)return Ks(t),null}else 2*$e()-i.renderingStartTime>Hc&&1073741824!==n&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=i.last)?n.sibling=c:t.child=c,i.last=c)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$e(),t.sibling=null,n=ci.current,xa(ci,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return pl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Mc)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Js(e,t){switch(to(t),t.tag){case 1:return Na(t.type)&&Ma(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),ka(Ra),ka(Aa),di(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(ka(ci),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(ci),null;case 4:return oi(),null;case 10:return So(t.type._context),null;case 22:case 23:return pl(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Ds=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=J(e,a),r=J(e,r),i=[];break;case"select":a=j({},a,{value:void 0}),r=j({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var c=a[u];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Fr("scroll",e),i||c===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,$s=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kl(e,t,n)}else n.current=null}function tc(e,t,n){try{n()}catch(n){kl(e,t,n)}}var nc=!1;function rc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tc(t,n,o)}a=a.next}while(a!==r)}}function ac(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ga],delete t[fa],delete t[_a]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(lc(e,t,n),e=e.sibling;null!==e;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,pc=!1;function hc(e,t,n){for(n=n.child;null!==n;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(e){}switch(n.tag){case 5:$s||ec(n,t);case 6:var r=dc,a=pc;dc=null,hc(e,t,n),pc=a,null!==(dc=r)&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?ca(e.parentNode,n):1===e.nodeType&&ca(e,n),Vt(e)):ca(dc,n.stateNode));break;case 4:r=dc,a=pc,dc=n.stateNode.containerInfo,pc=!0,hc(e,t,n),dc=r,pc=a;break;case 0:case 11:case 14:case 15:if(!$s&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&tc(n,t,i),a=a.next}while(a!==r)}hc(e,t,n);break;case 1:if(!$s&&(ec(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kl(n,t,e)}hc(e,t,n);break;case 21:hc(e,t,n);break;case 22:1&n.mode?($s=(r=$s)||null!==n.memoizedState,hc(e,t,n),$s=r):hc(e,t,n);break;default:hc(e,t,n)}}function gc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Rl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function fc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,pc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,pc=!0;break e}c=c.return}if(null===dc)throw Error(o(160));mc(i,s,a),dc=null,pc=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(e){kl(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_c(t,e),t=t.sibling}function _c(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fc(t,e),bc(e),4&r){try{rc(3,e,e.return),ac(3,e)}catch(t){kl(e,e.return,t)}try{rc(5,e,e.return)}catch(t){kl(e,e.return,t)}}break;case 1:fc(t,e),bc(e),512&r&&null!==n&&ec(n,n.return);break;case 5:if(fc(t,e),bc(e),512&r&&null!==n&&ec(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(t){kl(e,e.return,t)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===i.type&&null!=i.name&&$(a,i),ve(c,s);var u=ve(c,i);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];"style"===d?fe(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(c){case"input":Q(a,i);break;case"textarea":oe(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(a,!!i.multiple,m,!1):h!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[ha]=i}catch(t){kl(e,e.return,t)}}break;case 6:if(fc(t,e),bc(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){kl(e,e.return,t)}}break;case 3:if(fc(t,e),bc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){kl(e,e.return,t)}break;case 4:default:fc(t,e),bc(e);break;case 13:fc(t,e),bc(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Vc=$e())),4&r&&gc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($s=(u=$s)||d,fc(t,e),$s=u):fc(t,e),bc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(p=Xs=d;null!==Xs;){switch(m=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:rc(4,h,h.return);break;case 1:ec(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){kl(r,n,e)}}break;case 5:ec(h,h.return);break;case 22:if(null!==h.memoizedState){Cc(p);continue}}null!==m?(m.return=h,Xs=m):Cc(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(c=p.stateNode,s=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=ge("display",s))}catch(t){kl(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kl(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fc(t,e),bc(e),4&r&&gc(e);case 21:}}function bc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),uc(e,cc(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;lc(e,cc(e),i);break;default:throw Error(o(161))}}catch(t){kl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vc(e,t,n){Xs=e,yc(e,t,n)}function yc(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var a=Xs,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Zs;if(!i){var s=a.alternate,c=null!==s&&null!==s.memoizedState||$s;s=Zs;var l=$s;if(Zs=i,($s=c)&&!l)for(Xs=a;null!==Xs;)c=(i=Xs).child,22===i.tag&&null!==i.memoizedState?Sc(a):null!==c?(c.return=i,Xs=c):Sc(a);for(;null!==o;)Xs=o,yc(o,t,n),o=o.sibling;Xs=a,Zs=s,$s=l}Ec(e)}else 8772&a.subtreeFlags&&null!==o?(o.return=a,Xs=o):Ec(e)}}function Ec(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$s||ac(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$s)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:_o(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fo(t,s,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Vt(p)}}}break;default:throw Error(o(163))}$s||512&t.flags&&oc(t)}catch(e){kl(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function Cc(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Sc(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ac(4,t)}catch(e){kl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){kl(t,a,e)}}var o=t.return;try{oc(t)}catch(e){kl(t,o,e)}break;case 5:var i=t.return;try{oc(t)}catch(e){kl(t,i,e)}}}catch(e){kl(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var wc,kc=Math.ceil,xc=y.ReactCurrentDispatcher,Tc=y.ReactCurrentOwner,Ac=y.ReactCurrentBatchConfig,Rc=0,Ic=null,Oc=null,Nc=0,Mc=0,Dc=wa(0),Lc=0,Pc=null,jc=0,Uc=0,Fc=0,Bc=null,Gc=null,Vc=0,Hc=1/0,zc=null,Yc=!1,qc=null,Kc=null,Wc=!1,Jc=null,Zc=0,$c=0,Qc=null,Xc=-1,el=0;function tl(){return 6&Rc?$e():-1!==Xc?Xc:Xc=$e()}function nl(e){return 1&e.mode?2&Rc&&0!==Nc?Nc&-Nc:null!==fo.transition?(0===el&&(el=gt()),el):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Zt(e.type):1}function rl(e,t,n,r){if(50<$c)throw $c=0,Qc=null,Error(o(185));_t(e,n,r),2&Rc&&e===Ic||(e===Ic&&(!(2&Rc)&&(Uc|=n),4===Lc&&cl(e,Nc)),al(e,r),1===n&&0===Rc&&!(1&t.mode)&&(Hc=$e()+500,Fa&&Va()))}function al(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,c=a[i];-1===c?0!==(s&n)&&0===(s&r)||(a[i]=ht(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Ic?Nc:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Fa=!0,Ga(e)}(ll.bind(null,e)):Ga(ll.bind(null,e)),ia(function(){!(6&Rc)&&Va()}),n=null;else{switch(yt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Il(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Xc=-1,el=0,6&Rc)throw Error(o(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=pt(e,e===Ic?Nc:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=_l(e,r);else{t=r;var a=Rc;Rc|=2;var i=gl();for(Ic===e&&Nc===t||(zc=null,Hc=$e()+500,hl(e,t));;)try{vl();break}catch(t){ml(e,t)}Co(),xc.current=i,Rc=a,null!==Oc?t=0:(Ic=null,Nc=0,t=Lc)}if(0!==t){if(2===t&&0!==(a=mt(e))&&(r=a,t=il(e,a)),1===t)throw n=Pc,hl(e,0),cl(e,r),al(e,$e()),n;if(6===t)cl(e,r);else{if(a=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=_l(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=il(e,i))),1!==t)))throw n=Pc,hl(e,0),cl(e,r),al(e,$e()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Cl(e,Gc,zc);break;case 3:if(cl(e,r),(130023424&r)===r&&10<(t=Vc+500-$e())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(Cl.bind(null,e,Gc,zc),t);break}Cl(e,Gc,zc);break;case 4:if(cl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kc(r/1960))-r)){e.timeoutHandle=ra(Cl.bind(null,e,Gc,zc),r);break}Cl(e,Gc,zc);break;default:throw Error(o(329))}}}return al(e,$e()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=Bc;return e.current.memoizedState.isDehydrated&&(hl(e,t).flags|=256),2!==(e=_l(e,t))&&(t=Gc,Gc=n,null!==t&&sl(t)),e}function sl(e){null===Gc?Gc=e:Gc.push.apply(Gc,e)}function cl(e,t){for(t&=~Fc,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(6&Rc)throw Error(o(327));Sl();var t=pt(e,0);if(!(1&t))return al(e,$e()),null;var n=_l(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Pc,hl(e,0),cl(e,t),al(e,$e()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cl(e,Gc,zc),al(e,$e()),null}function ul(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{0===(Rc=n)&&(Hc=$e()+500,Fa&&Va())}}function dl(e){null!==Jc&&0===Jc.tag&&!(6&Rc)&&Sl();var t=Rc;Rc|=1;var n=Ac.transition,r=vt;try{if(Ac.transition=null,vt=1,e)return e()}finally{vt=r,Ac.transition=n,!(6&(Rc=t))&&Va()}}function pl(){Mc=Dc.current,ka(Dc)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Oc)for(n=Oc.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ma();break;case 3:oi(),ka(Ra),ka(Aa),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:ka(ci);break;case 10:So(r.type._context);break;case 22:case 23:pl()}n=n.return}if(Ic=e,Oc=e=Dl(e.current,null),Nc=Mc=t,Lc=0,Pc=null,Fc=Uc=jc=0,Gc=Bc=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}To=null}return e}function ml(e,t){for(;;){var n=Oc;try{if(Co(),pi.current=is,bi){for(var r=gi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(mi=0,_i=fi=gi=null,vi=!1,yi=0,Tc.current=null,null===n||null===n.return){Lc=1,Pc=t,Oc=null;break}e:{var i=e,s=n.return,c=n,l=t;if(t=Nc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=_s(s);if(null!==m){m.flags&=-257,bs(m,s,c,0,t),1&m.mode&&fs(i,u,t),l=u;var g=(t=m).updateQueue;if(null===g){var f=new Set;f.add(l),t.updateQueue=f}else g.add(l);break e}if(!(1&t)){fs(i,u,t),fl();break e}l=Error(o(426))}else if(ao&&1&c.mode){var _=_s(s);if(null!==_){!(65536&_.flags)&&(_.flags|=256),bs(_,s,c,0,t),go(us(l,c));break e}}i=l=us(l,c),4!==Lc&&(Lc=2),null===Bc?Bc=[i]:Bc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,jo(i,ms(0,l,t));break e;case 1:c=l;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Kc&&Kc.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,jo(i,gs(i,c,t));break e}}i=i.return}while(null!==i)}El(n)}catch(e){t=e,Oc===n&&null!==n&&(Oc=n=n.return);continue}break}}function gl(){var e=xc.current;return xc.current=is,null===e?is:e}function fl(){0!==Lc&&3!==Lc&&2!==Lc||(Lc=4),null===Ic||!(268435455&jc)&&!(268435455&Uc)||cl(Ic,Nc)}function _l(e,t){var n=Rc;Rc|=2;var r=gl();for(Ic===e&&Nc===t||(zc=null,hl(e,t));;)try{bl();break}catch(t){ml(e,t)}if(Co(),Rc=n,xc.current=r,null!==Oc)throw Error(o(261));return Ic=null,Nc=0,Lc}function bl(){for(;null!==Oc;)yl(Oc)}function vl(){for(;null!==Oc&&!Je();)yl(Oc)}function yl(e){var t=wc(e.alternate,e,Mc);e.memoizedProps=e.pendingProps,null===t?El(e):Oc=t,Tc.current=null}function El(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Js(n,t)))return n.flags&=32767,void(Oc=n);if(null===e)return Lc=6,void(Oc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ws(n,t,Mc)))return void(Oc=n);if(null!==(t=t.sibling))return void(Oc=t);Oc=t=e}while(null!==t);0===Lc&&(Lc=5)}function Cl(e,t,n){var r=vt,a=Ac.transition;try{Ac.transition=null,vt=1,function(e,t,n,r){do{Sl()}while(null!==Jc);if(6&Rc)throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Ic&&(Oc=Ic=null,Nc=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Wc||(Wc=!0,Il(tt,function(){return Sl(),null})),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Ac.transition,Ac.transition=null;var s=vt;vt=1;var c=Rc;Rc|=4,Tc.current=null,function(e,t){if(ea=zt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(c=s+a),p!==i||0!==r&&3!==p.nodeType||(l=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)h=p,p=m;for(;;){if(p===e)break t;if(h===n&&++u===a&&(c=s),h===i&&++d===r&&(l=s),null!==(m=p.nextSibling))break;h=(p=h).parentNode}p=m}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},zt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var f=g.memoizedProps,_=g.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?f:_o(t.type,f),_);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(o(163))}}catch(e){kl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=nc,nc=!1}(e,n),_c(n,e),mr(ta),zt=!!ea,ta=ea=null,e.current=n,vc(n,e,a),Ze(),Rc=c,vt=s,Ac.transition=i}else e.current=n;if(Wc&&(Wc=!1,Jc=e,Zc=a),0===(i=e.pendingLanes)&&(Kc=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),al(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if(Yc)throw Yc=!1,e=qc,qc=null,e;!!(1&Zc)&&0!==e.tag&&Sl(),1&(i=e.pendingLanes)?e===Qc?$c++:($c=0,Qc=e):$c=0,Va()}(e,t,n,r)}finally{Ac.transition=a,vt=r}return null}function Sl(){if(null!==Jc){var e=yt(Zc),t=Ac.transition,n=vt;try{if(Ac.transition=null,vt=16>e?16:e,null===Jc)var r=!1;else{if(e=Jc,Jc=null,Zc=0,6&Rc)throw Error(o(331));var a=Rc;for(Rc|=4,Xs=e.current;null!==Xs;){var i=Xs,s=i.child;if(16&Xs.flags){var c=i.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:rc(8,d,i)}var p=d.child;if(null!==p)p.return=d,Xs=p;else for(;null!==Xs;){var h=(d=Xs).sibling,m=d.return;if(ic(d),d===u){Xs=null;break}if(null!==h){h.return=m,Xs=h;break}Xs=m}}}var g=i.alternate;if(null!==g){var f=g.child;if(null!==f){g.child=null;do{var _=f.sibling;f.sibling=null,f=_}while(null!==f)}}Xs=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Xs=s;else e:for(;null!==Xs;){if(2048&(i=Xs).flags)switch(i.tag){case 0:case 11:case 15:rc(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Xs=b;break e}Xs=i.return}}var v=e.current;for(Xs=v;null!==Xs;){var y=(s=Xs).child;if(2064&s.subtreeFlags&&null!==y)y.return=s,Xs=y;else e:for(s=v;null!==Xs;){if(2048&(c=Xs).flags)try{switch(c.tag){case 0:case 11:case 15:ac(9,c)}}catch(e){kl(c,c.return,e)}if(c===s){Xs=null;break e}var E=c.sibling;if(null!==E){E.return=c.return,Xs=E;break e}Xs=c.return}}if(Rc=a,Va(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(e){}r=!0}return r}finally{vt=n,Ac.transition=t}}return!1}function wl(e,t,n){e=Lo(e,t=ms(0,t=us(n,t),1),1),t=tl(),null!==e&&(_t(e,1,t),al(e,t))}function kl(e,t,n){if(3===e.tag)wl(e,e,n);else for(;null!==t;){if(3===t.tag){wl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kc||!Kc.has(r))){t=Lo(t,e=gs(t,e=us(n,e),1),1),e=tl(),null!==t&&(_t(t,1,e),al(t,e));break}}t=t.return}}function xl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Ic===e&&(Nc&n)===n&&(4===Lc||3===Lc&&(130023424&Nc)===Nc&&500>$e()-Vc?hl(e,0):Fc|=n),al(e,t)}function Tl(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=tl();null!==(e=Io(e,t))&&(_t(e,t,n),al(e,n))}function Al(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tl(e,n)}function Rl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tl(e,n)}function Il(e,t){return Ke(e,t)}function Ol(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Ol(e,t,n,r)}function Ml(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,a,i){var s=2;if(r=e,"function"==typeof e)Ml(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Pl(n.children,a,i,t);case w:s=8,a|=8;break;case k:return(e=Nl(12,n,t,2|a)).elementType=k,e.lanes=i,e;case R:return(e=Nl(13,n,t,a)).elementType=R,e.lanes=i,e;case I:return(e=Nl(19,n,t,a)).elementType=I,e.lanes=i,e;case M:return jl(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case T:s=9;break e;case A:s=11;break e;case O:s=14;break e;case N:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Nl(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Pl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function jl(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ft(0),this.expirationTimes=ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,a,o,i,s,c){return e=new Bl(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Nl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),e}function Vl(e){if(!e)return Ta;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Na(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Na(n))return La(e,n,t)}return t}function Hl(e,t,n,r,a,o,i,s,c){return(e=Gl(n,r,!0,e,0,o,0,s,c)).context=Vl(null),n=e.current,(o=Do(r=tl(),a=nl(n))).callback=null!=t?t:null,Lo(n,o,a),e.current.lanes=a,_t(e,a,r),al(e,r),e}function zl(e,t,n,r){var a=t.current,o=tl(),i=nl(a);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Lo(a,t,i))&&(rl(e,a,i,o),Po(e,a,i)),i}function Yl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}wc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ra.current)ys=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Is(t),mo();break;case 5:ii(t);break;case 1:Na(t.type)&&Pa(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;xa(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xa(ci,1&ci.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(xa(ci,1&ci.current),null!==(e=Ys(e,t,n))?e.sibling:null);xa(ci,1&ci.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xa(ci,ci.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Ys(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,ao&&1048576&t.flags&&Xa(t,qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zs(e,t),e=t.pendingProps;var a=Oa(t,Aa.current);ko(t,n),a=wi(null,t,r,e,a,n);var i=ki();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Na(r)?(i=!0,Pa(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,No(t),a.updater=Vo,t.stateNode=a,a._reactInternals=t,qo(t,r,e,n),t=Rs(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),Es(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Ml(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===O)return 14}return 2}(r),e=_o(r,e),a){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=Cs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,_o(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:_o(r,a),n);case 1:return r=t.type,a=t.pendingProps,As(e,t,r,a=t.elementType===r?a:_o(r,a),n);case 3:e:{if(Is(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Mo(e,t),Uo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Os(e,t,r,n,a=us(Error(o(423)),t));break e}if(r!==a){t=Os(e,t,r,n,a=us(Error(o(424)),t));break e}for(ro=la(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Ys(e,t,n);break e}Es(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&lo(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),xs(e,t),Es(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Us(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$o(t,null,r,n):Es(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Cs(e,t,r,a=t.elementType===r?a:_o(r,a),n);case 7:return Es(e,t,t.pendingProps,n),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,xa(bo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!Ra.current){t=Ys(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var c=i.dependencies;if(null!==c){s=i.child;for(var l=c.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=Do(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),wo(i.return,n,t),c.lanes|=n;break}l=l.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),wo(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}Es(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ko(t,n),r=r(a=xo(a)),t.flags|=1,Es(e,t,r,n),t.child;case 14:return a=_o(r=t.type,t.pendingProps),Ss(e,t,r,a=_o(r.type,a),n);case 15:return ws(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_o(r,a),zs(e,t),t.tag=1,Na(r)?(e=!0,Pa(t)):e=!1,ko(t,n),zo(t,r,a),qo(t,r,a,n),Rs(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Wl="function"==typeof reportError?reportError:function(e){console.error(e)};function Jl(e){this._internalRoot=e}function Zl(e){this._internalRoot=e}function $l(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xl(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Yl(i);s.call(e)}}zl(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Yl(i);o.call(e)}}var i=Hl(t,r,e,0,null,!1,0,"",Xl);return e._reactRootContainer=i,e[ma]=i.current,Vr(8===e.nodeType?e.parentNode:e),dl(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Yl(c);s.call(e)}}var c=Gl(e,0,!1,null,0,!1,0,"",Xl);return e._reactRootContainer=c,e[ma]=c.current,Vr(8===e.nodeType?e.parentNode:e),dl(function(){zl(t,c,n,r)}),c}(n,t,e,a,r);return Yl(i)}Zl.prototype.render=Jl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));zl(e,t,null,null)},Zl.prototype.unmount=Jl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl(function(){zl(null,e,null,null)}),t[ma]=null}},Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&jt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),al(t,$e()),!(6&Rc)&&(Hc=$e()+500,Va()))}break;case 13:dl(function(){var t=Io(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}}),Kl(e,1)}},Ct=function(e){if(13===e.tag){var t=Io(e,134217728);null!==t&&rl(t,e,134217728,tl()),Kl(e,134217728)}},St=function(e){if(13===e.tag){var t=nl(e),n=Io(e,t);null!==n&&rl(n,e,t,tl()),Kl(e,t)}},wt=function(){return vt},kt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},Ce=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ea(r);if(!a)throw Error(o(90));K(r),Q(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=ul,Re=dl;var tu={usingClientEntryPoint:!1,Events:[va,ya,Ea,xe,Te,ul]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$l(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$l(e))throw Error(o(299));var n=!1,r="",a=Wl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Gl(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Jl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$l(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Wl;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hl(t,null,e,1,null!=n?n:null,a,0,i,s),e[ma]=t.current,Vr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Zl(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(o(40));return!!e._reactRootContainer&&(dl(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[ma]=null})}),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},2566:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5787),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-checkbox {\n    display: inline-flex;\n    align-items: center;\n    position: relative;\n}\n\n.cometchat-checkbox__label input {\n    position: absolute;\n    opacity: 0;\n    cursor: pointer;\n    height: 0;\n    width: 0;\n}\n\n.cometchat-checkbox__checkmark {\n    display: inline-block;\n    position: relative;\n    width: 24px;\n    height: 24px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1.5px solid var(--cometchat-border-color-default, #E8E8E8);\n}\n\n.cometchat-checkbox:hover .cometchat-checkbox__checkmark {\n    border: 1.5px solid var(--cometchat-border-color-dark, #DCDCDC);\n    cursor: pointer;\n}\n\n\n.cometchat-checkbox input[type="checkbox"]:checked+.cometchat-checkbox__checkmark {\n    border: 1.5px solid var(--cometchat-primary-color, #6852D6);\n    background-color: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-checkbox__checkmark::after {\n    content: "";\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 16px;\n    height: 16px;\n    background: var(--cometchat-static-white, #FFF);\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    transform: translate(-50%, -50%);\n    display: none;\n}\n\n.cometchat-checkbox input[type="checkbox"]:checked+.cometchat-checkbox__checkmark::after {\n    display: block;\n}\n\n.cometchat-checkbox__label {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-radius-2, 8px);\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-body-regular);\n}`,""]);const p=u},2585:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/callRecordingEmpty.eed59067696789e6204c.svg"},2619:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4210),n.b),u=new URL(n(7875),n.b),d=new URL(n(9643),n.b),p=new URL(n(6269),n.b),h=new URL(n(5896),n.b),m=new URL(n(4236),n.b),g=new URL(n(4753),n.b),f=new URL(n(6575),n.b),_=i()(a()),b=c()(l),v=c()(u),y=c()(d),E=c()(p),C=c()(h),S=c()(m),w=c()(g),k=c()(f);_.push([e.id,`.cometchat-media-recorder__recording,\n.cometchat-media-recorder__recorded {\n    display: flex;\n    width: 260px;\n    height: inherit;\n    padding: var(--cometchat-padding-5, 20px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-5, 20px);\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-media-recorder__recording{\n    justify-content: space-between;\n}\n.cometchat-media-recorder {\n    width: max-content;\n}\n\n.cometchat-media-recorder .cometchat-audio-bubble {\n    padding-bottom: var(--cometchat-padding-2);\n    max-width: 100%;\n    width: 100%;\n}\n\n.cometchat-media-recorder .cometchat-audio-bubble .cometchat-audio-bubble__tail-view {\n    display: none;\n}\n\n\n\n.cometchat-media-recorder .cometchat-audio-bubble .cometchat-audio-bubble__body {\n    flex-direction: row;\n    gap: var(--cometchat-padding-2);\n    justify-content: space-between;\n    align-items: center;\n    padding-right: 0;\n}\n\n.cometchat-media-recorder__recording-control,\n.cometchat-media-recorder__recorded-control {\n    display: flex;\n    align-items: center;\n    gap: 20px;\n}\n\n.cometchat-media-recorder__recording-preview {\n    display: flex;\n    width: 120px;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-media-recorder__recorded-preview {\n    display: flex;\n    width: 260px;\n    padding: var(--cometchat-padding-2, 8px) 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 0px;\n    border-radius: var(--cometchat-radius-3, 12px);\n    background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-media-recorder__recording-control-delete,\n.cometchat-media-recorder__recorded-control-delete,\n.cometchat-media-recorder__recording-control-stop,\n.cometchat-media-recorder__recorded-control-record {\n    display: flex;\n    width: 40px;\n    cursor: pointer;\n    height: 40px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-background-color-01, #FFF);\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.10), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);\n}\n\n.cometchat-media-recorder__recording-control-stop-icon {\n    width: 24px;\n    height: 24px;\n    flex-shrink: 0;\n    mask: url(${b}) center center no-repeat;\n    -webkit-mask: url(${b}) center center no-repeat;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-control-delete-icon,\n.cometchat-media-recorder__recorded-control-delete-icon {\n    width: 24px;\n    height: 24px;\n    flex-shrink: 0;\n    -webkit-mask: url(${v}) center center no-repeat;\n    mask: url(${v}) center center no-repeat;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recorded-control-record-icon {\n    width: 24px;\n    height: 24px;\n    flex-shrink: 0;\n    -webkit-mask: url(${y}) center center no-repeat;\n    mask: url(${y}) center center no-repeat;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-control-record,\n.cometchat-media-recorder__recording-control-pause,\n.cometchat-media-recorder__recorded-control-send {\n    display: flex;\n    cursor: pointer;\n    width: 48px;\n    height: 48px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.10), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);\n}\n.cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon,\n.cometchat-media-recorder__recording-control-record-icon {\n    width: 32px;\n    height: 32px;\n    flex-shrink: 0;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-control-record-icon {\n    -webkit-mask: url(${y}) center center no-repeat;\n    mask: url(${y}) center center no-repeat;\n    background: var(--cometchat-error-color, #F44649);\n}\n\n.cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon {\n    -webkit-mask: url(${E}) center center no-repeat;\n    mask: url(${E}) center center no-repeat;\n    background: var(--cometchat-text-color-tertiary, #A1A1A1);\n}\n\n.cometchat-media-recorder__recording-control-error {\n    pointer-events: none;\n}\n.cometchat-media-recorder__recording-control-pause-icon {\n    -webkit-mask: url(${C}) center center no-repeat;\n    mask: url(${C}) center center no-repeat;\n    background: var(--cometchat-error-color, #F44649);\n    width: 32px;\n    height: 32px;\n    flex-shrink: 0;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recorded-control-send-icon {\n    -webkit-mask: url(${S}) center center no-repeat;\n    mask: url(${S}) center center no-repeat;\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n    width: 32px;\n    height: 32px;\n    flex-shrink: 0;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-preview-recording,\n.cometchat-media-recorder__recording-preview-paused {\n    display: flex;\n    width: 80px;\n    height: 80px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n.cometchat-media-recorder__recording-preview-recording-icon,\n.cometchat-media-recorder__recording-preview-paused-icon {\n    width: 48px;\n    height: 48px;\n    flex-shrink: 0;\n    background: var(--cometchat-icon-color-white, #FFFFFF);\n    -webkit-mask: url(${w}) center center no-repeat;\n    mask: url(${w}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-preview-disabled {\n    opacity: 0.2;\n    display: flex;\n    width: 80px;\n    height: 80px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n.cometchat-media-recorder__recording-preview-disabled-icon {\n    width: 48px;\n    height: 48px;\n    flex-shrink: 0;\n    background: var(--cometchat-icon-color-white, #FFFFFF);\n    -webkit-mask: url(${w}) center center no-repeat;\n    mask: url(${w}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__recording-preview-duration {\n    align-self: stretch;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading4-regular, 400 16px Roboto);\n    line-height: 120%;\n}\n.cometchat-media-recorder__error {\n    display: flex;\n    justify-content: flex-start;\n    align-items: flex-start;\n    background: var(--cometchat-background-color-02, #FAFAFA);\n    border-radius: var(--cometchat-radius-4) var(--cometchat-radius-4) 0px 0px;\n    padding: var(--cometchat-padding-2);\n    gap: var(--cometchat-padding-2);\n    width: 260px;\n    position: absolute;\n    z-index: 2;\n    bottom: 100%;\n}\n\n.cometchat-media-recorder__error-content {\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding-1);\n}\n\n.cometchat-media-recorder__error-content-title {\n    font: var(--cometchat-font-caption1-bold);\n}\n\n.cometchat-media-recorder__error-content-subtitle {\n    font: var(--cometchat-font-caption1-regular);\n\n}\n\n.cometchat-media-recorder__error-content-title,\n.cometchat-media-recorder__error-content-subtitle {\n    text-align: left;\n    color: var(--cometchat-text-color-secondary, #727272);\n\n}\n\n.cometchat-media-recorder__error-icon-wrapper {\n    width: 16px;\n    height: 16px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-error-color);\n    border-radius: var(--cometchat-radius-max);\n}\n\n.cometchat-media-recorder__error-icon {\n    width: 16px;\n    height: 16px;\n    flex-shrink: 0;\n    background: var(--cometchat-static-white);\n    -webkit-mask: url(${k}) center center no-repeat;\n    mask: url(${k}) center center no-repeat;\n    -webkit-mask-size: contain;\n    transform: rotate(180deg);\n    mask-size: contain;\n}\n\n/* Permission denied dialog (centered modal) */\n.cometchat-media-recorder__permission-overlay {\n    position: fixed;\n    inset: 0;\n    z-index: 1000;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: rgba(0, 0, 0, 0.5);\n}\n\n.cometchat-media-recorder__permission-dialog {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-spacing-3, 12px);\n    padding: var(--cometchat-padding-6, 24px);\n    width: 320px;\n    border-radius: var(--cometchat-radius-4, 16px);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.10), 0px 8px 8px -4px rgba(16, 24, 40, 0.04);\n}\n\n.cometchat-media-recorder__permission-dialog-icon-wrapper {\n    display: flex;\n    width: 64px;\n    height: 64px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-media-recorder__permission-dialog-icon {\n    width: 32px;\n    height: 32px;\n    flex-shrink: 0;\n    background: var(--cometchat-error-color, #F44649);\n    -webkit-mask: url(${E}) center center no-repeat;\n    mask: url(${E}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-media-recorder__permission-dialog-title {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading4-bold, 700 16px Roboto);\n}\n\n.cometchat-media-recorder__permission-dialog-subtitle {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-media-recorder__permission-dialog-button {\n    width: 100%;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    border-radius: var(--cometchat-radius-3, 12px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    background: var(--cometchat-background-color-01, #FFF);\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-button-bold, 700 14px Roboto);\n    cursor: pointer;\n    margin-top: var(--cometchat-margin-1, 4px);\n}\n\n.cometchat-media-recorder__permission-dialog-button:hover {\n    background: var(--cometchat-background-color-02, #FAFAFA);\n}\n`,""]);const x=_},2635:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-link-bubble {\n  display: flex;\n  padding: 0px;\n  flex-direction: column;\n  align-items: flex-end;\n  align-self: stretch;\n  border-radius: var(--cometchat-radius-3, 12px);\n  width: 240px;\n  max-width: 240px;\n\n}\n\n.cometchat-link-bubble-incoming {\n  background: var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-link-bubble-outgoing {\n  background: var(--cometchat-primary-color, #6852D6);\n}\n\n\n.cometchat-link-bubble__preview-image {\n  height: 50%;\n  width: 100%;\n  cursor: pointer;\n  align-self: stretch;\n  background: var(--cometchat-static-black, #0A0914);\n  border-radius: var(--cometchat-radius-3, 12px) var(--cometchat-radius-3, 12px) 0px 0px;\n}\n\n.cometchat-link-bubble__preview-body {\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px);\n  gap: var(--cometchat-padding-1, 4px);\n  align-items: flex-start;\n  align-self: stretch;\n  border-radius: 0px 0px var(--cometchat-radius-2) var(--cometchat-radius-2);\n}\n\n.cometchat-link-bubble__preview-body-rounded {\n  border-radius: var(--cometchat-radius-2);\n}\n\n.cometchat-link-bubble-incoming .cometchat-link-bubble__preview-body {\n  background: var(--cometchat-neutral-color-400, #DCDCDC);\n}\n\n.cometchat-link-bubble-outgoing .cometchat-link-bubble__preview-body {\n  background: var(--cometchat-extended-primary-color-900, #5D49BE);\n}\n\n.cometchat-link-bubble__preview-body-content-title {\n  font: var(--cometchat-font-body-bold);\n  font-style: normal;\n}\n\n.cometchat-link-bubble-incoming .cometchat-link-bubble__preview-body-content-title {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-link-bubble-outgoing .cometchat-link-bubble__preview-body-content-title {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-link-bubble__preview-body-content-description {\n  font: var(--cometchat-font-caption1-regular);\n  font-style: normal;\n}\n\n.cometchat-link-bubble-incoming .cometchat-link-bubble__preview-body-content-description {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-link-bubble-outgoing .cometchat-link-bubble__preview-body-content-description {\n  color: var(--cometchat-static-white, #FFF);\n\n}\n\n.cometchat-link-bubble__preview-body-content-link {\n  font: var(--cometchat-font-caption1-regular);\n  font-style: normal;\n  opacity: 0.6;\n  cursor: pointer;\n}\n\n.cometchat-link-bubble-incoming .cometchat-link-bubble__preview-body-content-link {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-link-bubble-outgoing .cometchat-link-bubble__preview-body-content-link {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-link-bubble__body {\n  width: 100%;\n}\n.cometchat-link-bubble__body .cometchat-url{\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-link-bubble-incoming .cometchat-link-bubble__body {\n  color: var(--cometchat-info-color, #0B7BEA);\n}\n\n.cometchat-link-bubble-outgoing .cometchat-link-bubble__body {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-link-bubble__preview-body-fav-icon {\n  height: 40px;\n  width: 40px;\n  cursor: pointer;\n  border-radius: var(--cometchat-radius-1, 4px);\n}\n\n\n.cometchat-link-bubble__preview-body-content {\n  text-align: left;\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  align-items: flex-start;\n  gap: var(--cometchat-padding-1, 4px);\n}",""]);const s=i},2673:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-date {\n    display: inline;\n    font: var(--cometchat-font-caption2-regular);\n    color: var(--cometchat-neutral-color-600);\n    background: transparent;\n    text-align: center;\n    font-style: normal;\n    padding: 3px 10px;\n}",""]);const s=i},2688:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/phone_missed_no_fill.79993937b02c29c3ea6c.svg"},2720:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5500),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-reaction-info {\n    display: inline-flex;\n    justify-content: center;\n    align-items: flex-start;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n.cometchat-reaction-info__content {\n    display: flex;\n    padding: 8px var(--cometchat-padding-2, 8px);\n    flex-direction: column;\n    align-items: center;\n    border-radius: var(--cometchat-radius-1, 4px);\n    background: var(--cometchat-static-black, #141414);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    margin: -1px;\n    min-height: 77px;\n    min-width: 77px;\n    justify-content: center;\n}\n\n\n.cometchat-reaction-info__emoji-text {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-reaction-info__emoji {\n    color: var(--cometchat-static-white, #F9F8FD);\n    text-align: center;\n    font: var(--cometchat-font-heading1-regular, 400 24px Roboto);\n}\n\n.cometchat-reaction-info__title {\n    color: var(--cometchat-static-white, #F9F8FD);\n    text-align: center;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-reaction-info__description {\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    text-align: center;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-reaction-info__error {\n    color: var(--cometchat-error-color, #F44649);\n    text-align: center;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-reaction-info__loading {\n    -webkit-mask: url(${d}) center center no-repeat;\n    -webkit-mask-size: contain;\n    height: 24px;\n    width: 24px;\n    border: 4px solid var(--cometchat-background-color-04, #E8E8E8);\n    border-radius: 50%;\n    border-top: 4px solid transparent;\n    -webkit-animation: spin 2s linear infinite;\n    animation: spin 2s linear infinite;\n    \n}\n@keyframes spin {\n    0% {\n        transform: rotate(0deg);\n    }\n\n    100% {\n        transform: rotate(360deg);\n    }\n}`,""]);const p=u},2735:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/tooltip.2aa237f32c9f99b8d920.svg"},2775:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/status_read.f096888f2bedb92218d0.svg"},2802:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/loading_icon.0b32af930a5efc56290d.svg"},2952:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-list-item {\n    display: flex;\n    width: 100%;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-sizing: border-box;\n}\n\n.cometchat-list-item:hover {\n    background: var(--cometchat-white-hover, #FAFAFA);\n}\n\n.cometchat-list-item:active {\n    background: var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-list-item__body {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    width: 100%;\n    padding: 5px;\n    overflow: hidden;\n}\n\n.cometchat-list-item__body-title {\n    height: 19px;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n    line-height: 120%;\n    margin-right: var(--cometchat-margin-1);\n    width: 100%;\n\n}\n\n.cometchat-list-item__title-container {\n    display: flex;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-1, 4px);\n    flex: 1 0 0;\n    overflow: hidden;\n    width: 100%;\n    text-align: left;\n}\n\n.cometchat-list-item__menu-view,\n.cometchat-list-item__trailing-view {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: flex-end;\n    align-items: center;\n}\n\n.cometchat-list-item__trailing-view-hidden {\n    display: none;\n}\n\n.cometchat-list-item__leading-view {\n    display: flex;\n    width: 48px;\n    height: 48px;\n    padding: 9px 9px 9px 10px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.cometchat-list-item__body-subtitle {\n    display: flex;\n    align-items: flex-start;\n    gap: 4px;\n    align-self: stretch;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n}\n\n.cometchat-list-item__status {\n    display: none;\n}\n\n.cometchat-list-item__status-icon_right {\n    border-radius: 16px;\n    width: 10px;\n    height: 10px;\n    border: none;\n    position: relative;\n    bottom: 20%;\n    margin-left: 20px;\n}\n\n.cometchat-list-item__divider {\n    height: 1px;\n    width: 100%;\n    background: grey;\n}",""]);const s=i},2981:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/status_sent.929a6372b15bb47d0179.svg"},2996:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_sticker-message.1e08cf8a4ce3d8af27c9.svg"},3043:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call-log_video.a810985ecf2746c8842f.svg"},3049:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1803),n.b),u=new URL(n(7556),n.b),d=new URL(n(2440),n.b),p=i()(a()),h=c()(l),m=c()(u),g=c()(d);p.push([e.id,`.cometchat-user-details__header {\n    display: flex;\n    min-height: 65px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    justify-content: space-between;\n    width: 100%;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-user-details__header-icon {\n    -webkit-mask: url(${h}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    -webkit-mask-size: contain;\n    cursor: pointer;\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-user-details__header-icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-user-details__header-text {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);\n}\n\n.cometchat-user-details__content {\n    display: flex;\n    padding-top: 40px;\n    height: calc(100vh - 64px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-5, 20px);\n    flex-shrink: 0;\n    align-self: stretch;\n}\n\n.cometchat-user-details__content-avatar {\n    display: flex;\n    width: 120px;\n    height: 120px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1500px);\n}\n\n.cometchat-user-details__content-avatar .cometchat-avatar,\n.cometchat-user-details__content-avatar .cometchat-avatar__image,\n.cometchat-user-details__content-avatar .cometchat-avatar__text {\n    width: 120px;\n    height: 120px;\n}\n\n.cometchat-user-details__content-avatar .cometchat-avatar__text {\n    font: 700 64px/76.8px var(--cometchat-font-family);\n    height: fit-content;\n    width: fit-content;\n    font-style: normal;\n}\n\n.cometchat-user-details__content-title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-medium, 500 20px Roboto);\n}\n\n.cometchat-user-details__content-description {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-user-details__content-action {\n    width: 100%;\n    border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n}\n\n.cometchat-user-details__content-action-item {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-5, 20px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    cursor: pointer;\n}\n\n.cometchat-user-details__content-action-item-icon {\n    background: var(--cometchat-error-color, #F44649);\n    -webkit-mask-size: contain;\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-user-details__content-action-item-disabled {\n    cursor: default;\n}\n\n.cometchat-user-details__content-action-item-disabled .cometchat-user-details__content-action-item-icon {\n    background: var(--cometchat-text-color-disabled, #DCDCDC);\n}\n\n.cometchat-user-details__content-action-item-disabled .cometchat-user-details__content-action-item-text {\n    color: var(--cometchat-text-color-disabled, #DCDCDC);\n}\n\n\n.cometchat-user-details__content-action-item-icon-block-unblock {\n    -webkit-mask: url(${m}) center center no-repeat;\n}\n\n.cometchat-user-details__content-action-item-icon-delete {\n    -webkit-mask: url(${g}) center center no-repeat;\n}\n\n\n.cometchat-user-details__content-action-item-text {\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-heading4-regular, 400 16px Roboto);\n}`,""]);const f=p},3122:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(2735),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-popover__content {\n    position: fixed;\n    height: fit-content;\n    width: fit-content;\n    z-index: 2;\n    border-radius: var(--cometchat-radius-5, 16px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-popover__content-tooltip-top,\n.cometchat-popover__content-tooltip-bottom {\n  position: absolute;\n  width: 100%;\n  height: 6px;\n  background: var(--cometchat-static-black, #141414);\n  -webkit-mask: url(${d}) center center no-repeat;\n  -webkit-mask-size: contain;\n}\n\n.cometchat-popover__content-tooltip-top {\n  bottom: -7px;\n}\n\n.cometchat-popover__content-tooltip-bottom {\n  transform: rotate(180deg);\n  top: -7px;\n}`,""]);const p=u},3191:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-conversation-starter {\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  align-content: center;\n  gap: 8px var(--cometchat-padding-2, 8px);\n  align-self: stretch;\n  flex-wrap: wrap;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-conversation-starter__item {\n  display: flex;\n  min-height: 33px;\n  height: fit-content;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  align-items: center;\n  align-content: center;\n  gap: 4px var(--cometchat-padding-1, 4px);\n  flex-wrap: wrap;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  cursor: pointer;\n}\n\n.cometchat-conversation-starter__item:hover {\n  background: var(--cometchat-white-hover,#FAFAFA);\n  cursor: pointer;\n}\n\n.cometchat-conversation-starter__item-button {\n  background-color: transparent;\n  border: none;\n  color: var(--cometchat-text-color-primary);\n  cursor: pointer;\n}\n\n.cometchat-conversation-starter__shimmer-container {\n  display: flex;\n  width: 70%;\n  justify-content: center;\n  align-items: flex-start;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n\n.cometchat-conversation-starter__shimmer-item {\n  width: 70%;\n  display: flex;\n  height: 33px;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  align-items: center;\n  align-content: center;\n  gap: 4px var(--cometchat-padding-1, 4px);\n  align-self: stretch;\n  flex-wrap: wrap;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  background-size: 800px 104px;\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-conversation-starter__error-view {\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}",""]);const s=i},3200:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/file_unsupported.b41e3b866e02440acd76.svg"},3206:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/downloadRecording.68d1a64015bdff727563.svg"},3214:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_empty_state.32344f305d4d728f07e7.svg"},3219:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6575),n.b),u=new URL(n(7113),n.b),d=new URL(n(5896),n.b),p=new URL(n(4762),n.b),h=new URL(n(7427),n.b),m=new URL(n(7091),n.b),g=new URL(n(7691),n.b),f=new URL(n(1030),n.b),_=new URL(n(7574),n.b),b=new URL(n(2311),n.b),v=i()(a()),y=c()(l),E=c()(u),C=c()(d),S=c()(p),w=c()(h),k=c()(m),x=c()(g),T=c()(f),A=c()(_),R=c()(b);v.push([e.id,`/* Single Line Message Composer - Main container */\n.cometchat-compact-message-composer {\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-end;\n    align-items: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-default);\n    background: var(--cometchat-background-color-01);\n    width: calc(100% - var(--cometchat-margin-2, 8px) * 2);\n    position: relative;\n    overflow: visible;\n    bottom: 5px;\n    margin: var(--cometchat-margin-2, 8px);\n}\n\n/* Main row container - single horizontal line layout */\n.cometchat-compact-message-composer__row {\n    display: flex;\n    flex-direction: row;\n    align-items: flex-end;\n    width: 100%;\n    min-height: 48px;\n    padding: var(--cometchat-padding-2, 8px);\n    gap: var(--cometchat-spacing-2, 8px);\n    box-sizing: border-box;\n}\n\n/* Left section - Attachment button */\n.cometchat-compact-message-composer__left {\n    display: flex;\n    align-items: flex-end;\n    justify-content: center;\n    flex-shrink: 0;\n    padding-bottom: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-compact-message-composer__left .cometchat-button {\n    width: 24px;\n    height: 24px;\n    background: transparent;\n    padding: 0;\n    gap: 0;\n    border-radius: 0;\n}\n\n.cometchat-compact-message-composer__left .cometchat-button:hover {\n    background: transparent;\n}\n\n.cometchat-compact-message-composer__left .cometchat-button:active {\n    background: transparent;\n}\n\n.cometchat-compact-message-composer__left .cometchat-button .cometchat-button__icon {\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-compact-message-composer__left .cometchat-button .cometchat-button__icon-default {\n    width: 24px;\n    height: 24px;\n}\n\n/* Center section - Text input container */\n.cometchat-compact-message-composer__center {\n    display: flex;\n    flex: 1;\n    align-items: center;\n    min-width: 0;\n    overflow: visible;\n    position: relative;\n}\n\n/* On desktop, when recording is active, center stays flex-1 but recording bar is pushed right */\n.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__center {\n    flex: 1;\n    justify-content: flex-end;\n}\n\n/* Text input styling */\n.cometchat-compact-message-composer__input {\n    width: 100%;\n    flex: 1;\n    outline: none;\n    background: transparent;\n    overflow-y: auto;\n    overflow-x: hidden;\n    white-space: pre-wrap;\n    overflow-wrap: break-word;\n    text-align: left;\n    box-sizing: border-box;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-1, 4px);\n    color: var(--cometchat-text-color-primary);\n    font: var(--cometchat-font-body-regular);\n    min-height: 32px;\n    max-height: 150px;\n    scrollbar-width: none;\n    cursor: text;\n    user-select: text;\n}\n\n.cometchat-compact-message-composer__input::-webkit-scrollbar {\n    display: none;\n}\n\n/* Placeholder styling when input is empty */\n.cometchat-compact-message-composer__input:empty:before {\n    content: attr(data-placeholder);\n    display: block;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    color: var(--cometchat-text-color-tertiary);\n    font: var(--cometchat-font-body-regular);\n}\n\n/* Mentions styling in input - no rich text formatting allowed */\n/* Use individual font properties instead of font shorthand so font-family\n   can be inherited from parent elements like <code> and <pre> */\n.cometchat-compact-message-composer__input .cometchat-mentions > span {\n    color: var(--cometchat-text-color-highlight);\n    font-size: 14px;\n    line-height: 16.8px;\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n.cometchat-compact-message-composer__input .cometchat-mentions-you > span {\n    color: var(--cometchat-warning-color, #FFAB00);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* Strip rich text formatting from mentions even when wrapped in formatting tags */\n.cometchat-compact-message-composer__input b .cometchat-mentions > span,\n.cometchat-compact-message-composer__input strong .cometchat-mentions > span,\n.cometchat-compact-message-composer__input i .cometchat-mentions > span,\n.cometchat-compact-message-composer__input em .cometchat-mentions > span,\n.cometchat-compact-message-composer__input u .cometchat-mentions > span,\n.cometchat-compact-message-composer__input s .cometchat-mentions > span,\n.cometchat-compact-message-composer__input strike .cometchat-mentions > span,\n.cometchat-compact-message-composer__input del .cometchat-mentions > span,\n.cometchat-compact-message-composer__input b .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input strong .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input i .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input em .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input u .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input s .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input strike .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__input del .cometchat-mentions-you > span {\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* Mentions inside inline code should inherit code styling */\n.cometchat-compact-message-composer__input code .cometchat-mentions > span,\n.cometchat-compact-message-composer__center code .cometchat-mentions > span,\n.cometchat .cometchat-compact-message-composer__input code .cometchat-mentions > span,\n.cometchat-compact-message-composer__input code .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__center code .cometchat-mentions-you > span,\n.cometchat .cometchat-compact-message-composer__input code .cometchat-mentions-you > span {\n    color: inherit !important;\n    font: inherit !important;\n    font-family: var(--cometchat-font-family) !important;\n    font-size: inherit !important;\n    font-weight: normal !important;\n    font-style: normal !important;\n    text-decoration: none !important;\n}\n\n/* Mentions inside code blocks should inherit code block styling */\n.cometchat-compact-message-composer__input pre .cometchat-mentions > span,\n.cometchat-compact-message-composer__center pre .cometchat-mentions > span,\n.cometchat .cometchat-compact-message-composer__input pre .cometchat-mentions > span,\n.cometchat-compact-message-composer__input pre .cometchat-mentions-you > span,\n.cometchat-compact-message-composer__center pre .cometchat-mentions-you > span,\n.cometchat .cometchat-compact-message-composer__input pre .cometchat-mentions-you > span {\n    color: inherit !important;\n    font: inherit !important;\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: inherit !important;\n    font-weight: normal !important;\n    font-style: normal !important;\n    text-decoration: none !important;\n}\n\n/* Hashtag styling in input */\n.cometchat-compact-message-composer__input .hashtag-formatted {\n    color: var(--cometchat-success-color);\n    font: var(--cometchat-font-body-regular);\n}\n\n/* Right section - Action buttons */\n/* Right section - Action buttons */\n.cometchat-compact-message-composer__right {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: flex-end;\n    gap: var(--cometchat-spacing-3, 12px);\n    flex-shrink: 0;\n    transition: gap 0.25s ease;\n}\n\n/* Buttons container styling */\n.cometchat-compact-message-composer__buttons {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    gap: var(--cometchat-spacing-3, 12px);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-button {\n    width: 24px;\n    height: 24px;\n    background: transparent;\n    padding: 0;\n    gap: 0;\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon {\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon-default {\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-primary-color);\n}\n\n/* Send button styling */\n.cometchat-compact-message-composer__send-button {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    padding: var(--cometchat-padding-1, 4px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    border-radius: var(--cometchat-radius-max);\n    background: var(--cometchat-background-color-04);\n    flex-shrink: 0;\n}\n\n.cometchat-compact-message-composer__send-button .cometchat-button {\n    cursor: default;\n}\n\n.cometchat-compact-message-composer__send-button-active {\n    cursor: pointer;\n    background: var(--cometchat-primary-color);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__send-button .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-static-white);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-static-white);\n}\n\n/* Active button states */\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__emoji-keyboard-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__voice-recording-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n\n/* Header section - Edit/Reply preview */\n.cometchat-compact-message-composer__header {\n    width: 100%;\n    height: fit-content;\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px);\n    justify-content: space-between;\n    align-items: flex-start;\n    align-self: stretch;\n    flex-direction: column;\n    border-bottom: 1px solid var(--cometchat-border-color-light);\n}\n\n/* Error state in header */\n.cometchat-compact-message-composer__header-error-state {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex: 1 0 0;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-1, 4px);\n    background: var(--cometchat-background-color-02);\n}\n\n.cometchat-compact-message-composer__header-error-state-icon-wrapper {\n    width: 20px;\n    height: 20px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-error-color);\n    border-radius: var(--cometchat-radius-max);\n    flex-shrink: 0;\n}\n\n.cometchat-compact-message-composer__header-error-state-icon {\n    -webkit-mask: url(${y}) center center no-repeat;\n    mask: url(${y}) center center no-repeat;\n    width: 20px;\n    height: 20px;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    background: var(--cometchat-static-white);\n}\n\n.cometchat-compact-message-composer__header-error-state-text {\n    overflow: hidden;\n    color: var(--cometchat-error-color);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-caption1-regular);\n}\n\n/* Edit preview subtitle */\n.cometchat-compact-message-composer .cometchat-edit-preview__subtitle {\n    height: fit-content;\n    max-height: 60px;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n}\n\n/* Mentions list - positioned above composer */\n.cometchat-compact-message-composer__mentions-list {\n    overflow: auto;\n    display: flex;\n    flex-direction: column;\n    z-index: 2;\n    min-height: 45px;\n    padding: 0 0 1px 0;\n    width: fit-content;\n    min-width: 320px;\n    bottom: 100%;\n    left: 0;\n    position: absolute;\n    max-height: 336px;\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-background-color-01);\n    background: var(--cometchat-background-color-01);\n    box-shadow: 0 12px 16px 4px rgba(16, 24, 40, 0.08), 0 4px 6px 4px rgba(16, 24, 40, 0.03);\n    scrollbar-width: none;\n}\n\n.cometchat-compact-message-composer__mentions-list::-webkit-scrollbar {\n    display: none;\n}\n\n.cometchat-compact-message-composer__mentions-list > .cometchat {\n    border-radius: inherit;\n}\n\n.cometchat-compact-message-composer__mentions-list .cometchat-list .cometchat-list__header-title {\n    display: none;\n}\n\n.cometchat-compact-message-composer__mentions-list .cometchat-list__item-wrapper {\n    cursor: pointer;\n}\n\n/* Popover content styles */\n/* Sticker button popover */\n.cometchat-compact-message-composer__auxilary-button-view-sticker-button .cometchat-popover__content {\n    height: 300px;\n    overflow: hidden;\n    width: 272px;\n}\n\n/* Emoji keyboard button popover */\n.cometchat-compact-message-composer__emoji-keyboard-button .cometchat-popover__content {\n    height: 300px;\n    width: 300px;\n    overflow: hidden;\n}\n\n/* Action sheet button popover */\n.cometchat-compact-message-composer__secondary-button-view-attachment-button .cometchat-popover__content {\n    height: 332px;\n    border: none;\n}\n\n.cometchat-compact-message-composer__secondary-button-view-attachment-button .cometchat-action-sheet {\n    min-width: 200px;\n}\n\n/* Dynamic height for action sheet based on number of options */\n.cometchat-compact-message-composer__secondary-button-view-attachment-button-1 .cometchat-popover__content {\n    height: 58px;\n}\n\n.cometchat-compact-message-composer__secondary-button-view-attachment-button-2 .cometchat-popover__content {\n    height: 114px;\n}\n\n.cometchat-compact-message-composer__secondary-button-view-attachment-button-3 .cometchat-popover__content {\n    height: 170px;\n}\n\n.cometchat-compact-message-composer__secondary-button-view-attachment-button-4 .cometchat-popover__content {\n    height: 230px;\n}\n\n.cometchat-compact-message-composer__secondary-button-view-attachment-button-5 .cometchat-popover__content {\n    height: 285px;\n}\n\n/* ============================================\n   Inline Recording Bar Styles\n   ============================================ */\n\n/* Hidden text input when recording is active */\n.cometchat-compact-message-composer__input--hidden {\n    display: none;\n}\n\n/* Recording bar container */\n/* Desktop: only as wide as content needs, pushed to the right */\n.cometchat-compact-message-composer__recording-bar {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    flex: 0 0 auto;\n    width: fit-content;\n    min-width: 0;\n    gap: 0;\n    margin-left: auto;\n}\n\n/* Delete button */\n.cometchat-compact-message-composer__recording-bar-delete {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 24px;\n    height: 24px;\n    padding: 0;\n    border: none;\n    background: transparent;\n    cursor: pointer;\n    flex-shrink: 0;\n}\n\n.cometchat-compact-message-composer__recording-bar-delete-icon {\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-icon-color-secondary);\n    -webkit-mask: url(${E}) center center no-repeat;\n    mask: url(${E}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-compact-message-composer__recording-bar-delete:hover .cometchat-compact-message-composer__recording-bar-delete-icon {\n    background: var(--cometchat-error-color);\n}\n\n/* Recording indicator (pulsing red dot) */\n@keyframes cometchat-recording-pulse {\n    0%, 100% {\n        opacity: 1;\n    }\n    50% {\n        opacity: 0.3;\n    }\n}\n\n.cometchat-compact-message-composer__recording-bar-indicator {\n    width: 8px;\n    height: 8px;\n    border-radius: var(--cometchat-radius-max);\n    background: var(--cometchat-error-color);\n    flex-shrink: 0;\n    animation: cometchat-recording-pulse 1.5s ease-in-out infinite;\n    margin-left: var(--cometchat-margin-4, 16px);\n}\n\n/* Waveform visualization */\n/* Desktop: fixed width so bar stays compact on the right */\n.cometchat-compact-message-composer__recording-bar-waveform {\n    width: 160px;\n    min-width: 0;\n    display: flex;\n    align-items: center;\n    overflow: hidden;\n    padding: 0 var(--cometchat-padding-4, 16px);\n}\n\n/* Tablet: wider waveform for better bar density */\n@media (min-width: 769px) and (max-width: 1024px) {\n    .cometchat-compact-message-composer__recording-bar-waveform {\n        width: 240px;\n    }\n}\n\n.cometchat-compact-message-composer__recording-bar-waveform canvas {\n    width: 100%;\n    height: 32px;\n    display: block;\n}\n\n/* Timer display */\n.cometchat-compact-message-composer__recording-bar-timer {\n    font: var(--cometchat-font-caption1-medium);\n    color: var(--cometchat-text-color-secondary);\n    white-space: nowrap;\n    flex-shrink: 0;\n    margin-right: var(--cometchat-margin-4, 16px);\n}\n\n/* Pause/Resume button */\n.cometchat-compact-message-composer__recording-bar-pause {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 24px;\n    height: 24px;\n    padding: 0;\n    border: none;\n    background: transparent;\n    cursor: pointer;\n    flex-shrink: 0;\n    margin-right: var(--cometchat-margin-3, 12px);\n}\n\n.cometchat-compact-message-composer__recording-bar-pause-icon {\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-icon-color-secondary);\n    -webkit-mask: url(${C}) center center no-repeat;\n    mask: url(${C}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-compact-message-composer__recording-bar-pause-icon--resume {\n    -webkit-mask: url(${S}) center center no-repeat;\n    mask: url(${S}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-icon,\n.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-icon--resume {\n    background: var(--cometchat-primary-color);\n}\n\n/* Pause-circle SVG icon (used while recording is active on right side) */\n.cometchat-compact-message-composer__recording-bar-pause-circle-icon {\n    width: 24px;\n    height: 24px;\n    display: block;\n    /* Render grey to match other secondary icons; use CSS mask so the color token applies */\n    -webkit-mask: url(${w}) center center no-repeat;\n    mask: url(${w}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    background: var(--cometchat-icon-color-secondary);\n    transition: background 0.15s ease;\n}\n\n.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-circle-icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Send button - REMOVED from recording bar (uses main composer send button) */\n\n/* Playback button (replaces red dot when recording is paused) */\n.cometchat-compact-message-composer__recording-bar-playback {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 24px;\n    height: 24px;\n    padding: 0;\n    border: none;\n    background: transparent;\n    cursor: pointer;\n    flex-shrink: 0;\n    margin-left: var(--cometchat-margin-4, 16px);\n}\n\n.cometchat-compact-message-composer__recording-bar-playback-icon {\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-primary-color);\n    -webkit-mask: url(${S}) center center no-repeat;\n    mask: url(${S}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-compact-message-composer__recording-bar-playback-icon--pause {\n    -webkit-mask: url(${C}) center center no-repeat;\n    mask: url(${C}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Grey mic icon shown when recording is paused (idle, not playing back) */\n.cometchat-compact-message-composer__recording-bar-mic-icon {\n    width: 24px;\n    height: 24px;\n    background: var(--cometchat-icon-color-secondary);\n    -webkit-mask: url(${k}) center center no-repeat;\n    mask: url(${k}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-playback-icon,\n.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-playback-icon--pause,\n.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-mic-icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Reduced motion support */\n@media (prefers-reduced-motion: reduce) {\n    .cometchat-compact-message-composer__recording-bar-indicator {\n        animation: none;\n    }\n}\n\n/* ============================================\n   Mobile: Recording bar full width\n   ============================================ */\n@media (max-width: 768px) {\n    /* When recording is active, hide left/right sections so the bar owns the full row */\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__left,\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__right {\n        display: none;\n    }\n\n    /* Center section stretches to fill the entire row */\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__center {\n        flex: 1;\n        width: 100%;\n        justify-content: flex-start;\n    }\n\n    /* Recording bar stretches full width on mobile, no right-align */\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar {\n        flex: 1;\n        width: 100%;\n        margin-left: 0;\n    }\n\n    /* Waveform stretches to fill available space on mobile */\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar-waveform {\n        flex: 1;\n        width: auto;\n        min-width: 0;\n    }\n\n    /* Pause/mic button must not grow on mobile */\n    .cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar-pause {\n        flex-shrink: 0;\n        width: 24px;\n        height: 24px;\n    }\n\n    /* Send button inside recording bar on mobile — fixed size, no stretching */\n    .cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button {\n        flex-shrink: 0;\n        width: 32px;\n        height: 32px;\n        min-width: 32px;\n        padding: var(--cometchat-padding-1, 4px);\n        border-radius: var(--cometchat-radius-max);\n        background: var(--cometchat-primary-color);\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        cursor: pointer;\n    }\n\n    .cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button {\n        width: 24px;\n        height: 24px;\n        background: transparent;\n        padding: 0;\n    }\n\n    .cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button__icon {\n        width: 24px;\n        height: 24px;\n        background: var(--cometchat-static-white);\n    }\n\n    .cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button__icon:hover {\n        background: var(--cometchat-static-white);\n    }\n}\n\n/* Unblock button styling */\n.cometchat-compact-message-composer__unblock-button {\n    color: var(--cometchat-neutral-color-900);\n    font: var(--cometchat-font-body-regular);\n    cursor: pointer;\n    width: 100%;\n    height: 40px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: transparent;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-dark);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n}\n\n/* Hide scrollbar utility classes */\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar,\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar,\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar-thumb,\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar,\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar {\n    background: transparent;\n    height: 0;\n    width: 0;\n}\n\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar-thumb {\n    background: var(--cometchat-background-color-04);\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar {\n    background: transparent;\n    width: 0;\n}\n\n.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar-thumb {\n    background: var(--cometchat-background-color-04);\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n/* Remove vertical padding when code block is active (pre element has its own padding) */\n.cometchat-compact-message-composer__input--code-block {\n    padding-top: 0;\n    padding-bottom: 0;\n    min-height: auto;\n}\n\n/* Mobile input styling */\n.cometchat-compact-message-composer__input-mobile {\n    font: var(--cometchat-font-heading4-regular);\n}\n\n\n/* ============================================\n   Rich Text Formatting Styles\n   ============================================ */\n\n/* Bold text styling */\n.cometchat-compact-message-composer__input .cometchat-rich-text-bold,\n.cometchat-compact-message-composer__input strong,\n.cometchat-compact-message-composer__input b {\n    font-weight: 700;\n}\n\n/* Italic text styling */\n.cometchat-compact-message-composer__input .cometchat-rich-text-italic,\n.cometchat-compact-message-composer__input em,\n.cometchat-compact-message-composer__input i {\n    font-style: italic;\n}\n\n/* Underline text styling */\n.cometchat-compact-message-composer__input .cometchat-rich-text-underline,\n.cometchat-compact-message-composer__input u {\n    text-decoration: underline;\n}\n\n/* Strikethrough text styling */\n.cometchat-compact-message-composer__input .cometchat-rich-text-strikethrough,\n.cometchat-compact-message-composer__input s,\n.cometchat-compact-message-composer__input strike,\n.cometchat-compact-message-composer__input del {\n    text-decoration: line-through;\n}\n\n/* Combined underline and strikethrough */\n.cometchat-compact-message-composer__input u s,\n.cometchat-compact-message-composer__input u strike,\n.cometchat-compact-message-composer__input u del,\n.cometchat-compact-message-composer__input s u,\n.cometchat-compact-message-composer__input strike u,\n.cometchat-compact-message-composer__input del u {\n    text-decoration: underline line-through;\n}\n\n/* List styling - remove default margin and padding */\n.cometchat-compact-message-composer__input ol,\n.cometchat-compact-message-composer__input ul,\n.cometchat-compact-message-composer__center ol,\n.cometchat-compact-message-composer__center ul,\n.cometchat .cometchat-compact-message-composer__input ol,\n.cometchat .cometchat-compact-message-composer__input ul {\n    margin: 0 !important;\n    padding: 0 !important;\n    padding-left: var(--cometchat-padding-3, 12px) !important;\n    list-style-position: outside !important;\n}\n\n.cometchat-compact-message-composer__input ol,\n.cometchat-compact-message-composer__center ol,\n.cometchat .cometchat-compact-message-composer__input ol {\n    list-style-type: decimal !important;\n}\n.cometchat-compact-message-composer__input ol ol,\n.cometchat-compact-message-composer__center ol ol,\n.cometchat .cometchat-compact-message-composer__input ol ol {\n    list-style-type: lower-alpha !important;\n}\n.cometchat-compact-message-composer__input ol ol ol,\n.cometchat-compact-message-composer__center ol ol ol,\n.cometchat .cometchat-compact-message-composer__input ol ol ol {\n    list-style-type: lower-roman !important;\n}\n\n.cometchat-compact-message-composer__input ul,\n.cometchat-compact-message-composer__center ul,\n.cometchat .cometchat-compact-message-composer__input ul {\n    list-style-type: disc !important;\n}\n.cometchat-compact-message-composer__input ul ul,\n.cometchat-compact-message-composer__center ul ul,\n.cometchat .cometchat-compact-message-composer__input ul ul {\n    list-style-type: circle !important;\n}\n.cometchat-compact-message-composer__input ul ul ul,\n.cometchat-compact-message-composer__center ul ul ul,\n.cometchat .cometchat-compact-message-composer__input ul ul ul {\n    list-style-type: square !important;\n}\n\n.cometchat-compact-message-composer__input li,\n.cometchat-compact-message-composer__center li,\n.cometchat .cometchat-compact-message-composer__input li {\n    display: list-item !important;\n    margin: 0 !important;\n    padding: 0 !important;\n}\n\n/* Blockquote styling with left border */\n.cometchat-compact-message-composer__input blockquote,\n.cometchat-compact-message-composer__center blockquote,\n.cometchat .cometchat-compact-message-composer__input blockquote {\n    margin: 0 !important;\n    padding: 0 !important;\n    padding-left: var(--cometchat-padding-3, 12px) !important;\n    border-left: 4px solid var(--cometchat-border-color-default, #E8E8E8) !important;\n    color: var(--cometchat-text-color-primary);\n}\n\n/* Paragraph styling - remove default margin */\n.cometchat-compact-message-composer__input p,\n.cometchat-compact-message-composer__center p,\n.cometchat .cometchat-compact-message-composer__input p {\n    margin: 0 !important;\n    padding: 0 !important;\n}\n\n/* Inline code styling */\n.cometchat-compact-message-composer__input code,\n.cometchat-compact-message-composer__center code,\n.cometchat .cometchat-compact-message-composer__input code {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    padding: var(--cometchat-padding) var(--cometchat-padding-1);\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: var(--cometchat-font-family);\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n    gap: 10px;\n}\n\n/* Inline code with explicit class - monospace font via CSS variables */\n.cometchat-compact-message-composer__input code.cometchat-rich-text-code-inline,\n.cometchat-compact-message-composer__center code.cometchat-rich-text-code-inline,\n.cometchat .cometchat-compact-message-composer__input code.cometchat-rich-text-code-inline {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    padding: var(--cometchat-padding) var(--cometchat-padding-1);\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    display: inline;\n}\n\n/* Code block styling */\n.cometchat-compact-message-composer__input pre,\n.cometchat-compact-message-composer__center pre,\n.cometchat .cometchat-compact-message-composer__input pre {\n    padding: var(--cometchat-padding-3, 12px);\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n    margin: 0;\n    overflow-x: auto;\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n}\n\n.cometchat-compact-message-composer__input pre code,\n.cometchat-compact-message-composer__center pre code,\n.cometchat .cometchat-compact-message-composer__input pre code {\n    background: transparent;\n    color: var(--cometchat-text-color-primary);\n    padding: 0;\n    border: none;\n    border-radius: 0;\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n}\n\n.cometchat-compact-message-composer__input pre.cometchat-rich-text-code-block code,\n.cometchat-compact-message-composer__center pre.cometchat-rich-text-code-block code,\n.cometchat .cometchat-compact-message-composer__input pre.cometchat-rich-text-code-block code {\n    color: var(--cometchat-text-color-primary);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    font-style: normal;\n}\n\n/* Formatting toolbar container */\n.cometchat-compact-message-composer__formatting-toolbar {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    gap: var(--cometchat-spacing-1, 4px);\n    padding: var(--cometchat-padding-2, 8px);\n    border-radius: var(--cometchat-radius-2, 8px) var(--cometchat-radius-2, 8px) 0 0;\n    background: var(--cometchat-background-color-02);\n    border: 1px solid var(--cometchat-border-color-light);\n}\n\n/* Formatting toolbar button */\n.cometchat-compact-message-composer__formatting-button {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 28px;\n    height: 28px;\n    padding: var(--cometchat-padding-1, 4px);\n    border: none;\n    border-radius: var(--cometchat-radius-1, 4px);\n    background: transparent;\n    cursor: pointer;\n    transition: background-color 0.15s ease;\n}\n\n.cometchat-compact-message-composer__formatting-button:hover {\n    background: var(--cometchat-background-color-03);\n}\n\n/* Active state for formatting buttons */\n.cometchat-compact-message-composer__formatting-button--active {\n    background: var(--cometchat-extended-primary-color-100);\n}\n\n.cometchat-compact-message-composer__formatting-button--active:hover {\n    background: var(--cometchat-extended-primary-color-200);\n}\n\n/* Formatting button icons */\n.cometchat-compact-message-composer__formatting-button-icon {\n    width: 16px;\n    height: 16px;\n    background: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-compact-message-composer__formatting-button--active .cometchat-compact-message-composer__formatting-button-icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Bold icon */\n.cometchat-compact-message-composer__formatting-button-icon--bold {\n    -webkit-mask: url(${x}) center center no-repeat;\n    mask: url(${x}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Italic icon */\n.cometchat-compact-message-composer__formatting-button-icon--italic {\n    -webkit-mask: url(${T}) center center no-repeat;\n    mask: url(${T}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Underline icon */\n.cometchat-compact-message-composer__formatting-button-icon--underline {\n    -webkit-mask: url(${A}) center center no-repeat;\n    mask: url(${A}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Strikethrough icon */\n.cometchat-compact-message-composer__formatting-button-icon--strikethrough {\n    -webkit-mask: url(${R}) center center no-repeat;\n    mask: url(${R}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Divider between formatting button groups */\n.cometchat-compact-message-composer__formatting-divider {\n    width: 1px;\n    height: 20px;\n    background: var(--cometchat-border-color-light);\n    margin: 0 var(--cometchat-spacing-1, 4px);\n}\n\n/* Link styling in input */\n.cometchat-compact-message-composer__input a {\n    color: var(--cometchat-primary-color);\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n.cometchat-compact-message-composer__input a:hover {\n    text-decoration: underline;\n    opacity: 0.8;\n}\n\n\n/* ============================================\n   Mic Button Hide/Show Animation (Web + Mobile)\n   ============================================ */\n\n@keyframes cometchat-mic-slide-out {\n    0% {\n        opacity: 1;\n        max-width: 40px;\n        margin-left: 0;\n    }\n    100% {\n        opacity: 0;\n        max-width: 0;\n        margin-left: calc(-1 * var(--cometchat-spacing-3, 12px));\n    }\n}\n\n@keyframes cometchat-mic-slide-in {\n    0% {\n        opacity: 0;\n        max-width: 0;\n        margin-left: calc(-1 * var(--cometchat-spacing-3, 12px));\n    }\n    100% {\n        opacity: 1;\n        max-width: 40px;\n        margin-left: 0;\n    }\n}\n\n/* Default state: mic visible with slide-in animation */\n.cometchat-compact-message-composer__voice-recording-button {\n    animation: cometchat-mic-slide-in 0.25s ease forwards;\n}\n\n/* Hidden state: mic slides out to the right and collapses */\n.cometchat-compact-message-composer__voice-recording-button--hidden {\n    animation: cometchat-mic-slide-out 0.25s ease forwards;\n    pointer-events: none;\n    overflow: hidden;\n}\n`,""]);const I=v},3259:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/users.3a4bb20ce645e85da09e.svg"},3284:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-add-members .cometchat-list__header .cometchat-list__header-title {\n    margin-left: 32px;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading2-bold);\n}\n\n.cometchat-add-members .cometchat-add-members__back-button .cometchat-button {\n    height: 24px;\n    width: 24px;\n    padding: 0;\n    background: transparent;\n}\n\n.cometchat-add-members .cometchat-add-members__back-button {\n    position: absolute;\n    top: 20px;\n    left: 16px;\n    height: 24px;\n    width: 24px;\n    overflow: hidden;\n}\n\n.cometchat-add-members .cometchat-add-members__back-button .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary);\n}\n\n.cometchat-add-members__add-btn-wrapper .cometchat-button {\n    width: 100%;\n    height: 40px;\n}\n\n.cometchat-add-members .cometchat-list-item__tail-view {\n    height: 26px;\n    width: 26px;\n}\n\n.cometchat-add-members {\n    width: 100%;\n    height: 100%;\n    background: var(--cometchat-background-color-01);\n    border: none;\n    border-radius: 0;\n    display: flex;\n    flex-direction: column;\n    box-sizing: border-box;\n    padding: 0;\n    overflow: hidden;\n}\n\n.cometchat-add-members__add-btn-wrapper {\n    box-sizing: border-box;\n    display: flex;\n    width: 100%;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n}\n\n.cometchat-add-members__add-btn-wrapper>.cometchat {\n    width: 100%;\n}\n\n.cometchat-add-members_error-view {\n    margin-top: 4px;\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: rgba(244, 70, 73, 0.10);\n\n}\n\n.cometchat-add-members__add-btn-wrapper-disabled .cometchat-button {\n    background: var(--cometchat-background-color-04, #E8E8E8);\n    color: var(--cometchat-static-white, #FFF);\n    pointer-events: none;\n}\n\n.cometchat-add-members__back-button .cometchat-button:hover {\n    background: transparent;\n}\n\n.cometchat-add-members .cometchat-add-members__back-button .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}",""]);const s=i},3420:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-call-log-participants {\n    width: 100%;\n}\n\n.cometchat-call-log-participants .cometchat-date {\n    padding: 0px;\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-call-log-participants__tail-view {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-participants__tail-view-disabled {\n    overflow: hidden;\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-participants .cometchat-list-item__tail-view {\n    width: fit-content;\n}",""]);const s=i},3525:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8392),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-change-scope {\n    display: flex;\n    width: 400px;\n    padding: var(--cometchat-padding-6, 24px) var(--cometchat-padding-6, 24px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-6, 24px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-change-scope__icon-container {\n    display: flex;\n    width: 80px;\n    height: 80px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n}\n\n.cometchat-change-scope__icon {\n    display: flex;\n    width: 48px;\n    height: 48px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n    mask-size: contain;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-change-scope__text {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n.cometchat-change-scope__title {\n    align-self: stretch;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading2-medium, 500 20px Roboto);\n    line-height: 120%;\n}\n\n.cometchat-change-scope__description {\n    align-self: stretch;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    line-height: 120%;\n}\n\n.cometchat-change-scope__dropdown {\n    width: 352px;\n    height: 36px;\n    gap: var(--cometchat-padding-2, 4px);\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-change-scope__list {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 0px;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    height: fit-content;\n    overflow: auto;\n}\n\n\n\n.cometchat-change-scope__list-item {\n    display: flex;\n    min-width: 240px;\n    max-width: 1440px;\n    height: 48px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    align-self: stretch;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-change-scope__list-item:hover {\n    background: var(--cometchat-white-hover, #FAFAFA);\n    cursor: pointer;\n}\n\n.cometchat-change-scope__list-item-label {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n    flex: 1 0 0;\n    text-align: left;\n}\n\n.cometchat-change-scope__button-container {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) 0px;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n.cometchat-change-scope__submit-button > .cometchat{\n    height: 100%;\n    width: 100%;\n}\n.cometchat-change-scope__submit-button{\n    height: 40px;\n    line-height: 120%;\n    flex: 1;\n}\n.cometchat-change-scope__submit-button .cometchat-button{\n    background: var(--cometchat-primary-button-background, #6852D6);\n    color: var(--cometchat-primary-button-icon, #FFF);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    align-items: center;\n    align-self: stretch;\n    justify-content: center;\n    display: flex;\n    width: 100%;\n    height: 100%;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    font: var(--cometchat-font-body-medium, 500 14px Roboto);\n\n}\n\n.cometchat-change-scope__submit-button-disabled .cometchat-button{\n    background: var(--cometchat-background-color-04, #E8E8E8);\n    color: var(--cometchat-static-white, #FFF);\n    pointer-events: none;\n}\n\n.cometchat-change-scope__cancel-button > .cometchat{\n    height: 100%;\n    width: 100%;\n}\n.cometchat-change-scope__cancel-button .cometchat-button{\n    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n    background: var(--cometchat-background-color-01, #FFF);\n    color: var(--cometchat-neutral-color-900, #141414);\n    font: var(--cometchat-font-body-medium, 500 14px Roboto);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    align-items: center;\n    align-self: stretch;\n    justify-content: center;\n    display: flex;\n    width: 100%;\n    height: 100%;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n.cometchat-change-scope__button-container .cometchat-button .cometchat-button__text{\n    font: inherit;\n    color: inherit;\n}\n.cometchat-change-scope__cancel-button{\n    height: 40px;\n    line-height: 120%;\n    flex: 1;\n}\n.cometchat-change-scope__error-view{\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: rgba(244, 70, 73, 0.10);\n\n}\n`,""]);const p=u},3602:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call-log-audio.0e3aaf2981e227b061c4.svg"},3613:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5266),n.b),u=new URL(n(6246),n.b),d=new URL(n(4762),n.b),p=new URL(n(5896),n.b),h=i()(a()),m=c()(l),g=c()(u),f=c()(d),_=c()(p);h.push([e.id,`/* Base audio bubble container */\n.cometchat-audio-bubble {\n    border: none;\n    display: flex;\n    background: transparent;\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) 0px var(--cometchat-padding-2, 8px);\n    flex-direction: row;\n    align-items: flex-start;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-3, 12px);\n    max-width: 240px;\n    width: 240px;\n}\n\n/* Download icon for the tail view (right side of the audio bubble) */\n.cometchat-audio-bubble__tail-view-download {\n    mask: url(${m}) center center no-repeat;\n    -webkit-mask: url(${m}) center center no-repeat;\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    cursor: pointer;\n    background: var(--cometchat-static-white);\n\n}\n\n/* Waveform container inside the audio bubble body */\n.cometchat-audio-bubble__body-wave {\n    height: 24px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 1;\n}\n\n/* Container for download progress circle (24x24 size) */\n.cometchat-audio-bubble__tail-view-download-progress {\n    position: relative;\n    width: 24px;\n    height: 24px;\n}\n\n/* Rotate the SVG progress circle for correct start position */\n.cometchat-audio-bubble__tail-view-download-progress svg {\n    width: 24px;\n    height: 24px;\n    transform: rotate(-90deg);\n}\n\n/* Close/stop icon inside the progress view (positioned in the center) */\n.cometchat-audio-bubble__tail-view-download-stop {\n    mask: url(${g}) center center no-repeat;\n    -webkit-mask: url(${g}) center center no-repeat;\n    background: var(--cometchat-static-white);\n    display: flex;\n    width: 15px;\n    height: 15px;\n    justify-content: center;\n    align-items: center;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    cursor: pointer;\n}\n.cometchat-audio-bubble>div:not([class]) {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n}\n\n/* Time display (current time / duration) inside the audio bubble body */\n.cometchat-audio-bubble__body-time {\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-caption2-regular);\n    width: 100%;\n    text-align: left;\n}\n\n/* Body of the audio bubble, containing waveform and time display */\n.cometchat-audio-bubble__body {\n    padding: 0px var(--cometchat-padding-2) 0px var(--cometchat-padding-3);\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-start;\n    align-items: center;\n    gap: var(--cometchat-padding);\n}\n\n/* Play and pause icons for controlling the audio bubble */\n.cometchat-audio-bubble__leading-view-play,\n.cometchat-audio-bubble__leading-view-pause {\n    height: 24px;\n    width: 24px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-primary-color);\n    cursor: pointer;\n\n}\n\n/* Play button icon */\n.cometchat-audio-bubble__leading-view-play {\n    mask: url(${f}) center center no-repeat;\n    -webkit-mask: url(${f}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Pause button icon */\n.cometchat-audio-bubble__leading-view-pause {\n    mask: url(${_}) center center no-repeat;\n    -webkit-mask: url(${_}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Leading view container (play/pause button) with rounded background */\n.cometchat-audio-bubble__leading-view {\n    background: var(--cometchat-static-white);\n    cursor: pointer;\n    display: flex;\n    width: 32px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n}\n\n/* Background circle of the download progress indicator */\ncircle.cometchat-audio-bubble__tail-view-download-progress-background {\n    stroke: var(--cometchat-static-white);\n    stroke-dasharray: 113 113;\n    opacity: .2;\n    stroke-width: 2;\n    fill: none;\n}\n\n/* Foreground circle that indicates download progress */\ncircle.cometchat-audio-bubble__tail-view-download-progress-foreground {\n    stroke: var(--cometchat-static-white);\n    stroke-dasharray: 0 113;\n    stroke-width: 2;\n    fill: none;\n    stroke-linecap: round;\n}\n\n/* Outgoing audio bubble (message sent by the user) background */\n.cometchat-audio-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}\n\n/* Incoming audio bubble (message received by the user) background */\n.cometchat-audio-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Tail view download button for incoming audio bubble */\n.cometchat-audio-bubble-incoming .cometchat-audio-bubble__tail-view-download {\n    background: var(--cometchat-primary-color);\n}\n\n/* Background circle for download progress in incoming bubble */\n.cometchat-audio-bubble-incoming circle.cometchat-audio-bubble__tail-view-download-progress-background {\n    stroke: var(--cometchat-primary-color);\n    opacity: .2;\n}\n\n/* Foreground circle for download progress in incoming bubble */\n.cometchat-audio-bubble-incoming circle.cometchat-audio-bubble__tail-view-download-progress-foreground {\n    stroke: var(--cometchat-primary-color);\n}\n\n/* Stop download icon for incoming audio bubble */\n.cometchat-audio-bubble-incoming .cometchat-audio-bubble__tail-view-download-stop {\n    background: var(--cometchat-primary-color);\n}\n\n/* Time display in incoming audio bubble */\n.cometchat-audio-bubble-incoming .cometchat-audio-bubble__body-time {\n    color: var(--cometchat-neutral-color-600);\n}`,""]);const b=h},3663:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_delivered.510802caddcee7cf38e1.svg"},3674:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=new URL(n(9830),n.b),d=new URL(n(6763),n.b),p=new URL(n(465),n.b),h=new URL(n(6151),n.b),m=new URL(n(4842),n.b),g=new URL(n(5724),n.b),f=new URL(n(1689),n.b),_=new URL(n(7188),n.b),b=new URL(n(6363),n.b),v=new URL(n(8432),n.b),y=new URL(n(2996),n.b),E=new URL(n(9880),n.b),C=new URL(n(9357),n.b),S=new URL(n(9721),n.b),w=new URL(n(3200),n.b),k=i()(a()),x=c()(l),T=c()(u),A=c()(d),R=c()(p),I=c()(h),O=c()(m),N=c()(g),M=c()(f),D=c()(_),L=c()(b),P=c()(v),j=c()(y),U=c()(E),F=c()(C),B=c()(S),G=c()(w);k.push([e.id,`/*\n   Main container for the reply-message preview area.\n*/\n.cometchat-message-preview {\n    padding: var(--cometchat-padding-2, 8px);\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between;\n    align-items: flex-start;\n    margin: 0;\n    min-height: 30px;\n    height: 100%;\n    width: 100%;\n    min-width: 100px;\n    cursor: pointer;\n    border: none;\n    border-radius: var(--cometchat-radius-1, 4px);\n    box-sizing: border-box;\n    gap: var(--cometchat-padding-1, 4px);\n    position: relative;\n    background-color: var(--cometchat-background-color-03);\n  }\n\n\n.cometchat-message-bubble-incoming .cometchat-message-preview{\n  background-color: var(--cometchat-neutral-color-400);\n  color: var( --cometchat-primary-color);\n}\n\n.cometchat-message-bubble-outgoing .cometchat-message-preview{\n  background: var(--cometchat-extended-primary-color-700);\n}\n  \n  /*\n     Close button for the reply-message preview.\n  */\n  .cometchat-message-preview__close {\n    mask: url(${x}) center center no-repeat;\n    -webkit-mask: url(${x}) center center no-repeat;\n    height: 20px;\n    width: 20px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-icon-color-primary);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    position: absolute;\n    top: var(--cometchat-padding-2, 8px);\n    right: var(--cometchat-padding-2, 8px);\n    cursor: pointer;\n  }\n\n  /*\n     Text shown when a message is deleted.\n  */\n  .cometchat-message-bubble-outgoing .cometchat-message-preview-deleted__message{\n    color: var(--cometchat-static-white);\n  }\n\n  .cometchat-message-preview-deleted__message {\n    display: flex;  \n    gap: 2px;\n    height: 100%;\n    justify-content: left;\n    width: 100%;\n  }\n\n  .cometchat-message-preview-deleted__message__text{\n    font: var(--cometchat-font-caption1-regular, 12px);\n    white-space: nowrap;    \n    overflow: hidden;         \n    text-overflow: ellipsis; \n    max-width: 100%;\n  }\n  .cometchat-message-bubble-incoming .cometchat-message-preview-deleted__message{\n    color: var(--cometchat-neutral-color-600);\n  }\n  \n  /*\n     Title text inside the reply-message preview.\n  */\n  .cometchat-message-preview__title {\n    font: var(--cometchat-font-caption1-regular, 12px);\n    width: 100%; \n    text-align: left;\n    color: var(--cometchat-primary-color);\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n  \n  /*\n     Subtitle text inside the reply-message preview, containing the actual text being reply-messageed.\n  */\n  .cometchat-message-preview__subtitle {\n    display: flex;\n    align-items: center;\n    gap: 5px;\n    font-style: normal;\n    width: 100%;    \n    text-align: left;\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-caption1-regular, 12px);\n    overflow: hidden;\n  }\n  \n  .cometchat-message-bubble-outgoing .bubble-view{\n    border-left: 3px solid var(--cometchat-static-white); \n  }\n\n  .composer-view .cometchat-message-preview {\n    border-left: 3px solid var(--cometchat-primary-color); \n  }\n  .cometchat-message-bubble-outgoing .bubble-view .cometchat-message-preview__subtitle-icon{\n    background-color: var(--cometchat-static-white);\n  }\n\n    \n  .cometchat-message-bubble-incoming .bubble-view{\n    border-left: 3px solid var(--cometchat-primary-color); \n  }\n\n  .cometchat-message-bubble-outgoing .cometchat-message-preview__title, .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle{\n    color: var(--cometchat-static-white);\n  }\n\n  .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle-text a {\n    color: var(--cometchat-static-white) !important;\n    text-decoration: underline;\n  }\n\n  .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle-text .cometchat-url {\n    color: var(--cometchat-static-white) !important;\n    text-decoration: underline;\n  }\n\n  .bubble-view{\n    border-radius: 4px;\n  }\n  \n  .cometchat-message-preview_others{\n    border-left: 3px solid var(--cometchat-primary-color);\n  }\n\n  .cometchat-message-preview__subtitle-text{\n    text-align: left;\n    overflow: hidden;\n    font: var(--cometchat-font-caption1-regular, 12px);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    width: 100%;\n  }\n  \n  .cometchat-message-preview__subtitle-icon {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    border: none;\n    align-self: center;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    height: 16px;\n    width: 16px;\n    flex-shrink: 0;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-image {\n    -webkit-mask: url(${T}) center center no-repeat;\n    mask: url(${T}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n\n   .cometchat-message-bubble-incoming  .cometchat-message-preview-deleted__message__icon{\n    background: var(--cometchat-neutral-color-600);\n  }\n\n  .cometchat-message-bubble-outgoing .cometchat-message-preview-deleted__message__icon{\n    background: var(--cometchat-static-white, #fff);\n  }\n\n\n  .cometchat-message-preview-deleted__message__icon{\n    height: 14px;\n    width: 14px;\n    flex: 0 0 auto;\n    -webkit-mask: url(${A}) center center no-repeat;\n    mask: url(${A}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n\n.cometchat-message-preview__subtitle-icon-meeting-incoming-audio{\n    -webkit-mask: url(${R}) center center no-repeat;\n    mask: url(${R}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n\n .cometchat-message-preview__subtitle-icon-meeting-outgoing-audio{\n    -webkit-mask: url(${I}) center center no-repeat;\n    mask: url(${I}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n.cometchat-message-preview__subtitle-icon-meeting-incoming-video {\n    -webkit-mask: url(${O}) center center no-repeat;\n    mask: url(${O}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n\n.cometchat-message-preview__subtitle-icon-meeting-outgoing-video{\n    -webkit-mask: url(${N}) center center no-repeat;\n    mask: url(${N}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n\n  .cometchat-message-preview__subtitle-icon-file {\n    -webkit-mask: url(${M}) center center no-repeat;\n    mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-video {\n    -webkit-mask: url(${D}) center center no-repeat;\n    mask: url(${D}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-audio {\n    -webkit-mask: url(${L}) center center no-repeat;\n    mask: url(${L}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-poll {\n    -webkit-mask: url(${P}) center center no-repeat;\n    mask: url(${P}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  \n  .cometchat-message-preview__subtitle-icon-sticker {\n    -webkit-mask: url(${j}) center center no-repeat;\n    mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  \n  .cometchat-message-preview__subtitle-icon-collaborative-document {\n    -webkit-mask: url(${U}) center center no-repeat;\n    mask: url(${U}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  \n  .cometchat-message-preview__subtitle-icon-collaborative-whiteboard {\n    -webkit-mask: url(${F}) center center no-repeat;\n    mask: url(${F}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-link {\n    -webkit-mask: url(${B}) center center no-repeat;\n    mask: url(${B}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-unsupported {\n    -webkit-mask: url(${G}) center center no-repeat;\n    mask: url(${G}) center center no-repeat;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n  }\n  \n  .cometchat-message-preview__subtitle-icon-none {\n    display: none;\n  }\n`,""]);const V=k},3772:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-search-view {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n    width: 100%;\n    background: var(--cometchat-background-color-01);\n}\n\n.cometchat-search-view__header {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    background: var(--cometchat-background);\n    gap: var(--cometchat-padding-3, 12px);\n    min-height: 64px;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n\n}\n\n.cometchat-search-view__title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading2-bold);\n}\n\n.cometchat-search-view__content {\n    flex: 1;\n    overflow: hidden;\n}\n\n.cometchat-search-view__close-button .cometchat-button {\n    height: fit-content;\n    width: fit-content;\n    border: none;\n    border-radius: none;\n    padding: 0;\n    margin: 0;\n    background: none;\n}\n\n.cometchat-search-view__close-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary);\n    height: 24px;\n    width: 24px;\n}\n",""]);const s=i},4042:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/infoIcon.a45d68fa3e8e16b713b0.svg"},4091:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/addMembers.ac9bd9903ea91980e5bc.svg"},4141:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-LightItalic.3743e89917aa46e2f6e5.ttf"},4186:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/missedCallIcon.1cd662c850168ec2dd17.svg"},4210:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/stop.436a8cb465a4609f82a5.svg"},4225:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(8059),c=n(4417),l=n.n(c),u=new URL(n(7292),n.b),d=new URL(n(1596),n.b),p=new URL(n(1410),n.b),h=new URL(n(9646),n.b),m=new URL(n(2273),n.b),g=new URL(n(539),n.b),f=new URL(n(8081),n.b),_=new URL(n(4141),n.b),b=new URL(n(8258),n.b),v=new URL(n(5422),n.b),y=i()(a());y.i(s.A),y.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap);"]);var E=l()(u),C=l()(d),S=l()(p),w=l()(h),k=l()(m),x=l()(g),T=l()(f),A=l()(_),R=l()(b),I=l()(v);y.push([e.id,`@font-face {\n  font-family: 'Roboto';\n  src: url(${E}) format('truetype');\n  font-weight: 900;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${C}) format('truetype');\n  font-weight: 900;\n  font-style: italic;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${S}) format('truetype');\n  font-weight: 700;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${w}) format('truetype');\n  font-weight: 700;\n  font-style: italic;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${k}) format('truetype');\n  font-weight: 400;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${x}) format('truetype');\n  font-weight: 400;\n  font-style: italic;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${T}) format('truetype');\n  font-weight: 300;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${A}) format('truetype');\n  font-weight: 300;\n  font-style: italic;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${R}) format('truetype');\n  font-weight: 500;\n  font-style: normal;\n}\n\n@font-face {\n  font-family: 'Roboto';\n  src: url(${I}) format('truetype');\n  font-weight: 500;\n  font-style: italic;\n}\n\n:root {\n  /* Spacing Units\n  Define consistent spacing units to be used throughout the application. These variables provide a range of spacing intervals for padding, margin, and layout styling, ensuring uniformity across components.\n    */\n\n  --cometchat-spacing: 2px;\n  --cometchat-spacing-1: 4px;\n  --cometchat-spacing-2: 8px;\n  --cometchat-spacing-3: 12px;\n  --cometchat-spacing-4: 16px;\n  --cometchat-spacing-5: 20px;\n  --cometchat-spacing-6: 24px;\n  --cometchat-spacing-7: 28px;\n  --cometchat-spacing-8: 32px;\n  --cometchat-spacing-9: 36px;\n  --cometchat-spacing-10: 40px;\n  --cometchat-spacing-11: 44px;\n  --cometchat-spacing-12: 48px;\n  --cometchat-spacing-13: 52px;\n  --cometchat-spacing-14: 56px;\n  --cometchat-spacing-15: 60px;\n  --cometchat-spacing-16: 64px;\n  --cometchat-spacing-17: 68px;\n  --cometchat-spacing-18: 72px;\n  --cometchat-spacing-19: 76px;\n  --cometchat-spacing-20: 80px;\n  --cometchat-spacing-max: 1000px;\n\n  /* Padding\n  Map padding values to corresponding spacing units for consistent padding across all UI elements,\n  enhancing visual rhythm and balance.\n    */\n  --cometchat-padding: var(--cometchat-spacing);\n  --cometchat-padding-1: var(--cometchat-spacing-1);\n  --cometchat-padding-2: var(--cometchat-spacing-2);\n  --cometchat-padding-3: var(--cometchat-spacing-3);\n  --cometchat-padding-4: var(--cometchat-spacing-4);\n  --cometchat-padding-5: var(--cometchat-spacing-5);\n  --cometchat-padding-6: var(--cometchat-spacing-6);\n  --cometchat-padding-7: var(--cometchat-spacing-7);\n  --cometchat-padding-8: var(--cometchat-spacing-8);\n  --cometchat-padding-9: var(--cometchat-spacing-9);\n  --cometchat-padding-10: var(--cometchat-spacing-10);\n\n  /* Margin\n    Map margin values to corresponding spacing units to ensure consistent spacing between elements and maintain a cohesive layout throughout the application.\n    */\n  --cometchat-margin: var(--cometchat-spacing);\n  --cometchat-margin-1: var(--cometchat-spacing-1);\n  --cometchat-margin-2: var(--cometchat-spacing-2);\n  --cometchat-margin-3: var(--cometchat-spacing-3);\n  --cometchat-margin-4: var(--cometchat-spacing-4);\n  --cometchat-margin-5: var(--cometchat-spacing-5);\n  --cometchat-margin-6: var(--cometchat-spacing-6);\n  --cometchat-margin-7: var(--cometchat-spacing-7);\n  --cometchat-margin-8: var(--cometchat-spacing-8);\n  --cometchat-margin-9: var(--cometchat-spacing-9);\n  --cometchat-margin-10: var(--cometchat-spacing-10);\n  --cometchat-margin-11: var(--cometchat-spacing-11);\n  --cometchat-margin-12: var(--cometchat-spacing-12);\n  --cometchat-margin-13: var(--cometchat-spacing-13);\n  --cometchat-margin-14: var(--cometchat-spacing-14);\n  --cometchat-margin-15: var(--cometchat-spacing-15);\n  --cometchat-margin-16: var(--cometchat-spacing-16);\n  --cometchat-margin-17: var(--cometchat-spacing-17);\n  --cometchat-margin-18: var(--cometchat-spacing-18);\n  --cometchat-margin-19: var(--cometchat-spacing-19);\n  --cometchat-margin-20: var(--cometchat-spacing-20);\n\n  /* Border Radius\n   Define border-radius values tied to spacing units,\n      providing consistent rounded corners for UI elements,\n      aligning with the overall design system.\n     */\n  --cometchat-radius: var(--cometchat-spacing);\n  --cometchat-radius-1: var(--cometchat-spacing-1);\n  --cometchat-radius-2: var(--cometchat-spacing-2);\n  --cometchat-radius-3: var(--cometchat-spacing-3);\n  --cometchat-radius-4: var(--cometchat-spacing-4);\n  --cometchat-radius-5: var(--cometchat-spacing-5);\n  --cometchat-radius-6: var(--cometchat-spacing-6);\n  --cometchat-radius-max: var(--cometchat-spacing-max);\n  /*\n    These variables define the fonts for different text elements.\n    Use these to maintain consistent typography styles throughout your application.\n     */\n  --cometchat-font-family: 'Roboto', 'Inter';\n  --cometchat-font-title-bold: 700 32px/38.4px var(--cometchat-font-family);\n  --cometchat-font-title-medium: 500 32px/38.4px var(--cometchat-font-family);\n  --cometchat-font-title-regular: 400 32px/38.4px var(--cometchat-font-family);\n\n  --cometchat-font-heading1-bold: 700 24px/28.8px var(--cometchat-font-family);\n  --cometchat-font-heading1-medium: 500 24px/28.8px var(--cometchat-font-family);\n  --cometchat-font-heading1-regular: 400 24px/28.8px var(--cometchat-font-family);\n\n  --cometchat-font-heading2-bold: 700 20px/24px var(--cometchat-font-family);\n  --cometchat-font-heading2-medium: 500 20px/24px var(--cometchat-font-family);\n  --cometchat-font-heading2-regular: 400 20px/24px var(--cometchat-font-family);\n\n  --cometchat-font-heading3-bold: 700 18px/21.6px var(--cometchat-font-family);\n  --cometchat-font-heading3-medium: 500 18px/21.6px var(--cometchat-font-family);\n  --cometchat-font-heading3-regular: 400 18px/21.6px var(--cometchat-font-family);\n\n  --cometchat-font-heading4-bold: 700 16px/19.2px var(--cometchat-font-family);\n  --cometchat-font-heading4-medium: 500 16px/19.2px var(--cometchat-font-family);\n  --cometchat-font-heading4-regular: 400 16px/19.2px var(--cometchat-font-family);\n\n  --cometchat-font-body-bold: 700 14px/16.8px var(--cometchat-font-family);\n  --cometchat-font-body-medium: 500 14px/16.8px var(--cometchat-font-family);\n  --cometchat-font-body-regular: 400 14px/16.8px var(--cometchat-font-family);\n\n  --cometchat-font-caption1-bold: 700 12px/14.4px var(--cometchat-font-family);\n  --cometchat-font-caption1-medium: 500 12px/14.4px var(--cometchat-font-family);\n  --cometchat-font-caption1-regular: 400 12px/14.4px var(--cometchat-font-family);\n\n  --cometchat-font-caption2-bold: 700 10px/12px var(--cometchat-font-family);\n  --cometchat-font-caption2-medium: 500 10px/12px var(--cometchat-font-family);\n  --cometchat-font-caption2-regular: 400 10px/12px var(--cometchat-font-family);\n\n  --cometchat-font-button-bold: 700 14px/16.8px var(--cometchat-font-family);\n  --cometchat-font-button-medium: 500 14px/16.8px var(--cometchat-font-family);\n  --cometchat-font-button-regular: 400 14px/16.8px var(--cometchat-font-family);\n\n  --cometchat-font-link: 400 14px/19.6px var(--cometchat-font-family);\n\n  /*Primary & Extended Colors\n   Set the primary color and a range of extended shades to be used throughout the application,\n    maintaining a consistent visual theme with variations to suit different UI components and states.\n     */\n  --cometchat-primary-color: #6852D6;\n  --cometchat-extended-primary-color-50: #F9F8FD;\n  --cometchat-extended-primary-color-100: #EDEAFA;\n  --cometchat-extended-primary-color-200: #DCD7F6;\n  --cometchat-extended-primary-color-300: #CCC4F1;\n  --cometchat-extended-primary-color-400: #BBB1ED;\n  --cometchat-extended-primary-color-500: #AA9EE8;\n  --cometchat-extended-primary-color-600: #9A8BE4;\n  --cometchat-extended-primary-color-700: #8978DF;\n  --cometchat-extended-primary-color-800: #7965DB;\n  --cometchat-extended-primary-color-900: #5D49BE;\n\n  /*\n    Neutral Colors\n     Define a neutral color palette, providing versatile shades for backgrounds,text and borders. These neutrals serve as the foundation for the application's color scheme.\n     */\n  --cometchat-neutral-color-50: #FFFFFF;\n  --cometchat-neutral-color-100: #FAFAFA;\n  --cometchat-neutral-color-200: #F5F5F5;\n  --cometchat-neutral-color-300: #E8E8E8;\n  --cometchat-neutral-color-400: #DCDCDC;\n  --cometchat-neutral-color-500: #A1A1A1;\n  --cometchat-neutral-color-600: #727272;\n  --cometchat-neutral-color-700: #5B5B5B;\n  --cometchat-neutral-color-800: #434343;\n  --cometchat-neutral-color-900: #141414;\n\n  /*\n  Alert Colors\n   Assign colors for various alerts, such as informational messages, warnings,  success notifications,\nand errors.\n     */\n  --cometchat-info-color: #0B7BEA;\n  --cometchat-warning-color: #FFAB00;\n  --cometchat-success-color: #09C26F;\n  --cometchat-error-color: #F44649;\n  --cometchat-error-color-100: #FEF3F2;\n\n  /*\n    Static colors\n     Assign colors for various alerts, such as informational messages, warnings,  success notifications,\n  and errors.\n       */\n\n  --cometchat-static-black: #141414;\n  --cometchat-static-white: #FFFFFF;\n\n  /*\n  Background Colors\n   Specify background colors derived from the neutral palette for different sections of the application.\n     */\n  --cometchat-background-color-01: var(--cometchat-neutral-color-50);\n  --cometchat-background-color-02: var(--cometchat-neutral-color-100);\n  --cometchat-background-color-03: var(--cometchat-neutral-color-200);\n  --cometchat-background-color-04: var(--cometchat-neutral-color-300);\n\n\n\n  /*\n  Border Colors\nDefine border colors for UI elements,\n    creating clear visual boundaries\n      */\n  --cometchat-border-color-light: var(--cometchat-neutral-color-200);\n  --cometchat-border-color-default: var(--cometchat-neutral-color-300);\n  --cometchat-border-color-dark: var(--cometchat-neutral-color-400);\n  --cometchat-border-color-highlight: var(--cometchat-primary-color);\n\n\n  /*\n  Text Colors\n  Define text colors to ensure readability and contrast against various background shades. These include primary, secondary, tertiary, disabled, and highlight text colors.\n      */\n  --cometchat-text-color-primary: var(--cometchat-neutral-color-900);\n  --cometchat-text-color-secondary: var(--cometchat-neutral-color-600);\n  --cometchat-text-color-tertiary: var(--cometchat-neutral-color-500);\n  --cometchat-text-color-disabled: var(--cometchat-neutral-color-400);\n  --cometchat-text-color-white: var(--cometchat-neutral-color-50);\n  --cometchat-text-color-highlight: var(--cometchat-primary-color);\n\n  /*\n  Icon Colors\n   Assign colors for icons throughout the application. Icon colors align with the text and background palettes.\n     */\n  --cometchat-icon-color-primary: var(--cometchat-neutral-color-900);\n  --cometchat-icon-color-secondary: var(--cometchat-neutral-color-500);\n  --cometchat-icon-color-tertiary: var(--cometchat-neutral-color-400);\n  --cometchat-icon-color-white: var(--cometchat-neutral-color-50);\n  --cometchat-icon-color-highlight: var(--cometchat-primary-color);\n\n  /*\n    Styling for shimmer effects shown while loading content in the uikit.\n     */\n  --cometchat-shimmer-background-color: var(--cometchat-neutral-color-200);\n  --cometchat-shimmer-gradient-color: linear-gradient(90deg, #E0E0E0 0%, #EEE 100%);\n  --cometchat-text-shimmer-gradient-color: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.70) 50%, rgba(255, 255, 255, 0.00) 100%);\n\n\n  /*\n    Styling for buttons.\n     */\n  --cometchat-primary-button-background: var(--cometchat-primary-color);\n  --cometchat-primary-button-text: var(--cometchat-static-white);\n  --cometchat-primary-button-icon: var(--cometchat-static-white);\n  --cometchat-secondary-button-background: var(--cometchat-neutral-color-900);\n  --cometchat-secondary-button-icon: var(--cometchat-neutral-color-900);\n  --cometchat-secondary-button-text: var(--cometchat-neutral-color-900);\n  --cometchat-link-button: var(--cometchat-info-color);\n  --cometchat-fab-button-background: var(--cometchat-primary-color);\n  --cometchat-fab-button-icon: var(--cometchat-static-white);\n  --cometchat-white-hover: var(--cometchat-neutral-color-100);\n  --cometchat-white-pressed: var(--cometchat-neutral-color-300);\n}\n\n[data-theme="dark"] {\n  --cometchat-primary-color: #6852D6;\n  --cometchat-extended-primary-color-50: #15102B;\n  --cometchat-extended-primary-color-100: #1D173C;\n  --cometchat-extended-primary-color-200: #251E4D;\n  --cometchat-extended-primary-color-300: #2E245E;\n  --cometchat-extended-primary-color-400: #362B6F;\n  --cometchat-extended-primary-color-500: #3E3180;\n  --cometchat-extended-primary-color-600: #473892;\n  --cometchat-extended-primary-color-700: #4F3EA3;\n  --cometchat-extended-primary-color-800: #5745B4;\n  --cometchat-extended-primary-color-900: #7460D9;\n  /**\n   * Neutral Colors\n  * Define a neutral color palette, providing versatile shades for backgrounds,text and borders. These neutrals serve as the foundation for the application's color scheme.\n   **/\n  --cometchat-neutral-color-50: #141414;\n  --cometchat-neutral-color-100: #1A1A1A;\n  --cometchat-neutral-color-200: #272727;\n  --cometchat-neutral-color-300: #383838;\n  --cometchat-neutral-color-400: #4C4C4C;\n  --cometchat-neutral-color-500: #858585;\n  --cometchat-neutral-color-600: #989898;\n  --cometchat-neutral-color-700: #A8A8A8;\n  --cometchat-neutral-color-800: #C8C8C8;\n  --cometchat-neutral-color-900: #FFFFFF;\n  /*\n  Alert Colors\n  Assign colors for various alerts, such as informational messages, warnings,  success notifications,\n  and errors.\n     */\n\n  --cometchat-info-color: #0D66BF;\n  --cometchat-warning-color: #D08D04;\n  --cometchat-success-color: #0B9F5D;\n  --cometchat-message-seen-color: #56E8A7;\n  --cometchat-error-color: #C73C3E;\n  --cometchat-error-color-100: #3A0C05;\n  \n    /*\n    Static colors\n     Assign colors for various alerts, such as informational messages, warnings,  success notifications,\n  and errors.\n       */\n\n       --cometchat-static-black: #141414;\n       --cometchat-static-white: #FFFFFF;\n\n  /*\n  Background Colors\n   Specify background colors derived from the neutral palette for different sections of the application.\n     */\n  --cometchat-background-color-01: var(--cometchat-neutral-color-50);\n  --cometchat-background-color-02: var(--cometchat-neutral-color-100);\n  --cometchat-background-color-03: var(--cometchat-neutral-color-200);\n  --cometchat-background-color-04: var(--cometchat-neutral-color-300);\n\n  /*\n  Border Colors\nDefine border colors for UI elements,\n    creating clear visual boundaries\n      */\n  --cometchat-border-color-light: var(--cometchat-neutral-color-200);\n  --cometchat-border-color-default: var(--cometchat-neutral-color-300);\n  --cometchat-border-color-dark: var(--cometchat-neutral-color-400);\n  --cometchat-border-color-highlight: var(--cometchat-primary-color);\n\n  /*\n  Text Colors\n  Define text colors to ensure readability and contrast against various background shades. These include primary, secondary, tertiary, disabled, and highlight text colors.\n      */\n  --cometchat-text-color-primary: var(--cometchat-neutral-color-900);\n  --cometchat-text-color-secondary: var(--cometchat-neutral-color-600);\n  --cometchat-text-color-tertiary: var(--cometchat-neutral-color-500);\n  --cometchat-text-color-disabled: var(--cometchat-neutral-color-400);\n  --cometchat-text-color-white: var(--cometchat-neutral-color-50);\n  --cometchat-text-color-highlight: var(--cometchat-primary-color);\n\n  /*\n  Icon Colors\n   Assign colors for icons throughout the application. Icon colors align with the text and background palettes.\n     */\n  --cometchat-icon-color-primary: var(--cometchat-neutral-color-900);\n  --cometchat-icon-color-secondary: var(--cometchat-neutral-color-500);\n  --cometchat-icon-color-tertiary: var(--cometchat-neutral-color-400);\n  --cometchat-icon-color-white: var(--cometchat-neutral-color-50);\n  --cometchat-icon-color-highlight: var(--cometchat-primary-color);\n  /*\n  Styling for shimmer effects shown while loading content in the uikit.\n   */\n  --cometchat-shimmer-background-color: var(--cometchat-background-color-01);\n  --cometchat-shimmer-gradient-color: linear-gradient(90deg, #383838 0%, #272727 100%);\n  --cometchat-text-shimmer-gradient-color: linear-gradient(270deg, rgba(26, 26, 26, 0.00) 0%, rgba(26, 26, 26, 0.70) 50%, rgba(26, 26, 26, 0.00) 100%);\n\n  /*\n   Styling for buttons.\n  */\n  --cometchat-primary-button-background: var(--cometchat-primary-color);\n  --cometchat-primary-button-text: var(--cometchat-static-white);\n  --cometchat-primary-button-icon: var(--cometchat-static-white);\n  --cometchat-secondary-button-background: var(--cometchat-neutral-color-900);\n  --cometchat-secondary-button-text: var(--cometchat-neutral-color-900);\n  --cometchat-secondary-button-icon: var(--cometchat-neutral-color-900);\n  --cometchat-link-button: var(--cometchat-info-color);\n  --cometchat-fab-button-background: var(--cometchat-primary-color);\n  --cometchat-fab-button-icon: var(--cometchat-static-white);\n  --cometchat-white-hover: var(--cometchat-neutral-color-100);\n  --cometchat-white-pressed: var(--cometchat-neutral-color-300);\n}`,""]);const O=y},4236:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/send_fill.7d309325ccdb5f41d511.svg"},4346:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1561),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-dropdown {\n    position: relative;\n}\n\n.cometchat-dropdown__placeholder-text {\n    display: flex;\n    justify-content: space-between;\n    height: 36px;\n    width: 100%;\n    padding: var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(--cometchat-background-color-01, #FFF);\n    border: 1px solid var(--cometchat-border-color-default, #F5F5F5);\n    overflow: hidden;\n    color: var(--cometchat-text-color-tertiary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    line-height: 120%;\n}\n\n.cometchat-dropdown__placeholder-text label {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-dropdown__placeholder-text::after {\n    border: 1px solid var(--cometchat-border-color-highlight, #6852D6);\n}\n\n.cometchat-dropdown__arrow {\n    display: flex;\n    width: 20px;\n    height: 20px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-icon-color-primary, #6B7280);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    -webkit-mask: url(${d});\n    cursor: pointer;\n}\n\n.cometchat-dropdown__items {\n    display: flex;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    position: relative;\n    z-index: 20;\n}\n\n.cometchat-dropdown__item {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    background: var(--cometchat-background-color-01, #FFF);\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    line-height: 120%;\n}\n\n.cometchat-dropdown__item:hover {\n    border-right: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-white-hover, #FAFAFA);\n    cursor: pointer;\n}\n\n.cometchat-dropdown__items-hidden {\n    display: none;\n}`,""]);const p=u},4370:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* Container for the text bubble */\n.cometchat-text-bubble {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    padding: var(--cometchat-padding-1) var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2);\n    align-self: flex-end;\n    width: auto;\n    border-radius: var(--cometchat-radius-3, 12px);\n    max-width: 630px;\n}\n\n/* Styles for the text content inside the text bubble */\n.cometchat-text-bubble__body-text {\n    margin: 0;\n    word-break: break-word;\n    text-align: left;\n    white-space: pre-line;\n    overflow: hidden;\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    padding-top:var(--cometchat-padding-1);\n}\n\n/* When text contains block-level elements like lists or blockquotes,\n   switch from -webkit-box to block display so list markers render properly.\n   Use max-height for truncation since -webkit-line-clamp doesn't work with display: block */\n.cometchat-text-bubble__body-text:has(ol),\n.cometchat-text-bubble__body-text:has(ul),\n.cometchat-text-bubble__body-text:has(blockquote),\n.cometchat-text-bubble__body-text:has(pre) {\n    display: block;\n    overflow: hidden;\n    white-space: normal;\n    /* 4 lines * line-height (~22px for body-regular) = ~88px */\n    max-height: 88px;\n}\n\n/* When expanded, remove max-height restriction for block-level content */\n.cometchat-text-bubble__body-text.cometchat-text-bubble__body-text--expanded:has(ol),\n.cometchat-text-bubble__body-text.cometchat-text-bubble__body-text--expanded:has(ul),\n.cometchat-text-bubble__body-text.cometchat-text-bubble__body-text--expanded:has(blockquote),\n.cometchat-text-bubble__body-text.cometchat-text-bubble__body-text--expanded:has(pre) {\n    max-height: none;\n    overflow: visible;\n}\n\n/* Incoming text bubble specific styles */\n.cometchat-text-bubble.cometchat-text-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Outgoing text bubble specific styles */\n.cometchat-text-bubble.cometchat-text-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}\n\n/* Styles for the text inside the incoming text bubble */\n.cometchat-text-bubble.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text {\n    color: var(--cometchat-neutral-color-900);\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n\n}\n\n/* Styles for the text inside the outgoing text bubble */\n.cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text {\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n}\n\n/* Container for the body content of the text bubble */\n.cometchat-text-bubble__body {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n}\n\n/* Styles for the text expanding buttons inside the text bubble */\n.cometchat-text-bubble__read-more,\n.cometchat-text-bubble__read-less {\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n    cursor: pointer;\n    display: flex;\n    align-self: flex-end;\n    width: fit-content;\n    padding: var(--cometchat-padding-1);\n}\n\n/* text expanding buttons styles for outgoing message bubbles */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-more,\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-less {\n    color: var(--cometchat-static-white);\n}\n\n/* text expanding buttons styles for incoming message bubbles */\n.cometchat-text-bubble-incoming .cometchat-text-bubble__read-more,\n.cometchat-text-bubble-incoming .cometchat-text-bubble__read-less {\n    color: var(--cometchat-text-color-highlight);\n\n}\n\n.cometchat-text-bubble .cometchat-text-bubble__body-text.cometchat-text-bubble__body-text-emoji{\n    font:var(--cometchat-font-title-regular);\n}\n@media (max-width: 1000px) {\n    .cometchat-text-bubble {\n        max-width: 420px;\n    }\n}\n\n@media (max-width: 768px) {\n    .cometchat-text-bubble {\n        max-width: 280px;\n    }\n}\n\n/* Rich Text Formatting Styles */\n\n/* Bold */\n.cometchat-text-bubble__body-text b,\n.cometchat-text-bubble__body-text strong {\n    font-weight: var(--cometchat-font-weight-bold, 700);\n}\n\n/* Italic */\n.cometchat-text-bubble__body-text i,\n.cometchat-text-bubble__body-text em {\n    font-style: italic;\n}\n\n/* Strikethrough */\n.cometchat-text-bubble__body-text s,\n.cometchat-text-bubble__body-text strike,\n.cometchat-text-bubble__body-text del {\n    text-decoration: line-through;\n}\n\n/* Underline */\n.cometchat-text-bubble__body-text u {\n    text-decoration: underline;\n}\n\n/* Inline code */\n.cometchat-text-bubble__body-text code {\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: 14px;\n    font-weight: 400;\n    font-style: normal;\n    background: var(--cometchat-background-color-03);\n    color: var(--cometchat-text-color-highlight);\n    padding: 0 var(--cometchat-padding);\n    border-radius: var(--cometchat-radius);\n    border: 1px solid var(--cometchat-border-color-default);\n    white-space: pre-wrap;\n    word-break: break-word;\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n}\n\n/* Code color for incoming messages */\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text code {\n    color: var(--cometchat-text-color-highlight);\n    border-radius: var(--cometchat-radius);\n    border: 1px solid var(--cometchat-border-color-dark);\n    background: var(--cometchat-background-color-03);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: 14px;\n    font-weight: 400;\n    font-style: normal;\n    padding: 0 var(--cometchat-padding);\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n}\n\n/* Code color for outgoing messages */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text code {\n    color: var(--cometchat-static-white);\n    background: rgba(255, 255, 255, 0.20);\n    border: 1px solid rgba(245, 245, 245, 0.10);\n    border-radius: var(--cometchat-radius);\n    padding: 0 var(--cometchat-padding);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: 14px;\n    font-weight: 400;\n    font-style: normal;\n}\n\n/* Code block */\n.cometchat-text-bubble__body-text pre {\n    display: block;\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: 14px;\n    font-weight: 400;\n    font-style: normal;\n    background: var(--cometchat-background-color-02);\n    border: 1px solid var(--cometchat-border-color-light);\n    border-radius: var(--cometchat-radius-2, 8px);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n    margin: 0;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n    overflow-x: auto;\n}\n\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre {\n    background: rgba(255, 255, 255, 0.10);\n    border: none;\n    border-radius: var(--cometchat-radius-2, 8px);\n    color: var(--cometchat-static-white);\n}\n\n.cometchat-text-bubble__body-text pre code,\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text pre code,\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre code {\n    background: transparent;\n    color: inherit;\n    padding: 0;\n    border: none;\n    border-radius: 0;\n    display: inline;\n    font-family: inherit !important;\n}\n\n/* Blockquote */\n.cometchat-text-bubble__body-text blockquote {\n    display: block;\n    border-left: 3px solid var(--cometchat-border-color-default);\n    padding: var(--cometchat-padding-2);\n    border-radius: var(--cometchat-radius-1);\n    margin: 0;\n    font-style: normal;\n    min-width: 100px;\n}\n\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text blockquote {\n    color: var(--cometchat-text-color-secondary);\n    background: var(--cometchat-neutral-color-400);\n    border-left-color: var(--cometchat-primary-color);\n}\n\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text blockquote {\n    color: rgba(255, 255, 255, 0.8);\n    background: rgba(255, 255, 255, 0.10);\n    border-left-color: var(--cometchat-static-white);\n}\n\n/* Links */\n.cometchat-text-bubble__body-text a {\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text a {\n    color: var(--cometchat-primary-color, #3399ff);\n}\n\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text a {\n    color: var(--cometchat-static-white);\n}\n\n.cometchat-text-bubble__body-text a:hover {\n    text-decoration: underline;\n    opacity: 0.8;\n}\n\n/* List items */\n.cometchat-text-bubble__body-text li {\n    display: list-item;\n    margin: 0;\n    padding: 0;\n    white-space: normal;\n}\n\n.cometchat-text-bubble__body-text ol,\n.cometchat-text-bubble__body-text ul {\n    margin: 0;\n    padding: 0;\n    padding-left: var(--cometchat-padding-3, 12px);\n    white-space: normal;\n}\n\n/* Nested list styling progression */\n.cometchat-text-bubble__body-text ol { list-style-type: decimal; }\n.cometchat-text-bubble__body-text ol ol { list-style-type: lower-alpha; }\n.cometchat-text-bubble__body-text ol ol ol { list-style-type: lower-roman; }\n.cometchat-text-bubble__body-text ul { list-style-type: disc; }\n.cometchat-text-bubble__body-text ul ul { list-style-type: circle; }\n.cometchat-text-bubble__body-text ul ul ul { list-style-type: square; }\n.cometchat-text-bubble__body-text li > ol,\n.cometchat-text-bubble__body-text li > ul {\n    margin-top: 0;\n    margin-bottom: 0;\n}\n\n\n/* Mention styles in text bubbles */\n\n/* Base mention styling - incoming bubbles */\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text .cometchat-mentions {\n    border-radius: var(--cometchat-radius, 2px);\n    background: rgba(104, 82, 214, 0.20);\n    padding: 0px var(--cometchat-padding, 2px);\n}\n\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text .cometchat-mentions > span {\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* \"You\" mention styling - incoming bubbles */\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text .cometchat-mentions-you {\n    border-radius: var(--cometchat-radius, 2px);\n    background: rgba(255, 171, 0, 0.20);\n    padding: 0px var(--cometchat-padding, 2px);\n}\n\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text .cometchat-mentions-you > span {\n    color: var(--cometchat-warning-color, #FFAB00);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* Base mention styling - outgoing bubbles */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text .cometchat-mentions {\n    border-radius: var(--cometchat-radius, 2px);\n    background: rgba(255, 255, 255, 0.20);\n    padding: 0px var(--cometchat-padding, 2px);\n}\n\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text .cometchat-mentions > span {\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* \"You\" mention styling - outgoing bubbles */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text .cometchat-mentions-you {\n    border-radius: var(--cometchat-radius, 2px);\n    background: rgba(255, 255, 255, 0.20);\n    padding: 0px var(--cometchat-padding, 2px);\n}\n\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text .cometchat-mentions-you > span {\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n",""]);const s=i},4397:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8403),n.b),u=new URL(n(7425),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`\n.cometchat-groups {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex-shrink: 0;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-groups__empty-state-view {\n  display: flex;\n  flex-direction: column;\n}\n\n.cometchat-groups__empty-state-view,\n.cometchat-groups__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-groups__empty-state-view-body,\n.cometchat-groups__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-groups__empty-state-view-body-title,\n.cometchat-groups__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-groups__empty-state-view-body-description,\n.cometchat-groups__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-groups__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #FFF);\n\n}\n\n.cometchat-groups__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  width: 100%;\n  min-width: 240px;\n  max-width: 1440px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-groups__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max,1000px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n}\n\n.cometchat-groups__shimmer-item-body {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-groups__shimmer-item-body-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-groups__shimmer-item-body-subtitle {\n  width:25%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n@keyframes shimmerAnimation {\n    0% {\n      background-position: -468px 0;\n    }\n  \n    100% {\n      background-position: 468px 0;\n    }\n  }\n  .cometchat-groups__list-item {\n    cursor: pointer;\n  }\n\n  .cometchat-groups__list-item-active .cometchat-list-item{\n    background-color:var(--cometchat-white-pressed,#E8E8E8)\n  }\n\n  .cometchat-groups__list-item-password .cometchat-list-item__status{\n    width: 14px;\n    height: 14px;\n    margin-right: -14px;\n    position: relative;\n    top: 20px;\n    right: 15px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    min-width: 14px;\n    border: 2px solid var(--cometchat-neutral-color-50, #FFF);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background-color: var(--cometchat-success-color,#09C26F);\n  }\n\n  .cometchat-groups__list-item-private .cometchat-list-item__status{\n    width: 14px;\n    height: 14px;\n    margin-right: -14px;\n    position: relative;\n    top: 20px;\n    right: 15px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    min-width: 14px;\n    border: 2px solid var(--cometchat-neutral-color-50, #FFF);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background-color: var(--cometchat-warning-color,#FFAB00);\n  }\n\n  .cometchat-groups__list-item-password .cometchat-list-item__status-icon {\n    -webkit-mask: url(${p}) center center no-repeat;\n    mask: url(${p}) center center no-repeat;\n    height: 8px;\n    width: 8px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    border: none;\n    align-self: center;  \n    background:var(--cometchat-static-white,#FFF);\n  }\n\n  .cometchat-groups__list-item-private .cometchat-list-item__status-icon {\n    -webkit-mask: url(${h}) center center no-repeat;\n    mask: url(${h}) center center no-repeat;\n    height: 8px;\n    width: 8px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    border: none;\n    align-self: center;\n    background:var(--cometchat-static-white,#FFF);\n  }\n\n    .cometchat-groups__subtitle {\n      overflow: hidden;\n      color: var(--cometchat-text-color-secondary, #727272);\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      font: var(--cometchat-font-body-regular);\n      font-style: normal;\n    }\n\n  .cometchat-groups__list-item .cometchat-avatar {\n    width: 40px;\n    height: 40px;\n  }\n  \n  .cometchat-groups__list-item .cometchat-list-item__leading-view {\n    width: 40px;\n    height: 40px;\n  }\n\n  .cometchat-groups .cometchat-list-item__body {\n    padding: 0px;\n  }\n`,""]);const m=d},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4442:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-avatar {\n    display: flex;\n    width: 48px;\n    height: 48px;\n    background: var(--cometchat-extended-primary-color-500, #AA9EE8);\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.cometchat-avatar__image {\n    display: flex;\n    width: 100%;\n    height: 100%;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    color: var(--cometchat-primary-button-icon, #FFF);\n    text-align: center;\n    font: var(--cometchat-font-title-bold, 700 32px Roboto);\n    border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.cometchat-avatar__text {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);\n    color: var(--cometchat-primary-button-icon, #FFF);\n    text-align: center;\n}",""]);const s=i},4444:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,'.cometchat-emoji-keyboard {\n    display: flex;\n    width: 300px;\n    height: 300px;\n    overflow: hidden;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 0px;\n    position: absolute;\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-emoji-keyboard__tabs {\n    display: flex;\n    width: 100%;\n    min-height: 48px;\n    overflow: scroll hidden;\n    padding: var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-2, 4px);\n    border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    cursor: pointer;\n  /* Force hardware acceleration */\n  transform: translateZ(0);\n  -webkit-transform: translateZ(0);\n  will-change: scroll-position; /* Hint the browser for performance optimization */\n}\n\n.cometchat-emoji-keyboard__search {\n    width: 100%;\n     height: fit-content;\n     padding: var(--cometchat-padding-3, 12px);\n}\n\n.cometchat-emoji-keyboard .cometchat-search-bar {\n    height: 36px;\n}\n\n.cometchat-emoji-keyboard .cometchat-search-bar input,\n.cometchat-emoji-keyboard .cometchat-search-bar input::placeholder {\n    font: var(--cometchat-font-body-regular, 700 14px Roboto);\n}\n\n.cometchat-emoji-keyboard__list .cometchat-search {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n    align-items: center;\n    flex: 1 0 0;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-emoji-keyboard__list-content {\n    display: contents;\n}\n\n.cometchat-emoji-keyboard__emoji-list {\n    flex-wrap: wrap;\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-spacing-2, 8px);\n}\n\n.cometchat-emoji-keyboard__list-item {\n    font-size: 24px;\n    cursor: pointer;\n    border-radius: var(--cometchat-radius-2, 8px);\n    display: flex;\n    justify-content: center;\n    text-align: center;\n    height: 32px;\n    width: 32px;\n}\n\n.cometchat-emoji-keyboard__list-item:hover{\n    background-color: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-emoji-keyboard__list-item:active{\n    background-color: var(--cometchat-background-color-04, #E8E8E8);\n}\n\n.cometchat-emoji-keyboard__list-title {\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    line-height: 120%;\n    text-align: left;\n}\n\n.cometchat-emoji-keyboard__tab-active {\n    background: var(--cometchat-extended-primary-color-100, #EDEAFA);\n}\n\n.cometchat-emoji-keyboard__tab {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: 12.8px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n\n\n.cometchat-emoji-keyboard__list {\n    width: 100%;\n    height: 100%;\n    overflow-y: scroll;\n    display: flex;\n    padding: 0px var(--cometchat-padding-3, 12px) var(--cometchat-padding-3, 12px);\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n.cometchat-emoji-keyboard__tab-icon {\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    width: 17px;\n    height: 17px;\n}\n\n.cometchat-emoji-keyboard__tab-active .cometchat-emoji-keyboard__tab-icon {\n    background: var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n\n[data-theme="dark"] .cometchat-emoji-keyboard .cometchat-emoji-keyboard__list-item {\n    color: var( --cometchat-neutral-color-500);\n}',""]);const s=i},4475:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_sent.fbb8355efb327852ba32.svg"},4491:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/status_sending.7d1d357d6406afa36f70.svg"},4533:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id," :host {\n     width: 100%;\n     text-align: center;\n }\n\n .cc-single_select-option {\n     padding: 10px;\n     box-sizing: border-box;\n     cursor: pointer;\n     min-height: 20px;\n     min-width: 80px;\n     display: flex;\n     justify-content: center;\n     align-items: center;\n     font: 400 14px Inter;\n     color: grey;\n     background: white;\n     border: 1px solid #dedede;\n     border-radius: 2px;\n\n     :hover {\n         font: 400 14px Inter;\n         color: black;\n         background: #efefef;\n     }\n }\n\n .cc-single_select-wrapper {\n     height: 100%;\n     width: 100%;\n     display: flex;\n     justify-content: center;\n     align-items: center;\n     border: none;\n     border-radius: 6px;\n }\n",""]);const s=i},4726:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8781),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.CometChatApp {\n  width: 100%;\n  height: 100%;\n}\n\n.CometChatApp * {\n  box-sizing: border-box;\n}\n\n.cometchat-root {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  overflow: hidden;\n  position: relative;\n  border-radius: var(--Radius-radius_2, 8px);\n  border: 1px solid var(--cometchat-border-color-default, #e8e8e8);\n\n  /* Shadow-MD */\n  box-shadow:\n    0px 4px 8px -2px rgba(16, 24, 40, 0.1),\n    0px 2px 4px -2px rgba(16, 24, 40, 0.06);\n}\n\n.conversations-wrapper {\n  display: flex;\n  width: 30%;\n  max-width: 420px;\n  max-height: 100vh;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex: 3;\n  background: var(--cometchat-background-color-01, #fff);\n}\n\n.conversations-wrapper.hide-sidebar {\n  display: none;\n}\n\n.selector-wrapper {\n  display: flex;\n  flex: 1;\n  width: 100%;\n  overflow: auto;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  background: var(--cometchat-background-color-01, #fff);\n}\n\n.selector-wrapper .cometchat-list__body {\n  flex: 1;\n  border-right: 1px solid var(--cometchat-border-color-light);\n}\n\n.selector-wrapper::-webkit-scrollbar,\n.selector-wrapper::-webkit-scrollbar-thumb {\n  display: none;\n}\n\n.conversations-wrapper .selector-wrapper .cometchat-list {\n  position: relative;\n}\n\n.conversations-wrapper .selector-wrapper .cometchat-list .cometchat-list__header .cometchat-button {\n  height: fit-content;\n  width: fit-content;\n  padding: 0;\n  background: transparent;\n}\n\n.conversations-wrapper .selector-wrapper .cometchat-list .cometchat-list__header-menu {\n  top: 20px;\n}\n\n.selector-wrapper .cometchat-list .cometchat-list__header .cometchat-button .cometchat-button__icon {\n  height: 24px;\n  width: 24px;\n}\n\n.cometchat-incoming-call {\n  top: 17px;\n  left: 30px;\n}\n\n.selector-wrapper .cc-conversations {\n  border: none !important;\n}\n\n.messages-wrapper {\n  width: 40%;\n  max-height: 100vh;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  flex: 5;\n  background: var(--cometchat-background-color-03, #f5f5f5);\n  overflow: hidden;\n}\n\n.conversations-wrapper .cometchat-list__header-title {\n  border-right: none;\n}\n\n.login-placeholder {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 0px;\n  width: 100%;\n  height: 100%;\n}\n\n.cometchat .cometchat-conversation-summary__header-close-button {\n  mask-position: center center;\n  mask-repeat: no-repeat;\n}\n\n.CometChatApp .cometchat .cometchat-mentions,\n.CometChatApp .cometchat .cometchat-mentions>span {\n  background: none;\n  font: var(--cometchat-font-body-bold);\n}\n\n@media (max-width: 768px) {\n  .conversations-wrapper {\n    width: 100vw;\n    max-width: 100%;\n    min-width: 100%;\n    z-index: 1;\n  }\n\n  .cometchat-root {\n    position: fixed;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    margin-bottom: 0;\n    overflow: hidden;\n  }\n}\n\n.cometchat button:focus,\n.cometchat button:focus-visible {\n  outline: none;\n}\n\n.cometchat-audio-bubble__body-wave>div:nth-child(2) {\n  display: none;\n}\n\n.cometchat-logo {\n  -webkit-mask: url(${d}) center center no-repeat;\n  mask: url(${d}) center center no-repeat;\n  height: 64px;\n  width: 120px;\n  display: flex;\n  background-color: #000000;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n}\n\n.mobileChat .MuiIconButton-root[id='screenShareButton'],\n.mobileChat .MuiIconButton-root[data-testid='cc-userlist-button'] {\n  display: none;\n}\n\n.cometchat-header-wrapper__desktop .cometchat-message-header__back-button,\n.cometchat-header-wrapper__hide-back-button .cometchat-message-header__back-button {\n  display: none;\n}\n\n.CometChatApp .cometchat-ongoing-call,\n.cometchat:has(> .cometchat-ongoing-call) {\n  position: absolute;\n}\n\n.CometChatApp .ccccn .modal-overlay {\n  position: absolute !important;\n}\n\n.CometChatApp .ccccn .modal {\n  display: initial;\n  left: initial;\n  top: initial;\n  height: initial;\n}`,""]);const p=u},4753:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/recording_icon.34cb90ed731d42e870b8.svg"},4759:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call_empty.8ce6468827c447772bb6.svg"},4762:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/play_arrow.04f459a65b962cbb5f65.svg"},4842:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/incoming_video.00f32e896263889e2509.svg"},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4868:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}},4921:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/list_error_state_icon.173ec5995098722fd26a.svg"},4935:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/phone_incoming_no_fill.74e0941289461c76a5b4.svg"},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=o[l]||0,d="".concat(l," ").concat(u);o[l]=u+1;var p=n(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var m=a(h,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var s=n(o[i]);t[s].references--}for(var c=r(e,a),l=0;l<o.length;l++){var u=n(o[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=c}}},5098:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1294),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/* Bottom view for "blocked" messages inside message bubble */\n.cometchat-moderation-status__icon{\n    min-width: 16px;\n    min-height: 16px;\n    -webkit-mask: url(${d}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background-color: var(--cometchat-error-color);\n    display: inline-block;\n}\n\n.cometchat-moderation-status {\n    display: flex;\n    flex-direction: row;\n    align-items: flex-start;\n    background-color: var(--cometchat-error-color-100);\n    padding: var(--cometchat-padding-1) var(--cometchat-padding-2);\n    gap: var(--cometchat-spacing-1, 4px);\n    border-radius: 0 0 var(--cometchat-radius-3, 12px) var(--cometchat-radius-3, 12px);\n}\n\n.cometchat-moderation-status .cometchat-moderation-status__message {\n    color: var(--cometchat-error-color, #F44649);\n    text-align: left;\n    font: var(--cometchat-font-body-regular);\n    margin: 0;\n}`,""]);const p=u},5107:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-polls-bubble {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  padding: var(--cometchat-padding-2, 8px);\n  border-radius: var(--cometchat-radius-3, 12px);\n  gap: var(--cometchat-padding-4, 16px);\n  width: 240px;\n  max-width: 240px;\n}\n.cometchat-polls-bubble  * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n.cometchat-polls-bubble-incoming {\n  background: var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-polls-bubble-outgoing {\n  background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-polls-bubble .cometchat-avatar {\n  padding: 0px;\n  width: 20px;\n  height: 20px;\n}\n\n\n.cometchat-polls-bubble .cometchat-avatar img {\n  width: 20px;\n  height: 20px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.cometchat-polls-bubble-incoming .cometchat-avatar img {\n  border: 1px solid var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-avatar img {\n  border: 1px solid var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-polls-bubble .cometchat-avatar .cometchat-avatar__text {\n  display: flex;\n  width: 20px;\n  height: 20px;\n  justify-content: center;\n  align-items: center;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-extended-primary-color-600, #AA9EE8);\n  font: var(--cometchat-font-caption2-regular);\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-polls-bubble__question {\n  font: var(--cometchat-font-heading4-bold);\n  font-style: normal;\n  text-align: left;\n  width: 100%;\n  text-overflow: ellipsis;\n  word-wrap: break-word;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-polls-bubble__question {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-polls-bubble__question {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-polls-bubble__options {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  list-style-type: none;\n  padding-bottom: var(--cometchat-padding-3, 12px);\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: flex-start;\n  align-self: stretch;\n}\n\n.cometchat-polls-bubble__options>li {\n  display: flex;\n  gap: var(--cometchat-padding-2, 8px);\n  width: 100%;\n  position: relative;\n}\n\n\n.cometchat-polls-bubble__option-item {\n  width: 100%;\n  justify-content: space-between;\n  padding: 0px;\n}\n.cometchat-poll-bubble__option-item-leading-view {\n  cursor: pointer;\n}\n\n.cometchat-poll-bubble__option-item-leading-view-radio-button {\n  width: 20px;\n  height: 20px;\n  border-radius: var(--cometchat-radius-max, 50%);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-leading-view-radio-button {\n  border: 1.5px solid var(--cometchat-icon-color-secondary, #A1A1A1);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-leading-view-radio-button {\n  border: 1.5px solid var(--cometchat-static-white, #FFFFFF);\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-leading-view-radio-button.checked {\n  background: var(--cometchat-icon-color-highlight, #6852D6);\n  color: var(--cometchat-background-color-01, #FFF);\n  border: var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-leading-view-radio-button.checked {\n  background-color: var(--cometchat-static-white, #FFF);\n  color: #6852D6;\n  border: 1px solid var(--cometchat-icon-color-highlight, #6852D6);\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-leading-view-radio-button.checked::after,\n.cometchat-poll-bubble__option-item-leading-view-radio-button.checked::after {\n  content: '✓';\n  font-size: 12px;\n  font-weight: 900;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-leading-view-radio-button.checked::after {\n  color: var(--cometchat-background-color-01, #FFFFFF);\n}\n\n.cometchat-poll-bubble__option-item-leading-view-radio-button.checked::after {\n  color: var(--cometchat-primary-color, #6852D6);\n}\n\n\n.cometchat-poll-bubble__option-item-body {\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-spacing-1, 4px);\n  overflow: hidden;\n}\n\n.cometchat-poll-bubble__option-item-body-content {\n  display: flex;\n  justify-content: space-between;\n  width: 100%;\n}\n\n.cometchat-poll-bubble__option-item-body-content-title {\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  text-align: left;\n  word-wrap: break-word;\n  width: 100%;\n  overflow: hidden;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-body-content-title {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-body-content-title {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-poll-bubble__option-item-body-content-tail {\n  display: flex;\n  justify-content: flex-end;\n  max-width: 100px;\n  position: relative;\n  height: 20px;\n  width: fit-content;\n  gap: var(--cometchat-padding-1);\n}\n\n.cometchat-poll-bubble__option-item-body-content-tail-avatar {\n  height: 20px;\n  width: 20px;\n  margin-right: -8px;\n  z-index: 2;\n}\n\n.cometchat-poll-bubble__option-item-body-content-tail-avatar.last {\n  margin-right: 0;\n  z-index: 0;\n}\n\n.cometchat-poll-bubble__option-item-body-content-tail-count {\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-body-content-tail-count {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-body-content-tail-count {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-poll-bubble__option-item-body-progress {\n  margin-top: 3px;\n  width: 100%;\n  height: 8px;\n  flex-shrink: 0;\n  align-self: stretch;\n  border-radius: 16px;\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-body-progress {\n  background: var(--cometchat-neutral-color-400, #DCDCDC);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-body-progress {\n  background: var(--cometchat-extended-primary-color-700, #8978DF);\n}\n\n.cometchat-poll-bubble__option-item-body-progress-background {\n  height: 8px;\n  width: 20px;\n  border-radius: var(--cometchat-radius-4, 16px);\n}\n\n.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-body-progress-background {\n  background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-poll-bubble__option-item-body-progress-background {\n  background: var(--cometchat-static-white, #FFF);\n}\n\n\n.cometchat-polls-bubble-incoming .cometchat-radiobutton__selected {\n  border: 1.5px solid var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-radiobutton__selected {\n  border: 1.5px solid var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-radiobutton input[type=\"radio\"]:checked+.cometchat-radiobutton__selected {\n  border: 1.5px solid var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-polls-bubble-outgoing .cometchat-radiobutton__selected::after {\n  background-color: var(--cometchat-static-white, #FFF);\n}",""]);const s=i},5172:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".CometChatApp .cometchat-root {\n  border-radius: 16px;\n}\n\n.hideSideBarOnMobile .conversations-wrapper {\n  width: 100%;\n  min-width: 100%;\n}\n\n.hideSideBarOnMobile .side-component-wrapper {\n  width: 100%;\n}\n\n.hideSideBarOnMobile .messages-wrapper {\n  width: 100%;\n}\n\n@media (max-width: 768px) {\n  .hideSideBarOnMobile .cometchat-messages-wrapper {\n    width: 100%;\n    border-radius: 8px;\n  }\n\n  .dockedViewMobileDevice .CometChatApp .cometchat-messages-wrapper {\n    position: absolute;\n  }\n}\n\n.showSidebarOnDesktop {\n  width: 375px;\n  height: 594px;\n  max-height: 100%;\n  flex-shrink: 0;\n  border-radius: 20px;\n  box-shadow: 0px 4px 8px -2px rgba(244, 246, 249, 0.1),\n    0px 2px 4px -2px rgba(16, 24, 40, 0.06);\n}\n\n.showSidebarOnDesktop .conversations-wrapper {\n  width: 100%;\n  min-width: 100%;\n}\n\n.showSidebarOnDesktop>div {\n  width: 100%;\n  height: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-messages-wrapper {\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  height: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-call-log-details {\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  height: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-call-log-details .cometchat-call-button__voice,\n.showSidebarOnDesktop .cometchat-call-log-details .cometchat-call-button__video {\n  padding: 8px;\n}\n\n.showSidebarOnDesktop .cometchat-call-log-details__header-back {\n  display: block;\n}\n\n.showSidebarOnDesktop .side-component-wrapper {\n  position: absolute;\n  z-index: 4;\n  left: 0px;\n  width: 100%;\n  height: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-message-header__back-button {\n  display: flex;\n}\n\n.showSidebarOnDesktop .cometchat-change-scope,\n.showSidebarOnDesktop .cometchat-confirm-dialog,\n.showSidebarOnDesktop .cometchat-alert-popup-wrapper,\n.showSidebarOnDesktop .cometchat-create-group,\n.showSidebarOnDesktop .cometchat-message-information,\n.showSidebarOnDesktop .join-group-password {\n  width: 320px;\n}\n\n.showSidebarOnDesktop .cometchat-create-group,\n.showSidebarOnDesktop .join-group-password {\n  padding: 20px;\n}\n\n.showSidebarOnDesktop .cometchat-text-bubble {\n  max-width: 280px;\n}\n\n.cometchat-transfer-ownership {\n  height: 50vh;\n}\n\n.showSidebarOnDesktop .cometchat-transfer-ownership {\n  border-radius: 0;\n  height: 100%;\n  width: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-transfer-ownership__buttons-wrapper .cometchat-button {\n  width: 160px;\n}\n\n.showSidebarOnDesktop .cometchat-new-chat-view {\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  height: 100%;\n}\n\n.showSidebarOnDesktop .cometchat-root {\n  border-radius: 20px;\n}\n\n.showSidebarOnDesktop .conversations-wrapper.hide-sidebar {\n  display: flex;\n}\n\n.CometChatApp .cometchat-outgoing-call__backdrop {\n  height: 100%;\n  position: absolute;\n}\n\n.CometChatApp .cometchat-outgoing-call__backdrop .cometchat {\n  height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.CometChatApp .cometchat-outgoing-call__backdrop .cometchat-outgoing-call,\n.CometChatApp .cometchat-outgoing-call {\n  height: 75%;\n  max-height: 540px;\n  gap: 2px;\n  min-width: 320px;\n}\n\n.CometChatApp .cometchat-incoming-call {\n  left: 10px;\n}\n\n.CometChat .cometchat-call-logs__outgoing-call {\n  position: fixed;\n}\n\n.CometChatApp #log-out {\n  display: none;\n}\n\n.CometChatApp .cometchat-search__initial-view {\n  overflow: auto;\n  justify-content: flex-start;\n}\n\n.mainVideoContainer .MuiPaper-root {\n  background-color: inherit !important;\n}\n\n.MuiTooltip-popper,\n.MuiTooltip-tooltip {\n  display: none !important;\n  pointer-events: none !important;\n}\n\n.CometChatApp .cometchat-thread-header__message-small {\n  min-height: 60px;\n}\n\n@media (min-width: 401px) and (max-width: 768px) {\n  .CometChatApp .cometchat-messages-wrapper {\n    width: 100%;\n    position: initial;\n  }\n\n  .showSidebarOnDesktop .cometchat-messages-wrapper {\n    position: absolute;\n  }\n}\n\n@media (max-width: 768px) {\n  .showSidebarOnDesktop .cometchat-root {\n    position: absolute;\n  }\n\n  .CometChatApp .cometchat-root {\n    position: absolute;\n  }\n}\n\n@media (max-width: 768px) {\n  .CometChatApp .conversations-wrapper {\n    min-width: initial;\n  }\n\n  .hideSideBarOnMobile .conversations-wrapper {\n    width: 100%;\n    min-width: 100%;\n  }\n\n  .dockedViewMobileDevice .conversations-wrapper {\n    min-width: 100%;\n  }\n\n  .showSidebarOnDesktop .conversations-wrapper {\n    width: 100%;\n    min-width: 100%;\n  }\n}",""]);const s=i},5179:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/collaborative_whiteboard_fill.25e29644e4591c341125.svg"},5259:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/**\n * CSS Isolation for Docked Button\n * Button lives outside iframe, vulnerable to host page CSS.\n * \n * 1. `all: revert !important` - Resets inherited CSS to browser defaults\n * 2. `!important` on all properties - Wins over host page styles\n * \n * Dynamic styles (bg, radius, position) applied via JS setProperty() in TSX.\n * Custom CSS can still override using `!important`.\n */\n\n.dockedBadgeCount {\n    all: revert !important;\n    display: flex !important;\n    height: 20px !important;\n    padding: 0px 8px !important;\n    flex-direction: column !important;\n    justify-content: center !important;\n    align-items: center !important;\n    border-radius: 20px !important;\n    background: #F44649 !important;\n    overflow: hidden !important;\n    color: #FFF !important;\n    text-align: center !important;\n    text-overflow: ellipsis !important;\n    font-size: 12px !important;\n    font-style: normal !important;\n    font-weight: normal !important;\n    position: absolute !important;\n    top: -6px !important;\n    right: -6px !important;\n    border: none !important;\n    margin: 0 !important;\n    line-height: 20px !important;\n    box-sizing: border-box !important;\n}\n\n.dockedButton {\n    all: revert !important;\n    position: fixed !important;\n    bottom: 20px !important;\n    width: 48px !important;\n    height: 48px !important;\n    color: #fff !important;\n    font-size: 24px !important;\n    border: none !important;\n    cursor: pointer !important;\n    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;\n    z-index: 1002 !important;\n    padding: 12px !important;\n    display: flex !important;\n    align-items: center !important;\n    justify-content: center !important;\n    margin: 0 !important;\n    outline: none !important;\n    text-decoration: none !important;\n    line-height: normal !important;\n    box-sizing: border-box !important;\n  }\n\n.chatToggleIcon {\n    all: revert !important;\n    width: 24px !important;\n    height: 24px !important;\n    display: block !important;\n    border: none !important;\n    margin: 0 !important;\n    padding: 0 !important;\n}\n  \n  .dockedAppWrapper {\n    position: fixed;\n    z-index: 1000;\n    bottom: 0px;\n    overflow: hidden;\n    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;\n  }",""]);const s=i},5266:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/download.2068ff3bb9a26d87d0e5.svg"},5275:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/sticker.54cf4f566ab9065ac0ef.svg"},5280:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,'.cometchat-ai-assistant-message-bubble {\n  flex-direction: column;\n  display: flex;\n  text-align: left;\n  justify-content: flex-start;\n  width: 100%;\n  max-width: 100%;\n  overflow: hidden;\n}\n\n.cometchat-ai-assistant-message-bubble * {\n  box-sizing: border-box;\n  max-width: 100%;\n  overflow: hidden;\n  line-height: 1.75;\n  margin: 0;\n  margin-bottom: var(--cometchat-margin-2);\n}\n\n.cometchat:has(> .cometchat-ai-assistant-message-bubble) {\n  margin-top: calc(var(--cometchat-margin-1) * -1)\n}\n\n.cometchat-ai-assistant-message-bubble>p:not([class]) {\n  text-align: left;\n  color: var(--cometchat-text-color-primary);\n}\n\n.cometchat-ai-assistant-message-bubble ol:not([class]) {\n  padding-left: 0px !important;\n  margin-top: 0px !important;\n  text-align: left !important;\n  color: var(--cometchat-text-color-primary);\n\n}\n\n.cometchat-ai-assistant-message-bubble li:not([class]) {\n  text-align: left !important;\n  color: var(--cometchat-text-color-primary);\n\n}\n\n.cometchat-ai-assistant-message-bubble img,\n.cometchat-ai-assistant-message-bubble pre,\n.cometchat-ai-assistant-message-bubble canvas,\n.cometchat-ai-assistant-message-bubble svg,\n.cometchat-ai-assistant-message-bubble video,\n.cometchat-ai-assistant-message-bubble figure,\n.cometchat-ai-assistant-message-bubble table {\n  vertical-align: top;\n}\n\n.cometchat-ai-assistant-message-bubble input[type="checkbox"] {\n  margin-right: var(--cometchat-margin-1);\n  position: relative;\n  top: 1px;\n}\n\n.cometchat-ai-assistant-message-bubble ol:not([class]),.cometchat-ai-assistant-message-bubble ul:not([class]) {\n  padding-left: var(--cometchat-padding-5) !important;\n  text-align: left !important;\n  color: var(--cometchat-text-color-primary);\n\n}\n\n.cometchat-ai-assistant-message-bubble ul:not([class]) {\n  text-align: left !important;\n  color: var(--cometchat-text-color-primary);\n\n}\n\n.cometchat-ai-assistant-message-bubble__code-block {\n  max-height: 300px;\n  overflow: auto;\n  border: 1px solid var(--cometchat-border-color-default);\n  width: 100%;\n}\n\n\n\n.cometchat-ai-assistant-message-bubble *:not(pre *) {\n  color: var(--cometchat-text-color-primary);\n  font-size: 14px;\n  font-family: var(--cometchat-font-family);\n}\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block,.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block *{\n  font-size: 14px;\n}\n\n.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar {\n  width: 0px;\n  height: 8px;\n  background: transparent;\n}\n\n.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-track {\n  background: transparent;\n}\n\n.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-thumb {\n  background: var(--cometchat-icon-color-secondary);\n  border-radius: var(--cometchat-radius-2);\n}\n\n.cometchat-ai-assistant-message-bubble table {\n  width: fit-content;\n  max-width: 100%;\n  table-layout: auto;\n  display: block;\n  overflow-x: auto;\n  border-radius: var(--cometchat-radius-2);\n  margin: var(--cometchat-margin-2) 0;\n  border-collapse: separate;\n  border-spacing: 0;\n  overflow: scroll;\n}\n\n/* Round only outer cells */\n.cometchat-ai-assistant-message-bubble tr:first-child th:first-child {\n  border-top-left-radius: var(--cometchat-radius-2);\n}\n.cometchat-ai-assistant-message-bubble tr:first-child th:last-child {\n  border-top-right-radius: var(--cometchat-radius-2);\n}\n.cometchat-ai-assistant-message-bubble tr:last-child td:first-child {\n  border-bottom-left-radius: var(--cometchat-radius-2);\n}\n.cometchat-ai-assistant-message-bubble tr:last-child td:last-child {\n  border-bottom-right-radius: var(--cometchat-radius-2);\n}\n.cometchat-ai-assistant-message-bubble th,\n.cometchat-ai-assistant-message-bubble td {\n  padding: var(--cometchat-padding-2);\n  border: 1px solid var(--cometchat-border-color-dark);\n  width: fit-content;\n  max-width: 100%;\n}\n\n.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar {\n  width: 0px;\n  height: 8px;\n  background: transparent;\n}\n\n.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-track {\n  background: transparent;\n}\n\n.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-thumb {\n  background: var(--cometchat-icon-color-secondary);\n  border-radius: var(--cometchat-radius-2);\n}\n\n.cometchat-ai-assistant-message-bubble td{\n  text-align: left !important;\n}\n.cometchat-ai-assistant-message-bubble th{\n  text-align: center !important;\n}\n.cometchat-ai-assistant-message-bubble th{\n  background: var(--cometchat-background-color-04);\n}\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__link{\n  text-decoration: underline;\n  color: var(--cometchat-text-color-highlight);\n}\n.cometchat-ai-assistant-message-bubble ul,.cometchat-ai-assistant-message-bubble ol,.cometchat-ai-assistant-message-bubble hr{\n  margin: 0;\n}\n.cometchat-ai-assistant-message-bubble li{\n  overflow: visible !important;\n  padding: 0;\n}\n.cometchat-ai-assistant-message-bubble > ol:first-child > li:first-child,\n.cometchat-ai-assistant-message-bubble > ul:first-child > li:first-child\n{\n  padding-top: 0px;\n}\n\n.cometchat-ai-assistant-message-bubble h1,\n.cometchat-ai-assistant-message-bubble h2,\n.cometchat-ai-assistant-message-bubble h3,\n.cometchat-ai-assistant-message-bubble h4,\n.cometchat-ai-assistant-message-bubble h5,\n.cometchat-ai-assistant-message-bubble h6 {\n  font-size: initial;\n  padding: var(--cometchat-padding-2) 0px;\n  margin: 0;\n}\n\n.cometchat-ai-assistant-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{\n  margin-top: var(--cometchat-margin-1);\n}\n\n.cometchat-ai-assistant-message-bubble > h1:first-child,\n.cometchat-ai-assistant-message-bubble > h2:first-child,\n.cometchat-ai-assistant-message-bubble > h3:first-child,\n.cometchat-ai-assistant-message-bubble > h4:first-child,\n.cometchat-ai-assistant-message-bubble > h5:first-child,\n.cometchat-ai-assistant-message-bubble > h6:first-child {\n  padding-top: 0px;\n}\n.cometchat-ai-assistant-message-bubble img{\n  max-height: 300px;\n  width: fit-content;\n  border-radius: var(--cometchat-radius-2);\n  margin-top: var(--cometchat-margin-2);\n}\n\n.cometchat-ai-assistant-message-bubble__image-intersection-start, .cometchat-ai-assistant-message-bubble__image-intersection-end{\n  display: none;\n}\n\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {\n  display: block;\n  margin-top: -0.5em;\n}\n\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) ~ img{\n  margin-top: var(--cometchat-margin-1);\n}\n\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:not(:has(+ .cometchat-ai-assistant-message-bubble__image-intersection-start)) {\n  display: block;\n}\n\n.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:last-child {\n  margin-bottom: 0;\n}\n\n.cometchat-ai-assistant-message-bubble > ul:first-child li:first-child > p:first-child{\npadding-top: 0px;\n}\n.cometchat-ai-assistant-message-bubble > ol:first-child li:first-child > p:first-child{\npadding-top: 0px;\n}\n\n.cometchat-ai-assistant-message-bubble > p:first-child{\n  padding-top: 0px;\n\n}',""]);const s=i},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,f={};function _(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=_.prototype;var y=v.prototype=new b;y.constructor=v,g(y,_.prototype),y.isPureReactComponent=!0;var E=Array.isArray,C=Object.prototype.hasOwnProperty,S={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)C.call(t,a)&&!w.hasOwnProperty(a)&&(o[a]=t[a]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in c=e.defaultProps)void 0===o[a]&&(o[a]=c[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return i=i(c=e),e=""===o?"."+A(c,0):o,E(i)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),R(i,t,a,"",function(e){return e})):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(c=0,o=""===o?".":o+":",E(e))for(var l=0;l<e.length;l++){var u=o+A(s=e[l],l);c+=R(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=R(s=s.value,t,a,u=o+A(s,l++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function I(e,t,n){if(null==e)return e;var r=[],a=0;return R(e,r,"","",function(e){return t.call(n,e,a++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},M={transition:null},D={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};t.Children={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=_,t.Fragment=a,t.Profiler=i,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=g({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)C.call(t,l)&&!w.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},5300:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_missed-voice-call.b52f9611ff85a6f468ee.svg"},5330:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* The main container for the video bubble, setting up basic layout, width,\n   padding, and flex properties for alignment and justification */\n.cometchat-video-bubble {\n    display: flex;\n    padding: 0;\n    flex-direction: column;\n    justify-content: center;\n    align-items: flex-start;\n    border-radius: var(--cometchat-radius-3, 12px);\n    max-width: 250px;\n    max-height: 350px;\n    overflow: hidden;\n    width: auto;\n    height: auto;\n    cursor: pointer;\n}\n\n/* Defines the body of the video bubble, ensuring the video or media inside\n   takes up the full available space with inherited border radius */\n.cometchat-video-bubble__body {\n    margin: 0;\n    border-radius: inherit;\n    height: 100%;\n    width: 100%;\n    object-fit: cover;\n    overflow: hidden;\n}\n\n/* Specific styling for incoming video bubbles, giving it a background color\n   for differentiation */\n.cometchat-video-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Specific styling for outgoing video bubbles, using the primary color as\n   the background to distinguish it from incoming bubbles */\n.cometchat-video-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}",""]);const s=i},5401:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=new URL(n(2496),n.b),d=new URL(n(2802),n.b),p=i()(a()),h=c()(l),m=c()(u),g=c()(d);p.push([e.id,`.cometchat-create-poll {\n  display: flex;\n  width: 420px;\n  height: 480px;\n  flex-direction: column;\n  align-items: center;\n  gap: var(--cometchat-padding-2, 8px);\n  flex-shrink: 0;\n  align-self: stretch;\n  background-color: var(--cometchat-background-color-01, #FFFFFF);\n  border-radius: var(--cometchat-radius-3, 12px);\n  overflow: hidden;\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n  position: relative;\n}\n\n.cometchat-create-poll__header {\n  padding: var(--cometchat-radius-3, 12px);\n  border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  align-self: stretch;\n}\n\n\n.cometchat-create-poll__header-title {\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading2-bold);\n  font-style: normal;\n  line-height: 120%;\n}\n\n.cometchat-create-poll__header-close-icon {\n  display: flex;\n  width: 24px;\n  height: 24px;\n  justify-content: center;\n  align-items: center;\n  mask-repeat: no-repeat;\n  background-color: var(--cometchat-icon-color-primary, #141414);\n  -webkit-mask-size: 100%;\n  mask-size: 100%;\n  -webkit-mask: url(${h}) center center no-repeat;\n  mask: url(${h}) center center no-repeat;\n  border: none;\n  cursor: pointer;\n}\n\n.cometchat-create-poll__body {\n  padding: var(--cometchat-padding-4, 16px);\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  margin: 0;\n  overflow: hidden;\n}\n\n.cometchat-create-poll__body-question {\n  text-align: left;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-create-poll__body-question-title {\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-heading4-medium);\n  font-style: normal;\n  line-height: 120%;\n}\n\n\n.cometchat-create-poll__body-question-input {\n  display: flex;\n  height: 36px;\n  padding: var(--cometchat-padding-2, 8px);\n  align-items: center;\n  gap: var(--cometchat-padding-1, 4px);\n  flex: 1 0 0;\n\n  border-radius: var(--cometchat-radius-2, 8px);\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  flex: 1 0 0;\n  width: 100%;\n  min-width: 90px;\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  outline: none;\n  /* border: none; */\n}\n\n.cometchat-create-poll__body-options-wrapper {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  padding-top: var(--cometchat-padding-5, 20px);\n  gap: var(--cometchat-padding-2, 8px);\n  margin-bottom: var(--cometchat-padding-2, 8px);\n  overflow: hidden;\n  max-height: 64%;\n}\n\n.cometchat-create-poll__body-options-title {\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-heading4-medium);\n  font-style: normal;\n}\n\n.cometchat-create-poll__body-options {\n  height: 100%;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: var(--cometchat-padding-2, 8px);\n  scrollbar-width: none;\n  overflow-y: scroll;\n}\n\n.cometchat-create-poll__body-option-input {\n  display: flex;\n  height: 36px;\n  padding: var(--cometchat-padding-2, 8px);\n  align-items: center;\n  gap: var(--cometchat-padding-1, 4px);\n  flex: 1 0 0;\n  border-radius: 8px;\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  color: var(--cometchat-text-color-primary, #141414);\n  width: 100%;\n  min-width: 90px;\n  flex: 1 0 0;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  outline: none;\n}\n\n.cometchat-create-poll__body-options-add-button {\n  display: flex;\n  justify-content: flex-start;\n  background-color: transparent;\n  border: none;\n  cursor: pointer;\n  text-align: left;\n  color: var(--cometchat-text-color-highlight, #6852D6);\n  font: var(--cometchat-font-caption1-medium);\n  font-style: normal;\n  line-height: 120%;\n  padding-bottom: var(--cometchat-padding-2);\n}\n\n.cometchat-create-poll__body-option-remove-button {\n  -webkit-mask: url(${h}) center center no-repeat;\n  mask: url(${h}) center center no-repeat;\n  height: 24px;\n  width: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--cometchat-icon-color-secondary, #A1A1A1);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  cursor: pointer;\n}\n\n.cometchat-create-poll__button {\n  width: 100%;\n  height: 40px;\n}\n\n\n.cometchat-create-poll__button>.cometchat{\n  height: 100%;\n  width: 100%;\n}\n.cometchat-create-poll__button .cometchat-button{\n  border: none;\n  cursor: pointer;\n  text-align: left;\n  color: var(--cometchat-primary-button-icon, #FFF);\n  font: var(--cometchat-font-button-medium);\n  font-style: normal;\n  line-height: 120%;\n  background: var(--cometchat-primary-button-background, #6852D6);\n  border-radius: var(--cometchat-radius-2, 8px);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  cursor: pointer;\n  height: 100%;\n  width: 100%;\n}\n.cometchat-create-poll__button-disabled .cometchat-button {\n  background: var(--cometchat-background-color-04, #E8E8E8);\n  color: var(--cometchat-static-white, #FFF);\n  pointer-events: none;\n}\n\n.cometchat-create-poll__body-option {\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n  position: relative;\n  align-items: center;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-create-poll-backdrop {\n  background: #141414CC;\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  z-index: 10;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-create-poll__footer {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  position: absolute;\n  bottom: 0px;\n  border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-5) var(--cometchat-padding-4, 16px);\n  width: 100%;\n\n}\n\n.cometchat-create-poll__error-icon {\n  -webkit-mask: url(${m}) center center no-repeat;\n  mask: url(${m}) center center no-repeat;\n  height: 24px;\n  width: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--cometchat-error-color, #F44649);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  cursor: pointer;\n}\n\n.cometchat-create-poll__error {\n  display: flex;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n  justify-content: center;\n  align-items: center;\n  gap: var(--cometchat-padding-1, 4px);\n  align-self: stretch;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: rgba(244, 70, 73, 0.10);\n}\n\n.cometchat-create-poll__error-text{\n  color: var(--cometchat-error-color, #F44649);\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-create-poll__loading-icon {\n  -webkit-mask: url(${g}) center center no-repeat;\n  mask: url(${g}) center center no-repeat;\n  height: 24px;\n  width: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--cometchat-static-white, #FFF);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  cursor: pointer;\n}\n.cometchat-create-poll__body-options-add-button-disabled{\n  color: var(--cometchat-text-color-disabled, #DCDCDC);\n  font: var(--cometchat-font-caption1-medium);\n}\n\n@media (max-width: 768px) {\n .cometchat-create-poll{\n  width: 360px;\n }\n}`,""]);const f=p},5422:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-MediumItalic.3dc683bc0f0d56bae3f8.ttf"},5500:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/Spinner-Gradient-1.f2f8d4c6a11b46ae64da.svg"},5545:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6575),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/* Message Composer container - main wrapper */\n.cometchat-message-composer {\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-end;\n    align-items: center;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-01);\n    width: 100%;\n    height: 100%;\n    position: relative;\n    overflow: visible;\n}\n\n/* Input wrapper - contains input and link popover */\n.cometchat-message-composer__input-wrapper {\n    position: relative;\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n}\n\n/* Send button styling */\n.cometchat-message-composer__send-button {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    padding: var(--cometchat-padding-1, 4px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    border-radius: 60px;\n    background: var(--cometchat-background-color-04);\n}\n\n/* Default state for the send button */\n.cometchat-message-composer__send-button .cometchat-button {\n    cursor: default;\n}\n\n/* Active state for the send button */\n.cometchat-message-composer__send-button-active {\n    cursor: pointer;\n    background: var(--cometchat-primary-color);\n}\n\n\n/* Sticker button popover content */\n.cometchat-message-composer__auxilary-button-view-sticker-button .cometchat-popover__content {\n    height: 300px;\n    overflow: hidden;\n    width: 272px;\n}\n\n/* Emoji keyboard button popover content */\n.cometchat-message-composer__emoji-keyboard-button .cometchat-popover__content {\n    height: 300px;\n    width: 300px;\n    overflow: hidden;\n}\n\n/* Action sheet button popover content */\n.cometchat-message-composer__secondary-button-view-attachment-button .cometchat-popover__content {\n    height: 332px;\n    border: none;\n}\n\n/* Voice recording button popover content */ \n.cometchat-message-composer__voice-recording-button .cometchat-popover__content {\n    width: fit-content;\n    max-height: 300px;\n    height: fit-content;\n    min-height: 200px;\n}\n\n.cometchat-message-composer__voice-recording-button .cometchat-media-recorder {\n    max-height: 300px;\n    min-height: 220px;\n    overflow: hidden;\n}\n\n.cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recording {\n    max-height: 300px;\n    min-height: 220px;\n}\n\n.cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recorded {\n    max-height: 300px;\n    min-height: 220px;\n    justify-content: space-between;\n}\n\n.cometchat-message-composer__input .cometchat-mentions>span {\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n.cometchat-message-composer__input .cometchat-mentions-you>span {\n    color: var(--cometchat-warning-color, #FFAB00);\n    font: var(--cometchat-font-body-regular);\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* Strip rich text formatting from mentions when wrapped in formatting tags */\n.cometchat-message-composer__input b .cometchat-mentions>span,\n.cometchat-message-composer__input strong .cometchat-mentions>span,\n.cometchat-message-composer__input i .cometchat-mentions>span,\n.cometchat-message-composer__input em .cometchat-mentions>span,\n.cometchat-message-composer__input u .cometchat-mentions>span,\n.cometchat-message-composer__input s .cometchat-mentions>span,\n.cometchat-message-composer__input strike .cometchat-mentions>span,\n.cometchat-message-composer__input del .cometchat-mentions>span,\n.cometchat-message-composer__input b .cometchat-mentions-you>span,\n.cometchat-message-composer__input strong .cometchat-mentions-you>span,\n.cometchat-message-composer__input i .cometchat-mentions-you>span,\n.cometchat-message-composer__input em .cometchat-mentions-you>span,\n.cometchat-message-composer__input u .cometchat-mentions-you>span,\n.cometchat-message-composer__input s .cometchat-mentions-you>span,\n.cometchat-message-composer__input strike .cometchat-mentions-you>span,\n.cometchat-message-composer__input del .cometchat-mentions-you>span {\n    font-weight: normal;\n    font-style: normal;\n    text-decoration: none;\n}\n\n/* Mentions inside inline code should inherit code styling */\n.cometchat-message-composer__input code .cometchat-mentions>span,\n.cometchat-message-composer__input code .cometchat-mentions-you>span {\n    color: inherit !important;\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: inherit !important;\n    font-weight: normal !important;\n    font-style: normal !important;\n    text-decoration: none !important;\n}\n\n/* Mentions inside code blocks should inherit code block styling */\n.cometchat-message-composer__input pre .cometchat-mentions>span,\n.cometchat-message-composer__input pre .cometchat-mentions-you>span {\n    color: inherit !important;\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;\n    font-size: inherit !important;\n    font-weight: normal !important;\n    font-style: normal !important;\n    text-decoration: none !important;\n}\n\n/* Styling for buttons with no specific class */\n .cometchat-message-composer__buttons .cometchat-button {\n    width: fit-content;\n    background: transparent;\n    padding: 0;\n    gap: 0;\n    height: 24px;\n}\n\n.cometchat-message-composer__unblock-button {\n    color: var(--cometchat-neutral-color-900);\n    font: var(--cometchat-font-body-regular);\n    cursor: pointer;\n    width: 100%;\n    height: 40px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: transparent;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-dark);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n}\n\n/* Composer header wrapper */\n.cometchat-message-composer__header {\n    width: 100%;\n    height: fit-content;\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px);\n    justify-content: space-between;\n    align-items: flex-start;\n    align-self: stretch;\n    flex-direction: column;\n}\n\n.cometchat-message-composer__header-error-state {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1);\n    flex: 1 0 0;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-1, 4px);\n    background: var(--cometchat-background-color-02);\n}\n\n.cometchat-message-composer__header-error-state-icon-wrapper {\n    width: 20px;\n    height: 20px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-error-color);\n    border-radius: var(--cometchat-radius-max);\n}\n\n.cometchat-message-composer__header-error-state-icon {\n    -webkit-mask: url(${d}) center center no-repeat;\n    mask: url(${d}) center center no-repeat;\n    width: 20px;\n    height: 20px;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    background: var(--cometchat-static-white);\n}\n\n.cometchat-message-composer__header-error-state-text {\n    overflow: hidden;\n    color: var(--cometchat-error-color);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-caption1-regular);\n}\n\n/* Mentions wrapper styling */\n.cometchat-mention-list {\n    overflow: auto;\n    display: flex;\n    flex-direction: column;\n    z-index: 2;\n    min-height: 45px;\n    padding: 0 0 1px 0;\n    width: fit-content;\n    min-width: 320px;\n    bottom: 100%;\n    left: 0;\n    position: absolute;\n    max-height: 336px;\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-background-color-01);\n    background: var(--cometchat-background-color-01);\n    box-shadow: 0 12px 16px 4px rgba(16, 24, 40, 0.08), 0 4px 6px 4px rgba(16, 24, 40, 0.03);\n    scrollbar-width: none;\n}\n\n.cometchat-mention-list>.cometchat {\n    border-radius: inherit;\n}\n\n.cometchat-mention-list .cometchat-users .cometchat-list{\n    max-height: 336px;\n}\n\n.cometchat-mention-list .cometchat-list .cometchat-list__header-title{\n    display: none;\n}\n.cometchat-mention-list .cometchat-list__item-wrapper{\n    cursor: pointer;\n}\n\n/* Message input area */\n.cometchat-message-composer__input {\n    width: 100%;\n    outline: none;\n    background: transparent;\n    overflow-y: auto;\n    min-height: 30px;\n    user-select: text;\n    white-space: pre-wrap;\n    overflow-wrap: break-word;\n    text-align: left;\n    box-sizing: border-box;\n    border-bottom: 1px solid var(--cometchat-border-color-light);\n    padding: var(--cometchat-padding-3, 12px);\n    color: var(--cometchat-text-color-primary);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n    max-height: 150px;\n    scrollbar-width: none;\n    cursor: text;\n}\n\n/* Auxiliary button container */\n.cometchat-message-composer__auxilary-button-view {\n    display: flex;\n    justify-content: flex-start;\n    gap: var(--cometchat-spacing-3, 12px);\n    width: 100%;\n    align-items: center;\n}\n/* sticker button placement */\n.cometchat-message-composer__sticker-button-view {\n    display: flex;\n    justify-content: flex-start;\n    gap: 12px;\n    width: fit-content;\n    align-items: center;\n}\n/* default  buttons placement */\n.cometchat-message-composer__default-buttons{\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: flex-start;\n    gap: var(--cometchat-padding-4);\n    width:fit-content;\n    margin-right: auto;\n}\n/* Placeholder styling when input is empty */\n.cometchat-message-composer__input:empty:before {\n    content: attr(data-placeholder);\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    overflow: hidden;\n    color: var(--cometchat-text-color-tertiary);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n}\n\n/* Send button icon default styling */\n .cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-static-white);\n}\n\n/* Icon styling for buttons with no specific class */\n .cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-secondary);\n}\n\n .cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-primary-color, #6852D6);\n}\n\n .cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {\n    background: var(--cometchat-static-white);\n}\n\n/* Active emoji keyboard button icon */\n .cometchat-message-composer__buttons .cometchat-message-composer__emoji-keyboard-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Active action sheet button icon */\n .cometchat-message-composer__buttons .cometchat-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Active voice recording button icon */\n .cometchat-message-composer__buttons .cometchat-message-composer__voice-recording-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n\n/* Active stickerkeyboard button icon */\n .cometchat-message-composer__buttons .cometchat-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {\n    background: var(--cometchat-primary-color);\n}\n\n/* Remove vertical padding when code block is active (pre element has its own padding) */\n.cometchat-message-composer__input--code-block {\n    padding-top: 0;\n    padding-bottom: 0;\n    min-height: auto;\n}\n.cometchat-message-composer__input-mobile{\n    font: var( --cometchat-font-heading4-regular);\n}\n/**\n * Default styling for each options in actionsheet\n */\n.cometchat-message-composer__secondary-button-view-attachment-button .cometchat-action-sheet{\n    min-width: 200px;\n}\n.cometchat-message-composer__secondary-button-view-attachment-button-1 .cometchat-popover__content{\nheight: 58px;\n}\n.cometchat-message-composer__secondary-button-view-attachment-button-2 .cometchat-popover__content{\n    height: 114px; \n}\n.cometchat-message-composer__secondary-button-view-attachment-button-3 .cometchat-popover__content{\n    height: 170px; \n\n}\n.cometchat-message-composer__secondary-button-view-attachment-button-4 .cometchat-popover__content{\n    height: 230px; \n\n}\n.cometchat-message-composer__secondary-button-view-attachment-button-5 .cometchat-popover__content{\n    height: 285px; \n}\n.cometchat-message-composer .cometchat-edit-preview__subtitle{\n    height: fit-content;\n    max-height: 100px;\n    overflow: hidden;\n    text-overflow: ellipsis; \n    white-space: nowrap;\n}\n.cometchat-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar,\n.cometchat-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar,\n.cometchat-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar-thumb,\n.cometchat-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar,\n.cometchat-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n\n.cometchat-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar {\n    background: transparent;\n    height: 0px;\n    width: 0px;\n}\n\n.cometchat-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar-thumb {\n    background: rgb(232, 229, 229);\n    border-radius: 8px;\n}\n\n.cometchat-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar {\n    background: transparent;\n    width: 0px;\n}\n\n.cometchat-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar-thumb {\n    background: rgb(232, 229, 229);\n    border-radius: 8px;\n}\n\n\n/* Formatting Toolbar Container - fixed toolbar below input */\n.cometchat-message-composer__formatting-toolbar {\n    display: flex;\n    width: 100%;\n    padding: 0;\n    border-bottom: none;\n    border-top: none;\n    border-right: none;\n    border-left: none;\n    background: var(--cometchat-background-color-02);\n    border-radius: var(--cometchat-radius-2, 8px) var(--cometchat-radius-2, 8px) 0 0;\n}\n\n/* Link styling in input */\n.cometchat-message-composer__input a {\n    color: var(--cometchat-primary-color);\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n.cometchat-message-composer__input a:hover {\n    text-decoration: underline;\n    opacity: 0.8;\n}\n\n/* List styling - remove default margin and padding */\n.cometchat-message-composer__input ol,\n.cometchat-message-composer__input ul {\n    margin: 0 !important;\n    padding: 0 !important;\n    padding-left: var(--cometchat-padding-3, 12px) !important;\n    list-style-position: outside;\n}\n\n/* Nested list styling - bullet/number progression */\n/* Ordered: 1. → a. → i. */\n.cometchat-message-composer__input ol {\n    list-style-type: decimal;\n}\n.cometchat-message-composer__input ol ol {\n    list-style-type: lower-alpha;\n}\n.cometchat-message-composer__input ol ol ol {\n    list-style-type: lower-roman;\n}\n\n/* Unordered: disc → circle → square */\n.cometchat-message-composer__input ul {\n    list-style-type: disc;\n}\n.cometchat-message-composer__input ul ul {\n    list-style-type: circle;\n}\n.cometchat-message-composer__input ul ul ul {\n    list-style-type: square;\n}\n\n/* Nested lists inside list items need proper spacing */\n.cometchat-message-composer__input li > ol,\n.cometchat-message-composer__input li > ul {\n    margin-top: 0 !important;\n    margin-bottom: 0 !important;\n}\n\n.cometchat-message-composer__input li {\n    margin: 0 !important;\n    padding: 0 !important;\n}\n\n/* Blockquote styling with left border */\n.cometchat-message-composer__input blockquote {\n    margin: 0 !important;\n    padding: 0 !important;\n    padding-left: var(--cometchat-padding-3, 12px) !important;\n    border-left: 4px solid var(--cometchat-border-color-default, #E8E8E8) !important;\n    color: var(--cometchat-text-color-primary);\n}\n\n/* Paragraph styling - remove default margin */\n.cometchat-message-composer__input p {\n    margin: 0 !important;\n    padding: 0 !important;\n}\n\n/* Inline code styling */\n.cometchat-message-composer__input code {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    padding: var(--cometchat-padding-1, 2px) var(--cometchat-padding-1, 4px);\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n}\n\n/* Inline code with explicit class - monospace font via CSS variables */\n.cometchat-message-composer__input code.cometchat-rich-text-code-inline {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    padding: var(--cometchat-padding-1, 2px) var(--cometchat-padding-1, 4px);\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    display: inline;\n}\n\n/* Code block styling */\n.cometchat-message-composer__input pre {\n    background: var(--cometchat-background-color-02, #F5F5F5);\n    border: 1px solid var(--cometchat-border-color-light, #E8E8E8);\n    border-radius: var(--cometchat-radius-2, 8px);\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n    margin: 0;\n    overflow-x: auto;\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n}\n\n.cometchat-message-composer__input pre code {\n    background: transparent;\n    color: var(--cometchat-text-color-primary);\n    padding: 0;\n    border: none;\n    border-radius: 0;\n}\n\n.cometchat-message-composer__input pre.cometchat-rich-text-code-block code {\n    color: var(--cometchat-text-color-primary);\n    font: var(--cometchat-font-caption1-regular);\n    font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n    font-style: normal;\n}\n`,""]);const p=u},5594:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* CometChatLinkPopover - Link popover shown on click */\n\n.cometchat-link-popover {\n  position: absolute;\n  z-index: 1000;\n  transform: translateY(-100%);\n}\n\n.cometchat-link-popover__content {\n  position: relative;\n  background: var(--cometchat-background-color-01, #fff);\n  border-radius: var(--cometchat-radius-4, 16px);\n  padding: var(--cometchat-padding-6, 24px);\n  width: 320px;\n  max-width: 90vw;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-spacing-3, 12px);\n  border: 1px solid var(--cometchat-border-color-light);\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-link-popover__close {\n  position: absolute;\n  top: var(--cometchat-spacing-4, 16px);\n  right: var(--cometchat-spacing-4, 16px);\n  width: 24px;\n  height: 24px;\n  border: none;\n  background: transparent;\n  cursor: pointer;\n  font-size: 20px;\n  line-height: 1;\n  color: var(--cometchat-icon-color-secondary, #727272);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: var(--cometchat-radius-1, 4px);\n  padding: 0;\n  transition: background-color 0.2s ease;\n}\n\n.cometchat-link-popover__close:hover {\n  background: var(--cometchat-background-color-02, #f5f5f5);\n  color: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-link-popover__text {\n  font: var(--cometchat-font-heading4-bold);\n  color: var(--cometchat-text-color-primary, #141414);\n  padding-right: var(--cometchat-padding-7, 28px);\n  word-break: break-word;\n  text-align: left;\n}\n\n.cometchat-link-popover__url {\n  font: var(--cometchat-font-body-regular);\n  color: var(--cometchat-primary-color, #6852d6);\n  text-decoration: none;\n  display: block;\n  word-break: break-all;\n  text-align: left;\n}\n\n.cometchat-link-popover__url:hover {\n  text-decoration: underline;\n}\n\n.cometchat-link-popover__actions {\n  display: flex;\n  gap: var(--cometchat-spacing-3, 12px);\n}\n\n/* Button wrappers — shared */\n.cometchat-link-popover__button-edit,\n.cometchat-link-popover__button-remove {\n  flex: 1;\n  display: flex;\n  height: 40px;\n}\n\n.cometchat-link-popover__button-edit > .cometchat,\n.cometchat-link-popover__button-remove > .cometchat {\n  width: 100%;\n  height: 100%;\n}\n\n/* Shared button styles */\n.cometchat-link-popover__button-edit .cometchat-button,\n.cometchat-link-popover__button-remove .cometchat-button {\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n  border-radius: var(--cometchat-radius-2, 8px);\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n  height: 100%;\n  width: 100%;\n}\n\n/* Shared button text */\n.cometchat-link-popover__button-edit .cometchat-button .cometchat-button__text,\n.cometchat-link-popover__button-remove .cometchat-button .cometchat-button__text {\n  font: var(--cometchat-font-button-medium);\n}\n\n/* Edit button — specific */\n.cometchat-link-popover__button-edit .cometchat-button {\n  background: var(--cometchat-background-color-01, #fff);\n  border: 1px solid var(--cometchat-border-color-default, #e8e8e8);\n}\n\n.cometchat-link-popover__button-edit .cometchat-button:hover {\n  background: var(--cometchat-background-color-02, #f5f5f5);\n}\n\n.cometchat-link-popover__button-edit .cometchat-button .cometchat-button__text {\n  color: var(--cometchat-text-color-primary, #141414);\n}\n\n/* Remove button — specific */\n.cometchat-link-popover__button-remove .cometchat-button {\n  background: var(--cometchat-error-color, #f44336);\n  border: none;\n}\n\n.cometchat-link-popover__button-remove .cometchat-button .cometchat-button__text {\n  color: var(--cometchat-static-white, #fff);\n}\n",""]);const s=i},5630:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/send-message.fa7501d52cb01566a038.svg"},5637:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/status_delivered.eda17954854636ebc910.svg"},5644:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4042),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-messages-wrapper .cometchat-message-list {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.messages-wrapper .cometchat-list-hide-scrollbar .cometchat-list__body::-webkit-scrollbar,\n.messages-wrapper .cometchat-list-hide-scrollbar .cometchat-list__body::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.messages-wrapper .cometchat-header__info {\n    -webkit-mask: url(${d}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    -webkit-mask-size: contain;\n    width: 24px;\n    height: 24px;\n    cursor: pointer;\n}\n\n.messages-wrapper .message-composer-blocked {\n    display: flex;\n    width: 100%;\n    height: 48px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-5, 20px);\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex-shrink: 0;\n    background: var(--cometchat-background-color-04, #E8E8E8);\n}\n\n.messages-wrapper .message-composer-blocked__text {\n    color: var(--cometchat-text-color-secondary, #727272);\n    font: var(--cometchat-font-body-regular);\n}\n\n.messages-wrapper .message-composer-blocked__text>a {\n    text-decoration: underline;\n    text-decoration-color: var(--cometchat-primary-color);\n    cursor: pointer;\n    color: var(--cometchat-primary-color);\n}\n\n.messages-wrapper .cometchat-header__info:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.messages-wrapper .cometchat-message-header__conversation-summary-button .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-messages-wrapper .cometchat-message-header__menu {\n    gap: 16px;\n}\n\n.cometchat-messages-wrapper .cometchat-message-composer {\n    margin: 0px 8px 8px 8px;\n    width: auto;\n    height: auto;\n}\n\n.cometchat-messages-wrapper .cometchat-message-list__shimmer {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-header-wrapper {\n    height: 64px;\n    width: 100%;\n    flex-basis: auto;\n    background: var(--cometchat-background-color-03)\n}\n\n.cometchat-message-list-wrapper {\n    width: 100%;\n    height: 100%;\n    flex-basis: auto;\n    overflow: hidden;\n}\n\n.cometchat-message-list-wrapper>.cometchat {\n    height: 100%;\n    overflow: hidden;\n}\n\n.cometchat-composer-wrapper {\n    width: 100%;\n    height: fit-content;\n    flex-basis: auto;\n}\n\n.cometchat-messages-wrapper {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    overflow: hidden;\n}\n\n.cometchat-messages-wrapper .cometchat-message-header .cometchat-list-item {\n    cursor: pointer;\n}\n\n.cometchat-messages-wrapper .cometchat-message-header .cometchat-list-item .cometchat-list-item__body-title {\n    display: initial;\n}\n\n.cometchat-messages-wrapper .cometchat-list__header {\n    border-right: none;\n}\n\n.message-composer-blocked__text-unblock {\n    text-decoration: underline;\n    color: var(--cometchat-primary-color);\n    cursor: pointer;\n}\n\n.cometchat-threaded-message .cometchat-message-list__flag-message-dialog-wrapper {\n    position: absolute;\n}\n\n@media (max-width: 768px) {\n    .cometchat-messages-wrapper {\n        width: 100vw;\n        position: fixed;\n        top: 0px;\n        left: 0px;\n        z-index: 3;\n    }\n}\n\n.cometchat-call-bubble button:focus,\n.cometchat-call-bubble button:focus-visible {\n    outline: none;\n}\n\nbutton.cometchat-reactions__reaction-you:hover {\n    border-color: var(--cometchat-extended-primary-color-300, #CCC4F1);\n}\n\nbutton.cometchat-reactions__reaction:hover {\n    border-color: var(--cometchat-border-color-light, #F5F5F5);\n}`,""]);const p=u},5681:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-action-bubble {\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-3, 12px);\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1px solid var(--cometchat-border-color-default);\n    background: var(--cometchat-background-color-02);\n}\n\n.cometchat-action-bubble__text {\n    color: var(--cometchat-text-color-secondary);\n    text-align: center;\n    font: var(--cometchat-font-caption1-regular);\n}\n\n.cometchat-action-bubble__icon {\n    display: none;\n}",""]);const s=i},5694:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/chats.5adfcfafa4cc0d303184.svg"},5724:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/outgoing_video.5381c4a37cb744fc30a7.svg"},5766:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/call_made.e084ced6071c98821ebc.svg"},5787:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/checkbox_tick.c8c052b7695f577cad91.svg"},5896:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/pause.05902e314b4e9feca993.svg"},5934:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-ongoing-call,.cometchat:has(> .cometchat-ongoing-call) {\n    width: 100%;\n    height: 100%;\n    border-radius: 0;\n    border: none;\n    position: absolute;\n    left: 0px;\n    top: 0px;\n    z-index: 10;\n}\n",""]);const s=i},6061:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-users {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex-shrink: 0;\n  background: var(--cometchat-background-color-01, #FFF);\n  position: relative;\n  /* Prevent native text selection highlight when using Shift+Click to select user ranges */\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n}\n\n/* Allow text selection in input fields */\n.cometchat-users input,\n.cometchat-users .cometchat-search-bar__input {\n  user-select: text;\n  -webkit-user-select: text;\n  -moz-user-select: text;\n  -ms-user-select: text;\n}\n\n/* Hide selection highlight only for list items (not inputs) */\n.cometchat-users__list-item::selection,\n.cometchat-users__list-item *::selection {\n  background: transparent;\n  color: inherit;\n}\n\n.cometchat-users__empty-state-view {\n  display: flex;\n  flex-direction: column;\n}\n\n.cometchat-users__empty-state-view,\n.cometchat-users__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n\n.cometchat-users__empty-state-view-body,\n.cometchat-users__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-users__empty-state-view-body-title,\n.cometchat-users__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-users__empty-state-view-body-description,\n.cometchat-users__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-users__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #FFF);\n\n}\n\n.cometchat-users__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  width: 100%;\n  min-width: 240px;\n  max-width: 1440px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-users__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n}\n\n.cometchat-users__shimmer-item-body {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-users__shimmer-item-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-users__shimmer-item-body-subtitle {\n  width: 25%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-users__list-item-online .cometchat-list-item__status {\n  width: 14px;\n  height: 14px;\n  margin-right: -12px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-success-color, #09C26F);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50, #FFFFFF);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-users__list-item-active .cometchat-list-item {\n  background-color: var(--cometchat-white-pressed, #E8E8E8)\n}\n\n.cometchat-users__list-item {\n  cursor: pointer;\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n}\n\n.cometchat-users__list-item .cometchat-avatar {\n  width: 40px;\n  height: 40px;\n}\n\n.cometchat-users__list-item .cometchat-list-item__leading-view {\n  width: 40px;\n  height: 40px;\n}\n\n.cometchat-users .cometchat-list-item__body {\n  padding: 0px;\n  min-height: 43px;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}\n\n.cometchat-users__selected-preview {\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  width: 100%;\n  max-height: 30vh;\n  padding-top: var(--cometchat-padding-4, 16px);\n  padding-left: var(--cometchat-padding-4, 16px);\n  padding-right: var(--cometchat-padding-4, 16px);\n  padding-bottom: 0;\n  background: var(--cometchat-background-color-01, #FFF);\n  border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  box-sizing: border-box;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 10;\n}\n\n/* Hide scrollbar when showScrollbar is false */\n.cometchat-users__selected-preview-hide-scrollbar {\n  scrollbar-width: none; /* Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n}\n\n.cometchat-users__selected-preview-hide-scrollbar::-webkit-scrollbar {\n  display: none; /* Chrome, Safari, Opera */\n}\n\n.cometchat-users__selected-preview-container {\n  display: flex;\n  flex-wrap: wrap;\n  gap: var(--cometchat-padding-2, 8px);\n  max-height: calc(2 * (32px + var(--cometchat-padding-2, 8px)));\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n\n/* Hide scrollbar when showScrollbar is false */\n.cometchat-users__selected-preview-container-hide-scrollbar {\n  scrollbar-width: none; /* Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n}\n\n.cometchat-users__selected-preview-container-hide-scrollbar::-webkit-scrollbar {\n  display: none; /* Chrome, Safari, Opera */\n}\n\n.cometchat-users__selected-preview-chip {\n  display: flex;\n  align-items: center;\n  gap: var(--cometchat-padding-2, 8px);\n  border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n  padding: var(--cometchat-padding-1, 4px);\n  background: var(--cometchat-background-color-03, #F5F5F5);\n  border-radius: var(--cometchat-radius-max, 1000px);\n  height: 32px;\n  box-sizing: border-box;\n  flex-shrink: 0;\n}\n\n.cometchat-users__selected-preview-chip .cometchat-avatar {\n  width: 24px;\n  height: 24px;\n  flex-shrink: 0;\n}\n.cometchat-users__selected-preview-chip .cometchat-avatar .cometchat-avatar__text {\n  font: var( --cometchat-font-caption1-bold);\n}\n\n.cometchat-users__selected-preview-chip-name {\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-body-medium);\n  max-width: 48px;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.cometchat-users__selected-preview-chip-close {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 16px;\n  height: 16px;\n  padding: 0;\n  border: none;\n  background: transparent;\n  cursor: pointer;\n  flex-shrink: 0;\n}\n\n.cometchat-users__selected-preview-chip-close img {\n  width: 16px;\n  height: 16px;\n  opacity: 0.6;\n  transition: opacity 0.2s;\n}\n\n.cometchat-users__selected-preview-chip-close:hover img {\n  opacity: 1;\n}\n\n.cometchat-users__selected-preview-chip-close-button {\n  border: none;\n  background: none;\n  cursor: pointer;\n  user-select: none;\n  flex-shrink: 0;\n}\n\n.cometchat-users__selected-preview-chip-close-button .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  padding: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n}\n\n.cometchat-users__selected-preview-chip-close-button .cometchat-button .cometchat-button__icon {\n  height: 24px;\n  width: 24px;\n  background: var(--cometchat-icon-color-secondary);\n}",""]);const s=i},6082:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8065),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-stream-message-bubble * {\n  box-sizing: border-box;\n  max-width: 100%;\n  overflow: hidden;\n  line-height: 1.75;\n  margin: 0;\n  margin-bottom: var(--cometchat-margin-2);\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__copy {\n  mask: url(${d}) center center no-repeat;\n  -webkit-mask: url(${d}) center center no-repeat;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  align-self: flex-start;\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n  height: 20px;\n  width: 20px;\n  background: var(--cometchat-icon-color-secondary);\n\n}\n\n.cometchat:has(> .cometchat-stream-message-bubble) {\n  margin-top: calc(var(--cometchat-margin-1) * -1)\n}\n\n.cometchat-stream-message-bubble {\n  overflow: hidden;\n  text-align: left;\n}\n\n.cometchat-message-bubble__wrapper {\n  align-items: center;\n}\n\n\n/* Target all <p> tags without a class */\n.cometchat-stream-message-bubble>p:not([class]) {\n  text-align: left;\n}\n\n.cometchat-stream-message-bubble>ol:not([class]) {\n  padding-left: 0px !important;\n  margin-top: 0px !important;\n  text-align: left !important;\n\n}\n\n.cometchat-stream-message-bubble img,\n.cometchat-stream-message-bubble pre,\n.cometchat-stream-message-bubble canvas,\n.cometchat-stream-message-bubble svg,\n.cometchat-stream-message-bubble video,\n.cometchat-stream-message-bubble figure,\n.cometchat-stream-message-bubble table {\n  vertical-align: top;\n}\n\n.cometchat-stream-message-bubble input[type="checkbox"] {\n  margin-right: var(--cometchat-margin-1);\n  position: relative;\n  top: 1px;\n}\n\n.cometchat-stream-message-bubble li:not([class]) {\n  text-align: left !important;\n\n}\n\n.cometchat-stream-message-bubble ol:not([class]),.cometchat-stream-message-bubble  ul:not([class]) {\n  padding-left: var(--cometchat-padding-5) !important;\n  text-align: left !important;\n\n}\n\n.cometchat-stream-message-bubble ul:not([class]) {\n  text-align: left !important;\n\n}\n.cometchat-stream-message-bubble__code-block {\n  max-height: 300px;\n  overflow: auto;\n  border: 1px solid var(--cometchat-border-color-default);\n  width: 100%;\n\n}\n\n.cometchat-stream-message-bubble *:not(pre *) {\n  color: var(--cometchat-text-color-primary);\n  font-size: 14px;\n  font-family: var(--cometchat-font-family);\n}\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block,.cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block *{\n  font-size: 14px;\n}\n.cometchat-stream-message-bubble__thinking {\n  border-radius: 16px;\n  animation: fadeIn 0.5s ease;\n  position: relative;\n  overflow: hidden;\n  color: #717680;\n  font: var(--cometchat-font-body-regular);\n  display: flex;\n  align-items: center;\n  justify-content: flex-start;\n  align-self: flex-start;\n  height: fit-content;\n  width: fit-content;\n  min-width: fit-content;\n  padding-top: 1px;\n}\n\n\n.cometchat-stream-message-bubble__thinking::after {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: -60%;\n  width: 60%;\n  height: 100%;\n  background: var( --cometchat-text-shimmer-gradient-color);\n  animation: shimmer 1.5s infinite;\n  pointer-events: none;\n  opacity: 0.7;\n}\n\n.cometchat-stream-message-bubble__tool-call-text {\n  width: fit-content;\n  text-align: left;\n  color: var(--cometchat-text-color-secondary);\n  padding-top: 1px;\n\n}\n\n.cometchat-stream-message-bubble__thinking {\n  align-items: flex-start;\n  border-radius: 0px;\n}\n\n.cometchat-stream-message-bubble__thinking>.cometchat-stream-message-bubble__thinking-text {\n  border-radius: 0px;\n  color: var(--cometchat-text-color-secondary);\n}\n.cometchat-stream-message-bubble__code-block::-webkit-scrollbar {\n  width: 0px;\n  height: 8px;\n  background: transparent;\n}\n\n.cometchat-stream-message-bubble__code-block::-webkit-scrollbar-track {\n  background: transparent;\n}\n\n.cometchat-stream-message-bubble__code-block::-webkit-scrollbar-thumb {\n  background: var(--cometchat-icon-color-secondary);\n  border-radius: 4px;\n}\n\n.cometchat-stream-message-bubble table {\n  width: fit-content;\n  max-width: 100%;\n  table-layout: auto;\n  display: block;\n  overflow-x: auto;\n  border-radius: var(--cometchat-radius-2);\n  margin: var(--cometchat-margin-2) 0;\n  border-collapse: separate;\n  border-spacing: 0;\n  overflow: hidden;\n}\n\n/* Round only outer cells */\n.cometchat-stream-message-bubble tr:first-child th:first-child {\n  border-top-left-radius: var(--cometchat-radius-2);\n}\n.cometchat-stream-message-bubble tr:first-child th:last-child {\n  border-top-right-radius: var(--cometchat-radius-2);\n}\n.cometchat-stream-message-bubble tr:last-child td:first-child {\n  border-bottom-left-radius: var(--cometchat-radius-2);\n}\n.cometchat-stream-message-bubble tr:last-child td:last-child {\n  border-bottom-right-radius: var(--cometchat-radius-2);\n}\n.cometchat-stream-message-bubble th,\n.cometchat-stream-message-bubble td {\n  padding: var(--cometchat-padding-2);\n  border: 1px solid var(--cometchat-border-color-dark);\n  width: fit-content;\n  max-width: 100%;\n}\n.cometchat-stream-message-bubble table::-webkit-scrollbar {\n  width: 0px;\n  height: 8px;\n  background: transparent;\n}\n\n.cometchat-stream-message-bubble table::-webkit-scrollbar-track {\n  background: transparent;\n}\n\n.cometchat-stream-message-bubble table::-webkit-scrollbar-thumb {\n  background: var(--cometchat-icon-color-secondary);\n  border-radius: var(--cometchat-radius-2);\n}\n\n.cometchat-stream-message-bubble th,\n.cometchat-stream-message-bubble td {\n  padding: var(--cometchat-padding-2);\n  border: 1px solid var(--cometchat-border-color-dark);\n  width: fit-content;\n  max-width: 100%;\n}\n.cometchat-stream-message-bubble td{\n  text-align: left !important;\n}\n.cometchat-stream-message-bubble th{\n  text-align: center !important;\n}\n.cometchat-stream-message-bubble th{\n  background: var(--cometchat-background-color-04);\n}\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__link{\n  text-decoration: underline;\n  color: var(--cometchat-text-color-highlight);\n}\n\n.cometchat-stream-message-bubble ul,.cometchat-stream-message-bubble ol,.cometchat-stream-message-bubble hr{\n  margin: 0;\n}\n.cometchat-stream-message-bubble li{\n  overflow: visible !important;\n  padding: 0;\n}\n.cometchat-stream-message-bubble img{\n  max-height: 300px;\n  width: fit-content;\n  border-radius: var(--cometchat-radius-2);\n  margin-top: var(--cometchat-margin-2);\n}\n\n.cometchat-stream-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{\n  margin-top: var(--cometchat-margin-1);\n}\n\n.cometchat-stream-message-bubble__image-intersection-start, .cometchat-stream-message-bubble__image-intersection-end{\n  display: none;\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) {\n  display: block;\n  margin-top: -0.5em;\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) ~ img{\n  margin-top: var(--cometchat-margin-1);\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {\n  display: block;\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:last-child {\n  margin-bottom: 0;\n}\n\n.cometchat-stream-message-bubble > ol:first-child > li:first-child,\n.cometchat-stream-message-bubble > ul:first-child > li:first-child\n{\n  padding-top: 0px;\n}\n\n.cometchat-stream-message-bubble h1,\n.cometchat-stream-message-bubble h2,\n.cometchat-stream-message-bubble h3,\n.cometchat-stream-message-bubble h4,\n.cometchat-stream-message-bubble h5,\n.cometchat-stream-message-bubble h6 {\n  font-size: initial;\n  padding: var(--cometchat-padding-2) 0px;\n  margin: 0;\n}\n.cometchat-stream-message-bubble > h1:first-child,\n.cometchat-stream-message-bubble > h2:first-child,\n.cometchat-stream-message-bubble > h3:first-child,\n.cometchat-stream-message-bubble > h4:first-child,\n.cometchat-stream-message-bubble > h5:first-child,\n.cometchat-stream-message-bubble > h6:first-child {\n  padding-top: 0px;\n}\n\n.cometchat-stream-message-bubble__image-intersection-start, .cometchat-stream-message-bubble__image-intersection-end{\n  display: none;\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start) {\n  display: block;\n  margin-top: -0.5em;\n}\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {\n  display: block;\n}\n\n.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:last-child {\n  margin-bottom: 0;\n}\n\n.cometchat-stream-message-bubble > ul:first-child li:first-child > p:first-child{\npadding-top: 0px;\n}\n.cometchat-stream-message-bubble > ol:first-child li:first-child > p:first-child{\npadding-top: 0px;\n}\n\n.cometchat-stream-message-bubble > p:first-child{\n  padding-top: 0px;\n\n}\n@keyframes shimmer {\n  0% {\n    left: -60%;\n  }\n\n  100% {\n    left: 100%;\n  }\n}`,""]);const p=u},6092:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5275),n.b),u=i()(a()),d=c()(l);u.push([e.id,`\n\n\n.cometchat-sticker-keyboard {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  padding: 0px;\n  flex-direction: column;\n  gap: 0px;\n  border-radius: var(--cometchat-radius-4, 16px);\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-sticker-keyboard__tabs {\n  min-height: 40px;\n  height: 40px;\n  display: flex;\n  gap: var(--cometchat-padding-2, 8px);\n  border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n  overflow-x: auto;\n  overflow-y: hidden;\n    /* Force hardware acceleration */\n    transform: translateZ(0);\n    -webkit-transform: translateZ(0);\n    will-change: scroll-position; /* Hint the browser for performance optimization */\n}\n\n\n.cometchat-sticker-keyboard__tab{\n  padding: var(--cometchat-padding-1, 4px);\n}\n.cometchat-sticker-keyboard__tab-active{\n  border-bottom: 2px solid var(--cometchat-primary-color, #6852D6);\n}\n\n\n.cometchat-sticker-keyboard__tab > img {\n  display: flex;\n  width: 32px;\n  height: 32px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: var(--cometchat-padding-3, 12px);\n  border-radius: var(--cometchat-radius-max, 800px);\n  cursor: pointer;\n}\n\n.cometchat-sticker-keyboard__tab-active > img {\n  background: var(--cometchat-extended-primary-color-100, #EDEAFA);\n}\n\n.cometchat-sticker-keyboard__list {\n  width: 100%;\n  display: flex;\n  overflow-x: hidden;\n  overflow-y: auto;\n  flex-wrap: wrap;\n  background: inherit;\n  padding: var(--cometchat-padding-3) var(--cometchat-padding-3) 0px var(--cometchat-padding-3);\n}\n\n\n.cometchat-sticker-keyboard__list-item {\n  min-width: 80px;\n  min-height: 80px;\n  width: 80px;\n  height: 80px;\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px);\n  align-items: center;\n  align-content: center;\n  flex-wrap: wrap;\n  cursor: pointer;\n}\n\n\n\n\n.cometchat-sticker-keyboard__shimmer-tabs {\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px);\n  align-items: center;\n  gap: var(--cometchat-padding-2, 8px);\n  border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n\n}\n\n.cometchat-sticker-keyboard__shimmer-tab {\n  display: flex;\n  width: 32px;\n  height: 32px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  border-radius: var(--cometchat-radius-max, 800);\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  animation: shimmerAnimation 10s infinite linear;\n}\n\n.cometchat-sticker-keyboard__shimmer-list {\n  gap: var(--cometchat-padding-3,12px);\n}\n\n\n.cometchat-sticker-keyboard__shimmer-list-item {\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  animation: shimmerAnimation 5s infinite linear;\n  border-radius: 8px;\n  min-width: 70px;\n  min-height: 70px;\n  width: 70px;\n  height: 70px;\n\n\n}\n\n.cometchat-sticker-keyboard__empty-view {\n  display: flex;\n  height: 272px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: var(--cometchat-padding-3, 12px);\n  flex-shrink: 0;\n  align-self: stretch;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading4-bold);\n  font-style: normal;\n}\n\n.cometchat-sticker-keyboard__error-view {\n  display: flex;\n  height: 272px;\n  flex-direction: column;\n  justify-content: center;\n  flex-shrink: 0;\n  align-self: stretch;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-sticker-keyboard__empty-view-icon {\n  width: 60px;\n  height: 60px;\n  -webkit-mask-image: url(${d}) center center no-repeat;\n  mask-image: url(${d}) center center no-repeat;\n  -webkit-mask-size: 100%;\n  mask-size: 100%;\n  -webkit-mask-repeat: no-repeat;\n  mask-repeat: no-repeat;\n  -webkit-mask-position: center;\n  mask-position: center;\n  background-color: var(--cometchat-icon-color-tertiary, #DCDCDC);\n}\n\n\n\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}`,""]);const p=u},6151:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/phone_outgoing.fe790222212ccc2b0221.svg"},6155:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/leaveGroup.58a4d38b4954c066952c.svg"},6184:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8529),n.b),u=new URL(n(5179),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`.cometchat-document-bubble {\n    display: flex;\n    width: 240px;\n    flex-direction: column;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-1, 4px) 0px var(--cometchat-padding-1, 4px);\n    gap: 0px;\n    border-radius: var(--cometchat-radius-3, 12px);\n    max-width: 240px;\n\n}\n\n.cometchat-document-bubble-incoming {\n    background: var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-document-bubble-outgoing {\n    background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-document-bubble__body {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) 0px var(--cometchat-padding-2, 8px) 0px;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-3, 12px);\n}\n\n.cometchat-document-bubble__banner-image {\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n.cometchat-document-bubble__banner-image img {\n    max-width: 100%;\n    max-height: 100%;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n.cometchat-document-bubble__body-content {\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-document-bubble__body-content-name {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-medium);\n    font-style: normal;\n    line-height: 120%;\n    text-align: left;\n}\n\n.cometchat-document-bubble-incoming .cometchat-document-bubble__body-content-name {\n    color: var(--cometchat-text-color-primary, #141414);\n}\n\n.cometchat-document-bubble-outgoing .cometchat-document-bubble__body-content-name {\n    color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-document-bubble__body-content-description {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-caption2-regular);\n    font-style: normal;\n    line-height: 120%;\n}\n\n.cometchat-document-bubble-incoming .cometchat-document-bubble__body-content-description {\n    color: var(--cometchat-neutral-color-600, #727272);\n}\n\n.cometchat-document-bubble-outgoing .cometchat-document-bubble__body-content-description {\n    color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-document-bubble__body-icon {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n    mask-repeat: no-repeat;\n    -webkit-mask-size: 100%;\n    mask-size: 100%;\n}\n\n.cometchat-collaborative-document .cometchat-document-bubble__body-icon {\n    -webkit-mask: url(${p})center center no-repeat;\n    mask: url(${p}) center center no-repeat;\n}\n\n.cometchat-collaborative-whiteboard .cometchat-document-bubble__body-icon {\n    -webkit-mask: url(${h})center center no-repeat;\n    mask: url(${h}) center center no-repeat;\n}\n\n.cometchat-document-bubble-incoming .cometchat-document-bubble__body-icon {\n    background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-document-bubble-outgoing .cometchat-document-bubble__body-icon {\n    background: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-document-bubble__button {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    font: var(--cometchat-font-button-medium);\n    font-style: normal;\n    line-height: 120%;\n    cursor: pointer;\n}\n\n.cometchat-document-bubble-incoming .cometchat-document-bubble__button {\n    color: var(--cometchat-primary-button-background, #6852D6);\n    border-top: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n}\n\n.cometchat-document-bubble-outgoing .cometchat-document-bubble__button {\n    border-top: 1px solid var(--cometchat-extended-primary-color-800, #7965DB);\n    color: var(--cometchat-static-white, #FFF);\n}`,""]);const m=d},6227:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* CometChatFormattingToolbar - formatting toolbar styles */\n\n/* Base toolbar container */\n.cometchat-formatting-toolbar {\n  display: flex;\n  align-items: center;\n  gap: var(--cometchat-padding-4, 16px);\n  padding: 0;\n  background: var(--cometchat-background-color-02);\n  border-radius: 0;\n  font-family: var(--cometchat-font-family);\n  box-sizing: border-box;\n  overflow-x: auto;\n  overflow-y: hidden;\n  flex-wrap: nowrap;\n  -webkit-overflow-scrolling: touch;\n  scrollbar-width: none;\n  width: 100%;\n}\n\n.cometchat-formatting-toolbar::-webkit-scrollbar {\n  display: none;\n}\n\n/* Toolbar button base styles */\n.cometchat-formatting-toolbar__button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: 24px;\n  height: 24px;\n  padding: 0;\n  border: none;\n  border-radius: var(--cometchat-radius-1);\n  background: transparent;\n  cursor: pointer;\n  transition: background-color 0.15s ease;\n  flex-shrink: 0;\n}\n\n/* Override CometChatButton styles for toolbar buttons */\n.cometchat-formatting-toolbar__button .cometchat {\n  width: 100%;\n  height: 100%;\n}\n\n.cometchat-formatting-toolbar__button .cometchat-button {\n  width: 100%;\n  height: 100%;\n  min-width: unset;\n  min-height: unset;\n  padding: 0;\n  background: transparent;\n  border-radius: var(--cometchat-radius-1);\n}\n\n.cometchat-formatting-toolbar__button .cometchat-button:hover {\n  background: transparent;\n}\n\n.cometchat-formatting-toolbar__button .cometchat-button:active {\n  background: transparent;\n}\n\n.cometchat-formatting-toolbar__button .cometchat-button__icon-default {\n  width: 20px;\n  height: 20px;\n  background-color: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-formatting-toolbar__button:hover .cometchat-button__icon-default {\n  background-color: var(--cometchat-icon-color-primary);\n}\n\n/* Button icon styling */\n.cometchat-formatting-toolbar__button img {\n  width: 20px;\n  height: 20px;\n  object-fit: contain;\n  filter: brightness(0) saturate(100%);\n  opacity: 0.6;\n}\n\n/* Button hover state */\n.cometchat-formatting-toolbar__button:hover img {\n  filter: brightness(0) saturate(100%);\n  opacity: 1;\n}\n\n/* Button active/pressed state */\n.cometchat-formatting-toolbar__button--active {\n  border-radius: var(--cometchat-radius-1, 4px);\n  background: var(--cometchat-background-color-04);\n}\n\n.cometchat-formatting-toolbar__button--active .cometchat-button__icon-default {\n  background-color: var(--cometchat-icon-color-primary);\n}\n\n.cometchat-formatting-toolbar__button--active img {\n  opacity: 1;\n  filter: brightness(0) saturate(100%);\n}\n\n/* Button disabled state */\n.cometchat-formatting-toolbar__button--disabled {\n  opacity: 0.4;\n  cursor: not-allowed;\n  pointer-events: none;\n}\n\n.cometchat-formatting-toolbar__button--disabled:hover {\n  background: transparent;\n}\n\n.cometchat-formatting-toolbar__button--disabled img {\n  opacity: 0.4;\n}\n\n/* Button focus state for accessibility */\n.cometchat-formatting-toolbar__button:focus {\n  outline: 2px solid var(--cometchat-border-color-highlight);\n  outline-offset: 1px;\n}\n\n.cometchat-formatting-toolbar__button:focus:not(:focus-visible) {\n  outline: none;\n}\n\n/* Separator between button groups */\n.cometchat-formatting-toolbar__separator {\n  width: 1px;\n  height: 20px;\n  background: var(--cometchat-border-color-default);\n  margin: 0 var(--cometchat-margin-1, 4px);\n  flex-shrink: 0;\n}\n\n/* Floating toolbar modifier */\n.cometchat-formatting-toolbar--floating {\n  position: fixed;\n  z-index: 1000;\n  transform: translateX(-50%);\n  background: var(--cometchat-background-color-02);\n  border-radius: var(--cometchat-radius-2);\n  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);\n  border: 1px solid var(--cometchat-border-color-light);\n  width: auto;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n  gap: var(--cometchat-spacing-1, 4px);\n}\n\n/* Compact buttons in floating toolbar */\n.cometchat-formatting-toolbar--floating .cometchat-formatting-toolbar__button {\n  width: 22px;\n  height: 22px;\n}\n\n.cometchat-formatting-toolbar--floating .cometchat-formatting-toolbar__button img {\n  width: 16px;\n  height: 16px;\n}\n\n.cometchat-formatting-toolbar--floating .cometchat-formatting-toolbar__separator {\n  height: 16px;\n  margin: 0 var(--cometchat-margin-1, 4px);\n}\n\n/* Link input popover container */\n.cometchat-formatting-toolbar__link-input {\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  transform: translateX(-50%);\n  margin-top: var(--cometchat-margin-2, 8px);\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-spacing-2, 8px);\n  padding: var(--cometchat-padding-3, 12px);\n  background: var(--cometchat-background-color-01);\n  border: 1px solid var(--cometchat-border-color-default);\n  border-radius: var(--cometchat-radius-2, 8px);\n  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n  min-width: 280px;\n  z-index: 1001;\n}\n\n/* Link input field */\n.cometchat-formatting-toolbar__link-input input {\n  width: 100%;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n  border: 1px solid var(--cometchat-border-color-default);\n  border-radius: var(--cometchat-radius-1, 4px);\n  background: var(--cometchat-background-color-01);\n  color: var(--cometchat-text-color-primary);\n  font: var(--cometchat-font-body-regular);\n  outline: none;\n  transition: border-color 0.15s ease;\n}\n\n.cometchat-formatting-toolbar__link-input input:focus {\n  border-color: var(--cometchat-border-color-highlight);\n}\n\n.cometchat-formatting-toolbar__link-input input::placeholder {\n  color: var(--cometchat-text-color-tertiary);\n}\n\n/* Link input error message */\n.cometchat-formatting-toolbar__link-input-error {\n  color: var(--cometchat-error-color);\n  font: var(--cometchat-font-caption1-regular);\n}\n\n/* Link input action buttons container */\n.cometchat-formatting-toolbar__link-input-actions {\n  display: flex;\n  justify-content: flex-end;\n  gap: var(--cometchat-spacing-2, 8px);\n}\n\n/* Override CometChatButton styles for link dialog buttons */\n.cometchat-formatting-toolbar__link-input-button .cometchat-button {\n  width: auto;\n  min-width: 80px;\n  height: 32px;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-3, 12px);\n}\n\n.cometchat-formatting-toolbar__link-input-button--primary .cometchat-button {\n  background: var(--cometchat-primary-button-background);\n}\n\n.cometchat-formatting-toolbar__link-input-button--primary .cometchat-button:hover {\n  background: var(--cometchat-extended-primary-color-800);\n}\n\n.cometchat-formatting-toolbar__link-input-button:not(.cometchat-formatting-toolbar__link-input-button--primary) .cometchat-button {\n  background: var(--cometchat-background-color-01);\n  border: 1px solid var(--cometchat-border-color-default);\n}\n\n.cometchat-formatting-toolbar__link-input-button:not(.cometchat-formatting-toolbar__link-input-button--primary) .cometchat-button:hover {\n  background: var(--cometchat-background-color-02);\n}\n\n.cometchat-formatting-toolbar__link-input-button:not(.cometchat-formatting-toolbar__link-input-button--primary) .cometchat-button__text {\n  color: var(--cometchat-text-color-primary);\n}\n\n/* Link input buttons */\n.cometchat-formatting-toolbar__link-input-button {\n  padding: 0;\n  border: none;\n  border-radius: var(--cometchat-radius-1, 4px);\n  background: transparent;\n}\n",""]);const s=i},6246:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/close.9564eb57de95f15d7b4e.svg"},6269:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/mic_off.feb56f6133333e8e36fa.svg"},6270:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/outgoing_video_no_fill.765e9ef5fcb3e4a5be0c.svg"},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},6319:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_outgoing-voice-call.aa7e2a8136855c39e5cb.svg"},6322:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-call-log-info {\n    width: 100%;\n    padding-bottom: var(--cometchat-padding-3, 12px);\n}\n\n.cometchat-call-log-info .cometchat-list-item {\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-call-log-info .cometchat-list-item__leading-view,\n.cometchat-call-log-info .cometchat-avatar,\n.cometchat-call-log-info .cometchat-avatar__image {\n    height: 16px;\n    width: 16px;\n    background: transparent;\n    border-radius: 0px;\n}\n\n.cometchat-call-log-info__subtitle .cometchat-date {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n    padding: 0px;\n}\n\n.cometchat-call-log-info .cometchat-call-log-info__tail-view {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-info .cometchat-call-log-info__tail-view-disabled {\n    overflow: hidden;\n    color: var(--cometchat-text-color-tertiary, #A1A1A1);\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-call-log-info .cometchat-list-item__tail-view {\n    width: fit-content;\n}\n\n.cometchat-call-log-info .cometchat-list-item__trailing-view {\n    width: fit-content;\n}",""]);const s=i},6363:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_audio-message.55058fd73f6f30059605.svg"},6536:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,'.cometchat-radiobutton {\n    display: inline-flex;\n    align-items: center;\n    position: relative;\n\n}\n\n.cometchat-radiobutton__label input {\n    position: absolute;\n    opacity: 0;\n    cursor: pointer;\n    height: 0;\n    width: 0;\n}\n\n.cometchat-radiobutton__selected {\n    display: inline-block;\n    position: relative;\n    height: 24px;\n    width: 24px;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1.5px solid var(--cometchat-border-color-default, #E8E8E8);\n}\n\n.cometchat-radiobutton:hover .cometchat-radiobutton__selected {\n    border: 1.5px solid var(--cometchat-border-color-dark, #DCDCDC);\n    cursor: pointer;\n}\n\n.cometchat-radiobutton input[type="radio"]:checked+.cometchat-radiobutton__selected {\n    border: 1.5px solid var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-radiobutton input[type="radio"] {\n    position: absolute;\n    opacity: 0;\n}\n\n.cometchat-radiobutton__selected::after {\n    content: "";\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 50%;\n    height: 50%;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background-color: var(--cometchat-primary-color, #6852D6);\n    transform: translate(-50%, -50%);\n    display: none;\n}\n\n.cometchat-radiobutton input[type="radio"]:checked+.cometchat-radiobutton__selected::after {\n    display: block;\n}\n\n.cometchat-radiobutton__label {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-radius-2, 8px);\n    color: var(--cometchat-text-color-secondary);\n    font: var(--cometchat-font-body-regular);\n}',""]);const s=i},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6575:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/error_info.139c04e0afeb03ada008.svg"},6626:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(3206),n.b),u=new URL(n(2585),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`.cometchat-call-log-recordings {\n    width: 100%;\n    height: 100%;\n    overflow: hidden;\n}\n\n.cometchat-call-log-recordings__download {\n    -webkit-mask: url(${p});\n    background: var(--cometchat-icon-color-highlight);\n    -webkit-mask-size: contain;\n    height: 16px;\n    width: 16px;\n    cursor: pointer;\n}\n\n.cometchat-call-log-recordings__subtitle .cometchat-date {\n    padding: 0px;\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-call-log-recordings__empty-state {\n    display: flex;\n    height: 100%;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    flex-shrink: 0;\n    align-self: stretch;\n}\n\n.cometchat-call-log-recordings__empty-state-icon {\n    -webkit-mask: url(${h}) center center no-repeat;\n    background: var(--cometchat-icon-color-tertiary);\n    -webkit-mask-size: contain;\n    height: 60px;\n    width: 60px;\n}\n\n.cometchat-call-log-recordings__empty-state-text {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading4-medium);\n}`,""]);const m=d},6628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-reaction-list {\n    display: flex;\n    width: 280px;\n    flex-direction: column;\n    overflow: hidden;\n    align-items: flex-start;\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-reaction-list__error {\n    display: flex;\n    height: 200px;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    align-self: stretch;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-reaction-list__tabs {\n    display: flex;\n    padding-top: var(--cometchat-padding-2, 8px);\n    max-width: 280px;\n    align-items: center;\n    align-self: stretch;\n    overflow-x: auto;\n    border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n\n.cometchat-reaction-list__tabs-tab {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    cursor: pointer;\n    border-radius: 4px 4px 0px 0px;\n}\n\n.cometchat-reaction-list__tabs-tab-active {\n    border-bottom: 2px solid var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-reaction-list__tabs-tab-emoji,\n.cometchat-reaction-list__tabs-tab-count {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-medium, 500 14px Roboto);\n}\n\n.cometchat-reaction-list__tabs-tab-count-active,\n.cometchat-reaction-list__tabs-tab-emoji-active {\n    color: var(--cometchat-text-color-highlight, #6852D6);\n}\n\n.cometchat-reaction-list__list {\n    display: flex;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-0, 0px);\n    background: var(--cometchat-background-color-01, #FFF);\n    overflow-y: auto;\n    height: 200px;\n}\n\n.cometchat-reaction-list .cometchat-list-item {\n    width: 280px;\n    cursor: pointer;\n}\n\n.cometchat-reaction-list .cometchat-list-item__leading-view,\n.cometchat-reaction-list .cometchat-list-item__body {\n    padding: 0px;\n    flex-shrink: inherit;\n}\n\n.cometchat-reaction-list .cometchat-list-item__body-title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-medium, 500 14px Roboto);\n}\n\n.cometchat-reaction-list .cometchat-list-item__body-subtitle {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-reaction-list .cometchat-avatar,\n.cometchat-reaction-list .cometchat-avatar__image,\n.cometchat-reaction-list .cometchat-list-item__leading-view {\n    height: 32px;\n    width: 32px;\n}\n\n.cometchat-reaction-list .cometchat-list-item__title-container {\n    gap: 0px;\n}\n\n.cometchat-reaction-list__shimmer {\n    display: flex;\n    width: 280px;\n    height: 200px;\n    flex-direction: column;\n    align-items: flex-start;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-background-color-01, #FFF);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-reaction-list__shimmer-tabs {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: 20px;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-reaction-list__shimmer-tab {\n    background: var(--cometchat-shimmer-gradient-color);\n    display: flex;\n    width: 48px;\n    height: 16px;\n    border-radius: var(--cometchat-radius-2, 8px);\n    justify-content: center;\n    align-items: center;\n    animation: shimmerAnimation 10s infinite linear;\n}\n\n.cometchat-reaction-list__shimmer-item {\n    display: flex;\n    width: 280px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-reaction-list__shimmer-item-icon {\n    background: var(--cometchat-shimmer-gradient-color);\n    display: flex;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    width: 32px;\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n    animation: shimmerAnimation 10s infinite linear;\n}\n\n.cometchat-reaction-list__shimmer-item-content {\n    background: var(--cometchat-shimmer-gradient-color);\n    border-radius: var(--cometchat-radius-2, 8px);\n    display: flex;\n    height: 20px;\n    justify-content: center;\n    align-items: center;\n    flex: 1 0 0;\n    animation: shimmerAnimation 5s infinite linear;\n}\n\n.cometchat-reaction-list__shimmer-item-tailview {\n    background: var(--cometchat-shimmer-gradient-color);\n    display: flex;\n    width: 24px;\n    height: 24px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    justify-content: center;\n    align-items: center;\n    animation: shimmerAnimation 10s infinite linear;\n}\n\n@keyframes shimmerAnimation {\n    0% {\n        background-position: -468px 0;\n    }\n\n    100% {\n        background-position: 468px 0;\n    }\n}",""]);const s=i},6763:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/message_delete.ce537f017fc12fab523e.svg"},6879:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/create-group.1166ddd2089dc474d86b.svg"},6949:(e,t,n)=>{"use strict";n.d(t,{A:()=>ce});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(9066),n.b),u=new URL(n(4475),n.b),d=new URL(n(4491),n.b),p=new URL(n(3663),n.b),h=new URL(n(2496),n.b),m=new URL(n(7033),n.b),g=new URL(n(5300),n.b),f=new URL(n(2137),n.b),_=new URL(n(6319),n.b),b=new URL(n(46),n.b),v=new URL(n(9830),n.b),y=new URL(n(1689),n.b),E=new URL(n(7188),n.b),C=new URL(n(6363),n.b),S=new URL(n(8432),n.b),w=new URL(n(2996),n.b),k=new URL(n(9880),n.b),x=new URL(n(350),n.b),T=new URL(n(2324),n.b),A=new URL(n(9721),n.b),R=new URL(n(8357),n.b),I=new URL(n(4921),n.b),O=new URL(n(7783),n.b),N=new URL(n(4762),n.b),M=new URL(n(8403),n.b),D=new URL(n(7425),n.b),L=i()(a()),P=c()(l),j=c()(u),U=c()(d),F=c()(p),B=c()(h),G=c()(m),V=c()(g),H=c()(f),z=c()(_),Y=c()(b),q=c()(v),K=c()(y),W=c()(E),J=c()(C),Z=c()(S),$=c()(w),Q=c()(k),X=c()(x),ee=c()(T),te=c()(A),ne=c()(R),re=c()(I),ae=c()(O),oe=c()(N),ie=c()(M),se=c()(D);L.push([e.id,`.cometchat-search {\n  width: 100%;\n  margin: 0 auto;\n  background: var(--cometchat-background-color-01);\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-3, 12px);\n\n}\n\n.cometchat-search__header {\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  justify-content: flex-start;\n  min-height: 64px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  padding-bottom: 0;\n\n}\n\n.cometchat-search__search-bar {\n  position: relative;\n  flex: 1;\n  overflow: hidden;\n}\n\n.cometchat-search__input {\n  display: flex;\n  align-items: center;\n  min-height: 36px;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n  gap: var(--cometchat-spacing-1, 4px);\n  flex: 1 0 0;\n  align-self: stretch;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n  background: var(--cometchat-background-color-03, #F5F5F5);\n  justify-content: flex-start;\n  overflow-x: auto;\n}\n\n.cometchat-search__input input {\n  border: none;\n  flex: 1;\n  min-width: 50px;\n  outline: none;\n  background: transparent;\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-heading4-regular);\n}\n\n.cometchat-search__input-clear-button {\n  border: none;\n  background: none;\n  cursor: pointer;\n  user-select: none;\n}\n\n.cometchat-search__input-clear-button .cometchat-button,\n.cometchat-search__back-button .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  padding: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n}\n\n.cometchat-search__input-clear-button .cometchat-button .cometchat-button__icon,\n.cometchat-search__back-button .cometchat-button .cometchat-button__icon {\n  height: 24px;\n  width: 24px;\n  background: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-search__back-button .cometchat-button .cometchat-button__icon {\n  background: var(--cometchat-icon-color-primary);\n\n}\n\n.cometchat-search__body {\n  padding: 0px var(--cometchat-padding-4, 16px);\n\n}\n\n.cometchat-search__body-filters {\n  display: flex;\n  flex-wrap: wrap;\n  gap: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-search__body-filter,\n.cometchat-search__body-filter .cometchat-button {\n  cursor: pointer;\n  border-radius: var(--Radius-radius_Max, 1000px);\n  background: var(--cometchat-background-color-03);\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n  align-items: center;\n  align-content: center;\n  gap: 4px var(--cometchat-padding-1, 4px);\n\n}\n\n.cometchat-search__body-filters .cometchat-button {\n  flex-wrap: wrap;\n}\n\n.cometchat-search__body-filter .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  padding: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n  font: var(--cometchat-font-body-regular);\n  color: var(--cometchat-text-color-secondary, #727272);\n\n}\n\n.cometchat-search__body-filter .cometchat-button .cometchat-button__icon {\n  height: 16px;\n  width: 16px;\n  background: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-search__initial-view {\n  flex: 1;\n  text-align: center;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 4px;\n}\n\n.cometchat-search__initial-view-icon {\n  mask: url(${P}) center center no-repeat;\n  -webkit-mask: url(${P}) center center no-repeat;\n  background: var(--cometchat-icon-color-secondary);\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  width: 120px;\n  height: 120px;\n  flex-shrink: 0;\n\n}\n\n.cometchat-search__initial-view-title {\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n}\n\n.cometchat-search__initial-view-subtitle {\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n}\n\n\n\n\n\n.cometchat-search-conversations__see-more .cometchat-button,\n.cometchat-search-messages__see-more .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n\n}\n\n.cometchat-search-conversations__see-more .cometchat-button__text,\n.cometchat-search-messages__see-more .cometchat-button__text {\n  color: var(--cometchat-primary-color);\n}\n\n.cometchat-search .cometchat-list-item__trailing-view {\n  width: fit-content;\n  height: fit-content;\n  align-self: flex-start;\n}\n\n.cometchat-search__conversations .cometchat-search__conversations-subtitle-text-wrapper,\n.cometchat-search__conversations .cometchat-search__conversations-subtitle {\n  display: flex;\n  flex-direction: row;\n  gap: var(--cometchat-padding, 2px);\n\n\n}\n\n.cometchat-search__conversations .cometchat-search__conversations-subtitle-text,\n.cometchat-search__conversations .cometchat-search__conversations-subtitle-text-sender,\n.cometchat-search-messages__list-item .cometchat-search-messages__subtitle-text {\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular, 14px);\n}\n\n.cometchat-search__conversations-subtitle-text-sender {\n  font: var(--cometchat-font-body-bold, 14px);\n\n}\n\n.cometchat-search__conversations-subtitle-receipts {\n  height: 16px;\n  width: 16px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border: none;\n  align-self: center;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n  flex-shrink: 0;\n}\n\n\n.cometchat-search__conversations-subtitle-receipts-sent {\n  -webkit-mask: url(${j}) center center no-repeat;\n  mask: url(${j}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n.cometchat-search__conversations-subtitle-receipts-wait{\n  -webkit-mask: url(${U}) center center no-repeat;\n  mask: url(${U}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-search__conversations-subtitle-receipts-delivered {\n  -webkit-mask: url(${F}) center center no-repeat;\n  mask: url(${F}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-search__conversations-subtitle-receipts-error{\n  -webkit-mask: url(${B}) center center no-repeat;\n  mask: url(${B}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  background-color: var(--cometchat-error-color);\n}\n\n.cometchat-search__conversations-subtitle-receipts-read {\n  -webkit-mask: url(${G}) center center no-repeat;\n  mask: url(${G}) center center no-repeat;\n  background: var(--cometchat-message-seen-color, #56E8A7);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-search .cometchat-text-highlight {\n  font: var(--cometchat-font-body-bold);\n  color: var(--cometchat-text-color-primary);\n\n}\n.cometchat-search__results .cometchat-list__header-title {\n  min-height: 20px;\n  margin-bottom: var(--cometchat-margin-1);\n}\n\n.cometchat-search__results,\n.cometchat-search__conversations,\n.cometchat-search__messages {\n  overflow: hidden;\n  height: fit-content;\n}\n\n.cometchat-search__results {\n  overflow: scroll;\n  height: 100%;\n}\n\n\n.cometchat-search__conversations-list-item {\n  cursor: pointer;\n}\n\n.cometchat-search__conversations-list-item-active .cometchat-list-item {\n  background-color: var(--cometchat-white-pressed, #E8E8E8);\n}\n\n.cometchat-search__conversations-subtitle {\n  display: flex;\n  gap: var(--cometchat-padding-1, 4px);\n  width: 100%;\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.cometchat-search__conversations-subtitle-text-wrapper {\n  display: flex;\n  gap: var(--cometchat-padding, 2px);\n  width: 100%;\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.cometchat-search__conversations-subtitle-text {\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular);\n  width: 100%;\n}\n\n/* Inline code styling in search conversation subtitle */\n.cometchat-search__conversations-subtitle-text code {\n  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n  font-size: 0.9em;\n  background: var(--cometchat-background-color-03);\n  color: var(--cometchat-text-color-secondary);\n  padding: 0 var(--cometchat-padding-1, 2px);\n  border-radius: var(--cometchat-radius-1, 4px);\n  border: 1px solid var(--cometchat-border-color-light);\n}\n\n.cometchat-search__conversations-subtitle-text-sender {\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-body-medium);\n  flex-shrink: 0;\n}\n\n.cometchat-search__conversations-subtitle-typing {\n  overflow: hidden;\n  color: var(--cometchat-text-color-highlight, #6852D6);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-search__conversations-trailing-view {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-search__conversations-trailing-view-date {\n  font: var(--cometchat-font-caption1-regular);\n}\n\n.cometchat-search__conversations-trailing-view-badge {\n  display: flex;\n  justify-content: flex-end;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-search__conversations-trailing-view-badge-count {\n  display: flex;\n  height: 20px;\n  padding: 0px 8px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  border-radius: 20px;\n  background: var(--cometchat-primary-color, #6852D6);\n  overflow: hidden;\n  color: var(--cometchat-static-white, #FFF);\n  text-align: center;\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-caption1-regular);\n}\n\n.cometchat-search__conversations-subtitle-icon {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n  height: 16px;\n  width: 16px;\n  flex-shrink: 0;\n}\n\n.cometchat-search__conversations-subtitle-icon-incoming-audio-call,\n.cometchat-search__conversations-subtitle-icon-incoming-video-call {\n  background-color: var(--cometchat-error-color, #F44649);\n}\n\n.cometchat-search__conversations-subtitle-icon-incoming-audio-call {\n  -webkit-mask: url(${V}) center center no-repeat;\n  mask: url(${V}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-incoming-video-call {\n  -webkit-mask: url(${H}) center center no-repeat;\n  mask: url(${H}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-outgoing-audio-call {\n  -webkit-mask: url(${z}) center center no-repeat;\n  mask: url(${z}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-outgoing-video-call {\n  -webkit-mask: url(${Y}) center center no-repeat;\n  mask: url(${Y}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-image {\n  -webkit-mask: url(${q}) center center no-repeat;\n  mask: url(${q}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-file {\n  -webkit-mask: url(${K}) center center no-repeat;\n  mask: url(${K}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-video {\n  -webkit-mask: url(${W}) center center no-repeat;\n  mask: url(${W}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-audio {\n  -webkit-mask: url(${J}) center center no-repeat;\n  mask: url(${J}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-poll {\n  -webkit-mask: url(${Z}) center center no-repeat;\n  mask: url(${Z}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-sticker {\n  -webkit-mask: url(${$}) center center no-repeat;\n  mask: url(${$}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-collaborative-document {\n  -webkit-mask: url(${Q}) center center no-repeat;\n  mask: url(${Q}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-collaborative-whiteboard {\n  -webkit-mask: url(${X}) center center no-repeat;\n  mask: url(${X}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-deleted {\n  -webkit-mask: url(${ee}) center center no-repeat;\n  mask: url(${ee}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-link {\n  -webkit-mask: url(${te}) center center no-repeat;\n  mask: url(${te}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-thread {\n  -webkit-mask: url(${ne}) center center no-repeat;\n  mask: url(${ne}) center center no-repeat;\n}\n\n.cometchat-search__conversations-subtitle-icon-none {\n  display: none;\n}\n\n/* See more button */\n.cometchat-search-conversations__see-more {\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  display: flex;\n  justify-content: flex-start;\n}\n\n.cometchat-search-conversations__see-more .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n  padding: 0;\n}\n\n.cometchat-search-conversations__see-more .cometchat-button__text {\n  color: var(--cometchat-primary-color, #6852D6);\n  font: var(--cometchat-font-body-medium);\n}\n\n.cometchat-search-messages {\n  overflow: hidden;\n  height: fit-content;\n}\n\n.cometchat-search__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-search__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  min-width: 240px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-search__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n}\n\n.cometchat-search__shimmer-item-body {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-search__shimmer-item-body-title-wrapper {\n  display: flex;\n  justify-content: space-between;\n  width: 100%;\n}\n\n.cometchat-search__shimmer-item-body-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-search__shimmer-item-body-subtitle {\n  width: 100%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-search__shimmer-item-body-tail {\n  width: 60px;\n  height: 22px;\n  min-height: 22px;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 3.5s infinite linear;\n}\n\n.cometchat-search__empty-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-search__empty-view-icon {\n  height: 120px;\n  width: 120px;\n  mask: url(${P}) center center no-repeat;\n  -webkit-mask: url(${P}) center center no-repeat;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n}\n\n.cometchat-search__empty-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-search__empty-view-body-title {\n  max-width: 280px;\n  width: auto;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n}\n\n.cometchat-search__empty-view-body-description {\n   max-width: 280px;\n  width: auto;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n}\n\n/* Error state */\n.cometchat-search__error-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-search__error-view-icon {\n  height: 120px;\n  width: 120px;\n  mask: url(${re}) center center no-repeat;\n  -webkit-mask: url(${re}) center center no-repeat;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  background: var(--cometchat-error-color, #F44649);\n}\n\n.cometchat-search__error-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-search__error-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n}\n\n.cometchat-search__error-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-search-messages__list-item {\n  cursor: pointer;\n  width: 100%;\n}\n\n.cometchat-search-messages__list-item .cometchat-list-item__body-subtitle,\n.cometchat-search-messages__list-item .cometchat-search-messages__subtitle {\n  display: block;\n  width: 100%;\n  max-width: 98%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.cometchat-search-messages__subtitle-text {\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular);\n  width: 100%;\n}\n\n.cometchat-search-messages__trailing-view {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-search-messages .cometchat-date {\n  font: var(--cometchat-font-caption1-regular);\n  color: var(--cometchat-text-color-secondary, #727272);\n}\n\n.cometchat-search-messages__see-more {\n  gap: var(--cometchat-padding-3, 12px) 0px;\n  display: flex;\n  justify-content: flex-start;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n\n}\n\n.cometchat-search-messages__see-more .cometchat-button {\n  background: transparent;\n  border: none;\n  border-radius: 0;\n  margin: 0;\n  height: fit-content;\n  width: fit-content;\n  padding: 0;\n}\n\n.cometchat-search-messages__see-more .cometchat-button__text {\n  color: var(--cometchat-primary-color, #6852D6);\n  font: var(--cometchat-font-body-medium);\n}\n\n/* Animation for shimmer effect */\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}\n\n.cometchat-search__messages-leading-view {\n  background: var(--cometchat-background-color-01);\n  height: 40px;\n  width: 48px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-search__messages-leading-view-link>.cometchat-search__messages-leading-view-icon {\n  -webkit-mask: url(${ae}) center center no-repeat;\n  mask: url(${ae}) center center no-repeat;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n  height: 16px;\n  width: 16px;\n  transform: scale(2);\n\n\n}\n\n.cometchat-search__messages-leading-view-link > img {\n  height: 32px;\n  width: 32px;\n}\n\n.cometchat-search__messages-leading-view-audio.cometchat-search__messages-leading-view {\n  background-color: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-search__messages-leading-view-audio>.cometchat-search__messages-leading-view-icon {\n  mask: url(${oe}) center center no-repeat;\n  -webkit-mask: url(${oe}) center center no-repeat;\n  background: var(--cometchat-static-white, #A1A1A1);\n  height: 16px;\n  width: 16px;\n  transform: scale(2);\n\n\n}\n\n.cometchat-search__body-filter .cometchat-button__text {\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-body-regular);\n}\n\n\n\n.cometchat-search-messages__subtitle {\n  font: var(--cometchat-font-body-regular);\n  color: var(--cometchat-text-color-secondary, #727272);\n}\n\n.cometchat-search-messages__date-separator .cometchat-date {\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n  color: var(--cometchat-text-color-secondary, #727272);\n  font: var(--cometchat-font-caption1-regular);\n\n}\n\n.cometchat-search-messages__date-separator {\n  padding: 0px var(--cometchat-padding-2, 8px);\n\n}\n\n.cometchat-search__messages-trailing-view {\n  min-height: 50px;\n  width: 80px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  overflow: hidden;\n}\n\n.cometchat-search__messages-trailing-view img,\n.cometchat-search__messages-trailing-view video {\n  max-height: 80px;\n  max-width: 80px;\n  width: auto;\n  height: auto;\n  object-fit: contain;\n}\n\n.cometchat-search__messages-video-play-button {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 30px;\n  height: 30px;\n  background-color: rgba(0, 0, 0, 0.6);\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  pointer-events: none;\n}\n\n.cometchat-search__messages-video-play-button:after {\n  content: '';\n  display: block;\n  width: 0;\n  height: 0;\n  border-top: 8px solid transparent;\n  border-bottom: 8px solid transparent;\n  border-left: 12px solid white;\n  margin-left: 3px;\n}\n\n.cometchat-search__messages-trailing-view-video {\n  position: relative;\n}\n\n.cometchat-search .cometchat-list__header-title {\n  color: var(--cometchat-text-color-secondary, #727272);\n\n  font: var(--cometchat-font-caption1-medium)\n}\n\n.cometchat-search__conversations,\n.cometchat-search__messages {\n  min-height: 110px;\n  height: fit-content;\n}\n.cometchat-search__conversations-full,\n.cometchat-search__messages-full {\n  height: 100%;\n}\n\n.cometchat-search__results::-webkit-scrollbar,\n.cometchat-search__input::-webkit-scrollbar {\n  display: none;\n}\n\n.cometchat-search__results::-webkit-scrollbar-thumb,\n.cometchat-search__input::-webkit-scrollbar-thumb {\n  display: none;\n}\n\n.cometchat-search__conversations-list-item-online .cometchat-list-item__status,\n.cometchat-search__conversations-list-item-password .cometchat-list-item__status,\n.cometchat-search__conversations-list-item-private .cometchat-list-item__status {\n  width: 14px;\n  height: 14px;\n  margin-right: -14px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50, #FFF);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-search__conversations-list-item-online .cometchat-list-item__status {\n  margin-right: -12px;\n  background: var(--cometchat-success-color, #09C26F);\n}\n\n.cometchat-search__conversations-list-item-password .cometchat-list-item__status {\n  background-color: var(--cometchat-success-color, #09C26F);\n}\n\n.cometchat-search__conversations-list-item-private .cometchat-list-item__status {\n  background-color: var(--cometchat-warning-color, #FFAB00);\n}\n\n.cometchat-search__conversations-list-item-password .cometchat-list-item__status-icon {\n  -webkit-mask: url(${ie}) center center no-repeat;\n  mask: url(${ie}) center center no-repeat;\n  height: 8px;\n  width: 8px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  background: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-search__conversations-list-item-private .cometchat-list-item__status-icon {\n  -webkit-mask: url(${se}) center center no-repeat;\n  mask: url(${se}) center center no-repeat;\n  height: 8px;\n  width: 8px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  background: var(--cometchat-static-white, #FFF);\n}\n\n\n.cometchat-search .cometchat-list__header-title {\n  padding: 0px var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-search__initial-view {\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-search .cometchat-list .cometchat-list__header,\n.cometchat-search .cometchat-list .cometchat-list__body {\n  border: none;\n}\n\n.cometchat-search__body-filter-active {\n  border-radius: var(--cometchat-radius-max, 1000px);\n  border: 1px solid var(--cometchat-neutral-color-800, #434343);\n  background: var(--cometchat-neutral-color-900, #141414);\n\n}\n\n.cometchat-search__body-filter-active .cometchat-button__text {\n  color: var(--cometchat-neutral-color-50, #141414);\n}\n\n.cometchat-search__body-filter-active .cometchat-button__icon {\n  background: var(--cometchat-neutral-color-50, #141414);\n}\n\n.cometchat-search__messages-leading-view-file {\n  height: 32px;\n  width: 32px;\n}\n\n.cometchat-search__messages  .cometchat-list-item__body-title {\n  color: var(--cometchat-text-color-secondary, #727272);\n}\n\n.cometchat-search__messages-subtitle-icon-thread{\n  height: 16px;\n  width: 16px;\n  border: none;\n  border-radius: 0;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n  -webkit-mask: url(${ne}) center center no-repeat;\n  mask: url(${ne}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}`,""]);const ce=L},6960:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4491),n.b),u=new URL(n(2981),n.b),d=new URL(n(5637),n.b),p=new URL(n(2775),n.b),h=new URL(n(6575),n.b),m=new URL(n(7094),n.b),g=new URL(n(358),n.b),f=new URL(n(6270),n.b),_=new URL(n(1240),n.b),b=new URL(n(8797),n.b),v=new URL(n(2688),n.b),y=new URL(n(9985),n.b),E=new URL(n(4935),n.b),C=new URL(n(790),n.b),S=i()(a()),w=c()(l),k=c()(u),x=c()(d),T=c()(p),A=c()(h),R=c()(m),I=c()(g),O=c()(f),N=c()(_),M=c()(b),D=c()(v),L=c()(y),P=c()(E),j=c()(C);S.push([e.id,`/* Error state view container */\n.cometchat-message-list__error-state-view {\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n}\n\n/* Icon in the error state view */\n.cometchat-message-list__error-state-view-icon {\n    height: 120px;\n    width: 120px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    -webkit-mask-size: contain;\n    mask-size: contain;\n    border: none;\n    align-self: center;\n}\n.cometchat-message-list .cometchat-message-list__footer-smart-replies,.cometchat-message-list__footer-conversation-starter{\n    width: 100%;\n}\n/* Body of the error state view */\n.cometchat-message-list__error-state-view-body {\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding, 2px);\n}\n\n/* Title in the error state view body */\n.cometchat-message-list__error-state-view-body-title {\n    width: 280px;\n    color: var(--cometchat-text-color-primary);\n    text-align: center;\n    font: var(--cometchat-font-heading3-bold);\n    font-style: normal;\n}\n\n/* Description in the error state view body */\n.cometchat-message-list__error-state-view-body-description {\n    width: 280px;\n    color: var(--cometchat-text-color-secondary);\n    text-align: center;\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n}\n\n\n\n/* Thread view replies inside message bubble */\n.cometchat-message-bubble__thread-view-replies {\n    height: 100%;\n    width: 100%;\n    border: none;\n    border-radius: 0;\n    background: transparent;\n    display: flex;\n    align-items: center;\n    gap: 5px;\n}\n\n/* Date inside outgoing message bubble */\n.cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view .cometchat-date {\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-caption2-regular);\n}\n\n/* Date inside incoming message bubble */\n.cometchat-message-bubble-incoming .cometchat-message-bubble__status-info-view .cometchat-date {\n    color: var(--cometchat-neutral-color-600);\n    font: var(--cometchat-font-caption2-regular);\n}\n\n/* Text bubble inside message bubble */\n.cometchat-message-bubble .cometchat-text-bubble {\n    padding-bottom: 0px;\n}\n\n/* Text bubble inside message bubble */\n.cometchat-message-bubble .cometchat-delete-bubble {\n    padding-bottom: 0px;\n}\n\n/* Read more/less inside text bubble */\n.cometchat-message-bubble .cometchat-text-bubble .cometchat-text-bubble__read-more,\n.cometchat-text-bubble__read-less {\n    padding-bottom: 0px;\n    padding-right: 0px;\n}\n\n/* Status info for whiteboard message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__whiteboard-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info for delete message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__delete-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n    padding-right: var(--cometchat-padding-2);\n}\n\n/* Status info for document message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__document-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info for whiteboard message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__whiteboad-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info for poll message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__pol-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info for audio message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__audio-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info for file message inside message bubble */\n.cometchat-message-bubble .cometchat-message-bubble__file-message .cometchat-message-bubble__status-info-view {\n    padding-top: 0px;\n}\n\n/* Status info view inside message bubble */\n.cometchat-message-bubble__status-info-view {\n    position: relative;\n    display: flex;\n    justify-content: flex-end;\n    align-items: flex-end;\n    height: fit-content;\n    width: fit-content;\n    padding: var(--cometchat-padding-1, 4px);\n    gap: var(--cometchat-padding-1, 4px);\n    border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.cometchat-message-bubble__audio-call .cometchat-call-bubble {\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-2, 8px);\n    ;\n}\n.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__body-image {\n    max-width: 100%;\n    max-height: 84vh;\n    object-fit: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-call-bubble .cometchat-call-bubble__body {\n    padding: 0;\n}\n.cometchat-message-bubble__thread-view-replies .cometchat-button {\n    align-items: flex-end;\n\n}\n.cometchat-reactions-info-wrapper>.cometchat {\n    width: fit-content;\n}\n.cometchat-message-bubble__thread-view-replies .cometchat-button .cometchat-button__text {\n    margin-bottom: -2px;\n}\n.cometchat-message-bubble__body-footer-view .cometchat-reactions .cometchat {\n    width: fit-content;\n}\n.cometchat-reactions .cometchat-popover, .cometchat-reactions .cometchat-popover__button{\n    width: fit-content;\n}\n\n/* Date header inside message list */\n.cometchat-message-list__date-header {\n    position: absolute;\n    top: 12px;\n    z-index: 2;\n}\n.cometchat-message-list__bubble-date-header{\n    margin: auto;\n    width: fit-content;\n}\n.cometchat-message-list__bubble-date-header,\n.cometchat-message-list__date-header {\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-dark);\n    background: var(--cometchat-background-color-02);\n    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n}\n\n/* Helper text for status info view */\n.cometchat-message-bubble__status-info-view-helper-text {\n    text-align: right;\n    color: var(--cometchat-static-white);\n    font: var(--cometchat-font-caption2-regular);\n    align-self: flex-end;\n    padding-bottom: 1.5px;\n}\n\n/* Button inside thread view replies */\n.cometchat-message-bubble__thread-view-replies .cometchat-button {\n    background: transparent;\n    gap: var(--cometchat-padding-1, 4px);\n    justify-content: flex-start;\n    padding: 0;\n    height: 100%;\n    width: fit-content;\n}\n\n/* Thread view replies layout */\n.cometchat-message-bubble__thread-view-replies {\n    display: flex;\n    height: 24px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-1, 4px) 0px var(--cometchat-padding-1, 4px);\n    align-items: center;\n    align-self: stretch;\n}\n\n/* Outgoing thread view replies */\n.cometchat-message-bubble-outgoing .cometchat-message-bubble__thread-view-replies {\n    justify-content: flex-end;\n}\n\n/* Text inside thread view replies button */\n.cometchat-message-bubble__thread-view-replies .cometchat-button__text {\n    color: var(--cometchat-text-color-primary);\n    text-align: right;\n    font: var(--cometchat-font-caption1-regular);\n}\n\n/* Icon inside thread view replies button */\n.cometchat-message-bubble__thread-view-replies .cometchat-button__icon {\n    height: 16px;\n    background: var(--cometchat-icon-color-secondary);\n    width: 16px;\n    -webkit-mask-size: contain;\n}\n\n/* Helper text for incoming message bubble status info */\n.cometchat-message-bubble-incoming .cometchat-message-bubble__status-info-view-helper-text {\n    text-align: right;\n    color: var(--cometchat-neutral-color-600);\n    font: var(--cometchat-font-caption2-regular);\n    align-self: flex-end;\n    padding-bottom: 1.5px;\n}\n\n\n/* Date inside date header in message list */\n.cometchat-message-list__date-header .cometchat-date,\n.cometchat-message-list__bubble-date-header .cometchat-date  {\n    color: var(--cometchat-text-color-primary);\n    font: var(--cometchat-font-caption1-medium);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: 0;\n}\n\n/* Date inside message bubble status info view */\n.cometchat-message-bubble__status-info-view .cometchat-date {\n    padding: 0px;\n}\n\n/* Bubble layout in message list */\n.cometchat-messagelist__bubble {\n    padding: 0px 0px 0px 15px;\n    overflow: hidden;\n    display: flex;\n    margin-right: 8px;\n    box-sizing: border-box;\n    width: 100%;\n}\n\n/* Main message list container */\n.cometchat-message-list {\n    height: 100%;\n    width: 100%;\n    flex: 1 1 0;\n    order: 2;\n    position: relative;\n    display: flex;\n    border-radius: inherit;\n    background: var(--cometchat-background-color-02);\n    flex-direction: column;\n    justify-content: flex-end;\n    align-items: center;\n    flex-shrink: 0;\n}\n\n/* Header inside message list */\n.cometchat-message-list__header {\n    display: flex;\n    align-items: flex-start;\n    justify-content: flex-start;\n    width: 100%;\n    height: auto;\n}\n\n/* Body inside message list */\n.cometchat-message-list__body {\n    height: 100%;\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    overflow-x: hidden;\n    box-sizing: border-box;\n}\n\n.cometchat-message-list__body--spacing-top .cometchat-list__body-intersection-top{\n    margin-bottom: var(--cometchat-spacing-8);\n}\n\n/* Message indicator inside message list */\n.cometchat-message-list__message-indicator {\n    position: absolute;\n    right: 12px;\n    bottom: 8px;\n}\n\n.cometchat-message-list__message-indicator>.cometchat {\n    width: fit-content;\n}\n\n/* Button inside message indicator */\n.cometchat-message-list__message-indicator .cometchat-button {\n    background: var(--cometchat-static-black);\n    height: fit-content;\n    width: fit-content;\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px);\n    flex-direction: column-reverse;\n    align-items: flex-start;\n    border-radius: var(--cometchat-radius-max, 4px);\n    justify-content: center;\n    align-items: center;\n    gap: 4px;\n}\n\n/* Text inside message indicator button */\n.cometchat-message-list__message-indicator .cometchat-button__text {\n    color: var(--cometchat-static-white);\n    text-align: center;\n    font: var(--cometchat-font-caption1-regular);\n    background: var(--cometchat-primary-color, #6852D6);\n    border-radius: var(--cometchat-radius-max);\n    height: 20px;\n    padding: 0px var(--cometchat-padding-2, 8px);\n    justify-content: center;\n    align-items: center;\n    display: flex;\n}\n\n/* Icon inside message indicator button */\n.cometchat-message-list__message-indicator .cometchat-button__icon {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-static-white);\n}\n\n/* Footer inside message list */\n.cometchat-message-list__footer {\n    display: flex;\n    justify-content: flex-start;\n    width: 100%;\n    box-sizing: border-box;\n    background: transparent;\n    z-index: 1;\n}\n\n/* Leading view inside message bubble */\n.cometchat-message-bubble__leading-view {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n}\n\n/* Avatar inside leading view of message bubble */\n.cometchat-message-bubble__leading-view .cometchat-avatar {\n    width: 32px;\n    height: 32px;\n}\n\n/* Header view inside message bubble */\n.cometchat-message-bubble__header-view {\n    color: var(--cometchat-text-color-highlight);\n    font: var(--cometchat-font-caption1-medium);\n    margin-bottom: var(--cometchat-margin-1);\n}\n\n/* Receipt icon inside message list */\n.cometchat-message-list__receipt {\n    height: 16px;\n    width: 16px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n/* Status view for "sending" receipt inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-wait .cometchat-message-list__receipt {\n    -webkit-mask: url(${w}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-static-white);\n}\n\n/* Status view for "sent" receipt inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-sent .cometchat-message-list__receipt {\n    -webkit-mask: url(${k}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-static-white);\n\n}\n\n.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body {\n    border-bottom-left-radius: 0;\n    border-bottom-right-radius: 0;\n}\n\n\n.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-video-bubble{\n    min-width: 240px;\n}\n\n.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-image-bubble{\n    min-width: 240px;\n}\n\n/* Status view for "delivered" receipt inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {\n    -webkit-mask: url(${x}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-static-white);\n\n}\n\n/* Status view for "read" receipt inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-read .cometchat-message-list__receipt {\n    -webkit-mask: url(${T}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-message-seen-color,#56E8A7);\n\n\n}\n\n/* Error receipt status inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-error .cometchat-message-list__receipt {\n    -webkit-mask: url(${A}) center center no-repeat;\n    background: var(--cometchat-static-white);\n    height: 12px;\n    width: 12px;\n}\n\n/* Error receipt status view inside message bubble */\n.cometchat-message-bubble__status-info-view-receipts-error {\n    height: 16px;\n    width: 16px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-error-color);\n    border-radius: var(--cometchat-radius-max);\n}\n\n/* shimmer */\n.cometchat-message-list__shimmer {\n    display: flex;\n    flex-direction: column;\n    gap: 10px;\n    background: var(--cometchat-background-color-01);\n    padding: 0px var(--cometchat-padding-4, 16px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-4, 16px);\n\n}\n\n.cometchat-message-list__shimmer-body {\n    display: flex;\n    width: 286px;\n    align-items: center;\n    position: relative;\n    border-radius: var(--cometchat-radius-2, 8px);\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-2);\n}\n\n.cometchat-message-list__shimmer-leading-view {\n    display: flex;\n    width: 40px;\n    height: 40px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 8px);\n    background: var(--cometchat-shimmer-gradient-color);\n    background-size: 200% 100%;\n    animation: listLoadingAnimation .8s infinite;\n    margin-right: var(--cometchat-margin-2);\n\n}\n\n.cometchat-message-list__shimmer-header {\n    display: flex;\n    width: 50px;\n    height: 22px;\n    justify-content: center;\n    align-items: center;\n    align-self: center;\n    border-radius: var(--cometchat-radius-2, 8px);\n    margin: auto;\n    margin-top: 10px;\n    z-index: 1;\n    position: relative;\n\n\n}\n\n.cometchat-message-list__shimmer-header .cometchat-message-list__shimmer-item {\n    height: 22px;\n}\n\n.cometchat-message-list__shimmer-item-header {\n    display: flex;\n    width: 120px;\n    height: 12px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-shimmer-gradient-color);\n    background-size: 200% 100%;\n    animation: listLoadingAnimation .8s infinite;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n.cometchat-message-list__shimmer-item {\n    width: 100%;\n    height: 53px;\n    background: var(--cometchat-shimmer-gradient-color);\n    background-size: 200% 100%;\n    animation: listLoadingAnimation .8s infinite;\n    border-radius: var(--cometchat-radius-2, 8px);\n}\n\n/* call status  */\n.cometchat-message-bubble .cometchat-message-bubble__video-call,\n.cometchat-message-bubble .cometchat-message-bubble__audio-call {\n    background: transparent;\n    padding: 0px;\n}\n\n.cometchat-message-bubble .cometchat-message-bubble__video-call .cometchat-action-bubble__icon,\n.cometchat-message-bubble .cometchat-message-bubble__audio-call .cometchat-action-bubble__icon {\n    display: flex;\n    width: 20px;\n    height: 20px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-icon-color-secondary);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.cometchat-message-bubble__video-call .cometchat-action-bubble,\n.cometchat-message-bubble__audio-call .cometchat-action-bubble {\n    display: flex;\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    border: 1px solid var(--cometchat-border-color-default);\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__missed-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${R}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-error-color);\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__ended-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${I}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__outgoing-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${O}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__incoming-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${N}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__busy-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__answered-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__unanswered-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__cancelled-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__video-call .cometchat-message-bubble__rejected-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${M}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__missed-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${D}) center center no-repeat;\n    -webkit-mask-size: contain;\n    background: var(--cometchat-error-color);\n\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__ended-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${I}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__outgoing-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${L}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__incoming-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${P}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__busy-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__answered-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__unanswered-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__cancelled-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-message-bubble__audio-call .cometchat-message-bubble__rejected-call .cometchat-action-bubble__icon {\n    -webkit-mask: url(${j}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n\n@keyframes listLoadingAnimation {\n    0% {\n        background-position: 200% 0;\n    }\n\n    100% {\n        background-position: 0% 200%;\n    }\n\n\n}\n\n/**\n * Setting transparent background and gap for sticker message bubble\n */\n.cometchat-message-bubble__body-wrapper .cometchat-message-bubble__sticker-message {\n    gap: var(--cometchat-padding-2, 8px);\n}\n\n/**\n * Removing cursor from sticker messages\n */\n.cometchat-message-bubble__sticker-message .cometchat-image-bubble {\n    cursor: default;\n    background-color: transparent;\n}\n\n/**\n * Adding semi-transparent background to status info view in sticker messages\n */\n.cometchat-message-bubble__sticker-message .cometchat-message-bubble__status-info-view {\n    background: rgba(20, 20, 20, 0.60);\n    align-items: center;\n}\n\n.cometchat-message-bubble__sticker-message .cometchat-message-bubble__status-info-view > .cometchat{\n    box-sizing: border-box;\n    align-items: center;\n    justify-content: center;\n    display: flex;\n}\n\n/**\n * Setting text color for date information in the status info view\n */\n.cometchat-message-bubble__sticker-message .cometchat-message-bubble__status-info-view .cometchat-date {\n    color: var(--cometchat-static-white, #F9F8FD);\n}\n\n/**\n * Styling for the message information popup wrapper and flag message dialog wrapper to create a centered overlay\n */\n.cometchat-message-information__popup-wrapper, .cometchat-message-list__flag-message-dialog-wrapper {\n    display: flex;\n    position: fixed;\n    z-index: 3;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    justify-content: center;\n    align-items: center;\n    overflow: auto;\n    background-color: rgba(0, 0, 0, 0.6);\n}\n\n.cometchat-message-list__body\n{\n    justify-content: flex-end;\n}\n\n.cometchat-message-list-loaded .cometchat-message-list__body  .cometchat-list__body{\n    height: fit-content;\n    max-height: 100%;\n}\n\n.cometchat-message-list-loaded > .cometchat-message-list__body > .cometchat {\n    height: fit-content !important;\n    max-height: 100%;\n}\n\n.cometchat-message-list__new-message-divider {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: var(--cometchat-spacing-4);\n    width: 100%;\n    padding: var(--cometchat-margin-4) var(--cometchat-spacing-7);\n}\n\n.cometchat-message-list__new-message-divider span{\n    text-wrap: nowrap;\n    font: var(--cometchat-font-body-medium);\n    color: var(--cometchat-error-color);\n}\n\n.cometchat-message-list__new-message-divider div {\n    width: 100%;\n    height: 1px;\n    background-color: var(--cometchat-error-color);\n}\n\n@keyframes backgroundFade {\n    0% { background-color: var(--cometchat-extended-primary-color-200); }\n    50% { background-color: var(--cometchat-extended-primary-color-100); }\n    75%, 100% { background-color: transparent; }\n}\n\n.cometchat-message-list__bubble-highlight {\n    animation: backgroundFade 3s ease-out forwards;\n}\n\n.cometchat-message-list__bubble-highlight-longer {\n    animation: backgroundFade 5s ease-out forwards;\n}\n\n.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar,\n.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar-thumb,\n.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__tabs::-webkit-scrollbar,\n.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__tabs::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-message-list-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar,\n.cometchat-message-list-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar-thumb,\n.cometchat-message-list-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar,\n.cometchat-message-list-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-message-list__flag-message-dialog-hide-scrollbar .cometchat-flag-message-dialog__remark-input::-webkit-scrollbar,\n.cometchat-message-list__flag-message-dialog-hide-scrollbar .cometchat-flag-message-dialog__remark-input::-webkit-scrollbar-thumb {\n    display: none;\n}`,""]);const U=S},6967:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(5694),n.b),u=new URL(n(8024),n.b),d=new URL(n(3259),n.b),p=new URL(n(7985),n.b),h=i()(a()),m=c()(l),g=c()(u),f=c()(d),_=c()(p);h.push([e.id,`.cometchat-tab-component {\n    display: flex;\n    width: 100%;\n    padding: 0px 8px;\n    align-items: flex-start;\n    gap: 8px;\n    border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-right: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-tab-component__tab {\n    display: flex;\n    padding: 12px 0px 10px 0px;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: 4px;\n    flex: 1 0 0;\n}\n\n.cometchat-tab-component__tab-icon {\n    display: flex;\n    width: 32px;\n    height: 32px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n    cursor: pointer;\n}\n\n.cometchat-tab-component__tab-icon-chats {\n    -webkit-mask: url(${m}), center, center, no-repeat;\n}\n\n.cometchat-tab-component__tab-icon-calls {\n    -webkit-mask: url(${g}), center, center, no-repeat;\n}\n\n.cometchat-tab-component__tab-icon-users {\n    -webkit-mask: url(${f}), center, center, no-repeat;\n}\n\n.cometchat-tab-component__tab-icon-groups {\n    -webkit-mask: url(${_}), center, center, no-repeat;\n}\n\n.cometchat-tab-component__tab-text {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-caption1-medium, 500 12px Roboto);\n    cursor: pointer;\n}\n\n.cometchat-tab-component__tab-icon-active {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-tab-component__tab-text-active {\n    color: var(--cometchat-text-color-highlight);\n}`,""]);const b=h},7005:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/delete_icon.5db005e80f01622481b4.svg"},7033:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_read.510802caddcee7cf38e1.svg"},7091:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/mic.f8d7efb6a5375516ba35.svg"},7094:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/missed_video_call_no_fill.a0aacfbcbf172a144ddc.svg"},7113:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/bin.5edc4360a390113bb49b.svg"},7160:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(3043),n.b),u=new URL(n(3602),n.b),d=new URL(n(440),n.b),p=new URL(n(5766),n.b),h=new URL(n(4186),n.b),m=i()(a()),g=c()(l),f=c()(u),_=c()(d),b=c()(p),v=c()(h);m.push([e.id,`\n.cometchat-call-logs {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex-shrink: 0;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-call-logs__outgoing-call {\n  background: rgba(0, 0, 0, 0.5);\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  z-index: 10;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n .cometchat-call-logs__list-item-active .cometchat-list-item {\n   background-color: var(--cometchat-white-pressed, #E8E8E8);\n }\n\n.cometchat-call-logs__list-item-trailing-view {\n  height: 24px;\n  width: 24px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;  \n  background:var(--cometchat-icon-color-primary,#FFF)\n}\n\n.cometchat-call-logs__list-item-trailing-view-video {\n  -webkit-mask: url(${g}) center center no-repeat;\n  mask: url(${g}) center center no-repeat;\n}\n\n.cometchat-call-logs__list-item-trailing-view-audio {\n  -webkit-mask: url(${f}) center center no-repeat;\n  mask: url(${f}) center center no-repeat;\n}\n\n.cometchat-call-logs__list-item-subtitle {\n  display: flex;\n  gap: 4px;\n}\n\n.cometchat-call-logs__list-item-subtitle .cometchat-date{\n  overflow: hidden;\n  color:var(--cometchat-text-color-secondary,#727272);\n  padding: 0px;\n text-overflow: ellipsis;\n font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-call-logs__list-item-subtitle-icon {\n  height: 16px;\n  width: 16px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;  \n  background:var(--cometchat-icon-color-primary,#FFF);\n\n}\n\n.cometchat-call-logs__list-item-subtitle-icon-missed-call {\n  -webkit-mask: url(${_}) center center no-repeat;\n  mask: url(${_}) center center no-repeat;\n  background-color: var(--cometchat-error-color,#F44649);\n}\n\n\n.cometchat-call-logs__list-item-subtitle-icon-outgoing-call {\n  -webkit-mask: url(${b}) center center no-repeat;\n  mask: url(${b}) center center no-repeat;\n  background-color: var(--cometchat-success-color,#09C26F);\n\n}\n\n.cometchat-call-logs__list-item-subtitle-icon-incoming-call {\n  -webkit-mask: url(${v}) center center no-repeat;\n  mask: url(${v}) center center no-repeat;\n  background-color: var(--cometchat-success-color,#09C26F);\n\n}\n\n.cometchat-call-logs__empty-state-view,\n.cometchat-call-logs__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-call-logs__empty-state-view-body,\n.cometchat-call-logs__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-call-logs__empty-state-view-body-title,\n.cometchat-call-logs__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-call-logs__empty-state-view-body-description,\n.cometchat-call-logs__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-call-logs__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #FFF);\n\n}\n\n.cometchat-call-logs__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  width: 100%;\n  min-width: 240px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-call-logs__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max,1000px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n}\n\n.cometchat-call-logs__shimmer-item-body {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  align-items: center;\n\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-call-logs__shimmer-item-body-title-wrapper {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n}\n\n.cometchat-call-logs__shimmer-item-body-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-call-logs__shimmer-item-body-subtitle {\n  width:25%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-call-logs__shimmer-item-body-tail {\n  width: 32px;\n  height: 32px;\n  min-height: 32px;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 10.5s infinite linear;\n}\n\n.cometchat-call-logs .cometchat-list-item {\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  cursor: pointer;\n} \n\n.cometchat-call-logs .cometchat-list-item__body {\n  padding: 0px;\n}\n\n@keyframes shimmerAnimation {\n    0% {\n      background-position: -468px 0;\n    }\n  \n    100% {\n      background-position: 468px 0;\n    }\n  }\n`,""]);const y=m},7176:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/stop-message.394e6adf2af527d6b219.svg"},7188:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_video-message.a2b413578aacf04e2a73.svg"},7200:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-error-view {\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  padding: var(--cometchat-padding-4);\n  box-sizing: border-box;\n  border-radius: var(--cometchat-radius-2);\n  border: 1px solid var(--cometchat-border-color-default);\n  background: var(--cometchat-error-color-100);\n  width: fit-content;\n  margin-top: var(--cometchat-margin-2);\n}\n.cometchat-error-view__message {\n  font: var(--cometchat-font-caption1-regular);\n  text-align: left;\n  line-height: 1.4;\n  margin: 0;\n  word-wrap: break-word;\n  hyphens: auto;\n  color: var(--cometchat-error-color);\n}\n",""]);const s=i},7213:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-special-mentions-list .cometchat-special-mentions-list__item {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n  cursor: pointer;\n}\n\n.cometchat-special-mentions-list .cometchat-special-mentions-list__item:hover {\n  background: var(--cometchat-white-hover, #FAFAFA);\n}\n\n.cometchat-special-mentions-list .cometchat-special-mentions-list__item .cometchat-special-mentions-list__item-name {\n  padding: 5px;\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.cometchat-special-mentions-list .cometchat-special-mentions-list__item .cometchat-special-mentions-list__item-name .cometchat-special-mentions-list__item-name-subtext{\n  color: var(--cometchat-neutral-color-700);\n  font: var(--cometchat-font-body-regular);\n}",""]);const s=i},7265:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-thread-header {\n    display: flex;\n    width: 100%;\n    flex-direction: column;\n    justify-content: center;\n    align-items: flex-start;\n    gap: 0px;\n    flex-shrink: 0;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-thread-header__top-bar {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    height: 64px;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-thread-header__top-bar-title-container {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    align-items: flex-start;\n    flex: 1 0 0;\n    overflow: hidden;\n}\n\n.cometchat-thread-header__top-bar-title {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);\n}\n\n.cometchat-thread-header__top-bar-subtitle-text{\n    color: var(--cometchat-text-color-secondary, #727272);\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n    text-overflow: ellipsis;\n    overflow: hidden;\n    white-space: nowrap;\n}\n\n.cometchat-thread-header__top-bar-subtitle-text-clickable {\n    cursor: pointer;\n}\n\n.cometchat-thread-header__top-bar-close {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n}\n\n.cometchat-thread-header__top-bar-close .cometchat-button {\n    height: 24px;\n    width: 24px;\n    padding: 0px;\n    gap: 0px;\n    background: transparent;\n}\n\n.cometchat-thread-header__top-bar-close .cometchat-button:hover {\n    background: transparent;\n}\n\n.cometchat-thread-header__top-bar-close .cometchat-button:active {\n    background: transparent;\n}\n\n.cometchat-thread-header__top-bar-close .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-thread-header__top-bar-close .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-thread-header__body {\n    display: flex;\n    width: 100%;\n    padding-top: var(--cometchat-padding-3, 12px);\n    flex-direction: column;\n    flex-shrink: 0;\n}\n\n.cometchat-thread-header__body-timestamp {\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n    align-self: center;\n    border-radius: var(--cometchat-radius-1, 4px);\n    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n}\n\n.cometchat-thread-header__body-timestamp .cometchat-date {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-caption1-medium, 500 12px Roboto);\n    padding: 0px;\n    display: flex;\n}\n\n.cometchat-thread-header__message {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    gap: 0px;\n    min-height: 50px;\n    max-height: 300px;\n    overflow: hidden auto;\n    flex: 1 0 0;\n}\n\n.cometchat-thread-header-hide-scrollbar .cometchat-thread-header__message::-webkit-scrollbar,\n.cometchat-thread-header-hide-scrollbar .cometchat-thread-header__message::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-thread-header__message .cometchat-text-bubble .cometchat-text-bubble__read-more {\n    display: none;\n}\n\n.cometchat-thread-header__message-small {\n    min-height: fit-content;\n    max-height: 150px;\n}\n\n.cometchat-thread-header__message-incoming {\n    align-self: flex-start;\n}\n\n.cometchat-thread-header__message-outgoing {\n    align-self: flex-end;\n}\n\n.cometchat-thread-header__message .cometchat-message-bubble__wrapper {\n    padding: 0px;\n    width: 100%;\n}\n\n.cometchat-thread-header__reply-bar {\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n.cometchat-thread-header__reply-bar-count {\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-thread-header__reply-bar-divider {\n    width: 100%;\n    height: 1px;\n    background: var(--cometchat-border-color-default, #E8E8E8);\n    flex: 1;\n}\n\n.cometchat-thread-header__message .cometchat-message-preview {\n    cursor: not-allowed;\n}",""]);const s=i},7292:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Black.4afbed674a5252ead176.ttf"},7293:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(9834),n.b),u=new URL(n(4759),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`.cometchat-empty-state-view {\n    display: flex;\n    width: 316px;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-5, 20px);\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.cometchat-empty-state-view__icon {\n    width: 120px;\n    height: 120px;\n    -webkit-mask: url(${p}) center center no-repeat;\n    background: var(--cometchat-neutral-color-400, #DCDCDC);\n    -webkit-mask-size: contain;\n}\n\n.cometchat-empty-state-view__icon-call {\n    width: 120px;\n    height: 120px;\n    -webkit-mask: url(${h}) center center no-repeat;\n    background: var(--cometchat-neutral-color-400, #DCDCDC);\n    -webkit-mask-size: contain;\n}\n\n.cometchat-empty-state-view__text {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    width: 280px;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-empty-state-view__text-title {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading3-bold, 700 18px Roboto);\n}\n\n@media (max-width: 768px) {\n    .cometchat-empty-state-view {\n        display: none;\n    }\n}`,""]);const m=d},7305:()=>{"use strict";var e=document.createElement.bind(document);document.createElement=function(t,n){var r=e(t,n);return"style"===t.toLowerCase()&&r.setAttribute("data-cometchat-sdk","true"),r}},7317:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(7875),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/* Container for the confirmation dialog */\n.cometchat-confirm-dialog {\n    margin: 0 auto;\n    width: 400px;\n    box-sizing: border-box;\n    display: flex;\n    width: 400px;\n    padding: var(--cometchat-padding-6, 24px) var(--cometchat-padding-6, 24px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-6, 24px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    border-radius: var(--cometchat-radius-4, 16px);\n    border: 1px solid var(--cometchat-border-color-light);\n    background: var(--cometchat-background-color-01);\n    /* Shadow-LG */\n    flex-wrap: wrap;\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n/* Title inside the confirmation dialog */\n.cometchat-confirm-dialog__content-title {\n    color: var(--cometchat-text-color-primary);\n    text-align: center;\n    font: var(--cometchat-font-heading2-medium);\n    font-style: normal;\n}\n\n/* Content inside the dialog, typically descriptions and details */\n.cometchat-confirm-dialog__content {\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding);\n}\n\n/* Description inside the dialog */\n.cometchat-confirm-dialog__content-description {\n    width: 100%;\n    color: var(--cometchat-text-color-secondary);\n    text-align: center;\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n\n}\n\n/* Button group for the dialog */\n.cometchat-confirm-dialog__button-group {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) 0px;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    width: 100%;\n    overflow: hidden;\n}\n\n/* Icon wrapper for confirmation dialog */\n.cometchat-confirm-dialog__icon-wrapper {\n    display: flex;\n    width: 80px;\n    height: 80px;\n    padding: var(--cometchat-padding-4);\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-02);\n    flex-shrink: 1;\n\n}\n\n/* Styling for the confirmation icon */\n.cometchat-confirm-dialog__icon-wrapper-icon {\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    height: 48px;\n    width: 48px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-error-color);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/* Submit button inside the confirmation dialog */\n.cometchat-confirm-dialog__button-group-submit .cometchat-button {\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    background: var(--cometchat-error-color);\n    border: 1px solid var(--cometchat-border-color-light);\n}\n.cometchat-confirm-dialog__button-group .cometchat-button{\n    height: 100%;\n    width: 100%;\n}\n/* Styling for buttons inside the dialog */\n .cometchat-confirm-dialog__button-group .cometchat-confirm-dialog__button-group-submit,\n .cometchat-confirm-dialog__button-group .cometchat-confirm-dialog__button-group-cancel{\n    width: 100%;\n    display: flex;\n    height: 40px;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    font: var(--cometchat-font-button-medium);\n    font-style: normal;\n    cursor: pointer;\n}\n.cometchat-confirm-dialog__button-group-submit> .cometchat,\n.cometchat-confirm-dialog__button-group-cancel> .cometchat{\n    height: 100%;\n    width: 100%;\n}\n/* Cancel button inside the confirmation dialog */\n.cometchat-confirm-dialog__button-group-cancel  .cometchat-button {\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    border: 1px solid var(--cometchat-border-color-dark);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n.cometchat-confirm-dialog__button-group-cancel  .cometchat-button .cometchat-button__text{\n    color: var(--cometchat-text-color-primary);\n\n}\n.cometchat-confirm-dialog__button-group-submit  .cometchat-button .cometchat-button__text{\n    color: var(--cometchat-static-white);\n\n}\n.cometchat-confirm-dialog-error-view{\n    border-radius: var(--cometchat-radius-4, 12px) var(--cometchat-radius-4, 12px) 0px 0px;\n   background: linear-gradient(0deg, rgba(244, 70, 73, 0.10) 0%, rgba(244, 70, 73, 0.10) 100%), var(--cometchat-background-color-01, #FFF);\n   overflow: hidden;\ncolor: var(--cometchat-error-color, #F44649);\ntext-overflow: ellipsis;\nfont:var(--cometchat-font-body-regular);\nfont-style: normal;\ndisplay: flex;\nwidth: 100%;\npadding: var(--cometchat-padding-2, 8px);\nalign-items: flex-start;\nheight: 48px;\nmargin-bottom: -16px;\njustify-content: center;\n}`,""]);const p=u},7396:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-message-information {\n    max-width: 420px;\n    width: 100%;\n    height: fit-content;\n    max-height: 100%;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    overflow: hidden;\n}\n\n.cometchat-message-information__header {\n    display: flex;\n    height: 64px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-message-information__header-title {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    align-items: flex-start;\n    gap: 0px;\n    flex: 1 0 0;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);\n}\n\n.cometchat-message-information__header-close {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n}\n\n.cometchat-message-information__header-close .cometchat-button {\n    height: 24px;\n    width: 24px;\n    padding: 0px;\n    gap: 0px;\n    background: transparent;\n}\n\n.cometchat-message-information__header-close .cometchat-button:hover {\n    background: transparent;\n}\n\n.cometchat-message-information__header-close .cometchat-button:active {\n    background: transparent;\n}\n\n.cometchat-message-information__header-close .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-message-information__header-close .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-message-information__message {\n    display: flex;\n    padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-4, 16px);\n    align-items: flex-start;\n    gap: 0px;\n    width: 100%;\n    max-height: 300px;\n    overflow: hidden auto;\n    background: var(--cometchat-background-color-02, #FAFAFA);\n    border-bottom: 1px solid var(--cometchat-border-color-light);\n}\n\n\n\n\n.cometchat-message-information__message .cometchat-message-bubble__wrapper {\n    padding: 0px;\n    width: 100%;\n}\n\n.cometchat-message-information__receipts {\n    display: flex;\n    width: 100%;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    height: 260px;\n    overflow: hidden auto;\n}\n\n.cometchat-message-information__receipts .cometchat-list-item__body-subtitle {\n    flex-direction: column;\n    gap: 0px;\n}\n.cometchat-message-information-hide-scrollbar .cometchat-message-information__receipts::-webkit-scrollbar,\n.cometchat-message-information-hide-scrollbar .cometchat-message-information__receipts::-webkit-scrollbar-thumb {\n    display: none;\n}\n\n.cometchat-message-information-hide-scrollbar .cometchat-message-information__message::-webkit-scrollbar,\n.cometchat-message-information-hide-scrollbar .cometchat-message-information__message::-webkit-scrollbar-thumb {\n    display: none;\n}\n.cometchat-message-information__receipts .cometchat-list-item__body {\n    padding: 0px;\n}\n\n.cometchat-message-information__receipts .cometchat-list-item:hover {\n    background: transparent;\n}\n\n.cometchat-message-information__receipts-subtitle {\n    display: flex;\n    padding: 0px;\n    width: 100%;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-1, 4px);\n    flex: 1 0 0;\n}\n\n.cometchat-message-information__receipts-subtitle-text {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    align-self: stretch;\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n\n}\n\n.cometchat-message-information__receipts .cometchat-list-item {\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    align-items: flex-start;\n}\n\n.cometchat-message-information__receipts .cometchat-list-item__trailing-view {\n    display: none;\n}\n\n.cometchat-message-information__receipts .cometchat-list-item__leading-view,\n.cometchat-message-information__receipts .cometchat-avatar,\n.cometchat-message-information__receipts .cometchat-avatar__image {\n    height: 40px;\n    width: 40px;\n}\n\n.cometchat-message-information__shimmer {\n    width: 100%;\n    height: 260px;\n    background: var(--cometchat-background-color-01, #FFF);\n\n}\n\n.cometchat-message-information__shimmer-item {\n    width: 100%;\n    height: 72px;\n    display: flex;\n    width: 100%;\n    min-width: 240px;\n    max-width: 1440px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: 12px;\n}\n\n.cometchat-message-information__shimmer-item-avatar {\n    width: 48px;\n    height: 48px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n    animation: shimmerAnimation 5s infinite linear;\n}\n\n.cometchat-message-information__shimmer-item-title {\n    background: var(--cometchat-shimmer-gradient-color);\n    border-radius: var(--cometchat-radius-2, 8px);\n    display: flex;\n    height: 40px;\n    justify-content: center;\n    align-items: center;\n    flex: 1 0 0;\n    animation: shimmerAnimation 5s infinite linear;\n}\n\n@keyframes shimmerAnimation {\n    0% {\n        background-position: -468px 0;\n    }\n\n    100% {\n        background-position: 468px 0;\n    }\n}\n\n.cometchat-message-information__receipts-subtite-text,\n.cometchat-message-information__receipts-subtitle .cometchat-date,\n.cometchat-message-information__receipts-subtite-text .cometchat-date {\n    padding: 0px;\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-message-information__receipts-empty,\n.cometchat-message-information__error-state {\n    display: flex;\n    height: 200px;\n    width: 100%;\n    justify-content: center;\n    align-items: center;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-message-information .cometchat-list__header {\n    border-bottom: none;\n}\n\n.cometchat-message-information .cometchat-message-bubble {\n    pointer-events: none;\n}",""]);const s=i},7425:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/shield.0e8a980876383e89187b.svg"},7427:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/pause_circle.aeb67d0d88ff819a6acf.svg"},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>o(c,n))l<a&&0>o(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<a&&0>o(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,p=null,h=3,m=!1,g=!1,f=!1,_="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function E(e){if(f=!1,y(e),!g)if(null!==r(l))g=!0,M(C);else{var t=r(u);null!==t&&D(E,t.startTime-e)}}function C(e,n){g=!1,f&&(f=!1,b(x),x=-1),m=!0;var o=h;try{for(y(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!R());){var i=p.callback;if("function"==typeof i){p.callback=null,h=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(l)&&a(l),y(n)}else a(l);p=r(l)}if(null!==p)var c=!0;else{var d=r(u);null!==d&&D(E,d.startTime-n),c=!1}return c}finally{p=null,h=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,w=!1,k=null,x=-1,T=5,A=-1;function R(){return!(t.unstable_now()-A<T)}function I(){if(null!==k){var e=t.unstable_now();A=e;var n=!0;try{n=k(!0,e)}finally{n?S():(w=!1,k=null)}}else w=!1}if("function"==typeof v)S=function(){v(I)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=I,S=function(){N.postMessage(null)}}else S=function(){_(I,0)};function M(e){k=e,w||(w=!0,S())}function D(e,n){x=_(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(l)&&e===r(u)&&(f?(b(x),x=-1):f=!0,D(E,o-i))):(e.sortIndex=s,n(l,e),g||m||(g=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},7495:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/logout.450e8c11bf96d0c74710.svg"},7556:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/block.0699b8d96de4c20c76d0.svg"},7574:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/format_underline.994e29f5681af5b2e906.svg"},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7691:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/format_bold.c876966bd62a413212e5.svg"},7700:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".CometChatAgentApp .cometchat-ai-assistant-chat-history {\n  padding: 0px;\n  padding-left: 8px;\n}",""]);const s=i},7775:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-tanslation-bubble {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  border-radius: var(--cometchat-radius-3, 12px);\n  flex: 1 0 0;\n  padding: var(--cometchat-padding-2) var(--cometchat-padding-2) 0px var(--cometchat-padding-2);\n}\n\n.cometchat-tanslation-bubble-incoming {\n  align-items: flex-start;\n  background: var(--cometchat-neutral-color-300, #E8E8E8);\n}\n\n.cometchat-tanslation-bubble-outgoing {\n  align-items: flex-end;\n  background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-tanslation-bubble__original-text {\n  width: 100%;\n  max-width: 500px;\n}\n.cometchat-tanslation-bubble__original-text \n.cometchat-text-bubble {\n  padding: 0px;\n}\n\n.cometchat-tanslation-bubble__translated-text {\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  text-align: left;\n  max-width: 500px;\n  margin: 0px;\n  word-break: break-word;\n  text-align: left;\n  white-space: pre-line;\n  overflow: auto;\n  width: 100%;\n  display: block;\n}\n\n.cometchat-tanslation-bubble-incoming .cometchat-tanslation-bubble__translated-text {\n  color: var(--cometchat-neutral-color-900, #141414);\n}\n\n\n.cometchat-tanslation-bubble-outgoing .cometchat-tanslation-bubble__translated-text {\n  color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-tanslation-bubble__separator {\n  height: 1px;\n  width: 100%;\n}\n\n.cometchat-tanslation-bubble-incoming .cometchat-tanslation-bubble__separator {\n  background: var(--cometchat-neutral-color-400, #DCDCDC);\n}\n\n\n.cometchat-tanslation-bubble-outgoing .cometchat-tanslation-bubble__separator {\n  background: var(--cometchat-extended-primary-color-800, #7965DB);\n}\n\n\n\n.cometchat-tanslation-bubble__helper-text {\n  padding: var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2) 0px;\n  text-align: right;\n  font: var(--cometchat-font-caption2-regular);\n  font-style: normal;\n}\n\n.cometchat-tanslation-bubble-incoming .cometchat-tanslation-bubble__helper-text {\n  color: var(--cometchat-neutral-color-600, #727272);\n}\n\n\n.cometchat-tanslation-bubble-outgoing .cometchat-tanslation-bubble__helper-text {\n  color: var(--cometchat-static-white, #FFF);\n}",""]);const s=i},7783:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/link_icon_2x.36e20b3a8c0cb0f48554.svg"},7805:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/* Backdrop overlay for the link dialog */\n.cometchat-link-dialog__backdrop {\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background: rgba(0, 0, 0, 0.5);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  z-index: 1000;\n}\n\n/* Container for the link dialog */\n.cometchat-link-dialog {\n  width: 400px;\n  max-width: 90vw;\n  box-sizing: border-box;\n  display: flex;\n  padding: var(--cometchat-padding-6, 24px);\n  flex-direction: column;\n  align-items: stretch;\n  gap: var(--cometchat-padding-4, 16px);\n  border-radius: var(--cometchat-radius-4, 16px);\n  border: 1px solid var(--cometchat-border-color-light);\n  background: var(--cometchat-background-color-01);\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n/* Header section with title and close button */\n.cometchat-link-dialog__header {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  align-items: center;\n}\n\n/* Dialog title */\n.cometchat-link-dialog__title {\n  color: var(--cometchat-text-color-primary);\n  text-align: left;\n  font: var(--cometchat-font-heading4-bold);\n  font-style: normal;\n}\n\n/* Close button */\n.cometchat-link-dialog__close-button {\n  width: 24px;\n  height: 24px;\n  cursor: pointer;\n  mask: url(${d}) center center no-repeat;\n  -webkit-mask: url(${d}) center center no-repeat;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  background: var(--cometchat-icon-color-primary);\n}\n\n/* Divider between header and content */\n.cometchat-link-dialog__divider {\n  height: 1px;\n  width: 100%;\n  background: var(--cometchat-border-color-light);\n}\n\n/* Content section with form fields */\n.cometchat-link-dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n}\n\n/* Individual form field */\n.cometchat-link-dialog__field {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 4px);\n}\n\n/* Field label */\n.cometchat-link-dialog__label {\n  color: var(--cometchat-text-color-primary);\n  font: var(--cometchat-font-heading4-medium);\n  font-style: normal;\n  text-align: left;\n}\n\n/* Input field */\n.cometchat-link-dialog__input {\n  display: flex;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);\n  align-items: center;\n  align-self: stretch;\n  border-radius: var(--cometchat-radius-2, 8px);\n  border: 1px solid var(--cometchat-border-color-light);\n  background: var(--cometchat-background-color-01);\n  color: var(--cometchat-text-color-primary);\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  outline: none;\n  transition: border-color 0.2s ease;\n}\n\n.cometchat-link-dialog__input:focus {\n  border-color: var(--cometchat-primary-color);\n}\n\n.cometchat-link-dialog__input::placeholder {\n  color: var(--cometchat-text-color-tertiary);\n}\n\n/* Input field with error */\n.cometchat-link-dialog__input--error {\n  border-color: var(--cometchat-error-color);\n}\n\n.cometchat-link-dialog__input--error:focus {\n  border-color: var(--cometchat-error-color);\n}\n\n/* Error message */\n.cometchat-link-dialog__error {\n  color: var(--cometchat-error-color);\n  font: var(--cometchat-font-caption2-regular);\n  font-style: normal;\n}\n\n/* Button group */\n.cometchat-link-dialog__button-group {\n  display: flex;\n  padding-top: var(--cometchat-padding-2, 8px);\n  align-items: center;\n  gap: var(--cometchat-padding-2, 8px);\n  align-self: stretch;\n  width: 100%;\n}\n\n/* Button containers */\n.cometchat-link-dialog__button-cancel,\n.cometchat-link-dialog__button-submit {\n  flex: 1;\n  display: flex;\n  height: 40px;\n}\n\n.cometchat-link-dialog__button-cancel > .cometchat,\n.cometchat-link-dialog__button-submit > .cometchat {\n  height: 100%;\n  width: 100%;\n}\n\n.cometchat-link-dialog__button-cancel .cometchat-button,\n.cometchat-link-dialog__button-submit .cometchat-button {\n  height: 100%;\n  width: 100%;\n}\n\n/* Cancel button styling */\n.cometchat-link-dialog__button-cancel .cometchat-button {\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  border: 1px solid var(--cometchat-border-color-dark);\n  background: var(--cometchat-background-color-01);\n}\n\n.cometchat-link-dialog__button-cancel .cometchat-button .cometchat-button__text {\n  color: var(--cometchat-text-color-primary);\n}\n\n/* Submit button styling */\n.cometchat-link-dialog__button-submit .cometchat-button {\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  background: var(--cometchat-primary-color);\n  border: 1px solid var(--cometchat-primary-color);\n}\n\n.cometchat-link-dialog__button-submit .cometchat-button .cometchat-button__text {\n  color: var(--cometchat-static-white);\n}\n\n\n/* Disabled submit button styling */\n.cometchat-link-dialog__button-submit--disabled .cometchat-button {\n  background: var(--cometchat-background-color-04) !important;\n  border-color: var(--cometchat-background-color-04) !important;\n  cursor: not-allowed;\n  opacity: 0.6;\n}\n\n.cometchat-link-dialog__button-submit--disabled .cometchat-button .cometchat-button__text {\n  color: var(--cometchat-text-color-tertiary) !important;\n}\n`,""]);const p=u},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7841:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(7005),n.b),u=new URL(n(6246),n.b),d=i()(a()),p=c()(l),h=c()(u);d.push([e.id,`.cometchat-ai-assistant-chat-history {\n  height: 100%;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  padding: var(--cometchat-padding-2);\n  padding-top: 0;\n}\n\n.cometchat-ai-assistant-chat-history__loading,\n.cometchat-ai-assistant-chat-history__empty,\n.cometchat-ai-assistant-chat-history__error {\n  padding: var(--cometchat-padding-5);\n  text-align: center;\n  color: var(--cometchat-text-color-secondary);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n  width: 100%;\n}\n\n.cometchat-ai-assistant-chat-history__list {\n  flex: 1;\n  overflow-y: auto;\n}\n\n.cometchat-ai-assistant-chat-history__header-container {\n  background: transparent;\n  box-sizing: border-box;\n  height: fit-content;\n  width: 100%;\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-list__header {\n  background: transparent;\n  border: none;\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container {\n  padding-bottom: var(--cometchat-padding-5);\n  box-sizing: border-box;\n\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button {\n  height: fit-content;\n  width: 100%;\n  border: none;\n  background: transparent;\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n  padding: var(--cometchat-padding-2);\n  gap: var(--cometchat-spacing-2);\n  min-height: 44px;\n  justify-content: flex-start;\n  padding-left: 0;\n\n}\n.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__text{\n  color: var(--cometchat-text-color-primary);\n\n}\n.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__icon {\n  background: var(--cometchat-icon-color-secondary);\n  height: 24px;\n  width: 24px;\n}\n.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button:hover {\n  background: var(--cometchat-background-color-03);\n  border-radius: var(--cometchat-radius-2);\n\n}\n.cometchat-ai-assistant-chat-history__list-options{\n  visibility: hidden;\n}\n.cometchat-ai-assistant-chat-history__list-item:hover .cometchat-ai-assistant-chat-history__list-options{\n  visibility: visible;\n}\n.cometchat-ai-assistant-chat-history__list-item {\n  padding: var(--cometchat-padding-3) var(--cometchat-padding-2);\n  background: var(--cometchat-background-color-02);\n  transition: background 0.2s ease;\n  display: flex;\n  flex-direction: row;\n  width: 100%;\n  justify-content: space-between;\n  align-items: center;\n  cursor: pointer;\n}\n\n.cometchat-ai-assistant-chat-history__list-item-date-header {\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n  border-radius: var(--cometchat-radius-1, 4px);\n  background: transparent;\n  width: fit-content;\n  min-height: 42px;\n  box-sizing: border-box;\n  padding: var(--cometchat-padding-5) var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2);\n  width: 100%;\n\n}\n\n.cometchat-ai-assistant-chat-history__list-item-date-header-start {\n  padding: var(--cometchat-padding-2);\n\n}\n.cometchat-ai-assistant-chat-history .cometchat-menu-list__menu {\n  background-color: transparent;\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item{\n  background-color: transparent;\n  box-shadow: none;\n}\n\n\n.cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item-icon-delete {\n -webkit-mask: url(${p}) center center no-repeat;\n  mask: url(${p}) center center no-repeat;\n  background: var(--cometchat-error-color,#F44649);\n  width: 24px;\n  height: 24px;\n  -webkit-mask-size: contain;\n}\n.cometchat-ai-assistant-chat-history__list-item-date-header .cometchat-date {\n  padding: 0;\n}\n\n.cometchat-ai-assistant-chat-history__list-item-container {\n  height: fit-content;\n  width: 100%;\n}\n\n.cometchat-ai-assistant-chat-history__list-item:hover {\n  background: var(--cometchat-background-color-03);\n  border-radius: var(--cometchat-radius-2);\n}\n\n.cometchat-ai-assistant-chat-history__list-item-text {\n  line-height: 1.5;\n  color: var(--cometchat-text-color-primary);\n  font: var(--cometchat-font-body-regular);\n  text-align: left;\n  cursor: pointer;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-list__body {\n  border: none;\n  padding: var(--cometchat-padding-2) 0;\n\n}\n\n.cometchat-ai-assistant-chat-history__header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0 var(--cometchat-padding-2);\n  background: var(--cometchat-background-color-02);\n  min-height: 65px;\n  box-sizing: border-box;\n}\n\n.cometchat-ai-assistant-chat-history__title {\n  font: var(--cometchat-font-heading3-bold);\n  color: var(--cometchat-text-color-primary);\n  margin: 0;\n}\n\n.cometchat-ai-assistant-chat-history .cometchat-list__body-intersection-top {\n  visibility: hidden !important;\n}\n\n.cometchat-ai-assistant-chat-history__close {\n  background: transparent;\n  border: none;\n  padding: var(--cometchat-padding-2);\n  cursor: pointer;\n  border-radius: var(--cometchat-radius-2);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  transition: background-color 0.2s ease;\n}\n\n.cometchat-ai-assistant-chat-history__close:hover {\n  background: var(--cometchat-background-color-03);\n}\n\n.cometchat-ai-assistant-chat-history__close-icon {\n  width: 24px;\n  height: 24px;\n  mask: url(${h}) center center no-repeat;\n  -webkit-mask: url(${h}) center center no-repeat;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n  background: var(--cometchat-icon-color-secondary);\n}\n\n.cometchat-ai-assistant-chat-history__shimmer {\n  width: 100%;\n  height: 100%;\n  background: transparent;\n\n}\n\n.cometchat-ai-assistant-chat-history__shimmer-item {\n  width: 100%;\n  height: 48px;\n  display: flex;\n  width: 100%;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-ai-assistant-chat-history__shimmer-item-title {\n  width: 100%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-ai-assistant-chat-history__empty-state-view,\n.cometchat-ai-assistant-chat-history__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: transparent;\n}\n\n\n\n.cometchat-ai-assistant-chat-history__empty-state-view-body,\n.cometchat-ai-assistant-chat-history__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-ai-assistant-chat-history__empty-state-view-body-title,\n.cometchat-ai-assistant-chat-history__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-ai-assistant-chat-history__empty-state-view-body-description,\n.cometchat-ai-assistant-chat-history__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}`,""]);const m=d},7845:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-button {\n    display: flex;\n    height: 40px;\n    width: 160px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: none;\n    background: var(--cometchat-primary-button-background, #6852D6);\n    cursor: pointer;\n}\n\n.cometchat-button__text {\n    color: var(--cometchat-static-white, #FFFFFF);\n    font: var(--cometchat-font-button-medium, 500 14px Roboto);\n    line-height: 120%;\n    cursor: pointer;\n}\n\n.cometchat-button__icon {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n}\n\n.cometchat-button__icon-default {\n    height: 24px;\n    width: 24px;\n}\n\n.cometchat-button:hover {\n    background: var(--cometchat-extended-primary-color-800, #7A6BD6);\n}\n\n.cometchat-button:active {\n    background: var(--cometchat-extended-primary-color-900, #5D49BE);\n    outline: none;\n}\n\n.cometchat-button:focus {\n    outline: none;\n}\n\n.cometchat-button__loading-view {\n    width: 24px;\n    height: 24px;\n    animation: spin .8s linear infinite;\n}\n\n@keyframes spin {\n    0% {\n        transform: rotate(0deg);\n    }\n\n    100% {\n        transform: rotate(360deg);\n    }\n}",""]);const s=i},7875:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/delete.ca82d8766e6022162c9a.svg"},7926:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6763),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-delete-bubble {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px);\n    flex-direction: column;\n    align-items: flex-end;\n    border-radius: var(--cometchat-radius-3, 12px);\n    max-width: 270px;\n}\n\n.cometchat-delete-bubble-outgoing {\n    background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-delete-bubble-incoming {\n    background: var(--cometchat-neutral-color-300, #383838);\n}\n\n.cometchat-delete-bubble__body {\n    display: flex;\n    padding: 0px;\n    justify-content: flex-end;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-1, 4px);\n    border-radius: 0px;\n}\n\n.cometchat-delete-bubble__icon {\n    display: flex;\n    width: 16px;\n    height: 16px;\n    justify-content: center;\n    align-items: center;\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    background: var(--cometchat-primary-button-icon, #FFFFFF);\n    mask-size: contain;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-delete-bubble-incoming .cometchat-delete-bubble__icon {\n    background: var(--cometchat-neutral-color-600, #727272);\n}\n\n.cometchat-delete-bubble-outgoing .cometchat-delete-bubble__icon {\n    background: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-delete-bubble__text {\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    text-align: left;\n}\n\n.cometchat-delete-bubble-outgoing .cometchat-delete-bubble__text {\n    color: var(--cometchat-static-white, #FFF);\n}\n\n.cometchat-delete-bubble-incoming .cometchat-delete-bubble__text {\n    color: var(--cometchat-neutral-color-600, #989898);\n}`,""]);const p=u},7927:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1561),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-group-members {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex-shrink: 0;\n  background: var(--cometchat-background-color-01, #fff);\n}\n\n.cometchat-group-members__backdrop {\n  background: rgba(0, 0, 0, 0.5);\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  z-index: 10;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n\n.cometchat-group-members-hide-scrollbar .cometchat-list__body::-webkit-scrollbar {\n  background: transparent;\n  height: 0px;\n  width: 0px;\n}\n\n.cometchat-group-members-hide-scrollbar .cometchat-list__body::-webkit-scrollbar-thumb {\n  background: transparent;\n  border-radius: 8px;\n}\n\n.cometchat-group-members .cometchat-group-members__trailing-view-options {\n  display: flex;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-3, 12px);\n  justify-content: center;\n  align-items: center;\n  gap: var(--cometchat-padding-5, 20px);\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-extended-primary-color-100, #edeafa);\n  overflow: hidden;\n  color: var(--cometchat-text-color-highlight, #6852d6);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-caption1-regular);\n  font-style: normal;\n  text-transform: capitalize;\n}\n\n.cometchat-group-members .cometchat-group-members__trailing-view-options-admin {\n  border: 1px solid var(--cometchat-border-color-highlight, #6852D6);\n}\n\n.cometchat-group-members .cometchat-group-members__trailing-view-options-owner {\n  color: var(--cometchat-static-white, #F9F8FD);\n  background: var(--cometchat-primary-color, #6852D6);\n}\n\n.cometchat-group-members .cometchat-group-members__trailing-view-options-participant {\n  display: none;\n}\n\n.cometchat-group-members .cometchat-list-item__trailing-view {\n  width: auto;\n  height: fit-content;\n}\n\n.cometchat-group-members .cometchat-menu-list__sub-menu-list-item-icon {\n  display: none;\n}\n\n.cometchat-group-members .cometchat-menu-list__sub-menu-icon {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  height: 16px;\n  width: 16px;\n  -webkit-mask: url(${d}) center center no-repeat;\n  mask: url(${d}) center center no-repeat;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n}\n\n.cometchat-group-members .cometchat-menu-list__sub-menu-list {\n  border-radius: var(--cometchat-radius-2, 8px);\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  background: var(--cometchat-background-color-01, #FFF);\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-group-members .cometchat-menu-list__sub-menu-list :hover {\n  background: var(--cometchat-background-color-02, #fafafa);\n}\n\n.cometchat-group-members__empty-state-view {\n  display: flex;\n  flex-direction: column;\n}\n\n.cometchat-group-members__empty-state-view,\n.cometchat-group-members__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #fff);\n}\n\n.cometchat-group-members__empty-state-view-body,\n.cometchat-group-members__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-group-members__empty-state-view-body-title,\n.cometchat-group-members__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-group-members__empty-state-view-body-description,\n.cometchat-group-members__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-group-members__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #fff);\n}\n\n.cometchat-group-members__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  width: 100%;\n  min-width: 240px;\n  max-width: 1440px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-group-members__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n}\n\n.cometchat-group-members__shimmer-item-body {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-group-members__shimmer-item-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-group-members__shimmer-item-body-subtitle {\n  width: 25%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-shimmer-gradient-color,\n      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));\n  animation: shimmerAnimation 1.5s infinite linear;\n}\n\n.cometchat-group-members__list-item-online .cometchat-list-item__status {\n  width: 14px;\n  height: 14px;\n  margin-right: -12px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-success-color, #09c26f);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50, #ffffff);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.cometchat-group-members .cometchat-menu-list__sub-menu {\n  background: none;\n  box-shadow: none;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}\n\n .cometchat-group-members-hide-scrollbar .cometchat-change-scope__list::-webkit-scrollbar,\n .cometchat-group-members-hide-scrollbar .cometchat-change-scope__list::-webkit-scrollbar-thumb {\n    display: none;\n}`,""]);const p=u},7985:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/groups.6cc0adefb30e36b72309.svg"},8e3:(e,t,n)=>{"use strict";var r=n(4848),a=n(6540),o=n(9779),i=n(961);const s=({text:e,duration:t=3e3,onClose:n})=>(a.useEffect(()=>{const e=setTimeout(()=>{n&&n()},t);return()=>clearTimeout(e)},[t]),e?r.jsx("div",{className:"cometchat",style:{height:"fit-content",width:"fit-content",overflow:"hidden"},children:r.jsx("div",{className:"cometchat-toast",children:e})}):null),c=e=>{const{checked:t=!1,labelText:n="",disabled:o=!1,onCheckBoxValueChanged:i=()=>{}}=e,{updateCheckbox:s,isChecked:c,handleClick:l}=(({checked:e=!1,onCheckBoxValueChanged:t=e=>{}})=>{const[n,r]=a.useState(e),o=a.useRef(null);return a.useEffect(()=>{r(e)},[e]),{isChecked:n,updateCheckbox:e=>{const n=o.current;o.current=null,r(e.target?.checked),t({checked:e.target?.checked,labelText:e.target.labels?.[0].innerText,shiftKey:n?.shiftKey,metaKey:n?.metaKey})},handleClick:e=>{o.current={shiftKey:e.shiftKey,metaKey:e.metaKey}}}})({checked:t,onCheckBoxValueChanged:i});return r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-checkbox",children:r.jsxs("label",{className:"cometchat-checkbox__label",children:[r.jsx("input",{id:"checkbox-id",type:"checkbox",onChange:s,onClick:l,disabled:o,checked:c}),r.jsx("span",{className:"cometchat-checkbox__checkmark"}),n]})})})};function l(e){const t=a.useRef(e);return t.current=e,t}function u(e){const t=l(e),n=a.useCallback(function e(n,r){if("object"==typeof n&&n)if(n instanceof o.CometChat.CometChatException){const e=t.current;if(e)return e(n)}else if(n instanceof Error)return e(new o.CometChat.CometChatException({code:"ERR_SYSTEM",name:r?r+": "+n.name:n.name,details:n.stack,message:n.message}));console.log(n)},[t]);return n}var d,p,h,m,g,f,_,b,v,y,E,C,S,w,k,x,T,A,R,I,O,N,M,D,L,P,j,U,F,B;t.Qhb=void 0,(d=t.Qhb||(t.Qhb={}))[d.left=0]="left",d[d.right=1]="right",t.C5S=void 0,(p=t.C5S||(t.C5S={})).SendMessage="sendMessage",p.NewLine="newLine",p.None="none",t.W=void 0,function(e){e.top="top",e.right="right",e.bottom="bottom",e.left="left"}(t.W||(t.W={})),t.Dj9=void 0,(h=t.Dj9||(t.Dj9={}))[h.left=0]="left",h[h.standard=1]="standard",t.JxA=void 0,(m=t.JxA||(t.JxA={}))[m.left=0]="left",m[m.right=1]="right",m[m.center=2]="center",t.Aq1=void 0,(g=t.Aq1||(t.Aq1={}))[g.left=0]="left",g[g.right=1]="right",t.hQE=void 0,(f=t.hQE||(t.hQE={}))[f.top=0]="top",f[f.bottom=1]="bottom",f[f.left=2]="left",f[f.right=3]="right",t.qpt=void 0,(_=t.qpt||(t.qpt={}))[_.inprogress=0]="inprogress",_[_.success=1]="success",_[_.error=2]="error",_[_.cancelled=3]="cancelled",t.W4f=void 0,(b=t.W4f||(t.W4f={}))[b.wait=0]="wait",b[b.sent=1]="sent",b[b.delivered=2]="delivered",b[b.read=3]="read",b[b.error=4]="error",t.IMz=void 0,(v=t.IMz||(t.IMz={}))[v.left=0]="left",v[v.center=1]="center",t.QcU=void 0,(y=t.QcU||(t.QcU={}))[y.single=0]="single",y[y.multiple=1]="multiple",y[y.none=2]="none",t.DGz=void 0,(E=t.DGz||(t.DGz={}))[E.loading=0]="loading",E[E.empty=1]="empty",E[E.error=2]="error",E[E.loaded=3]="loaded",t.awT=void 0,(C=t.awT||(t.awT={}))[C.top=0]="top",C[C.bottom=1]="bottom",t.r3b=void 0,(S=t.r3b||(t.r3b={})).top="column",S.bottom="column-reverse",S.left="row",S.right="row-reverse",t.SyM=void 0,(w=t.SyM||(t.SyM={}))[w.audio=0]="audio",w[w.video=1]="video",t.z1J=void 0,(k=t.z1J||(t.z1J={}))[k.usersAndGroups=0]="usersAndGroups",k[k.users=1]="users",k[k.groups=2]="groups",t.mKX=void 0,(x=t.mKX||(t.mKX={}))[x.defaultCalling=0]="defaultCalling",x[x.directCalling=1]="directCalling",t.CfE=void 0,(T=t.CfE||(t.CfE={}))[T.composerHeader=0]="composerHeader",T[T.messageListHeader=1]="messageListHeader",T[T.messageListFooter=2]="messageListFooter",T[T.messages=3]="messages",t.uTK=void 0,(A=t.uTK||(t.uTK={})).top="column",A.bottom="column-reverse",A.left="row",A.right="row-reverse",t.RJL=void 0,(R=t.RJL||(t.RJL={})).label="label",R.text="textInput",R.dropdown="dropdown",R.checkbox="checkbox",R.radio="radio",R.button="button",R.singleSelect="singleSelect",R.dateTime="dateTime",t.dzC=void 0,(I=t.dzC||(t.dzC={})).apiAction="apiAction",I.urlNavigation="urlNavigation",I.custom="custom",t.nal=void 0,(O=t.nal||(t.nal={})).POST="POST",O.PUT="PUT",O.PATCH="PATCH",O.DELETE="DELETE",t.NU=void 0,(N=t.NU||(t.NU={})).date="date",N.dateTime="dateTime",N.time="time",t.Okh=void 0,(M=t.Okh||(t.Okh={}))[M.users=0]="users",M[M.groupmembers=1]="groupmembers",t.j7v=void 0,(D=t.j7v||(t.j7v={}))[D.mentions=0]="mentions",t.Rst=void 0,(L=t.Rst||(t.Rst={}))[L.edit=0]="edit",L[L.none=1]="none",t.rnx=void 0,(P=t.rnx||(t.rnx={}))[P.textinput=0]="textinput",P[P.textbubble=1]="textbubble",P[P.conversation=2]="conversation",t.uFX=void 0,(j=t.uFX||(t.uFX={}))[j.usersConversationOnly=0]="usersConversationOnly",j[j.groupConversationOnly=1]="groupConversationOnly",j[j.both=2]="both",t.zGq=void 0,(U=t.zGq||(t.zGq={})).Conversations="conversations",U.Messages="messages",t.H6z=void 0,(F=t.H6z||(t.H6z={})).Messages="messages",F.Conversations="conversations",F.Unread="unread",F.Groups="groups",F.Photos="photos",F.Videos="videos",F.Links="links",F.Documents="files",F.Audio="audio";class G{static addTranslation(e){for(const t in e)this.translations[t]?Object.assign(this.translations[t],e[t]):this.translations[t]=e[t]}static getBrowserLanguage(){return navigator.languages&&navigator.languages[0]||navigator.language}static getDefaultTimeZone(){try{return this.disableAutoDetection?this.defaultTimezones[this.language||"UTC"]:Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return this.defaultTimezones[this.language||"UTC"]}}static init(e){this.localizationSettings=e,this.disableAutoDetection=e.disableAutoDetection||!1,this.disableDateTimeLocalization=e.disableDateTimeLocalization||!1,e.language?this.language=e.language:this.language=this.getDefaultLanguage(),this.timezone=e.timezone||this.getDefaultTimeZone(),e.calendarObject&&(this.calendarObject=e.calendarObject),this.fallbackLanguage=e.fallbackLanguage||this.fallbackLanguage,e.translationsForLanguage&&this.addTranslation(e.translationsForLanguage)}static getCurrentLanguage(){return this.translations[this.language]?this.language:this.fallbackLanguage}static setCurrentLanguage(e){this.language=e,B.init({...this.localizationSettings,language:e})}static getDefaultLanguage(){return this.disableAutoDetection?this.fallbackLanguage:this.getBrowserLanguage()}static getDateLocaleLanguage(){return this.disableDateTimeLocalization?"en-US":this.language}static formatDateFromPattern(e,t){const n={day:t.includes("D")?"2-digit":void 0,month:t.includes("MMMM")||t.includes("MMM")||t.includes("MM")||t.includes("M")?"2-digit":void 0,year:t.includes("YYYY")?"numeric":t.includes("YY")?"2-digit":void 0,hour:t.includes("hh")?"2-digit":t.includes("h")?"numeric":void 0,minute:t.includes("mm")?"2-digit":t.includes("m")?"numeric":void 0,hour12:t.includes("A"),weekday:t.includes("dddd")?"long":t.includes("ddd")||t.includes("dd")?"short":void 0,timeZone:this.timezone},r={short:[V("month_january_short"),V("month_february_short"),V("month_march_short"),V("month_april_short"),V("month_may_short"),V("month_june_short"),V("month_july_short"),V("month_august_short"),V("month_september_short"),V("month_october_short"),V("month_november_short"),V("month_december_short")],long:[V("month_january_full"),V("month_february_full"),V("month_march_full"),V("month_april_full"),V("month_may_full"),V("month_june_full"),V("month_july_full"),V("month_august_full"),V("month_september_full"),V("month_october_full"),V("month_november_full"),V("month_december_full")]},a={min:[V("weekday_sunday_min"),V("weekday_monday_min"),V("weekday_tuesday_min"),V("weekday_wednesday_min"),V("weekday_thursday_min"),V("weekday_friday_min"),V("weekday_saturday_min")],short:[V("weekday_sunday_short"),V("weekday_monday_short"),V("weekday_tuesday_short"),V("weekday_wednesday_short"),V("weekday_thursday_short"),V("weekday_friday_short"),V("weekday_saturday_short")],long:[V("weekday_sunday_full"),V("weekday_monday_full"),V("weekday_tuesday_full"),V("weekday_wednesday_full"),V("weekday_thursday_full"),V("weekday_friday_full"),V("weekday_saturday_full")]},o=new Intl.DateTimeFormat(this.getDateLocaleLanguage(),n).formatToParts(e),i=e.getDay(),s={};return o.forEach(e=>{if("day"===e.type&&(s.DD=e.value,s.D=parseInt(e.value).toString()),"month"===e.type){const t=parseInt(e.value)-1;s.MM=e.value,s.M=parseInt(e.value).toString(),s.MMM=r.short[t],s.MMMM=r.long[t]}"year"===e.type&&(s.YYYY=e.value,s.YY=e.value.slice(-2)),"hour"===e.type&&(s.hh=e.value,s.h=parseInt(e.value).toString()),"minute"===e.type&&(s.mm=e.value,s.m=parseInt(e.value).toString()),"dayPeriod"===e.type&&(s.A=e.value),"weekday"===e.type&&(s.dddd=a.long[i]||"",s.ddd=a.short[i]||"",s.dd=a.min[i]||"")}),t.replace(/\[(.*?)\]/g,"$1").replace(/\bDD\b/g,s.DD||"").replace(/\bD\b/g,s.D||"").replace(/\bMMMM\b/g,s.MMMM||"").replace(/\bMMM\b/g,s.MMM||"").replace(/\bMM\b/g,s.MM||"").replace(/\bM\b/g,s.M||"").replace(/\bYYYY\b/g,s.YYYY||"").replace(/\bYY\b/g,s.YY||"").replace(/\bhh\b/g,s.hh||"").replace(/\bh\b/g,s.h||"").replace(/\bmm\b/g,s.mm||"").replace(/\bm\b/g,s.m||"").replace(/\bdddd\b/g,s.dddd||"").replace(/\bddd\b/g,s.ddd||"").replace(/\bdd\b/g,s.dd||"").replace(/\sA\s/g,` ${s.A||"A"} `).replace(/^A\s/g,`${s.A||"A"} `).replace(/\sA$/,` ${s.A||"A"}`).replace(/^A$/,`${s.A||"A"}`)}static formatDate(e,t){const n=B.timezone,r=new Date,a=new Date(1e3*e),o=new Intl.DateTimeFormat("en-US",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit"}).format(r),i=new Intl.DateTimeFormat("en-US",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit"}).format(a),s=r.getTime(),c=a.getTime(),l=Math.floor((s-c)/1e3),u=Math.floor(l/60),d=Math.floor(u/60),p=Math.floor(d/24);if(t.relativeTime&&Object.keys(t.relativeTime).length>0){if(l<60){if(t?.relativeTime?.minute)return t?.relativeTime?.minute.includes("%d")?`${t?.relativeTime?.minute.replace("%d","1")}`:t?.relativeTime?.minute;if(t.today)return this.formatDateFromPattern(a,t.today)}if(u<60){if(t?.relativeTime?.minutes)return t?.relativeTime?.minutes.includes("%d")?`${t?.relativeTime?.minutes.replace("%d",String(u))}`:t?.relativeTime?.minutes;if(t.today)return this.formatDateFromPattern(a,t.today)}if(d<24){if(t.relativeTime?.hour&&1===d)return t.relativeTime.hour.replace("%d","1");if(t.relativeTime?.hours)return t.relativeTime.hours.replace("%d",String(d))}}return o===i&&t.today?this.formatDateFromPattern(a,t.today):this.isYesterday(e,n)&&t.yesterday?this.formatDateFromPattern(a,t.yesterday):p<=7&&t.lastWeek?this.formatDateFromPattern(a,t.lastWeek):this.formatDateFromPattern(a,t.otherDays||"DD/MM/YYYY")}static isYesterday(e,t){const n=new Date,r=new Date(n);return r.setDate(n.getDate()-1),new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(1e3*e))===new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit"}).format(r)}}B=G,G.language="en-US",G.fallbackLanguage="en-US",G.timezone="America/New_York",G.translations={"en-US":{ai_conversation_starter_error:"Looks like something went wrong",ai_conversation_summary_title:"Conversation summary",ai_conversation_summary_error:"Looks like something went wrong",ai_conversation_summary_empty:"No Summary Available",ai_smart_replies_title:"Suggest a reply",ai_smart_replies_error:"Looks like something went wrong",ai_smart_replies_empty:"No Suggestions Available",calls_outgoing_call:"Outgoing Call",calls_cancelled_call:"Call Canceled",calls_rejected_call:"Call Rejected",calls_missed_call:"Missed Call",calls_ended_call:"Call Ended",calls_answered_call:"Call Answered",calls_unanswered_call:"Call Unanswered",calls_incoming_call:"Incoming Call",calls_busy_call:"Call Busy",message_list_join_call:"Join",message_list_voice_call:"Voice call",message_list_video_call:"Video call",message_list_outgoing_call:"Outgoing Call",message_list_incoming_call:"Incoming Call",message_list_cancelled_call:"Call Canceled",message_list_rejected_call:"Call Rejected",message_list_busy_call:"Call Busy",message_list_ended_call:"Call Ended",message_list_answered_call:"Call Answered",message_list_unasnwered_call:"Call Unanswered",message_list_missed_call:"Missed Call",conversation_subtitle_voice_call:"Voice call",conversation_subtitle_video_call:"Video call",conversation_subtitle_outgoing_call:"Outgoing Call",conversation_subtitle_incoming_call:"Incoming Call",conversation_subtitle_cancelled_call:"Call Canceled",conversation_subtitle_rejected_call:"Call Rejected",conversation_subtitle_busy_call:"Call Busy",conversation_subtitle_ended_call:"Call Ended",conversation_subtitle_answered_call:"Call Answered",conversation_subtitle_unasnwered_call:"Call Unanswered",conversation_subtitle_missed_call:"Missed Call",conversation_subtitle_group_voice_call_initated_self:"You've initiated a voice call",conversation_subtitle_group_video_call_initated_self:"You've initiated a video call",conversation_subtitle_group_voice_call_initated:"initiated a voice call",conversation_subtitle_group_video_call_initated:"initiated a video call",messsage_composer_collaborative_document:"Collaborative Document",message_list_collaborative_document_title:"Collaborative Document",message_list_collaborative_document_subtitile:"Open document to edit content together",message_list_collaborative_document_open:"Open Document",conversation_subtitle_collaborative_document:"Collaborative Document",messsage_composer_collaborative_whiteboard:"Collaborative Whiteboard",message_list_collaborative_whiteboard_title:"Collaborative Whiteboard",message_collaborative_whiteboard_subtitile:"Open whiteboard to draw together",messag_list_collaborative_whiteboard_open:"Open Whiteboard",conversation_subtitle_collaborative_whiteboard:"Collaborative Whiteboard",call_button_voice_hover:"Voice call",call_button_video_hover:"Video call",call_logs_title:"Calls",call_logs_empty_title:"No Call Logs Yet",call_logs_empty_subtitle:"Make or receive calls to see your call history listed here",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Looks like something went wrong",change_scope_title:"Change Scope",change_scope_subtitle:"You can change scope for the group member to manage group permissions and responsibilities.",change_scope_confirm_yes:"Save",change_scope_confirm_no:"Cancel",change_scope_error:"Something went wrong. Please try again.",member_scope_admin:"Admin",member_scope_moderator:"Moderator",member_scope_participant:"Participant",member_scope_owner:"Owner",conversation_delete_title:"Delete Conversation?",conversation_delete_subtitle:"Would you like to delete this conversation? This conversation will be deleted from all of your devices.",conversation_delete_confirm_yes:"Delete",conversation_delete_confirm_no:"Cancel",conversation_delete_error:"Something went wrong. Please try again.",conversation_chat_title:"Chats",conversation_delete_icon_hover:"Delete",conversation_subtitle_typing:"Typing...",conversation_subtitle_you_message:"You",conversation_subtitle_deleted_message:"Message is deleted",conversation_empty_title:"No Conversations Yet",conversation_empty_subtitle:"Start a new chat or invite others to join the conversation.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Looks like something went wrong",conversation_deleted:"Conversation Deleted",message_deleted:"This message was deleted",message_composer_edit_message:"Edit message",emoji_search_placeholder:"Search emoji",message_list_full_screen_viewer:"Full Screen Viewer",member_search_placeholder:"Search",member_title:"Group Members",member_empty_title:"No Group Member Available",member_empty_subtitle:"Add contacts to see them listed here.",member_error_title:"OOPS!",member_error_subtitle:"Looks like something went wrong",group_title:"Groups",group_seach_placeholder:"",group_search_placeholder:"Search",group_members:"Members",group_member:"Member",group_empty_title:"No Groups Available",group_empty_subtitle:"Create or join groups to see them listed here and start collaborating",group_error_title:"OOPS!",group_error_subtitle:"Looks like something went wrong",message_header_members:"Members",message_header_member:"Member",incoming_call_subtitle:"Incoming Call",incoming_call_confirm_yes:"Accept",incoming_call_confirm_no:"Decline",moderation_block_message:"Your message was blocked due to moderation policies",message_composer_placeholder:"Enter your message here",message_composer_send_message_icon_hover:"Send Message",message_composer_attach_icon_hover:"Attach",message_composer_voice_notes_icon_hover:"Voice Recording",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"You can mention up to 10 users at once.",message_composer_wrong_file_type:"You selected a different type of file. Please choose the appropriate file.",file_type_not_allowed:"This file type is not allowed.",message_composer_mention_all:"all",message_composer_mention_notify_everyone_label:"Notify everyone in this group",message_header_typing:"Typing...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Last seen",message_header_at:"at",full_screen_viewer_at:"at",message_header_minute_ago:"minute ago",message_header_minutes_ago:"minutes ago",message_header_hour_ago:"hour ago",message_header_hours_ago:"hours ago",message_information_title:"Message Information",message_information_close_hover:"Close",message_information_read:"Read",message_information_delivered:"Delivered",message_information_error:"Looks like something went wrong. Please try again.",message_information_group_message_receipt_empty:"Waiting for recipients to receive and view the message",flag_message_title:"Report a Message",flag_message_subtitle:"Tell us what's inappropriate or incorrect about this message.",flag_message_remark_label:"Reason",flag_message_remark_optional:"Optional",flag_message_remark_placeholder:"Describe what's concerning about this message…",flag_message_error:"Looks like something went wrong",flag_message_character_limit_reached:"Character limit reached.",flag_message_confirm_yes:"Report",flag_message_confirm_no:"Cancel",flag_message_reason_id_spam:"Spam / Unwanted Content",flag_message_reason_id_sexual:"Explicit or inappropriate content",flag_message_reason_id_harassment:"Insulting or threatening behavior",flag_message_reported:"Message Reported.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Looks like something went wrong",message_list_message_copied:"Message copied to clipboard.",message_list_message_deleted:"Message deleted successfully.",message_list_new_messages:"new messages",message_list_new_message:"New",message_list_message_edited:"Message updated successfully.",message_list_message_translated:"Message translated successfully.",message_list_thread_reply:"Reply",message_list_thread_replies:"Replies",calls_outgoing:"Calling...",reaction_reacted:"reacted",reaction_popup_and:"and",reaction_popup_others:"others",reaction_popup_you:"You",reaction_list_all:"All",reaction_list_click_to_remove:"Click to remove",reaction_list_you:"You",reaction_list_error:"Looks like something went wrong. Please try again.",search_placeholder:"Search",text_message_read_more:"Read more",text_message_show_less:"Show less",thread_title:"Thread",thread_close_hover:"Close",thread_replies:"Replies",thread_reply:"Reply",user_title:"Users",user_search_placeholder:"Search",user_empty_title:"No Users Found",user_empty_subtitle:"We couldn't find any users matching your search. Try adjusting your search.",user_error_title:"OOPS!",user_error_subtitle:"Looks like something went wrong",conversation_start:"Click to start conversation",conversation_message_deleted:"Message is deleted",conversation_subtitle_image:"Image",conversation_subtitle_file:"File",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"added",conversation_subtitle_joined:"joined",conversation_subtitle_left:"left",conversation_subtitle_kicked:"kicked",conversation_subtitle_banned:"banned",conversation_subtitle_unbanned:"unbanned",conversation_subtitle_made:"made",polls_title:"Create Poll",polls_question:"Question",polls_question_placeholder:"Ask question",polls_options:"Options",polls_add_placeholder:"Add",polls_add_option_button:"Add Option",polls_limit_reached:"You've reached the limit. You can add up to 12 options.",polls_required_fields_warning:"Please fill in all required fields before creating a poll.",polls_error:"Something went wrong. Please try again.",polls_create_button:"Create",members_remove:"Kick",members_block:"Ban",members_change_role:"Change Scope",message_text_translated:"Text Translated",message_list_translate:"Translate",message_list_option_edit:"Edit",message_list_option_delete:"Delete",message_list_option_react:"React",message_list_option_reply_in_thread:"Reply in thread",message_list_option_reply_to_message:"Reply",message_list_option_reply:"",message_list_option_message_privately:"Message Privately",message_list_option_copy:"Copy",message_list_option_info:"Info",message_list_option_mark_as_unread:"Mark Unread",message_list_option_flag_message:"Report",message_list_action_edited:"Edited",message_list_action_added:"added",message_list_action_joined:"joined",message_list_action_left:"left",message_list_action_kicked:"kicked",message_list_action_banned:"banned",message_list_action_unbanned:"unbanned",message_list_action_made:"made",message_composer_attach_image:"Attach Image",message_composer_attach_video:"Attach Video",message_composer_attach_audio:"Attach Audio",message_composer_attach_file:"Attach File",message_composer_polls:"Polls",conversation_subtitle_poll:"Poll",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Looks like something went wrong",sticker_empty:"No Stickers Available",emoji_smiley_people:"Smileys & People",emoji_animals_nature:"Animals & Nature",emoji_food_drinks:"Food & Drink",emoji_activity:"Activity",emoji_travel_places:"Travel & Places",emoji_objects:"Objects",emoji_symbols:"Symbols",emoji_flags:"Flags",today:"Today",yesterday:"Yesterday",weekday_sunday_full:"Sunday",weekday_monday_full:"Monday",weekday_tuesday_full:"Tuesday",weekday_wednesday_full:"Wednesday",weekday_thursday_full:"Thursday",weekday_friday_full:"Friday",weekday_saturday_full:"Saturday",weekday_sunday_short:"Sun",weekday_monday_short:"Mon",weekday_tuesday_short:"Tue",weekday_wednesday_short:"Wed",weekday_thursday_short:"Thu",weekday_friday_short:"Fri",weekday_saturday_short:"Sat",weekday_sunday_min:"Su",weekday_monday_min:"Mo",weekday_tuesday_min:"Tu",weekday_wednesday_min:"We",weekday_thursday_min:"Th",weekday_friday_min:"Fr",weekday_saturday_min:"Sa",month_january_short:"Jan",month_february_short:"Feb",month_march_short:"Mar",month_april_short:"Apr",month_may_short:"May",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Aug",month_september_short:"Sep",month_october_short:"Oct",month_november_short:"Nov",month_december_short:"Dec",month_january_full:"January",month_february_full:"February",month_march_full:"March",month_april_full:"April",month_may_full:"May",month_june_full:"June",month_july_full:"July",month_august_full:"August",month_september_full:"September",month_october_full:"October",month_november_full:"November",month_december_full:"December",message_type_not_supported:"This message type is not supported.",message_list_message_already_translated:"Selected language for translation is similar to the language of the original message.",media_recorder_error_title:"Microphone Access Needed",media_recorder_error_subtitle:"We couldn't access your microphone. Please grant microphone permission to start recording.",media_recorder_permission_dismiss:"Understood",search_title:"Search",search_empty_title:"Start Your Search",search_empty_subtitle:"Search for conversations or messages by typing a keyword above.",search_no_result_title:"No Results",search_result_see_more:"See more",search_messages_header:"Messages",search_filter_unread:"Unread",search_filter_groups:"Groups",search_filter_photos:"Photos",search_filter_videos:"Videos",search_filter_links:"Links",search_filter_documents:"Documents",search_filter_audio:"Audio",search_filter_messages:"Messages",search_filter_conversations:"Conversations",search_no_result_subtitle:"We couldn't find any matches. Please try a different search keyword.",search_conversation_header:"Conversations",search_message_subtitle_you:"You",search_message_title_you:"You",search_error_title:"OOPS!",search_error_subtitle:"Looks like something went wrong",ai_assistant_chat_intro_message:"I am here to assist you!",ai_assistant_chat_composer_placeholder:"Ask anything",ai_assistant_chat_new_chat:"New Chat",ai_assistant_chat_history:"chat history",ai_assistant_chat_history_title:"Chat History",ai_assistant_chat_thinking:"Thinking…",ai_assistant_chat_executing_tool:"Executing tool call...",ai_assistant_chat_no_internet:"No internet connection. Please check your connection and try again.",ai_assistant_chat_history_empty_title:"No Conversations Yet",ai_assistant_chat_history_empty_subtitle:"Your AI agent is ready - ask anything and start the conversation.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Something went wrong on our end. Please try again",formatting_toolbar_bold:"Bold",formatting_toolbar_italic:"Italic",formatting_toolbar_underline:"Underline",formatting_toolbar_strikethrough:"Strikethrough",formatting_toolbar_link:"Link",formatting_toolbar_numbered_list:"Numbered List",formatting_toolbar_bulleted_list:"Bulleted List",formatting_toolbar_blockquote:"Blockquote",formatting_toolbar_code:"Code",formatting_toolbar_code_block:"Code Block",formatting_toolbar_insert:"Insert",formatting_toolbar_enter_url:"Enter URL",formatting_toolbar_link_url:"Link URL",link_dialog_add_link:"Add Link",link_dialog_edit_link:"Edit Link",link_dialog_save:"Save",link_dialog_text:"Text",link_dialog_text_placeholder:"Enter display text",link_dialog_link:"Link",link_url_required:"URL is required",link_popover_close:"Close",link_popover_edit:"Edit",link_popover_remove:"Remove",cancel:"Cancel"},"en-GB":{ai_conversation_starter_error:"Looks like something went wrong",ai_conversation_summary_title:"Conversation summary",ai_conversation_summary_error:"Looks like something went wrong",ai_conversation_summary_empty:"No Summary Available",ai_smart_replies_title:"Suggest a reply",ai_smart_replies_error:"Looks like something went wrong",ai_smart_replies_empty:"No Suggestions Available",calls_outgoing_call:"Outgoing Call",calls_cancelled_call:"Call Cancelled",calls_rejected_call:"Call Rejected",calls_missed_call:"Missed Call",calls_ended_call:"Call Ended",calls_answered_call:"Call Answered",calls_unanswered_call:"Call Unanswered",calls_incoming_call:"Incoming Call",calls_busy_call:"Call Busy",moderation_block_message:"Your message was blocked due to moderation policies",message_list_join_call:"Join",message_list_voice_call:"Voice call",message_list_video_call:"Video call",message_list_outgoing_call:"Outgoing Call",message_list_incoming_call:"Incoming Call",message_list_cancelled_call:"Call Cancelled",message_list_rejected_call:"Call Rejected",message_list_busy_call:"Call Busy",message_list_ended_call:"Call Ended",message_list_answered_call:"Call Answered",message_list_unasnwered_call:"Call Unanswered",message_list_missed_call:"Missed Call",conversation_subtitle_voice_call:"Voice call",conversation_subtitle_video_call:"Video call",conversation_subtitle_outgoing_call:"Outgoing Call",conversation_subtitle_incoming_call:"Incoming Call",conversation_subtitle_cancelled_call:"Call Cancelled",conversation_subtitle_rejected_call:"Call Rejected",conversation_subtitle_busy_call:"Call Busy",conversation_subtitle_ended_call:"Call Ended",conversation_subtitle_answered_call:"Call Answered",conversation_subtitle_unasnwered_call:"Call Unanswered",conversation_subtitle_missed_call:"Missed Call",conversation_subtitle_group_voice_call_initated_self:"You've initiated a voice call",conversation_subtitle_group_video_call_initated_self:"You've initiated a video call",conversation_subtitle_group_voice_call_initated:"initiated a voice call",conversation_subtitle_group_video_call_initated:"initiated a video call",messsage_composer_collaborative_document:"Collaborative Document",message_list_collaborative_document_title:"Collaborative Document",message_list_collaborative_document_subtitile:"Open document to edit content together",message_list_collaborative_document_open:"Open Document",conversation_subtitle_collaborative_document:"Collaborative Document",messsage_composer_collaborative_whiteboard:"Collaborative Whiteboard",message_list_collaborative_whiteboard_title:"Collaborative Whiteboard",message_collaborative_whiteboard_subtitile:"Open whiteboard to draw together",messag_list_collaborative_whiteboard_open:"Open Whiteboard",conversation_subtitle_collaborative_whiteboard:"Collaborative Whiteboard",call_button_voice_hover:"Voice call",call_button_video_hover:"Video call",call_logs_title:"Calls",call_logs_empty_title:"No Call Logs Yet",call_logs_empty_subtitle:"Make or receive calls to see your call history listed here",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Looks like something went wrong",change_scope_title:"Change Scope",change_scope_subtitle:"You can change scope for the group member to manage group permissions and responsibilities.",change_scope_confirm_yes:"Save",change_scope_confirm_no:"Cancel",change_scope_error:"Something went wrong. Please try again.",member_scope_admin:"Admin",member_scope_moderator:"Moderator",member_scope_participant:"Participant",member_scope_owner:"Owner",conversation_delete_title:"Delete Conversation?",conversation_delete_subtitle:"Would you like to delete this conversation? This conversation will be deleted from all of your devices.",conversation_delete_confirm_yes:"Delete",conversation_delete_confirm_no:"Cancel",conversation_delete_error:"Something went wrong. Please try again.",conversation_chat_title:"Chats",conversation_delete_icon_hover:"Delete",conversation_subtitle_typing:"Typing...",conversation_subtitle_you_message:"You",conversation_subtitle_deleted_message:"Message is deleted",conversation_empty_title:"No Conversations Yet",conversation_empty_subtitle:"Start a new chat or invite others to join the conversation.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Looks like something went wrong",conversation_deleted:"Conversation Deleted",message_deleted:"This message was deleted",message_composer_edit_message:"Edit message",emoji_search_placeholder:"Search emoji",message_list_full_screen_viewer:"Full Screen Viewer",member_search_placeholder:"Search",member_title:"Group Members",member_empty_title:"No Group Member Available",member_empty_subtitle:"Add contacts to see them listed here.",member_error_title:"OOPS!",member_error_subtitle:"Looks like something went wrong",group_title:"Groups",group_seach_placeholder:"",group_search_placeholder:"Search",group_members:"Members",group_member:"Member",group_empty_title:"No Groups Available",group_empty_subtitle:"Create or join groups to see them listed here and start collaborating",group_error_title:"OOPS!",group_error_subtitle:"Looks like something went wrong",message_header_members:"Members",message_header_member:"Member",incoming_call_subtitle:"Incoming Call",incoming_call_confirm_yes:"Accept",incoming_call_confirm_no:"Decline",message_composer_placeholder:"Enter your message here",message_composer_send_message_icon_hover:"Send Message",message_composer_attach_icon_hover:"Attach",message_composer_voice_notes_icon_hover:"Voice Recording",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"You can mention up to 10 users at once.",message_composer_wrong_file_type:"You selected a different type of file. Please choose the appropriate file.",file_type_not_allowed:"This file type is not allowed.",message_composer_mention_all:"all",message_composer_mention_notify_everyone_label:"Notify everyone in this group",message_header_typing:"Typing...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Last seen",message_header_at:"at",full_screen_viewer_at:"at",message_header_minute_ago:"minute ago",message_header_minutes_ago:"minutes ago",message_header_hour_ago:"hour ago",message_header_hours_ago:"hours ago",message_information_title:"Message Information",message_information_close_hover:"Close",message_information_read:"Read",message_information_delivered:"Delivered",message_information_error:"Looks like something went wrong. Please try again.",message_information_group_message_receipt_empty:"Waiting for recipients to receive and view the message",flag_message_title:"Report a Message",flag_message_subtitle:"Tell us what's inappropriate or incorrect about this message.",flag_message_remark_label:"Reason",flag_message_remark_optional:"Optional",flag_message_remark_placeholder:"Describe what's concerning about this message…",flag_message_error:"Looks like something went wrong",flag_message_character_limit_reached:"Character limit reached.",flag_message_confirm_yes:"Report",flag_message_confirm_no:"Cancel",flag_message_reason_id_spam:"Spam / Unwanted Content",flag_message_reason_id_sexual:"Explicit or inappropriate content",flag_message_reason_id_harassment:"Insulting or threatening behaviour",flag_message_reported:"Message Reported.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Looks like something went wrong",message_list_message_copied:"Message copied to clipboard.",message_list_message_deleted:"Message deleted successfully.",message_list_new_messages:"new messages",message_list_new_message:"New",message_list_message_edited:"Message updated successfully.",message_list_message_translated:"Message translated successfully.",message_list_thread_reply:"Reply",message_list_thread_replies:"Replies",calls_outgoing:"Calling...",reaction_reacted:"reacted",reaction_popup_and:"and",reaction_popup_others:"others",reaction_popup_you:"You",reaction_list_all:"All",reaction_list_click_to_remove:"Click to remove",reaction_list_you:"You",reaction_list_error:"Looks like something went wrong. Please try again.",search_placeholder:"Search",text_message_read_more:"Read more",text_message_show_less:"Show less",thread_title:"Thread",thread_close_hover:"Close",thread_replies:"Replies",thread_reply:"Reply",user_title:"Users",user_search_placeholder:"Search",user_empty_title:"No Users Found",user_empty_subtitle:"We couldn't find any users matching your search. Try adjusting your search.",user_error_title:"OOPS!",user_error_subtitle:"Looks like something went wrong",conversation_start:"Click to start conversation",conversation_message_deleted:"Message is deleted",conversation_subtitle_image:"Image",conversation_subtitle_file:"File",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"added",conversation_subtitle_joined:"joined",conversation_subtitle_left:"left",conversation_subtitle_kicked:"kicked",conversation_subtitle_banned:"banned",conversation_subtitle_unbanned:"unbanned",conversation_subtitle_made:"made",polls_title:"Create Poll",polls_question:"Question",polls_question_placeholder:"Ask question",polls_options:"Options",polls_add_placeholder:"Add",polls_add_option_button:"Add Option",polls_limit_reached:"You've reached the limit. You can add up to 12 options.",polls_required_fields_warning:"Please fill in all required fields before creating a poll.",polls_error:"Something went wrong. Please try again.",polls_create_button:"Create",members_remove:"Kick",members_block:"Ban",members_change_role:"Change Scope",message_text_translated:"Text Translated",message_list_translate:"Translate",message_list_option_edit:"Edit",message_list_option_delete:"Delete",message_list_option_react:"React",message_list_option_reply_in_thread:"Reply in thread",message_list_option_reply_to_message:"Reply",message_list_option_reply:"",message_list_option_message_privately:"Message Privately",message_list_option_copy:"Copy",message_list_option_info:"Info",message_list_option_mark_as_unread:"Mark Unread",message_list_option_flag_message:"Report",message_list_action_edited:"Edited",message_list_action_added:"added",message_list_action_joined:"joined",message_list_action_left:"left",message_list_action_kicked:"kicked",message_list_action_banned:"banned",message_list_action_unbanned:"unbanned",message_list_action_made:"made",message_composer_attach_image:"Attach Image",message_composer_attach_video:"Attach Video",message_composer_attach_audio:"Attach Audio",message_composer_attach_file:"Attach File",message_composer_polls:"Polls",conversation_subtitle_poll:"Poll",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Looks like something went wrong",sticker_empty:"No Stickers Available",emoji_smiley_people:"Smileys & People",emoji_animals_nature:"Animals & Nature",emoji_food_drinks:"Food & Drink",emoji_activity:"Activity",emoji_travel_places:"Travel & Places",emoji_objects:"Objects",emoji_symbols:"Symbols",emoji_flags:"Flags",today:"Today",yesterday:"Yesterday",weekday_sunday_full:"Sunday",weekday_monday_full:"Monday",weekday_tuesday_full:"Tuesday",weekday_wednesday_full:"Wednesday",weekday_thursday_full:"Thursday",weekday_friday_full:"Friday",weekday_saturday_full:"Saturday",weekday_sunday_short:"Sun",weekday_monday_short:"Mon",weekday_tuesday_short:"Tue",weekday_wednesday_short:"Wed",weekday_thursday_short:"Thu",weekday_friday_short:"Fri",weekday_saturday_short:"Sat",weekday_sunday_min:"Su",weekday_monday_min:"Mo",weekday_tuesday_min:"Tu",weekday_wednesday_min:"We",weekday_thursday_min:"Th",weekday_friday_min:"Fr",weekday_saturday_min:"Sa",month_january_short:"Jan",month_february_short:"Feb",month_march_short:"Mar",month_april_short:"Apr",month_may_short:"May",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Aug",month_september_short:"Sep",month_october_short:"Oct",month_november_short:"Nov",month_december_short:"Dec",month_january_full:"January",month_february_full:"February",month_march_full:"March",month_april_full:"April",month_may_full:"May",month_june_full:"June",month_july_full:"July",month_august_full:"August",month_september_full:"September",month_october_full:"October",month_november_full:"November",month_december_full:"December",message_type_not_supported:"This message type is not supported.",message_list_message_already_translated:"Selected language for translation is similar to the language of the original message.",media_recorder_error_title:"Microphone Access Needed",media_recorder_error_subtitle:"We couldn't access your microphone. Please grant microphone permission to start recording.",media_recorder_permission_dismiss:"Understood",search_title:"Search",search_empty_title:"Start Your Search",search_empty_subtitle:"Search for conversations or messages by typing a keyword above.",search_no_result_title:"No Results",search_result_see_more:"See more",search_messages_header:"Messages",search_filter_unread:"Unread",search_filter_groups:"Groups",search_filter_photos:"Photos",search_filter_videos:"Videos",search_filter_links:"Links",search_filter_documents:"Documents",search_filter_audio:"Audio",search_filter_messages:"Messages",search_filter_conversations:"Conversations",search_no_result_subtitle:"We couldn't find any matches. Please try a different search keyword.",search_conversation_header:"Conversations",search_message_subtitle_you:"You",search_message_title_you:"You",search_error_title:"OOPS!",search_error_subtitle:"Looks like something went wrong",ai_assistant_chat_intro_message:"I am here to assist you!",ai_assistant_chat_composer_placeholder:"Ask anything",ai_assistant_chat_new_chat:"New Chat",ai_assistant_chat_history:"chat history",ai_assistant_chat_history_title:"Chat History",ai_assistant_chat_thinking:"Thinking…",ai_assistant_chat_executing_tool:"Executing tool call...",ai_assistant_chat_no_internet:"No internet connection. Please check your connection and try again.",ai_assistant_chat_history_empty_title:"No Conversations Yet",ai_assistant_chat_history_empty_subtitle:"Your AI agent is ready - ask anything and start the conversation.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Something went wrong on our end. Please try again",formatting_toolbar_bold:"Bold",formatting_toolbar_italic:"Italic",formatting_toolbar_underline:"Underline",formatting_toolbar_strikethrough:"Strikethrough",formatting_toolbar_link:"Link",formatting_toolbar_numbered_list:"Numbered List",formatting_toolbar_bulleted_list:"Bulleted List",formatting_toolbar_blockquote:"Blockquote",formatting_toolbar_code:"Code",formatting_toolbar_code_block:"Code Block",formatting_toolbar_insert:"Insert",formatting_toolbar_enter_url:"Enter URL",formatting_toolbar_link_url:"Link URL",link_dialog_add_link:"Add Link",link_dialog_edit_link:"Edit Link",link_dialog_save:"Save",link_dialog_text:"Text",link_dialog_text_placeholder:"Enter display text",link_dialog_link:"Link",link_url_required:"URL is required",link_popover_close:"Close",link_popover_edit:"Edit",link_popover_remove:"Remove",cancel:"Cancel"},ru:{ai_conversation_starter_error:"Похоже, что-то пошло не так",ai_conversation_summary_title:"Сводка разговора",ai_conversation_summary_error:"Похоже, что-то пошло не так",ai_conversation_summary_empty:"Сводка недоступна",ai_smart_replies_title:"Предложить ответ",ai_smart_replies_error:"Похоже, что-то пошло не так",ai_smart_replies_empty:"Нет доступных предложений",calls_outgoing_call:"Исходящий звонок",calls_cancelled_call:"Звонок отменён",calls_rejected_call:"Звонок отклонён",calls_missed_call:"Пропущенный звонок",calls_ended_call:"Звонок завершён",calls_answered_call:"Звонок принят",calls_unanswered_call:"Звонок не принят",calls_incoming_call:"Входящий звонок",calls_busy_call:"Занято",moderation_block_message:"Ваше сообщение было заблокировано из-за политик модерации",message_list_join_call:"Присоединиться",message_list_voice_call:"Голосовой звонок",message_list_video_call:"Видеозвонок",message_list_outgoing_call:"Исходящий звонок",message_list_incoming_call:"Входящий звонок",message_list_cancelled_call:"Звонок отменён",message_list_rejected_call:"Звонок отклонён",message_list_busy_call:"Занято",message_list_ended_call:"Звонок завершён",message_list_answered_call:"Звонок принят",message_list_unasnwered_call:"Звонок не принят",message_list_missed_call:"Пропущенный звонок",conversation_subtitle_voice_call:"Голосовой звонок",conversation_subtitle_video_call:"Видеозвонок",conversation_subtitle_outgoing_call:"Исходящий звонок",conversation_subtitle_incoming_call:"Входящий звонок",conversation_subtitle_cancelled_call:"Звонок отменён",conversation_subtitle_rejected_call:"Звонок отклонён",conversation_subtitle_busy_call:"Занято",conversation_subtitle_ended_call:"Звонок завершён",conversation_subtitle_answered_call:"Звонок принят",conversation_subtitle_unasnwered_call:"Звонок не принят",conversation_subtitle_missed_call:"Пропущенный звонок",conversation_subtitle_group_voice_call_initated_self:"Вы инициировали голосовой звонок",conversation_subtitle_group_video_call_initated_self:"Вы инициировали видеозвонок",conversation_subtitle_group_voice_call_initated:"инициировал голосовой звонок",conversation_subtitle_group_video_call_initated:"инициировал видеозвонок",messsage_composer_collaborative_document:"Совместный документ",message_list_collaborative_document_title:"Совместный документ",message_list_collaborative_document_subtitile:"Откройте документ для редактирования контента вместе",message_list_collaborative_document_open:"Открыть документ",conversation_subtitle_collaborative_document:"Совместный документ",messsage_composer_collaborative_whiteboard:"Совместная доска",message_list_collaborative_whiteboard_title:"Совместная доска",message_collaborative_whiteboard_subtitile:"Откройте доску для рисования вместе",messag_list_collaborative_whiteboard_open:"Открыть доску",conversation_subtitle_collaborative_whiteboard:"Совместная доска",call_button_voice_hover:"Голосовой звонок",call_button_video_hover:"Видеозвонок",call_logs_title:"Звонки",call_logs_empty_title:"Пока нет записей о звонках",call_logs_empty_subtitle:"Совершите или получите звонки, чтобы увидеть историю звонков",call_logs_error_title:"УПС!",call_logs_error_subtitle:"Похоже, что-то пошло не так",change_scope_title:"Изменить область",change_scope_subtitle:"Вы можете изменить область действия члена группы, чтобы управлять разрешениями и обязанностями группы.",change_scope_confirm_yes:"Сохранить",change_scope_confirm_no:"Отменить",change_scope_error:"Что-то пошло не так. Попробуйте снова.",member_scope_admin:"Администратор",member_scope_moderator:"Модератор",member_scope_participant:"Участник",member_scope_owner:"Владелец",conversation_delete_title:"Удалить разговор?",conversation_delete_subtitle:"Вы хотите удалить этот разговор? Этот разговор будет удалён на всех ваших устройствах.",conversation_delete_confirm_yes:"Удалить",conversation_delete_confirm_no:"Отменить",conversation_delete_error:"Что-то пошло не так. Попробуйте снова.",conversation_chat_title:"Чаты",conversation_delete_icon_hover:"Удалить",conversation_subtitle_typing:"Печатает...",conversation_subtitle_you_message:"Вы",conversation_subtitle_deleted_message:"Сообщение удалено",conversation_empty_title:"Пока нет разговоров",conversation_empty_subtitle:"Начните новый чат или пригласите других присоединиться к разговору.",conversation_error_title:"УПС!",conversation_error_subtitle:"Похоже, что-то пошло не так",conversation_deleted:"Разговор удалён",message_deleted:"Это сообщение было удалено",message_composer_edit_message:"Редактировать сообщение",emoji_search_placeholder:"Поиск эмодзи",message_list_full_screen_viewer:"Просмотр на весь экран",member_search_placeholder:"Поиск",member_title:"Члены группы",member_empty_title:"Нет доступных членов",member_empty_subtitle:"Добавьте контакты, чтобы увидеть их здесь.",member_error_title:"УПС!",member_error_subtitle:"Похоже, что-то пошло не так",group_title:"Группы",group_seach_placeholder:"",group_search_placeholder:"Поиск",group_members:"Члены",group_member:"Член",group_empty_title:"Нет доступных групп",group_empty_subtitle:"Создайте или присоединитесь к группам, чтобы увидеть их здесь и начать сотрудничество",group_error_title:"УПС!",group_error_subtitle:"Похоже, что-то пошло не так",message_header_members:"Члены",message_header_member:"Член",incoming_call_subtitle:"Входящий звонок",incoming_call_confirm_yes:"Принять",incoming_call_confirm_no:"Отклонить",message_composer_placeholder:"Введите ваше сообщение здесь",message_composer_send_message_icon_hover:"Отправить сообщение",message_composer_attach_icon_hover:"Прикрепить",message_composer_voice_notes_icon_hover:"Голосовая запись",message_composer_emoji_icon_hover:"Эмодзи",message_composer_mention_limit_warning:"Вы можете упомянуть до 10 пользователей одновременно.",message_composer_wrong_file_type:"Вы выбрали другой тип файла. Пожалуйста, выберите подходящий файл.",file_type_not_allowed:"Этот тип файла не разрешен.",message_composer_mention_all:"все",message_composer_mention_notify_everyone_label:"Уведомить всех в этой группе",message_header_typing:"Печатает...",message_header_status_online:"Онлайн",message_header_status_offline:"Офлайн",message_header_last_seen:"В последний раз был",message_header_at:"в",full_screen_viewer_at:"в",message_header_minute_ago:"минуту назад",message_header_minutes_ago:"минуты назад",message_header_hour_ago:"час назад",message_header_hours_ago:"часов назад",message_information_title:"Информация о сообщении",message_information_close_hover:"Закрыть",message_information_read:"Прочитано",message_information_delivered:"Доставлено",message_information_error:"Похоже, что-то пошло не так. Попробуйте снова.",message_information_group_message_receipt_empty:"Ожидаем получения и просмотра сообщения получателями",flag_message_title:"Пожаловаться на сообщение",flag_message_subtitle:"Сообщите, что в этом сообщении является неприемлемым или неправильным.",flag_message_remark_label:"Причина",flag_message_remark_optional:"Необязательно",flag_message_remark_placeholder:"Опишите, что вызывает беспокойство в этом сообщении…",flag_message_error:"Похоже, что-то пошло не так",flag_message_character_limit_reached:"Достигнут предел символов.",flag_message_confirm_yes:"Пожаловаться",flag_message_confirm_no:"Отмена",flag_message_reason_id_spam:"Спам / нежелательный контент",flag_message_reason_id_sexual:"Откровенный или неподобающий контент",flag_message_reason_id_harassment:"Оскорбительное или угрожающее поведение",flag_message_reported:"Сообщение отправлено на проверку.",message_list_error_title:"УПС!",message_list_error_subtitle:"Похоже, что-то пошло не так",message_list_message_copied:"Сообщение скопировано в буфер обмена.",message_list_message_deleted:"Сообщение успешно удалено.",message_list_new_messages:"новые сообщения",message_list_new_message:"Новое",message_list_message_edited:"Сообщение успешно обновлено.",message_list_message_translated:"Сообщение успешно переведено.",message_list_thread_reply:"Ответить",message_list_thread_replies:"Ответы",calls_outgoing:"Звонок...",reaction_reacted:"отреагировал",reaction_popup_and:"и",reaction_popup_others:"другие",reaction_popup_you:"Вы",reaction_list_all:"Все",reaction_list_click_to_remove:"Нажмите, чтобы удалить",reaction_list_you:"Вы",reaction_list_error:"Похоже, что-то пошло не так. Попробуйте снова.",search_placeholder:"Поиск",text_message_read_more:"Читать далее",text_message_show_less:"Показать меньше",thread_title:"Тема",thread_close_hover:"Закрыть",thread_replies:"Ответы",thread_reply:"Ответить",user_title:"Пользователи",user_search_placeholder:"Поиск",user_empty_title:"Пользователи не найдены",user_empty_subtitle:"Мы не нашли пользователей, соответствующих вашему запросу. Попробуйте изменить поиск.",user_error_title:"УПС!",user_error_subtitle:"Похоже, что-то пошло не так",conversation_start:"Нажмите, чтобы начать разговор",conversation_message_deleted:"Сообщение удалено",conversation_subtitle_image:"Изображение",conversation_subtitle_file:"Файл",conversation_subtitle_video:"Видео",conversation_subtitle_audio:"Аудио",conversation_subtitle_added:"добавлено",conversation_subtitle_joined:"присоединился",conversation_subtitle_left:"покинул",conversation_subtitle_kicked:"выгнан",conversation_subtitle_banned:"заблокирован",conversation_subtitle_unbanned:"разблокирован",conversation_subtitle_made:"сделал",polls_title:"Создать опрос",polls_question:"Вопрос",polls_question_placeholder:"Задайте вопрос",polls_options:"Опции",polls_add_placeholder:"Добавить",polls_add_option_button:"Добавить опцию",polls_limit_reached:"Вы достигли лимита. Вы можете добавить до 12 опций.",polls_required_fields_warning:"Пожалуйста, заполните все обязательные поля перед созданием опроса.",polls_error:"Что-то пошло не так. Попробуйте снова.",polls_create_button:"Создать",members_remove:"Кик",members_block:"Бан",members_change_role:"Изменить область",message_text_translated:"Текст переведён",message_list_translate:"Перевести",message_list_option_edit:"Редактировать",message_list_option_delete:"Удалить",message_list_option_react:"Отреагировать",message_list_option_reply_in_thread:"Ответить в теме",message_list_option_reply_to_message:"Ответить",message_list_option_reply:"",message_list_option_message_privately:"Сообщение приватно",message_list_option_copy:"Копировать",message_list_option_info:"Информация",message_list_option_mark_as_unread:"Отметить как непрочитанное",message_list_option_flag_message:"Пожаловаться",message_list_action_edited:"Отредактировано",message_list_action_added:"добавлено",message_list_action_joined:"присоединился",message_list_action_left:"покинул",message_list_action_kicked:"выгнан",message_list_action_banned:"заблокирован",message_list_action_unbanned:"разблокирован",message_list_action_made:"сделал",message_composer_attach_image:"Прикрепить изображение",message_composer_attach_video:"Прикрепить видео",message_composer_attach_audio:"Прикрепить аудио",message_composer_attach_file:"Прикрепить файл",message_composer_polls:"Опросы",conversation_subtitle_poll:"Опрос",message_composer_sticker_hover:"Стикер",conversation_subtitle_sticker:"Стикер",sticker_error:"Похоже, что-то пошло не так",sticker_empty:"Нет доступных стикеров",emoji_smiley_people:"Смайлы и люди",emoji_animals_nature:"Животные и природа",emoji_food_drinks:"Еда и напитки",emoji_activity:"Активность",emoji_travel_places:"Путешествия и места",emoji_objects:"Объекты",emoji_symbols:"Символы",emoji_flags:"Флаги",today:"Сегодня",yesterday:"Вчера",weekday_sunday_full:"Воскресенье",weekday_monday_full:"Понедельник",weekday_tuesday_full:"Вторник",weekday_wednesday_full:"Среда",weekday_thursday_full:"Четверг",weekday_friday_full:"Пятница",weekday_saturday_full:"Суббота",weekday_sunday_short:"Вс",weekday_monday_short:"Пн",weekday_tuesday_short:"Вт",weekday_wednesday_short:"Ср",weekday_thursday_short:"Чт",weekday_friday_short:"Пт",weekday_saturday_short:"Сб",weekday_sunday_min:"Вс",weekday_monday_min:"Пн",weekday_tuesday_min:"Вт",weekday_wednesday_min:"Ср",weekday_thursday_min:"Чт",weekday_friday_min:"Пт",weekday_saturday_min:"Сб",month_january_short:"Янв",month_february_short:"Фев",month_march_short:"Мар",month_april_short:"Апр",month_may_short:"Май",month_june_short:"Июн",month_july_short:"Июл",month_august_short:"Авг",month_september_short:"Сен",month_october_short:"Окт",month_november_short:"Ноя",month_december_short:"Дек",month_january_full:"Январь",month_february_full:"Февраль",month_march_full:"Март",month_april_full:"Апрель",month_may_full:"Май",month_june_full:"Июнь",month_july_full:"Июль",month_august_full:"Август",month_september_full:"Сентябрь",month_october_full:"Октябрь",month_november_full:"Ноябрь",month_december_full:"Декабрь",message_type_not_supported:"Этот тип сообщения не поддерживается.",message_list_message_already_translated:"Выбранный язык для перевода похож на язык исходного сообщения.",media_recorder_error_title:"Требуется доступ к микрофону",media_recorder_error_subtitle:"Не удалось получить доступ к вашему микрофону. Пожалуйста, предоставьте разрешение на использование микрофона для начала записи.",media_recorder_permission_dismiss:"Понятно",search_title:"Поиск",search_empty_title:"Начните поиск",search_empty_subtitle:"Ищите разговоры или сообщения, введя ключевое слово выше.",search_no_result_title:"Нет результатов",search_result_see_more:"Посмотреть больше",search_messages_header:"Сообщения",search_filter_unread:"Непрочитанные",search_filter_groups:"Группы",search_filter_photos:"Фотографии",search_filter_videos:"Видео",search_filter_links:"Ссылки",search_filter_documents:"Документы",search_filter_audio:"Аудио",search_filter_messages:"Сообщения",search_filter_conversations:"Разговоры",search_no_result_subtitle:"Совпадений не найдено. Попробуйте другой поисковый запрос.",search_conversation_header:"Разговоры",search_message_subtitle_you:"Вы",search_message_title_you:"Вы",search_error_title:"УПС!",search_error_subtitle:"Похоже, что-то пошло не так",ai_assistant_chat_intro_message:"Я здесь, чтобы помочь вам!",ai_assistant_chat_composer_placeholder:"Спрашивайте все",ai_assistant_chat_new_chat:"Новый чат",ai_assistant_chat_history:"История",ai_assistant_chat_history_title:"История чата",ai_assistant_chat_thinking:"Думаю…",ai_assistant_chat_executing_tool:"Выполнение вызова инструмента...",ai_assistant_chat_no_internet:"Нет подключения к интернету. Проверьте соединение и попробуйте снова.",ai_assistant_chat_history_empty_title:"Пока нет разговоров",ai_assistant_chat_history_empty_subtitle:"Ваш ИИ-агент готов - спрашивайте что угодно и начинайте разговор.",ai_assistant_chat_history_error_title:"УПС!",ai_assistant_chat_history_error_subtitle:"Что-то пошло не так с нашей стороны. Попробуйте снова.",formatting_toolbar_bold:"Жирный",formatting_toolbar_italic:"Курсив",formatting_toolbar_underline:"Подчёркнутый",formatting_toolbar_strikethrough:"Зачёркнутый",formatting_toolbar_link:"Ссылка",formatting_toolbar_numbered_list:"Нумерованный список",formatting_toolbar_bulleted_list:"Маркированный список",formatting_toolbar_blockquote:"Цитата",formatting_toolbar_code:"Код",formatting_toolbar_code_block:"Блок кода",formatting_toolbar_insert:"Вставить",formatting_toolbar_enter_url:"Введите URL",formatting_toolbar_link_url:"URL ссылки",link_dialog_add_link:"Добавить ссылку",link_dialog_edit_link:"Редактировать ссылку",link_dialog_save:"Сохранить",link_dialog_text:"Текст",link_dialog_text_placeholder:"Введите отображаемый текст",link_dialog_link:"Ссылка",link_url_required:"URL обязателен",link_popover_close:"Закрыть",link_popover_edit:"Редактировать",link_popover_remove:"Удалить",cancel:"Отмена"},fr:{ai_conversation_starter_error:"On dirait que quelque chose s'est mal passé",ai_conversation_summary_title:"Résumé de la conversation",ai_conversation_summary_error:"On dirait que quelque chose s'est mal passé",ai_conversation_summary_empty:"Aucun résumé disponible",ai_smart_replies_title:"Suggérer une réponse",ai_smart_replies_error:"On dirait que quelque chose s'est mal passé",ai_smart_replies_empty:"Aucune suggestion disponible",calls_outgoing_call:"Appel sortant",calls_cancelled_call:"Appel annulé",calls_rejected_call:"Appel rejeté",calls_missed_call:"Appel manqué",calls_ended_call:"Appel terminé",calls_answered_call:"Appel répondu",calls_unanswered_call:"Appel sans réponse",calls_incoming_call:"Appel entrant",calls_busy_call:"Appel occupé",moderation_block_message:"Votre message a été bloqué en raison des politiques de modération",message_list_join_call:"Rejoindre",message_list_voice_call:"Appel vocal",message_list_video_call:"Appel vidéo",message_list_outgoing_call:"Appel sortant",message_list_incoming_call:"Appel entrant",message_list_cancelled_call:"Appel annulé",message_list_rejected_call:"Appel rejeté",message_list_busy_call:"Appel occupé",message_list_ended_call:"Appel terminé",message_list_answered_call:"Appel répondu",message_list_unasnwered_call:"Appel sans réponse",message_list_missed_call:"Appel manqué",conversation_subtitle_voice_call:"Appel vocal",conversation_subtitle_video_call:"Appel vidéo",conversation_subtitle_outgoing_call:"Appel sortant",conversation_subtitle_incoming_call:"Appel entrant",conversation_subtitle_cancelled_call:"Appel annulé",conversation_subtitle_rejected_call:"Appel rejeté",conversation_subtitle_busy_call:"Appel occupé",conversation_subtitle_ended_call:"Appel terminé",conversation_subtitle_answered_call:"Appel répondu",conversation_subtitle_unasnwered_call:"Appel sans réponse",conversation_subtitle_missed_call:"Appel manqué",conversation_subtitle_group_voice_call_initated_self:"Vous avez initié un appel vocal",conversation_subtitle_group_video_call_initated_self:"Vous avez initié un appel vidéo",conversation_subtitle_group_voice_call_initated:"a initié un appel vocal",conversation_subtitle_group_video_call_initated:"a initié un appel vidéo",messsage_composer_collaborative_document:"Document collaboratif",message_list_collaborative_document_title:"Document collaboratif",message_list_collaborative_document_subtitile:"Ouvrez le document pour modifier le contenu ensemble",message_list_collaborative_document_open:"Ouvrir le document",conversation_subtitle_collaborative_document:"Document collaboratif",messsage_composer_collaborative_whiteboard:"Tableau blanc collaboratif",message_list_collaborative_whiteboard_title:"Tableau blanc collaboratif",message_collaborative_whiteboard_subtitile:"Ouvrez le tableau blanc pour dessiner ensemble",messag_list_collaborative_whiteboard_open:"Ouvrir le tableau blanc",conversation_subtitle_collaborative_whiteboard:"Tableau blanc collaboratif",call_button_voice_hover:"Appel vocal",call_button_video_hover:"Appel vidéo",call_logs_title:"Appels",call_logs_empty_title:"Aucun historique d'appels pour le moment",call_logs_empty_subtitle:"Passez ou recevez des appels pour voir votre historique d'appels ici",call_logs_error_title:"OUPS !",call_logs_error_subtitle:"On dirait que quelque chose s'est mal passé",change_scope_title:"Modifier la portée",change_scope_subtitle:"Vous pouvez modifier la portée du membre du groupe afin de gérer les autorisations et les responsabilités du groupe.",change_scope_confirm_yes:"Enregistrer",change_scope_confirm_no:"Annuler",change_scope_error:"Quelque chose s'est mal passé. Veuillez réessayer.",member_scope_admin:"Administrateur",member_scope_moderator:"Modérateur",member_scope_participant:"Participant",member_scope_owner:"Propriétaire",conversation_delete_title:"Supprimer la conversation ?",conversation_delete_subtitle:"Souhaitez-vous supprimer cette conversation ? Elle sera supprimée de tous vos appareils.",conversation_delete_confirm_yes:"Supprimer",conversation_delete_confirm_no:"Annuler",conversation_delete_error:"Quelque chose s'est mal passé. Veuillez réessayer.",conversation_chat_title:"Discussions",conversation_delete_icon_hover:"Supprimer",conversation_subtitle_typing:"Tape...",conversation_subtitle_you_message:"Vous",conversation_subtitle_deleted_message:"Message supprimé",conversation_empty_title:"Aucune conversation pour le moment",conversation_empty_subtitle:"Commencez une nouvelle discussion ou invitez d'autres personnes à rejoindre la conversation.",conversation_error_title:"OUPS !",conversation_error_subtitle:"On dirait que quelque chose s'est mal passé",conversation_deleted:"Conversation supprimée",message_deleted:"Ce message a été supprimé",message_composer_edit_message:"Modifier le message",emoji_search_placeholder:"Rechercher un emoji",message_list_full_screen_viewer:"Visionneuse plein écran",member_search_placeholder:"Rechercher",member_title:"Membres du groupe",member_empty_title:"Aucun membre de groupe disponible",member_empty_subtitle:"Ajoutez des contacts pour les voir apparaître ici.",member_error_title:"OUPS !",member_error_subtitle:"On dirait que quelque chose s'est mal passé",group_title:"Groupes",group_seach_placeholder:"",group_search_placeholder:"Rechercher",group_members:"Membres",group_member:"Membre",group_empty_title:"Aucun groupe disponible",group_empty_subtitle:"Créez ou rejoignez des groupes pour les voir répertoriés ici et commencer à collaborer",group_error_title:"OUPS !",group_error_subtitle:"On dirait que quelque chose s'est mal passé",message_header_members:"Membres",message_header_member:"Membre",incoming_call_subtitle:"Appel entrant",incoming_call_confirm_yes:"Accepter",incoming_call_confirm_no:"Refuser",message_composer_placeholder:"Entrez votre message ici",message_composer_send_message_icon_hover:"Envoyer le message",message_composer_attach_icon_hover:"Joindre",message_composer_voice_notes_icon_hover:"Enregistrement vocal",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Vous pouvez mentionner jusqu'à 10 utilisateurs à la fois.",message_composer_wrong_file_type:"Vous avez sélectionné un type de fichier différent. Veuillez choisir le fichier approprié.",file_type_not_allowed:"Ce type de fichier n'est pas autorisé.",message_composer_mention_all:"tous",message_composer_mention_notify_everyone_label:"Notifier tout le monde dans ce groupe",message_header_typing:"Tape...",message_header_status_online:"En ligne",message_header_status_offline:"Hors ligne",message_header_last_seen:"Vu pour la dernière fois",message_header_at:"à",full_screen_viewer_at:"à",message_header_minute_ago:"il y a une minute",message_header_minutes_ago:"il y a quelques minutes",message_header_hour_ago:"il y a une heure",message_header_hours_ago:"il y a quelques heures",message_information_title:"Informations sur le message",message_information_close_hover:"Fermer",message_information_read:"Lu",message_information_delivered:"Distribué",message_information_error:"On dirait que quelque chose s'est mal passé. Veuillez réessayer.",message_information_group_message_receipt_empty:"En attente que les destinataires reçoivent et consultent le message",flag_message_title:"Signaler un message",flag_message_subtitle:"Dites-nous ce qui est inapproprié ou incorrect dans ce message.",flag_message_remark_label:"Raison",flag_message_remark_optional:"Optionnel",flag_message_remark_placeholder:"Décrivez ce qui vous préoccupe dans ce message…",flag_message_error:"On dirait que quelque chose s'est mal passé",flag_message_character_limit_reached:"Limite de caractères atteinte.",flag_message_confirm_yes:"Signaler",flag_message_confirm_no:"Annuler",flag_message_reason_id_spam:"Spam / contenu indésirable",flag_message_reason_id_sexual:"Contenu explicite ou inapproprié",flag_message_reason_id_harassment:"Comportement insultant ou menaçant",flag_message_reported:"Message signalé.",message_list_error_title:"OUPS !",message_list_error_subtitle:"On dirait que quelque chose s'est mal passé",message_list_message_copied:"Message copié dans le presse-papiers.",message_list_message_deleted:"Message supprimé avec succès.",message_list_new_messages:"nouveaux messages",message_list_new_message:"Nouveau",message_list_message_edited:"Message mis à jour avec succès.",message_list_message_translated:"Message traduit avec succès.",message_list_thread_reply:"Répondre",message_list_thread_replies:"Réponses",calls_outgoing:"Appel en cours...",reaction_reacted:"a réagi",reaction_popup_and:"et",reaction_popup_others:"autres",reaction_popup_you:"Vous",reaction_list_all:"Tous",reaction_list_click_to_remove:"Cliquez pour retirer",reaction_list_you:"Vous",reaction_list_error:"On dirait que quelque chose s'est mal passé. Veuillez réessayer.",search_placeholder:"Rechercher",text_message_read_more:"Lire la suite",text_message_show_less:"Afficher moins",thread_title:"Fil de discussion",thread_close_hover:"Fermer",thread_replies:"Réponses",thread_reply:"Répondre",user_title:"Utilisateurs",user_search_placeholder:"Rechercher",user_empty_title:"Aucun utilisateur trouvé",user_empty_subtitle:"Nous n'avons trouvé aucun utilisateur correspondant à votre recherche. Essayez de modifier vos critères.",user_error_title:"OUPS !",user_error_subtitle:"On dirait que quelque chose s'est mal passé",conversation_start:"Cliquez pour démarrer une conversation",conversation_message_deleted:"Message supprimé",conversation_subtitle_image:"Image",conversation_subtitle_file:"Fichier",conversation_subtitle_video:"Vidéo",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"ajouté",conversation_subtitle_joined:"a rejoint",conversation_subtitle_left:"a quitté",conversation_subtitle_kicked:"a expulsé",conversation_subtitle_banned:"a banni",conversation_subtitle_unbanned:"a débanni",conversation_subtitle_made:"a nommé",polls_title:"Créer un sondage",polls_question:"Question",polls_question_placeholder:"Posez une question",polls_options:"Options",polls_add_placeholder:"Ajouter",polls_add_option_button:"Ajouter une option",polls_limit_reached:"Vous avez atteint la limite. Vous pouvez ajouter jusqu'à 12 options.",polls_required_fields_warning:"Veuillez remplir tous les champs requis avant de créer un sondage.",polls_error:"Quelque chose s'est mal passé. Veuillez réessayer.",polls_create_button:"Créer",members_remove:"Expulser",members_block:"Bannir",members_change_role:"Modifier la portée",message_text_translated:"Texte traduit",message_list_translate:"Traduire",message_list_option_edit:"Modifier",message_list_option_delete:"Supprimer",message_list_option_react:"Réagir",message_list_option_reply_in_thread:"Répondre dans le fil",message_list_option_reply_to_message:"Répondre",message_list_option_reply:"",message_list_option_message_privately:"Envoyer un message privé",message_list_option_copy:"Copier",message_list_option_info:"Infos",message_list_option_mark_as_unread:"Marquer comme non lu",message_list_option_flag_message:"Signaler",message_list_action_edited:"Modifié",message_list_action_added:"ajouté",message_list_action_joined:"a rejoint",message_list_action_left:"a quitté",message_list_action_kicked:"a expulsé",message_list_action_banned:"a banni",message_list_action_unbanned:"a débanni",message_list_action_made:"a nommé",message_composer_attach_image:"Joindre une image",message_composer_attach_video:"Joindre une vidéo",message_composer_attach_audio:"Joindre un fichier audio",message_composer_attach_file:"Joindre un fichier",message_composer_polls:"Sondages",conversation_subtitle_poll:"Sondage",message_composer_sticker_hover:"Autocollant",conversation_subtitle_sticker:"Autocollant",sticker_error:"On dirait que quelque chose s'est mal passé",sticker_empty:"Aucun autocollant disponible",emoji_smiley_people:"Smileys et personnes",emoji_animals_nature:"Animaux et nature",emoji_food_drinks:"Nourriture et boissons",emoji_activity:"Activités",emoji_travel_places:"Voyages et lieux",emoji_objects:"Objets",emoji_symbols:"Symboles",emoji_flags:"Drapeaux",today:"Aujourd'hui",yesterday:"Hier",weekday_sunday_full:"Dimanche",weekday_monday_full:"Lundi",weekday_tuesday_full:"Mardi",weekday_wednesday_full:"Mercredi",weekday_thursday_full:"Jeudi",weekday_friday_full:"Vendredi",weekday_saturday_full:"Samedi",weekday_sunday_short:"Dim",weekday_monday_short:"Lun",weekday_tuesday_short:"Mar",weekday_wednesday_short:"Mer",weekday_thursday_short:"Jeu",weekday_friday_short:"Ven",weekday_saturday_short:"Sam",weekday_sunday_min:"Di",weekday_monday_min:"Lu",weekday_tuesday_min:"Ma",weekday_wednesday_min:"Me",weekday_thursday_min:"Je",weekday_friday_min:"Ve",weekday_saturday_min:"Sa",month_january_short:"Janv",month_february_short:"Févr",month_march_short:"Mars",month_april_short:"Avr",month_may_short:"Mai",month_june_short:"Juin",month_july_short:"Juil",month_august_short:"Aoû",month_september_short:"Sept",month_october_short:"Oct",month_november_short:"Nov",month_december_short:"Déc",month_january_full:"Janvier",month_february_full:"Février",month_march_full:"Mars",month_april_full:"Avril",month_may_full:"Mai",month_june_full:"Juin",month_july_full:"Juillet",month_august_full:"Août",month_september_full:"Septembre",month_october_full:"Octobre",month_november_full:"Novembre",month_december_full:"Décembre",message_type_not_supported:"Ce type de message n'est pas pris en charge.",message_list_message_already_translated:"La langue sélectionnée pour la traduction est similaire à la langue du message original.",media_recorder_error_title:"Accès au Microphone Nécessaire",media_recorder_error_subtitle:"Nous n’avons pas pu accéder à votre microphone. Veuillez autoriser l’accès pour commencer l’enregistrement.",media_recorder_permission_dismiss:"Compris",search_title:"Rechercher",search_empty_title:"Commencez votre recherche",search_empty_subtitle:"Recherchez des conversations ou des messages en tapant un mot-clé ci-dessus.",search_no_result_title:"Aucun résultat",search_result_see_more:"Voir plus",search_messages_header:"Messages",search_filter_unread:"Non lus",search_filter_groups:"Groupes",search_filter_photos:"Photos",search_filter_videos:"Vidéos",search_filter_links:"Liens",search_filter_documents:"Documents",search_filter_audio:"Audio",search_filter_messages:"Messages",search_filter_conversations:"Conversations",search_no_result_subtitle:"Nous n'avons trouvé aucun résultat. Veuillez essayer un autre mot-clé.",search_conversation_header:"Conversations",search_message_subtitle_you:"Vous",search_message_title_you:"Vous",search_error_title:"OUPS !",search_error_subtitle:"On dirait que quelque chose s'est mal passé",ai_assistant_chat_intro_message:"Je suis là pour vous aider !",ai_assistant_chat_composer_placeholder:"Demandez n'importe quoi",ai_assistant_chat_new_chat:"Nouvelle Conversation",ai_assistant_chat_history:"historique des chats",ai_assistant_chat_history_title:"Historique des chats",ai_assistant_chat_thinking:"En train de penser…",ai_assistant_chat_executing_tool:"Exécution de l'appel à l'outil...",ai_assistant_chat_no_internet:"Pas de connexion Internet. Vérifiez votre connexion et réessayez.",ai_assistant_chat_history_empty_title:"Aucune conversation pour le moment",ai_assistant_chat_history_empty_subtitle:"Votre agent IA est prêt - posez n'importe quelle question et commencez la conversation.",ai_assistant_chat_history_error_title:"OUPS !",ai_assistant_chat_history_error_subtitle:"Quelque chose a mal tourné de notre côté. Veuillez réessayer.",formatting_toolbar_bold:"Gras",formatting_toolbar_italic:"Italique",formatting_toolbar_underline:"Souligné",formatting_toolbar_strikethrough:"Barré",formatting_toolbar_link:"Lien",formatting_toolbar_numbered_list:"Liste numérotée",formatting_toolbar_bulleted_list:"Liste à puces",formatting_toolbar_blockquote:"Citation",formatting_toolbar_code:"Code",formatting_toolbar_code_block:"Bloc de code",formatting_toolbar_insert:"Insérer",formatting_toolbar_enter_url:"Saisir l'URL",formatting_toolbar_link_url:"URL du lien",link_dialog_add_link:"Ajouter un lien",link_dialog_edit_link:"Modifier le lien",link_dialog_save:"Enregistrer",link_dialog_text:"Texte",link_dialog_text_placeholder:"Saisir le texte d'affichage",link_dialog_link:"Lien",link_url_required:"L'URL est requise",link_popover_close:"Fermer",link_popover_edit:"Modifier",link_popover_remove:"Supprimer",cancel:"Annuler"},de:{ai_conversation_starter_error:"Es scheint, dass etwas schief gelaufen ist",ai_conversation_summary_title:"Gesprächszusammenfassung",ai_conversation_summary_error:"Es scheint, dass etwas schief gelaufen ist",ai_conversation_summary_empty:"Keine Zusammenfassung verfügbar",ai_smart_replies_title:"Antwort vorschlagen",ai_smart_replies_error:"Es scheint, dass etwas schief gelaufen ist",ai_smart_replies_empty:"Keine Vorschläge verfügbar",calls_outgoing_call:"Ausgehender Anruf",calls_cancelled_call:"Anruf abgebrochen",calls_rejected_call:"Anruf abgelehnt",calls_missed_call:"Verpasster Anruf",calls_ended_call:"Anruf beendet",calls_answered_call:"Anruf beantwortet",calls_unanswered_call:"Anruf unbeantwortet",calls_incoming_call:"Eingehender Anruf",calls_busy_call:"Anruf besetzt",moderation_block_message:"Ihre Nachricht wurde aufgrund der Moderationsrichtlinien blockiert",message_list_join_call:"Beitreten",message_list_voice_call:"Sprachanruf",message_list_video_call:"Videoanruf",message_list_outgoing_call:"Ausgehender Anruf",message_list_incoming_call:"Eingehender Anruf",message_list_cancelled_call:"Anruf abgebrochen",message_list_rejected_call:"Anruf abgelehnt",message_list_busy_call:"Anruf besetzt",message_list_ended_call:"Anruf beendet",message_list_answered_call:"Anruf beantwortet",message_list_unasnwered_call:"Anruf unbeantwortet",message_list_missed_call:"Verpasster Anruf",conversation_subtitle_voice_call:"Sprachanruf",conversation_subtitle_video_call:"Videoanruf",conversation_subtitle_outgoing_call:"Ausgehender Anruf",conversation_subtitle_incoming_call:"Eingehender Anruf",conversation_subtitle_cancelled_call:"Anruf abgebrochen",conversation_subtitle_rejected_call:"Anruf abgelehnt",conversation_subtitle_busy_call:"Anruf besetzt",conversation_subtitle_ended_call:"Anruf beendet",conversation_subtitle_answered_call:"Anruf beantwortet",conversation_subtitle_unasnwered_call:"Anruf unbeantwortet",conversation_subtitle_missed_call:"Verpasster Anruf",conversation_subtitle_group_voice_call_initated_self:"Du hast einen Sprachanruf gestartet",conversation_subtitle_group_video_call_initated_self:"Du hast einen Videoanruf gestartet",conversation_subtitle_group_voice_call_initated:"hat einen Sprachanruf gestartet",conversation_subtitle_group_video_call_initated:"hat einen Videoanruf gestartet",messsage_composer_collaborative_document:"Kollaboratives Dokument",message_list_collaborative_document_title:"Kollaboratives Dokument",message_list_collaborative_document_subtitile:"Dokument öffnen, um Inhalte gemeinsam zu bearbeiten",message_list_collaborative_document_open:"Dokument öffnen",conversation_subtitle_collaborative_document:"Kollaboratives Dokument",messsage_composer_collaborative_whiteboard:"Kollaboratives Whiteboard",message_list_collaborative_whiteboard_title:"Kollaboratives Whiteboard",message_collaborative_whiteboard_subtitile:"Whiteboard öffnen, um gemeinsam zu zeichnen",messag_list_collaborative_whiteboard_open:"Whiteboard öffnen",conversation_subtitle_collaborative_whiteboard:"Kollaboratives Whiteboard",call_button_voice_hover:"Sprachanruf",call_button_video_hover:"Videoanruf",call_logs_title:"Anrufe",call_logs_empty_title:"Noch keine Anrufprotokolle",call_logs_empty_subtitle:"Machen oder empfangen Sie Anrufe, um Ihren Anrufverlauf hier anzuzeigen",call_logs_error_title:"Ups!",call_logs_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",change_scope_title:"Bereich ändern",change_scope_subtitle:"Sie können den Geltungsbereich für das Gruppenmitglied ändern, um Gruppenberechtigungen und -verantwortlichkeiten zu verwalten.",change_scope_confirm_yes:"Speichern",change_scope_confirm_no:"Abbrechen",change_scope_error:"Etwas ist schiefgelaufen. Bitte versuche es erneut.",member_scope_admin:"Administrator",member_scope_moderator:"Moderator",member_scope_participant:"Teilnehmer",member_scope_owner:"Besitzer",conversation_delete_title:"Gespräch löschen?",conversation_delete_subtitle:"Möchten Sie dieses Gespräch löschen? Es wird von all Ihren Geräten entfernt.",conversation_delete_confirm_yes:"Löschen",conversation_delete_confirm_no:"Abbrechen",conversation_delete_error:"Etwas ist schiefgelaufen. Bitte versuche es erneut.",conversation_chat_title:"Chats",conversation_delete_icon_hover:"Löschen",conversation_subtitle_typing:"Schreibt...",conversation_subtitle_you_message:"Du",conversation_subtitle_deleted_message:"Nachricht wurde gelöscht",conversation_empty_title:"Noch keine Gespräche",conversation_empty_subtitle:"Starten Sie eine neue Unterhaltung oder laden Sie andere ein, sich dem Gespräch anzuschließen.",conversation_error_title:"Ups!",conversation_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",conversation_deleted:"Gespräch gelöscht",message_deleted:"Diese Nachricht wurde gelöscht",message_composer_edit_message:"Nachricht bearbeiten",emoji_search_placeholder:"Emoji suchen",message_list_full_screen_viewer:"Vollbildanzeige",member_search_placeholder:"Suche",member_title:"Gruppenmitglieder",member_empty_title:"Keine Gruppenmitglieder verfügbar",member_empty_subtitle:"Fügen Sie Kontakte hinzu, um sie hier aufzulisten.",member_error_title:"Ups!",member_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",group_title:"Gruppen",group_seach_placeholder:"",group_search_placeholder:"Suche",group_members:"Mitglieder",group_member:"Mitglied",group_empty_title:"Keine Gruppen verfügbar",group_empty_subtitle:"Erstellen oder treten Sie Gruppen bei, um sie hier zu sehen und zusammenzuarbeiten",group_error_title:"Ups!",group_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",message_header_members:"Mitglieder",message_header_member:"Mitglied",incoming_call_subtitle:"Eingehender Anruf",incoming_call_confirm_yes:"Annehmen",incoming_call_confirm_no:"Ablehnen",message_composer_placeholder:"Geben Sie hier Ihre Nachricht ein",message_composer_send_message_icon_hover:"Nachricht senden",message_composer_attach_icon_hover:"Anhängen",message_composer_voice_notes_icon_hover:"Sprachaufnahme",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Du kannst bis zu 10 Benutzer gleichzeitig erwähnen.",message_composer_wrong_file_type:"Du hast einen anderen Dateityp ausgewählt. Bitte wähle die passende Datei.",file_type_not_allowed:"Dieser Dateityp ist nicht erlaubt.",message_composer_mention_all:"alle",message_composer_mention_notify_everyone_label:"Alle in dieser Gruppe benachrichtigen",message_header_typing:"Schreibt...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Zuletzt gesehen",message_header_at:"um",full_screen_viewer_at:"um",message_header_minute_ago:"vor einer Minute",message_header_minutes_ago:"vor Minuten",message_header_hour_ago:"vor einer Stunde",message_header_hours_ago:"vor Stunden",message_information_title:"Nachrichteninformationen",message_information_close_hover:"Schließen",message_information_read:"Gelesen",message_information_delivered:"Zugestellt",message_information_error:"Es scheint, dass etwas schief gelaufen ist. Bitte versuche es erneut.",message_information_group_message_receipt_empty:"Warten auf Empfänger, um die Nachricht zu erhalten und anzusehen.",flag_message_title:"Nachricht melden",flag_message_subtitle:"Sagen Sie uns, was an dieser Nachricht unangemessen oder falsch ist.",flag_message_remark_label:"Grund",flag_message_remark_optional:"Optional",flag_message_remark_placeholder:"Beschreiben Sie, was an dieser Nachricht bedenklich ist…",flag_message_error:"Es scheint, dass etwas schief gelaufen ist",flag_message_character_limit_reached:"Zeichenlimit erreicht.",flag_message_confirm_yes:"Melden",flag_message_confirm_no:"Abbrechen",flag_message_reason_id_spam:"Spam / unerwünschter Inhalt",flag_message_reason_id_sexual:"Expliziter oder unangemessener Inhalt",flag_message_reason_id_harassment:"Beleidigendes oder drohendes Verhalten",flag_message_reported:"Nachricht gemeldet.",message_list_error_title:"Ups!",message_list_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",message_list_message_copied:"Nachricht in die Zwischenablage kopiert.",message_list_message_deleted:"Nachricht erfolgreich gelöscht.",message_list_new_messages:"neue Nachrichten",message_list_new_message:"Neu",message_list_message_edited:"Nachricht erfolgreich aktualisiert.",message_list_message_translated:"Nachricht erfolgreich übersetzt.",message_list_thread_reply:"Antworten",message_list_thread_replies:"Antworten",calls_outgoing:"Anrufen...",reaction_reacted:"reagierte",reaction_popup_and:"und",reaction_popup_others:"andere",reaction_popup_you:"Du",reaction_list_all:"Alle",reaction_list_click_to_remove:"Klicken zum Entfernen",reaction_list_you:"Du",reaction_list_error:"Es scheint, dass etwas schief gelaufen ist. Bitte versuche es erneut.",search_placeholder:"Suche",text_message_read_more:"Mehr lesen",text_message_show_less:"Weniger anzeigen",thread_title:"Thread",thread_close_hover:"Schließen",thread_replies:"Antworten",thread_reply:"Antworten",user_title:"Benutzer",user_search_placeholder:"Suche",user_empty_title:"Keine Benutzer gefunden",user_empty_subtitle:"Wir konnten keine Benutzer finden, die zu Ihrer Suche passen. Versuchen Sie, Ihre Suche anzupassen.",user_error_title:"Ups!",user_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",conversation_start:"Klicken, um eine Unterhaltung zu starten",conversation_message_deleted:"Nachricht wurde gelöscht",conversation_subtitle_image:"Bild",conversation_subtitle_file:"Datei",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"hinzugefügt",conversation_subtitle_joined:"beigetreten",conversation_subtitle_left:"verlassen",conversation_subtitle_kicked:"ausgeschlossen",conversation_subtitle_banned:"gesperrt",conversation_subtitle_unbanned:"entsperrt",conversation_subtitle_made:"gemacht",polls_title:"Umfrage erstellen",polls_question:"Frage",polls_question_placeholder:"Frage stellen",polls_options:"Optionen",polls_add_placeholder:"Hinzufügen",polls_add_option_button:"Option hinzufügen",polls_limit_reached:"Sie haben das Limit erreicht. Sie können bis zu 12 Optionen hinzufügen.",polls_required_fields_warning:"Bitte füllen Sie alle erforderlichen Felder aus, bevor Sie eine Umfrage erstellen.",polls_error:"Etwas ist schiefgelaufen. Bitte versuche es erneut.",polls_create_button:"Erstellen",members_remove:"Rauswerfen",members_block:"Bannen",members_change_role:"Bereich ändern",message_text_translated:"Text übersetzt",message_list_translate:"Übersetzen",message_list_option_edit:"Bearbeiten",message_list_option_delete:"Löschen",message_list_option_react:"Reagieren",message_list_option_reply_in_thread:"Im Thread antworten",message_list_option_reply_to_message:"Antworten",message_list_option_reply:"",message_list_option_message_privately:"Private Nachricht senden",message_list_option_copy:"Kopieren",message_list_option_info:"Info",message_list_option_mark_as_unread:"Als ungelesen markieren",message_list_option_flag_message:"Melden",message_list_action_edited:"Bearbeitet",message_list_action_added:"hinzugefügt",message_list_action_joined:"beigetreten",message_list_action_left:"verlassen",message_list_action_kicked:"ausgeschlossen",message_list_action_banned:"gesperrt",message_list_action_unbanned:"entsperrt",message_list_action_made:"gemacht",message_composer_attach_image:"Bild anhängen",message_composer_attach_video:"Video anhängen",message_composer_attach_audio:"Audio anhängen",message_composer_attach_file:"Datei anhängen",message_composer_polls:"Umfragen",conversation_subtitle_poll:"Umfrage",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Es scheint, dass etwas schief gelaufen ist",sticker_empty:"Keine Sticker verfügbar",emoji_smiley_people:"Smileys & Personen",emoji_animals_nature:"Tiere & Natur",emoji_food_drinks:"Essen & Trinken",emoji_activity:"Aktivität",emoji_travel_places:"Reisen & Orte",emoji_objects:"Objekte",emoji_symbols:"Symbole",emoji_flags:"Flaggen",today:"Heute",yesterday:"Gestern",weekday_sunday_full:"Sonntag",weekday_monday_full:"Montag",weekday_tuesday_full:"Dienstag",weekday_wednesday_full:"Mittwoch",weekday_thursday_full:"Donnerstag",weekday_friday_full:"Freitag",weekday_saturday_full:"Samstag",weekday_sunday_short:"Sonntag",weekday_monday_short:"Montag",weekday_tuesday_short:"Dienstag",weekday_wednesday_short:"Mittwoch",weekday_thursday_short:"Donnerstag",weekday_friday_short:"Freitag",weekday_saturday_short:"Samstag",weekday_sunday_min:"Sonntag",weekday_monday_min:"Montag",weekday_tuesday_min:"Dienstag",weekday_wednesday_min:"Mittwoch",weekday_thursday_min:"Donnerstag",weekday_friday_min:"Freitag",weekday_saturday_min:"Samstag",month_january_short:"Januar",month_february_short:"Februar",month_march_short:"März",month_april_short:"April",month_may_short:"Mai",month_june_short:"Juni",month_july_short:"Juli",month_august_short:"August",month_september_short:"September",month_october_short:"Oktober",month_november_short:"November",month_december_short:"Dezember",month_january_full:"Januar",month_february_full:"Februar",month_march_full:"März",month_april_full:"April",month_may_full:"Mai",month_june_full:"Juni",month_july_full:"Juli",month_august_full:"August",month_september_full:"September",month_october_full:"Oktober",month_november_full:"November",month_december_full:"Dezember",message_type_not_supported:"Dieser Nachrichtentyp wird nicht unterstützt.",message_list_message_already_translated:"Die ausgewählte Sprache für die Übersetzung ist der Sprache der Originalnachricht ähnlich.",media_recorder_error_title:"Mikrofonzugriff Erforderlich",media_recorder_error_subtitle:"Wir konnten nicht auf dein Mikrofon zugreifen. Bitte erteile die Mikrofonberechtigung, um mit der Aufnahme zu beginnen.",media_recorder_permission_dismiss:"Verstanden",search_title:"Suche",search_empty_title:"Beginne deine Suche",search_empty_subtitle:"Suche nach Gesprächen oder Nachrichten, indem du ein Stichwort oben eingibst.",search_no_result_title:"Keine Ergebnisse",search_result_see_more:"Mehr anzeigen",search_messages_header:"Nachrichten",search_filter_unread:"Ungelesen",search_filter_groups:"Gruppen",search_filter_photos:"Fotos",search_filter_videos:"Videos",search_filter_links:"Links",search_filter_documents:"Dokumente",search_filter_audio:"Audio",search_filter_messages:"Nachrichten",search_filter_conversations:"Unterhaltungen",search_no_result_subtitle:"Wir konnten keine Treffer finden. Bitte versuchen Sie es mit einem anderen Suchbegriff.",search_conversation_header:"Unterhaltungen",search_message_subtitle_you:"Du",search_message_title_you:"Du",search_error_title:"Ups!",search_error_subtitle:"Es scheint, dass etwas schief gelaufen ist",ai_assistant_chat_intro_message:"Ich bin hier, um Ihnen zu helfen!",ai_assistant_chat_composer_placeholder:"Frag etwas",ai_assistant_chat_new_chat:"Neuer Chat",ai_assistant_chat_history:"Chat-Verlauf",ai_assistant_chat_history_title:"Chat-Verlauf",ai_assistant_chat_thinking:"Denken…",ai_assistant_chat_executing_tool:"Führe Tool-Aufruf aus...",ai_assistant_chat_no_internet:"Keine Internetverbindung. Bitte überprüfen Sie Ihre Verbindung und versuchen Sie es erneut.",ai_assistant_chat_history_empty_subtitle:"Ihr KI-Agent ist bereit – stellen Sie eine Frage und starten Sie das Gespräch.",ai_assistant_chat_history_empty_title:"Noch keine Gespräche",ai_assistant_chat_history_error_title:"Ups!",ai_assistant_chat_history_error_subtitle:"Etwas ist schief gelaufen. Bitte versuchen Sie es erneut.",formatting_toolbar_bold:"Fett",formatting_toolbar_italic:"Kursiv",formatting_toolbar_underline:"Unterstrichen",formatting_toolbar_strikethrough:"Durchgestrichen",formatting_toolbar_link:"Link",formatting_toolbar_numbered_list:"Nummerierte Liste",formatting_toolbar_bulleted_list:"Aufzählungsliste",formatting_toolbar_blockquote:"Zitat",formatting_toolbar_code:"Code",formatting_toolbar_code_block:"Codeblock",formatting_toolbar_insert:"Einfügen",formatting_toolbar_enter_url:"URL eingeben",formatting_toolbar_link_url:"Link-URL",link_dialog_add_link:"Link hinzufügen",link_dialog_edit_link:"Link bearbeiten",link_dialog_save:"Speichern",link_dialog_text:"Text",link_dialog_text_placeholder:"Anzeigetext eingeben",link_dialog_link:"Link",link_url_required:"URL ist erforderlich",link_popover_close:"Schließen",link_popover_edit:"Bearbeiten",link_popover_remove:"Entfernen",cancel:"Abbrechen"},zh:{ai_conversation_starter_error:"看起来出了点问题",ai_conversation_summary_title:"对话摘要",ai_conversation_summary_error:"看起来出了点问题",ai_conversation_summary_empty:"没有可用摘要",ai_smart_replies_title:"建议回复",ai_smart_replies_error:"看起来出了点问题",ai_smart_replies_empty:"没有可用建议",calls_outgoing_call:"拨出电话",calls_cancelled_call:"通话已取消",calls_rejected_call:"通话被拒绝",calls_missed_call:"未接来电",calls_ended_call:"通话结束",calls_answered_call:"已接听",calls_unanswered_call:"未接听",calls_incoming_call:"来电",calls_busy_call:"通话中",moderation_block_message:"您的消息因审核政策而被屏蔽",message_list_join_call:"加入",message_list_voice_call:"语音通话",message_list_video_call:"视频通话",message_list_outgoing_call:"拨出电话",message_list_incoming_call:"来电",message_list_cancelled_call:"通话已取消",message_list_rejected_call:"通话被拒绝",message_list_busy_call:"通话中",message_list_ended_call:"通话结束",message_list_answered_call:"已接听",message_list_unasnwered_call:"未接听",message_list_missed_call:"未接来电",conversation_subtitle_voice_call:"语音通话",conversation_subtitle_video_call:"视频通话",conversation_subtitle_outgoing_call:"拨出电话",conversation_subtitle_incoming_call:"来电",conversation_subtitle_cancelled_call:"通话已取消",conversation_subtitle_rejected_call:"通话被拒绝",conversation_subtitle_busy_call:"通话中",conversation_subtitle_ended_call:"通话结束",conversation_subtitle_answered_call:"已接听",conversation_subtitle_unasnwered_call:"未接听",conversation_subtitle_missed_call:"未接来电",conversation_subtitle_group_voice_call_initated_self:"您已发起语音通话",conversation_subtitle_group_video_call_initated_self:"您已发起视频通话",conversation_subtitle_group_voice_call_initated:"发起了语音通话",conversation_subtitle_group_video_call_initated:"发起了视频通话",messsage_composer_collaborative_document:"协作文档",message_list_collaborative_document_title:"协作文档",message_list_collaborative_document_subtitile:"打开文档一起编辑内容",message_list_collaborative_document_open:"打开文档",conversation_subtitle_collaborative_document:"协作文档",messsage_composer_collaborative_whiteboard:"协作白板",message_list_collaborative_whiteboard_title:"协作白板",message_collaborative_whiteboard_subtitile:"打开白板一起绘制",messag_list_collaborative_whiteboard_open:"打开白板",conversation_subtitle_collaborative_whiteboard:"协作白板",call_button_voice_hover:"语音通话",call_button_video_hover:"视频通话",call_logs_title:"通话记录",call_logs_empty_title:"尚无通话记录",call_logs_empty_subtitle:"拨打或接听电话以查看通话历史",call_logs_error_title:"糟糕！",call_logs_error_subtitle:"看起来出了点问题",change_scope_title:"更改范围",change_scope_subtitle:"您可以更改组成员的范围以管理组权限和职责。",change_scope_confirm_yes:"保存",change_scope_confirm_no:"取消",change_scope_error:"出了点问题，请重试。",member_scope_admin:"管理员",member_scope_moderator:"主持人",member_scope_participant:"参与者",member_scope_owner:"所有者",conversation_delete_title:"删除对话？",conversation_delete_subtitle:"您要删除此对话吗？此对话将在所有设备上被删除。",conversation_delete_confirm_yes:"删除",conversation_delete_confirm_no:"取消",conversation_delete_error:"出了点问题，请重试。",conversation_chat_title:"聊天",conversation_delete_icon_hover:"删除",conversation_subtitle_typing:"正在输入...",conversation_subtitle_you_message:"你",conversation_subtitle_deleted_message:"消息已删除",conversation_empty_title:"暂无对话",conversation_empty_subtitle:"开始新的聊天或邀请他人加入对话。",conversation_error_title:"糟糕！",conversation_error_subtitle:"看起来出了点问题",conversation_deleted:"对话已删除",message_deleted:"此消息已删除",message_composer_edit_message:"编辑消息",emoji_search_placeholder:"搜索表情",message_list_full_screen_viewer:"全屏查看",member_search_placeholder:"搜索",member_title:"群组成员",member_empty_title:"暂无群组成员",member_empty_subtitle:"添加联系人以在此处显示。",member_error_title:"糟糕！",member_error_subtitle:"看起来出了点问题",group_title:"群组",group_seach_placeholder:"",group_search_placeholder:"搜索",group_members:"成员",group_member:"成员",group_empty_title:"暂无群组",group_empty_subtitle:"创建或加入群组以在此处列出并开始协作",group_error_title:"糟糕！",group_error_subtitle:"看起来出了点问题",message_header_members:"成员",message_header_member:"成员",incoming_call_subtitle:"来电",incoming_call_confirm_yes:"接受",incoming_call_confirm_no:"拒绝",message_composer_placeholder:"在此输入您的消息",message_composer_send_message_icon_hover:"发送消息",message_composer_attach_icon_hover:"附件",message_composer_voice_notes_icon_hover:"语音录制",message_composer_emoji_icon_hover:"表情",message_composer_mention_limit_warning:"您最多可以提及 10 个用户。",message_composer_wrong_file_type:"您选择了不同类型的文件。请选择合适的文件。",file_type_not_allowed:"不允许此文件类型。",message_composer_mention_all:"所有人",message_composer_mention_notify_everyone_label:"通知此群组中的所有人",message_header_typing:"正在输入...",message_header_status_online:"在线",message_header_status_offline:"离线",message_header_last_seen:"最后上线",message_header_at:"于",full_screen_viewer_at:"于",message_header_minute_ago:"分钟前",message_header_minutes_ago:"分钟前",message_header_hour_ago:"小时前",message_header_hours_ago:"小时前",message_information_title:"消息信息",message_information_close_hover:"关闭",message_information_read:"已读",message_information_delivered:"已送达",message_information_error:"看起来出了点问题，请重试。",message_information_group_message_receipt_empty:"等待接收者接收并查看消息",flag_message_title:"举报消息",flag_message_subtitle:"请告诉我们这条消息中哪些内容不当或不正确。",flag_message_remark_label:"原因",flag_message_remark_optional:"可选",flag_message_remark_placeholder:"描述这条消息中让您担心的内容…",flag_message_error:"看起来出了点问题",flag_message_character_limit_reached:"已达到字符上限。",flag_message_confirm_yes:"举报",flag_message_confirm_no:"取消",flag_message_reason_id_spam:"垃圾邮件／不想要的内容",flag_message_reason_id_sexual:"露骨或不当内容",flag_message_reason_id_harassment:"侮辱或威胁行为",flag_message_reported:"消息已举报。",message_list_error_title:"糟糕！",message_list_error_subtitle:"看起来出了点问题",message_list_message_copied:"消息已复制到剪贴板。",message_list_message_deleted:"消息已成功删除。",message_list_new_messages:"新消息",message_list_new_message:"新消息",message_list_message_edited:"消息已成功更新。",message_list_message_translated:"消息翻译成功。",message_list_thread_reply:"回复",message_list_thread_replies:"回复",calls_outgoing:"正在呼叫...",reaction_reacted:"已回应",reaction_popup_and:"和",reaction_popup_others:"其他人",reaction_popup_you:"你",reaction_list_all:"全部",reaction_list_click_to_remove:"点击移除",reaction_list_you:"你",reaction_list_error:"看起来出了点问题，请重试。",search_placeholder:"搜索",text_message_read_more:"阅读更多",text_message_show_less:"收起",thread_title:"线程",thread_close_hover:"关闭",thread_replies:"回复",thread_reply:"回复",user_title:"用户",user_search_placeholder:"搜索",user_empty_title:"未找到用户",user_empty_subtitle:"未找到匹配的用户，请调整搜索条件。",user_error_title:"糟糕！",user_error_subtitle:"看起来出了点问题",conversation_start:"点击开始对话",conversation_message_deleted:"消息已删除",conversation_subtitle_image:"图片",conversation_subtitle_file:"文件",conversation_subtitle_video:"视频",conversation_subtitle_audio:"音频",conversation_subtitle_added:"已添加",conversation_subtitle_joined:"已加入",conversation_subtitle_left:"已离开",conversation_subtitle_kicked:"已踢出",conversation_subtitle_banned:"已封禁",conversation_subtitle_unbanned:"已解禁",conversation_subtitle_made:"创建了",polls_title:"创建投票",polls_question:"问题",polls_question_placeholder:"提问",polls_options:"选项",polls_add_placeholder:"添加",polls_add_option_button:"添加选项",polls_limit_reached:"已达到上限，最多可添加 12 个选项。",polls_required_fields_warning:"请填写所有必填字段后再创建投票。",polls_error:"出了点问题，请重试。",polls_create_button:"创建",members_remove:"踢出",members_block:"封禁",members_change_role:"更改范围",message_text_translated:"文本已翻译",message_list_translate:"翻译",message_list_option_edit:"编辑",message_list_option_delete:"删除",message_list_option_react:"表情回应",message_list_option_reply_in_thread:"在线程中回复",message_list_option_reply_to_message:"回复",message_list_option_reply:"",message_list_option_message_privately:"私信",message_list_option_copy:"复制",message_list_option_info:"信息",message_list_option_mark_as_unread:"标记为未读",message_list_option_flag_message:"举报",message_list_action_edited:"已编辑",message_list_action_added:"已添加",message_list_action_joined:"已加入",message_list_action_left:"已离开",message_list_action_kicked:"已踢出",message_list_action_banned:"已封禁",message_list_action_unbanned:"已解禁",message_list_action_made:"创建了",message_composer_attach_image:"附加图片",message_composer_attach_video:"附加视频",message_composer_attach_audio:"附加音频",message_composer_attach_file:"附加文件",message_composer_polls:"投票",conversation_subtitle_poll:"投票",message_composer_sticker_hover:"贴纸",conversation_subtitle_sticker:"贴纸",sticker_error:"看起来出了点问题",sticker_empty:"暂无贴纸",emoji_smiley_people:"笑脸与人物",emoji_animals_nature:"动物与自然",emoji_food_drinks:"食物与饮品",emoji_activity:"活动",emoji_travel_places:"旅行与地点",emoji_objects:"物品",emoji_symbols:"符号",emoji_flags:"旗帜",today:"今天",yesterday:"昨天",weekday_sunday_full:"星期日",weekday_monday_full:"星期一",weekday_tuesday_full:"星期二",weekday_wednesday_full:"星期三",weekday_thursday_full:"星期四",weekday_friday_full:"星期五",weekday_saturday_full:"星期六",weekday_sunday_short:"星期日",weekday_monday_short:"星期一",weekday_tuesday_short:"星期二",weekday_wednesday_short:"星期三",weekday_thursday_short:"星期四",weekday_friday_short:"星期五",weekday_saturday_short:"星期六",weekday_sunday_min:"星期日",weekday_monday_min:"星期一",weekday_tuesday_min:"星期二",weekday_wednesday_min:"星期三",weekday_thursday_min:"星期四",weekday_friday_min:"星期五",weekday_saturday_min:"星期六",month_january_short:"一月",month_february_short:"二月",month_march_short:"三月",month_april_short:"四月",month_may_short:"五月",month_june_short:"六月",month_july_short:"七月",month_august_short:"八月",month_september_short:"九月",month_october_short:"十月",month_november_short:"十一月",month_december_short:"十二月",month_january_full:"一月",month_february_full:"二月",month_march_full:"三月",month_april_full:"四月",month_may_full:"五月",month_june_full:"六月",month_july_full:"七月",month_august_full:"八月",month_september_full:"九月",month_october_full:"十月",month_november_full:"十一月",month_december_full:"十二月",message_type_not_supported:"此消息类型不受支持。",message_list_message_already_translated:"所选的翻译语言与原始消息的语言相似。",media_recorder_error_title:"需要麦克风访问权限",media_recorder_error_subtitle:"无法访问您的麦克风。请授予麦克风权限以开始录音。",media_recorder_permission_dismiss:"知道了",search_title:"搜索",search_empty_title:"开始搜索",search_empty_subtitle:"在上方输入关键词搜索对话或消息。",search_no_result_title:"没有结果",search_result_see_more:"查看更多",search_messages_header:"消息",search_filter_unread:"未读",search_filter_groups:"群组",search_filter_photos:"照片",search_filter_videos:"视频",search_filter_links:"链接",search_filter_documents:"文档",search_filter_audio:"音频",search_filter_messages:"消息",search_filter_conversations:"会话",search_no_result_subtitle:"未找到匹配项。请尝试其他搜索关键词。",search_conversation_header:"会话",search_message_subtitle_you:"你",search_message_title_you:"你",search_error_title:"糟糕！",search_error_subtitle:"看起来出了点问题",ai_assistant_chat_intro_message:"我在这里为您提供帮助！",ai_assistant_chat_composer_placeholder:"询问任何问题",ai_assistant_chat_new_chat:"新聊天",ai_assistant_chat_history:"历史记录",ai_assistant_chat_history_title:"聊天历史",ai_assistant_chat_thinking:"思考中…",ai_assistant_chat_executing_tool:"执行工具调用...",ai_assistant_chat_no_internet:"无网络连接。请检查您的连接并重试。",ai_assistant_chat_history_empty_title:"暂无对话",ai_assistant_chat_history_empty_subtitle:"您的AI代理已准备好-问任何问题并开始对话。",ai_assistant_chat_history_error_title:"糟糕！",ai_assistant_chat_history_error_subtitle:"我们这边出了点问题，请重试。",formatting_toolbar_bold:"粗体",formatting_toolbar_italic:"斜体",formatting_toolbar_underline:"下划线",formatting_toolbar_strikethrough:"删除线",formatting_toolbar_link:"链接",formatting_toolbar_numbered_list:"有序列表",formatting_toolbar_bulleted_list:"无序列表",formatting_toolbar_blockquote:"引用",formatting_toolbar_code:"代码",formatting_toolbar_code_block:"代码块",formatting_toolbar_insert:"插入",formatting_toolbar_enter_url:"输入URL",formatting_toolbar_link_url:"链接URL",link_dialog_add_link:"添加链接",link_dialog_edit_link:"编辑链接",link_dialog_save:"保存",link_dialog_text:"文本",link_dialog_text_placeholder:"输入显示文本",link_dialog_link:"链接",link_url_required:"URL为必填项",link_popover_close:"关闭",link_popover_edit:"编辑",link_popover_remove:"移除",cancel:"取消"},"zh-TW":{ai_conversation_starter_error:"看起来出了点问题",ai_conversation_summary_title:"对话摘要",ai_conversation_summary_error:"看起来出了点问题",ai_conversation_summary_empty:"没有可用摘要",ai_smart_replies_title:"建议回复",ai_smart_replies_error:"看起来出了点问题",ai_smart_replies_empty:"没有可用建议",calls_outgoing_call:"拨出电话",calls_cancelled_call:"通话已取消",calls_rejected_call:"通话被拒绝",calls_missed_call:"未接来电",calls_ended_call:"通话结束",calls_answered_call:"已接听",calls_unanswered_call:"未接听",calls_incoming_call:"来电",calls_busy_call:"通话中",moderation_block_message:"您的訊息因為管理政策被封鎖",message_list_join_call:"加入",message_list_voice_call:"语音通话",message_list_video_call:"视频通话",message_list_outgoing_call:"拨出电话",message_list_incoming_call:"来电",message_list_cancelled_call:"通话已取消",message_list_rejected_call:"通话被拒绝",message_list_busy_call:"通话中",message_list_ended_call:"通话结束",message_list_answered_call:"已接听",message_list_unasnwered_call:"未接听",message_list_missed_call:"未接来电",conversation_subtitle_voice_call:"语音通话",conversation_subtitle_video_call:"视频通话",conversation_subtitle_outgoing_call:"拨出电话",conversation_subtitle_incoming_call:"来电",conversation_subtitle_cancelled_call:"通话已取消",conversation_subtitle_rejected_call:"通话被拒绝",conversation_subtitle_busy_call:"通话中",conversation_subtitle_ended_call:"通话结束",conversation_subtitle_answered_call:"已接听",conversation_subtitle_unasnwered_call:"未接听",conversation_subtitle_missed_call:"未接来电",conversation_subtitle_group_voice_call_initated_self:"您已發起語音通話",conversation_subtitle_group_video_call_initated_self:"您已發起視訊通話",conversation_subtitle_group_voice_call_initated:"發起了語音通話",conversation_subtitle_group_video_call_initated:"發起了視訊通話",messsage_composer_collaborative_document:"协作文档",message_list_collaborative_document_title:"协作文档",message_list_collaborative_document_subtitile:"打开文档一起编辑内容",message_list_collaborative_document_open:"打开文档",conversation_subtitle_collaborative_document:"协作文档",messsage_composer_collaborative_whiteboard:"协作白板",message_list_collaborative_whiteboard_title:"协作白板",message_collaborative_whiteboard_subtitile:"打开白板一起绘制",messag_list_collaborative_whiteboard_open:"打开白板",conversation_subtitle_collaborative_whiteboard:"协作白板",call_button_voice_hover:"语音通话",call_button_video_hover:"视频通话",call_logs_title:"通话记录",call_logs_empty_title:"尚无通话记录",call_logs_empty_subtitle:"拨打或接听电话以查看通话历史",call_logs_error_title:"糟糕",call_logs_error_subtitle:"看起来出了点问题",change_scope_title:"更改範圍",change_scope_subtitle:"您可以變更群組成員的範圍以管理群組權限和職責。",change_scope_confirm_yes:"保存",change_scope_confirm_no:"取消",change_scope_error:"出了点问题，请重试。",member_scope_admin:"管理員",member_scope_moderator:"主持人",member_scope_participant:"參與者",member_scope_owner:"所有者",conversation_delete_title:"删除对话？",conversation_delete_subtitle:"您要删除此对话吗？此对话将在所有设备上被删除。",conversation_delete_confirm_yes:"删除",conversation_delete_confirm_no:"取消",conversation_delete_error:"出了点问题，请重试。",conversation_chat_title:"聊天",conversation_delete_icon_hover:"删除",conversation_subtitle_typing:"正在输入...",conversation_subtitle_you_message:"你",conversation_subtitle_deleted_message:"消息已删除",conversation_empty_title:"對話",conversation_empty_subtitle:"开始新的聊天或邀请他人加入对话。",conversation_error_title:"糟糕！",conversation_error_subtitle:"看起來出了點問題",conversation_deleted:"對話已刪除",message_deleted:"此訊息已刪除",message_composer_edit_message:"編輯訊息",emoji_search_placeholder:"搜尋表情符號",message_list_full_screen_viewer:"全螢幕檢視",member_search_placeholder:"搜尋",member_title:"群組成員",member_empty_title:"無可用的群組成員",member_empty_subtitle:"新增聯絡人以在此處顯示。",member_error_title:"糟糕！",member_error_subtitle:"看起來出了點問題",group_title:"群組",group_seach_placeholder:"",group_search_placeholder:"搜尋",group_members:"成員",group_member:"成員",group_empty_title:"無可用的群組",group_empty_subtitle:"建立或加入群組以在此處顯示並開始協作",group_error_title:"糟糕！",group_error_subtitle:"看起来出了点问题",message_header_members:"成員",message_header_member:"成員",incoming_call_subtitle:"來電",incoming_call_confirm_yes:"接受",incoming_call_confirm_no:"拒絕",message_composer_placeholder:"請輸入您的訊息",message_composer_send_message_icon_hover:"發送訊息",message_composer_attach_icon_hover:"附加",message_composer_voice_notes_icon_hover:"語音錄製",message_composer_emoji_icon_hover:"表情符號",message_composer_mention_limit_warning:"您最多可以提及 10 位使用者。",message_composer_wrong_file_type:"您選擇的文件類型不正確。請選擇適當的文件。",file_type_not_allowed:"不允許此檔案類型。",message_composer_mention_all:"所有人",message_composer_mention_notify_everyone_label:"通知此群組中的所有人",message_header_typing:"正在輸入...",message_header_status_online:"在線",message_header_status_offline:"離線",message_header_last_seen:"最後上線",message_header_at:"於",full_screen_viewer_at:"於",message_header_minute_ago:"分鐘前",message_header_minutes_ago:"分鐘前",message_header_hour_ago:"小時前",message_header_hours_ago:"小時前",message_information_title:"訊息資訊",message_information_close_hover:"關閉",message_information_read:"已讀",message_information_delivered:"已送達",message_information_error:"看起來出了點問題，請重試。",message_information_group_message_receipt_empty:"等待接收者接收並查看訊息",flag_message_title:"檢舉訊息",flag_message_subtitle:"請告訴我們這則訊息中有哪些不當或錯誤的內容。",flag_message_remark_label:"理由",flag_message_remark_optional:"選填",flag_message_remark_placeholder:"描述這則訊息中讓您感到擔心的部分…",flag_message_error:"看起來出了點問題",flag_message_character_limit_reached:"已達到字元上限。",flag_message_confirm_yes:"檢舉",flag_message_confirm_no:"取消",flag_message_reason_id_spam:"垃圾訊息／不想要的內容",flag_message_reason_id_sexual:"露骨或不當內容",flag_message_reason_id_harassment:"侮辱或威脅行為",flag_message_reported:"訊息已檢舉。",message_list_error_title:"糟糕！",message_list_error_subtitle:"看起來出了點問題",message_list_message_copied:"消息已复制到剪贴板。",message_list_message_deleted:"消息已成功删除。",message_list_new_messages:"新消息",message_list_new_message:"新訊息",message_list_message_edited:"消息已成功更新。",message_list_message_translated:"訊息翻譯成功。",message_list_thread_reply:"回复",message_list_thread_replies:"回复",calls_outgoing:"正在呼叫...",reaction_reacted:"已回应",reaction_popup_and:"和",reaction_popup_others:"其他人",reaction_popup_you:"你",reaction_list_all:"全部",reaction_list_click_to_remove:"点击移除",reaction_list_you:"你",reaction_list_error:"看起來出了點問題，請重試。",search_placeholder:"搜索",text_message_read_more:"阅读更多",text_message_show_less:"收起",thread_title:"线程",thread_close_hover:"關閉",thread_replies:"回复",thread_reply:"回复",user_title:"用户",user_search_placeholder:"搜索",user_empty_title:"未找到用户",user_empty_subtitle:"未找到匹配的用户，请调整搜索条件。",user_error_title:"糟糕！",user_error_subtitle:"看起来出了点问题",conversation_start:"点击开始对话",conversation_message_deleted:"消息已删除",conversation_subtitle_image:"图片",conversation_subtitle_file:"文件",conversation_subtitle_video:"视频",conversation_subtitle_audio:"音频",conversation_subtitle_added:"已添加",conversation_subtitle_joined:"已加入",conversation_subtitle_left:"已离开",conversation_subtitle_kicked:"已踢出",conversation_subtitle_banned:"已封禁",conversation_subtitle_unbanned:"已解禁",conversation_subtitle_made:"創建了",polls_title:"创建投票",polls_question:"问题",polls_question_placeholder:"提问",polls_options:"选项",polls_add_placeholder:"添加",polls_add_option_button:"添加选项",polls_limit_reached:"已达到上限，最多可添加 12 个选项。",polls_required_fields_warning:"请填写所有必填字段后再创建投票。",polls_error:"出了点问题，请重试。",polls_create_button:"建立",members_remove:"踢出",members_block:"封禁",members_change_role:"更改範圍",message_text_translated:"文字已翻譯",message_list_translate:"翻譯",message_list_option_edit:"編輯",message_list_option_delete:"刪除",message_list_option_react:"回應",message_list_option_reply_in_thread:"在討論串中回覆",message_list_option_reply_to_message:"回覆",message_list_option_reply:"",message_list_option_message_privately:"私訊",message_list_option_copy:"複製",message_list_option_info:"資訊",message_list_option_mark_as_unread:"標記為未讀",message_list_option_flag_message:"檢舉",message_list_action_edited:"已編輯",message_list_action_added:"已添加",message_list_action_joined:"已加入",message_list_action_left:"已离开",message_list_action_kicked:"已踢出",message_list_action_banned:"已封禁",message_list_action_unbanned:"已解禁",message_list_action_made:"已創建",message_composer_attach_image:"附加圖片",message_composer_attach_video:"附加影片",message_composer_attach_audio:"附加音訊",message_composer_attach_file:"附加文件",message_composer_polls:"投票",conversation_subtitle_poll:"投票",message_composer_sticker_hover:"贴纸",conversation_subtitle_sticker:"贴纸",sticker_error:"看起来出了点问题",sticker_empty:"暂无贴纸",emoji_smiley_people:"表情與人物",emoji_animals_nature:"動物與自然",emoji_food_drinks:"食物與飲品",emoji_activity:"活動",emoji_travel_places:"旅行與地點",emoji_objects:"物品",emoji_symbols:"符號",emoji_flags:"旗幟",today:"今天",yesterday:"昨天",weekday_sunday_full:"週日",weekday_monday_full:"週一",weekday_tuesday_full:"週二",weekday_wednesday_full:"週三",weekday_thursday_full:"週四",weekday_friday_full:"週五",weekday_saturday_full:"週六",weekday_sunday_short:"週日",weekday_monday_short:"週一",weekday_tuesday_short:"週二",weekday_wednesday_short:"週三",weekday_thursday_short:"週四",weekday_friday_short:"週五",weekday_saturday_short:"週六",weekday_sunday_min:"週日",weekday_monday_min:"週一",weekday_tuesday_min:"週二",weekday_wednesday_min:"週三",weekday_thursday_min:"週四",weekday_friday_min:"週五",weekday_saturday_min:"週六",month_january_short:"一月",month_february_short:"二月",month_march_short:"三月",month_april_short:"四月",month_may_short:"五月",month_june_short:"六月",month_july_short:"七月",month_august_short:"八月",month_september_short:"九月",month_october_short:"十月",month_november_short:"十一月",month_december_short:"十二月",month_january_full:"一月",month_february_full:"二月",month_march_full:"三月",month_april_full:"四月",month_may_full:"五月",month_june_full:"六月",month_july_full:"七月",month_august_full:"八月",month_september_full:"九月",month_october_full:"十月",month_november_full:"十一月",month_december_full:"十二月",message_type_not_supported:"此訊息類型不受支援。",message_list_message_already_translated:"所選的翻譯語言與原始訊息的語言相似。",media_recorder_error_title:"需要麥克風存取權",media_recorder_error_subtitle:"我們無法存取您的麥克風。請授予麥克風權限以開始錄音。",media_recorder_permission_dismiss:"了解",search_title:"搜尋",search_empty_title:"開始搜尋",search_empty_subtitle:"在上方輸入關鍵字搜尋對話或訊息。",search_no_result_title:"無結果",search_result_see_more:"查看更多",search_messages_header:"訊息",search_filter_unread:"未讀",search_filter_groups:"群組",search_filter_photos:"照片",search_filter_videos:"影片",search_filter_links:"連結",search_filter_documents:"文件",search_filter_audio:"音訊",search_filter_messages:"訊息",search_filter_conversations:"會話",search_no_result_subtitle:"找不到匹配項。請嘗試其他搜尋關鍵字。",search_conversation_header:"會話",search_message_subtitle_you:"你",search_message_title_you:"你",search_error_title:"糟糕",search_error_subtitle:"看起来出了点问题",ai_assistant_chat_intro_message:"我在這裡協助您！",ai_assistant_chat_composer_placeholder:"詢問任何問題",ai_assistant_chat_new_chat:"新聊天",ai_assistant_chat_history:"歷史記錄",ai_assistant_chat_history_title:"聊天歷史",ai_assistant_chat_thinking:"思考中…",ai_assistant_chat_executing_tool:"執行工具呼叫...",ai_assistant_chat_no_internet:"無網路連線。請檢查您的連線並重試。",ai_assistant_chat_history_empty_title:"對話",ai_assistant_chat_history_empty_subtitle:"您的AI助手已準備就緒 - 詢問任何問題並開始對話。",ai_assistant_chat_history_error_title:"糟糕！",ai_assistant_chat_history_error_subtitle:"伺服器發生問題。請重試。",formatting_toolbar_bold:"粗體",formatting_toolbar_italic:"斜體",formatting_toolbar_underline:"底線",formatting_toolbar_strikethrough:"刪除線",formatting_toolbar_link:"連結",formatting_toolbar_numbered_list:"編號清單",formatting_toolbar_bulleted_list:"項目符號清單",formatting_toolbar_blockquote:"引用",formatting_toolbar_code:"程式碼",formatting_toolbar_code_block:"程式碼區塊",formatting_toolbar_insert:"插入",formatting_toolbar_enter_url:"輸入URL",formatting_toolbar_link_url:"連結URL",link_dialog_add_link:"新增連結",link_dialog_edit_link:"編輯連結",link_dialog_save:"儲存",link_dialog_text:"文字",link_dialog_text_placeholder:"輸入顯示文字",link_dialog_link:"連結",link_url_required:"URL為必填欄位",link_popover_close:"關閉",link_popover_edit:"編輯",link_popover_remove:"移除",cancel:"取消"},es:{ai_conversation_starter_error:"Parece que algo salió mal",ai_conversation_summary_title:"Resumen de la conversación",ai_conversation_summary_error:"Parece que algo salió mal",ai_conversation_summary_empty:"No hay resumen disponible",ai_smart_replies_title:"Sugerir una respuesta",ai_smart_replies_error:"Parece que algo salió mal",ai_smart_replies_empty:"No hay sugerencias disponibles",calls_outgoing_call:"Llamada saliente",calls_cancelled_call:"Llamada cancelada",calls_rejected_call:"Llamada rechazada",calls_missed_call:"Llamada perdida",calls_ended_call:"Llamada finalizada",calls_answered_call:"Llamada contestada",calls_unanswered_call:"Llamada sin respuesta",calls_incoming_call:"Llamada entrante",calls_busy_call:"Llamada ocupada",moderation_block_message:"Tu mensaje fue bloqueado debido a las políticas de moderación",message_list_join_call:"Unirse",message_list_voice_call:"Llamada de voz",message_list_video_call:"Llamada de video",message_list_outgoing_call:"Llamada saliente",message_list_incoming_call:"Llamada entrante",message_list_cancelled_call:"Llamada cancelada",message_list_rejected_call:"Llamada rechazada",message_list_busy_call:"Llamada ocupada",message_list_ended_call:"Llamada finalizada",message_list_answered_call:"Llamada contestada",message_list_unasnwered_call:"Llamada sin respuesta",message_list_missed_call:"Llamada perdida",conversation_subtitle_voice_call:"Llamada de voz",conversation_subtitle_video_call:"Llamada de video",conversation_subtitle_outgoing_call:"Llamada saliente",conversation_subtitle_incoming_call:"Llamada entrante",conversation_subtitle_cancelled_call:"Llamada cancelada",conversation_subtitle_rejected_call:"Llamada rechazada",conversation_subtitle_busy_call:"Llamada ocupada",conversation_subtitle_ended_call:"Llamada finalizada",conversation_subtitle_answered_call:"Llamada contestada",conversation_subtitle_unasnwered_call:"Llamada sin respuesta",conversation_subtitle_missed_call:"Llamada perdida",conversation_subtitle_group_voice_call_initated_self:"Has iniciado una llamada de voz",conversation_subtitle_group_video_call_initated_self:"Has iniciado una llamada de video",conversation_subtitle_group_voice_call_initated:"inició una llamada de voz",conversation_subtitle_group_video_call_initated:"inició una llamada de video",messsage_composer_collaborative_document:"Documento colaborativo",message_list_collaborative_document_title:"Documento colaborativo",message_list_collaborative_document_subtitile:"Abre el documento para editar el contenido juntos",message_list_collaborative_document_open:"Abrir documento",conversation_subtitle_collaborative_document:"Documento colaborativo",messsage_composer_collaborative_whiteboard:"Pizarra colaborativa",message_list_collaborative_whiteboard_title:"Pizarra colaborativa",message_collaborative_whiteboard_subtitile:"Abre la pizarra para dibujar juntos",messag_list_collaborative_whiteboard_open:"Abrir pizarra",conversation_subtitle_collaborative_whiteboard:"Pizarra colaborativa",call_button_voice_hover:"Llamada de voz",call_button_video_hover:"Llamada de video",call_logs_title:"Llamadas",call_logs_empty_title:"Aún no hay registro de llamadas",call_logs_empty_subtitle:"Realiza o recibe llamadas para ver tu historial de llamadas aquí",call_logs_error_title:"¡UPS!",call_logs_error_subtitle:"Parece que algo salió mal",change_scope_title:"Cambiar alcance",change_scope_subtitle:"Puede cambiar el alcance del miembro del grupo para administrar los permisos y responsabilidades del grupo.",change_scope_confirm_yes:"Guardar",change_scope_confirm_no:"Cancelar",change_scope_error:"Algo salió mal. Inténtalo de nuevo.",member_scope_admin:"Administrador",member_scope_moderator:"Moderador",member_scope_participant:"Participante",member_scope_owner:"Propietario",conversation_delete_title:"¿Eliminar conversación?",conversation_delete_subtitle:"¿Deseas eliminar esta conversación? Se eliminará de todos tus dispositivos.",conversation_delete_confirm_yes:"Eliminar",conversation_delete_confirm_no:"Cancelar",conversation_delete_error:"Algo salió mal. Inténtalo de nuevo.",conversation_chat_title:"Chats",conversation_delete_icon_hover:"Eliminar",conversation_subtitle_typing:"Escribiendo...",conversation_subtitle_you_message:"Tú",conversation_subtitle_deleted_message:"Mensaje eliminado",conversation_empty_title:"Aún no hay conversaciones",conversation_empty_subtitle:"Inicia un nuevo chat o invita a otros a unirse a la conversación.",conversation_error_title:"¡UPS!",conversation_error_subtitle:"Parece que algo salió mal",conversation_deleted:"Conversación eliminada",message_deleted:"Este mensaje fue eliminado",message_composer_edit_message:"Editar mensaje",emoji_search_placeholder:"Buscar emoji",message_list_full_screen_viewer:"Visor de pantalla completa",member_search_placeholder:"Buscar",member_title:"Miembros del grupo",member_empty_title:"No hay miembros de grupo disponibles",member_empty_subtitle:"Agrega contactos para verlos aquí.",member_error_title:"¡UPS!",member_error_subtitle:"Parece que algo salió mal",group_title:"Grupos",group_seach_placeholder:"",group_search_placeholder:"Buscar",group_members:"Miembros",group_member:"Miembro",group_empty_title:"No hay grupos disponibles",group_empty_subtitle:"Crea o únete a grupos para verlos aquí y comenzar a colaborar",group_error_title:"¡UPS!",group_error_subtitle:"Parece que algo salió mal",message_header_members:"Miembros",message_header_member:"Miembro",incoming_call_subtitle:"Llamada entrante",incoming_call_confirm_yes:"Aceptar",incoming_call_confirm_no:"Rechazar",message_composer_placeholder:"Escribe tu mensaje aquí",message_composer_send_message_icon_hover:"Enviar mensaje",message_composer_attach_icon_hover:"Adjuntar",message_composer_voice_notes_icon_hover:"Grabación de voz",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Puedes mencionar hasta 10 usuarios a la vez.",message_composer_wrong_file_type:"Seleccionaste un tipo de archivo diferente. Por favor, elige el archivo apropiado.",file_type_not_allowed:"Este tipo de archivo no está permitido.",message_composer_mention_all:"todos",message_composer_mention_notify_everyone_label:"Notificar a todos en este grupo",message_header_typing:"Escribiendo...",message_header_status_online:"En línea",message_header_status_offline:"Desconectado",message_header_last_seen:"Visto por última vez",message_header_at:"a las",full_screen_viewer_at:"a las",message_header_minute_ago:"hace un minuto",message_header_minutes_ago:"hace minutos",message_header_hour_ago:"hace una hora",message_header_hours_ago:"hace horas",message_information_title:"Información del mensaje",message_information_close_hover:"Cerrar",message_information_read:"Leído",message_information_delivered:"Entregado",message_information_error:"Parece que algo salió mal. Inténtalo de nuevo.",message_information_group_message_receipt_empty:"Esperando a que los destinatarios reciban y vean el mensaje",flag_message_title:"Reportar un mensaje",flag_message_subtitle:"Cuéntanos qué es inapropiado o incorrecto en este mensaje.",flag_message_remark_label:"Motivo",flag_message_remark_optional:"Opcional",flag_message_remark_placeholder:"Describe lo que te preocupa de este mensaje…",flag_message_error:"Parece que algo salió mal",flag_message_character_limit_reached:"Se alcanzó el límite de caracteres.",flag_message_confirm_yes:"Reportar",flag_message_confirm_no:"Cancelar",flag_message_reason_id_spam:"Spam / contenido no deseado",flag_message_reason_id_sexual:"Contenido explícito o inapropiado",flag_message_reason_id_harassment:"Comportamiento insultante o amenazante",flag_message_reported:"Mensaje reportado.",message_list_error_title:"¡UPS!",message_list_error_subtitle:"Parece que algo salió mal",message_list_message_copied:"Mensaje copiado al portapapeles.",message_list_message_deleted:"Mensaje eliminado con éxito.",message_list_new_messages:"mensajes nuevos",message_list_new_message:"Nuevo",message_list_message_edited:"Mensaje actualizado con éxito.",message_list_message_translated:"Mensaje traducido con éxito.",message_list_thread_reply:"Responder",message_list_thread_replies:"Respuestas",calls_outgoing:"Llamando...",reaction_reacted:"reaccionó",reaction_popup_and:"y",reaction_popup_others:"otros",reaction_popup_you:"Tú",reaction_list_all:"Todos",reaction_list_click_to_remove:"Haz clic para eliminar",reaction_list_you:"Tú",reaction_list_error:"Parece que algo salió mal. Inténtalo de nuevo.",search_placeholder:"Buscar",text_message_read_more:"Leer más",text_message_show_less:"Mostrar menos",thread_title:"Hilo",thread_close_hover:"Cerrar",thread_replies:"Respuestas",thread_reply:"Responder",user_title:"Usuarios",user_search_placeholder:"Buscar",user_empty_title:"No se encontraron usuarios",user_empty_subtitle:"No pudimos encontrar usuarios que coincidan con tu búsqueda. Intenta ajustar tu búsqueda.",user_error_title:"¡UPS!",user_error_subtitle:"Parece que algo salió mal",conversation_start:"Haz clic para iniciar una conversación",conversation_message_deleted:"Mensaje eliminado",conversation_subtitle_image:"Imagen",conversation_subtitle_file:"Archivo",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"agregó",conversation_subtitle_joined:"se unió",conversation_subtitle_left:"salió",conversation_subtitle_kicked:"expulsó",conversation_subtitle_banned:"prohibió",conversation_subtitle_unbanned:"rehabilitó",conversation_subtitle_made:"nombró",polls_title:"Crear encuesta",polls_question:"Pregunta",polls_question_placeholder:"Haz una pregunta",polls_options:"Opciones",polls_add_placeholder:"Agregar",polls_add_option_button:"Agregar opción",polls_limit_reached:"Has alcanzado el límite. Puedes agregar hasta 12 opciones.",polls_required_fields_warning:"Por favor, completa todos los campos requeridos antes de crear una encuesta.",polls_error:"Algo salió mal. Inténtalo de nuevo.",polls_create_button:"Crear",members_remove:"Expulsar",members_block:"Banear",members_change_role:"Cambiar alcance",message_text_translated:"Texto traducido",message_list_translate:"Traducir",message_list_option_edit:"Editar",message_list_option_delete:"Eliminar",message_list_option_react:"Reaccionar",message_list_option_reply_in_thread:"Responder en el hilo",message_list_option_reply_to_message:"Responder",message_list_option_reply:"",message_list_option_message_privately:"Enviar mensaje privado",message_list_option_copy:"Copiar",message_list_option_info:"Info",message_list_option_mark_as_unread:"Marcar como no leído",message_list_option_flag_message:"Reportar",message_list_action_edited:"Editado",message_list_action_added:"agregó",message_list_action_joined:"se unió",message_list_action_left:"salió",message_list_action_kicked:"expulsó",message_list_action_banned:"prohibió",message_list_action_unbanned:"rehabilitó",message_list_action_made:"nombró",message_composer_attach_image:"Adjuntar imagen",message_composer_attach_video:"Adjuntar video",message_composer_attach_audio:"Adjuntar audio",message_composer_attach_file:"Adjuntar archivo",message_composer_polls:"Encuestas",conversation_subtitle_poll:"Encuesta",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Parece que algo salió mal",sticker_empty:"No hay stickers disponibles",emoji_smiley_people:"Emoticonos y personas",emoji_animals_nature:"Animales y naturaleza",emoji_food_drinks:"Comida y bebida",emoji_activity:"Actividad",emoji_travel_places:"Viajes y lugares",emoji_objects:"Objetos",emoji_symbols:"Símbolos",emoji_flags:"Banderas",today:"Hoy",yesterday:"Ayer",weekday_sunday_full:"Domingo",weekday_monday_full:"Lunes",weekday_tuesday_full:"Martes",weekday_wednesday_full:"Miércoles",weekday_thursday_full:"Jueves",weekday_friday_full:"Viernes",weekday_saturday_full:"Sábado",weekday_sunday_short:"Dom",weekday_monday_short:"Lun",weekday_tuesday_short:"Mar",weekday_wednesday_short:"Mié",weekday_thursday_short:"Jue",weekday_friday_short:"Vie",weekday_saturday_short:"Sáb",weekday_sunday_min:"Do",weekday_monday_min:"Lu",weekday_tuesday_min:"Ma",weekday_wednesday_min:"Mi",weekday_thursday_min:"Ju",weekday_friday_min:"Vi",weekday_saturday_min:"Sá",month_january_short:"Ene",month_february_short:"Feb",month_march_short:"Mar",month_april_short:"Abr",month_may_short:"May",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Ago",month_september_short:"Sep",month_october_short:"Oct",month_november_short:"Nov",month_december_short:"Dic",month_january_full:"Enero",month_february_full:"Febrero",month_march_full:"Marzo",month_april_full:"Abril",month_may_full:"Mayo",month_june_full:"Junio",month_july_full:"Julio",month_august_full:"Agosto",month_september_full:"Septiembre",month_october_full:"Octubre",month_november_full:"Noviembre",month_december_full:"Diciembre",message_type_not_supported:"Este tipo de mensaje no es compatible.",message_list_message_already_translated:"El idioma seleccionado para la traducción es similar al idioma del mensaje original.",media_recorder_error_title:"Se Necesita Acceso al Micrófono",media_recorder_error_subtitle:"No pudimos acceder a tu micrófono. Por favor, otorga permiso para comenzar a grabar.",media_recorder_permission_dismiss:"Entendido",search_title:"Buscar",search_empty_title:"Comienza tu búsqueda",search_empty_subtitle:"Busca conversaciones o mensajes escribiendo una palabra clave arriba.",search_no_result_title:"Sin resultados",search_result_see_more:"Ver más",search_messages_header:"Mensajes",search_filter_unread:"No Leídos",search_filter_groups:"Grupos",search_filter_photos:"Fotos",search_filter_videos:"Videos",search_filter_links:"Enlaces",search_filter_documents:"Documentos",search_filter_audio:"Audio",search_filter_messages:"Mensajes",search_filter_conversations:"Conversaciones",search_no_result_subtitle:"No encontramos coincidencias. Por favor, prueba con otra palabra clave.",search_conversation_header:"Conversaciones",search_message_subtitle_you:"Tú",search_message_title_you:"Tú",search_error_title:"¡UPS!",search_error_subtitle:"Parece que algo salió mal",ai_assistant_chat_intro_message:"¡Estoy aquí para ayudarte!",ai_assistant_chat_composer_placeholder:"Pregunta cualquier cosa",ai_assistant_chat_new_chat:"Nuevo Chat",ai_assistant_chat_history:"Historial",ai_assistant_chat_history_title:"Historial de Chat",ai_assistant_chat_thinking:"Pensando…",ai_assistant_chat_executing_tool:"Ejecutando herramienta...",ai_assistant_chat_no_internet:"No hay conexión a internet. Por favor verifica tu conexión e inténtalo de nuevo.",ai_assistant_chat_history_empty_title:"Aún no hay conversaciones",ai_assistant_chat_history_empty_subtitle:"Tu agente de IA está listo - pregunta cualquier cosa y comienza la conversación.",ai_assistant_chat_history_error_title:"¡UPS!",ai_assistant_chat_history_error_subtitle:"Algo salió mal de nuestro lado. Por favor inténtalo de nuevo.",formatting_toolbar_bold:"Negrita",formatting_toolbar_italic:"Cursiva",formatting_toolbar_underline:"Subrayado",formatting_toolbar_strikethrough:"Tachado",formatting_toolbar_link:"Enlace",formatting_toolbar_numbered_list:"Lista numerada",formatting_toolbar_bulleted_list:"Lista con viñetas",formatting_toolbar_blockquote:"Cita",formatting_toolbar_code:"Código",formatting_toolbar_code_block:"Bloque de código",formatting_toolbar_insert:"Insertar",formatting_toolbar_enter_url:"Introducir URL",formatting_toolbar_link_url:"URL del enlace",link_dialog_add_link:"Añadir enlace",link_dialog_edit_link:"Editar enlace",link_dialog_save:"Guardar",link_dialog_text:"Texto",link_dialog_text_placeholder:"Introducir texto de visualización",link_dialog_link:"Enlace",link_url_required:"La URL es obligatoria",link_popover_close:"Cerrar",link_popover_edit:"Editar",link_popover_remove:"Eliminar",cancel:"Cancelar"},hi:{ai_conversation_starter_error:"ऐसा लगता है कि कुछ गलत हो गया है",ai_conversation_summary_title:"वार्तालाप का सारांश",ai_conversation_summary_error:"ऐसा लगता है कि कुछ गलत हो गया है",ai_conversation_summary_empty:"कोई सारांश उपलब्ध नहीं",ai_smart_replies_title:"उत्तर का सुझाव दें",ai_smart_replies_error:"ऐसा लगता है कि कुछ गलत हो गया है",ai_smart_replies_empty:"कोई सुझाव उपलब्ध नहीं",calls_outgoing_call:"आउटगोइंग कॉल",calls_cancelled_call:"कॉल रद्द की गई",calls_rejected_call:"कॉल अस्वीकृत",calls_missed_call:"मिस्ड कॉल",calls_ended_call:"कॉल समाप्त",calls_answered_call:"कॉल का उत्तर दिया गया",calls_unanswered_call:"कॉल का जवाब नहीं दिया गया",calls_incoming_call:"इनकमिंग कॉल",calls_busy_call:"कॉल व्यस्त",moderation_block_message:"आपका संदेश मोडरेशन नीतियों के कारण ब्लॉक कर दिया गया",message_list_join_call:"शामिल हों",message_list_voice_call:"वॉइस कॉल",message_list_video_call:"वीडियो कॉल",message_list_outgoing_call:"आउटगोइंग कॉल",message_list_incoming_call:"इनकमिंग कॉल",message_list_cancelled_call:"कॉल रद्द की गई",message_list_rejected_call:"कॉल अस्वीकृत",message_list_busy_call:"कॉल व्यस्त",message_list_ended_call:"कॉल समाप्त",message_list_answered_call:"कॉल का उत्तर दिया गया",message_list_unasnwered_call:"कॉल का जवाब नहीं दिया गया",message_list_missed_call:"मिस्ड कॉल",conversation_subtitle_voice_call:"वॉइस कॉल",conversation_subtitle_video_call:"वीडियो कॉल",conversation_subtitle_outgoing_call:"आउटगोइंग कॉल",conversation_subtitle_incoming_call:"इनकमिंग कॉल",conversation_subtitle_cancelled_call:"कॉल रद्द की गई",conversation_subtitle_rejected_call:"कॉल अस्वीकृत",conversation_subtitle_busy_call:"कॉल व्यस्त",conversation_subtitle_ended_call:"कॉल समाप्त",conversation_subtitle_answered_call:"कॉल का उत्तर दिया गया",conversation_subtitle_unasnwered_call:"कॉल का जवाब नहीं दिया गया",conversation_subtitle_missed_call:"मिस्ड कॉल",conversation_subtitle_group_voice_call_initated_self:"आपने वॉइस कॉल आरंभ की है",conversation_subtitle_group_video_call_initated_self:"आपने वीडियो कॉल आरंभ की है",conversation_subtitle_group_voice_call_initated:"ने वॉइस कॉल आरंभ की",conversation_subtitle_group_video_call_initated:"ने वीडियो कॉल आरंभ की",messsage_composer_collaborative_document:"सहयोगी दस्तावेज़",message_list_collaborative_document_title:"सहयोगी दस्तावेज़",message_list_collaborative_document_subtitile:"सामूहिक रूप से संपादन करने के लिए दस्तावेज़ खोलें",message_list_collaborative_document_open:"दस्तावेज़ खोलें",conversation_subtitle_collaborative_document:"सहयोगी दस्तावेज़",messsage_composer_collaborative_whiteboard:"सहयोगी व्हाइटबोर्ड",message_list_collaborative_whiteboard_title:"सहयोगी व्हाइटबोर्ड",message_collaborative_whiteboard_subtitile:"एक साथ ड्राइंग करने के लिए व्हाइटबोर्ड खोलें",messag_list_collaborative_whiteboard_open:"व्हाइटबोर्ड खोलें",conversation_subtitle_collaborative_whiteboard:"सहयोगी व्हाइटबोर्ड",call_button_voice_hover:"वॉइस कॉल",call_button_video_hover:"वीडियो कॉल",call_logs_title:"कॉल",call_logs_empty_title:"अभी तक कोई कॉल लॉग नहीं",call_logs_empty_subtitle:"अपने कॉल इतिहास को यहाँ देखने के लिए कॉल करें या रिसीव करें",call_logs_error_title:"ओह!",call_logs_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",change_scope_title:"दायरा बदलें",change_scope_subtitle:"आप समूह की अनुमतियों और जिम्मेदारियों को प्रबंधित करने के लिए समूह सदस्य के लिए दायरा बदल सकते हैं।",change_scope_confirm_yes:"सहेजें",change_scope_confirm_no:"रद्द करें",change_scope_error:"कुछ गलत हो गया। कृपया पुनः प्रयास करें।",member_scope_admin:"ऐडमिन",member_scope_moderator:"मॉडरेटर",member_scope_participant:"प्रतिभागी",member_scope_owner:"मालिक",conversation_delete_title:"वार्तालाप हटाएँ?",conversation_delete_subtitle:"क्या आप इस वार्तालाप को हटाना चाहते हैं? यह सभी उपकरणों से हटा दिया जाएगा।",conversation_delete_confirm_yes:"हटाएँ",conversation_delete_confirm_no:"रद्द करें",conversation_delete_error:"कुछ गलत हो गया। कृपया पुनः प्रयास करें।",conversation_chat_title:"चैट",conversation_delete_icon_hover:"हटाएँ",conversation_subtitle_typing:"टाइप कर रहे हैं...",conversation_subtitle_you_message:"आप",conversation_subtitle_deleted_message:"संदेश हटाया गया है",conversation_empty_title:"अभी कोई वार्तालाप नहीं",conversation_empty_subtitle:"एक नई चैट शुरू करें या दूसरों को वार्तालाप में शामिल होने के लिए आमंत्रित करें।",conversation_error_title:"ओह!",conversation_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",conversation_deleted:"वार्तालाप हटाया गया",message_deleted:"यह संदेश हटाया जा चुका है",message_composer_edit_message:"संदेश संपादित करें",emoji_search_placeholder:"इमोजी खोजें",message_list_full_screen_viewer:"पूर्ण स्क्रीन व्यूअर",member_search_placeholder:"खोजें",member_title:"समूह सदस्य",member_empty_title:"कोई समूह सदस्य उपलब्ध नहीं",member_empty_subtitle:"उन्हें यहाँ सूचीबद्ध देखने के लिए संपर्क जोड़ें।",member_error_title:"ओह!",member_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",group_title:"समूह",group_seach_placeholder:"",group_search_placeholder:"खोजें",group_members:"सदस्य",group_member:"सदस्य",group_empty_title:"कोई समूह उपलब्ध नहीं",group_empty_subtitle:"समूह बनाने या उनमें शामिल होने पर वे यहाँ प्रदर्शित होंगे और आप सहयोग शुरू कर सकते हैं",group_error_title:"ओह!",group_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",message_header_members:"सदस्य",message_header_member:"सदस्य",incoming_call_subtitle:"इनकमिंग कॉल",incoming_call_confirm_yes:"स्वीकार करें",incoming_call_confirm_no:"अस्वीकार करें",message_composer_placeholder:"अपना संदेश यहाँ दर्ज करें",message_composer_send_message_icon_hover:"संदेश भेजें",message_composer_attach_icon_hover:"संलग्न करें",message_composer_voice_notes_icon_hover:"वॉइस रिकॉर्डिंग",message_composer_emoji_icon_hover:"इमोजी",message_composer_mention_limit_warning:"आप एक बार में अधिकतम 10 उपयोगकर्ताओं का उल्लेख कर सकते हैं।",message_composer_wrong_file_type:"आपने एक अलग प्रकार की फ़ाइल चुनी है। कृपया उपयुक्त फ़ाइल चुनें।",file_type_not_allowed:"इस फ़ाइल प्रकार की अनुमति नहीं है।",message_composer_mention_all:"सभी",message_composer_mention_notify_everyone_label:"इस समूह में सभी को सूचित करें",message_header_typing:"टाइप कर रहे हैं...",message_header_status_online:"ऑनलाइन",message_header_status_offline:"ऑफ़लाइन",message_header_last_seen:"आखिरी बार देखा गया",message_header_at:"पर",full_screen_viewer_at:"पर",message_header_minute_ago:"एक मिनट पहले",message_header_minutes_ago:"मिनट पहले",message_header_hour_ago:"एक घंटा पहले",message_header_hours_ago:"घंटे पहले",message_information_title:"संदेश जानकारी",message_information_close_hover:"बंद करें",message_information_read:"पढ़ा गया",message_information_delivered:"डिलीवर हुआ",message_information_error:"ऐसा लगता है कि कुछ गलत हो गया है। कृपया पुनः प्रयास करें।",message_information_group_message_receipt_empty:"प्राप्तकर्ताओं द्वारा संदेश प्राप्त और देखा जाने की प्रतीक्षा",flag_message_title:"संदेश की रिपोर्ट करें",flag_message_subtitle:"हमें बताएं कि इस संदेश में क्या अनुचित या गलत है।",flag_message_remark_label:"कारण",flag_message_remark_optional:"वैकल्पिक",flag_message_remark_placeholder:"बताएं कि इस संदेश में क्या चिंताजनक है…",flag_message_error:"ऐसा लगता है कि कुछ गलत हो गया है",flag_message_character_limit_reached:"अक्षर सीमा पूरी हो गई।",flag_message_confirm_yes:"रिपोर्ट करें",flag_message_confirm_no:"रद्द करें",flag_message_reason_id_spam:"स्पैम / अवांछित सामग्री",flag_message_reason_id_sexual:"स्पष्ट या अनुपयुक्त सामग्री",flag_message_reason_id_harassment:"अपमानजनक या धमकी भरा व्यवहार",flag_message_reported:"संदेश की रिपोर्ट की गई।",message_list_error_title:"ओह!",message_list_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",message_list_message_copied:"संदेश क्लिपबोर्ड पर कॉपी किया गया।",message_list_message_deleted:"संदेश सफलतापूर्वक हटाया गया।",message_list_new_messages:"नए संदेश",message_list_new_message:"नया",message_list_message_edited:"संदेश सफलतापूर्वक अपडेट हुआ।",message_list_message_translated:"संदेश सफलतापूर्वक अनूदित हुआ।",message_list_thread_reply:"जवाब दें",message_list_thread_replies:"जवाब",calls_outgoing:"कॉल जारी है...",reaction_reacted:"ने प्रतिक्रिया दी",reaction_popup_and:"और",reaction_popup_others:"अन्य",reaction_popup_you:"आप",reaction_list_all:"सभी",reaction_list_click_to_remove:"हटाने के लिए क्लिक करें",reaction_list_you:"आप",reaction_list_error:"ऐसा लगता है कि कुछ गलत हो गया है। कृपया पुनः प्रयास करें।",search_placeholder:"खोजें",text_message_read_more:"और पढ़ें",text_message_show_less:"कम दिखाएँ",thread_title:"थ्रेड",thread_close_hover:"बंद करें",thread_replies:"जवाब",thread_reply:"जवाब दें",user_title:"उपयोगकर्ता",user_search_placeholder:"खोजें",user_empty_title:"कोई उपयोगकर्ता नहीं मिला",user_empty_subtitle:"हमें आपकी खोज से मेल खाने वाले कोई उपयोगकर्ता नहीं मिले। अपनी खोज को समायोजित करने का प्रयास करें।",user_error_title:"ओह!",user_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",conversation_start:"वार्तालाप शुरू करने के लिए क्लिक करें",conversation_message_deleted:"संदेश हटाया गया",conversation_subtitle_image:"छवि",conversation_subtitle_file:"फ़ाइल",conversation_subtitle_video:"वीडियो",conversation_subtitle_audio:"ऑडियो",conversation_subtitle_added:"जोड़ा गया",conversation_subtitle_joined:"शामिल हुआ",conversation_subtitle_left:"छोड़ दिया",conversation_subtitle_kicked:"निकाला गया",conversation_subtitle_banned:"प्रतिबंधित",conversation_subtitle_unbanned:"प्रतिबंध हटाया गया",conversation_subtitle_made:"बनाया",polls_title:"पोल बनाएं",polls_question:"प्रश्न",polls_question_placeholder:"प्रश्न पूछें",polls_options:"विकल्प",polls_add_placeholder:"जोड़ें",polls_add_option_button:"विकल्प जोड़ें",polls_limit_reached:"आपने सीमा पूरी कर ली है। आप अधिकतम 12 विकल्प जोड़ सकते हैं।",polls_required_fields_warning:"कृपया पोल बनाने से पहले सभी आवश्यक फ़ील्ड भरें।",polls_error:"कुछ गलत हो गया। कृपया पुनः प्रयास करें।",polls_create_button:"बनाएँ",members_remove:"निष्कासित करें",members_block:"प्रतिबंध",members_change_role:"दायरा बदलें",message_text_translated:"अनूदित पाठ",message_list_translate:"अनुवाद करें",message_list_option_edit:"संपादित करें",message_list_option_delete:"हटाएँ",message_list_option_react:"प्रतिक्रिया दें",message_list_option_reply_in_thread:"थ्रेड में जवाब दें",message_list_option_reply_to_message:"जवाब दें",message_list_option_reply:"",message_list_option_message_privately:"निजी संदेश भेजें",message_list_option_copy:"कॉपी करें",message_list_option_info:"जानकारी",message_list_option_mark_as_unread:"अपठित चिन्हित करो",message_list_option_flag_message:"रिपोर्ट करें",message_list_action_edited:"संपादित",message_list_action_added:"जोड़ा गया",message_list_action_joined:"शामिल हुआ",message_list_action_left:"छोड़ दिया",message_list_action_kicked:"निकाला गया",message_list_action_banned:"प्रतिबंधित",message_list_action_unbanned:"प्रतिबंध हटाया गया",message_list_action_made:"बनाया",message_composer_attach_image:"छवि जोड़ें",message_composer_attach_video:"वीडियो जोड़ें",message_composer_attach_audio:"ऑडियो जोड़ें",message_composer_attach_file:"फ़ाइल जोड़ें",message_composer_polls:"पोल्स",conversation_subtitle_poll:"पोल",message_composer_sticker_hover:"स्टिकर",conversation_subtitle_sticker:"स्टिकर",sticker_error:"ऐसा लगता है कि कुछ गलत हो गया है",sticker_empty:"कोई स्टिकर उपलब्ध नहीं",emoji_smiley_people:"स्माइली और लोग",emoji_animals_nature:"पशु और प्रकृति",emoji_food_drinks:"भोजन और पेय",emoji_activity:"गतिविधि",emoji_travel_places:"यात्रा और स्थान",emoji_objects:"वस्तुएँ",emoji_symbols:"प्रतीक",emoji_flags:"झंडे",today:"आज",yesterday:"कल",weekday_sunday_full:"रविवार",weekday_monday_full:"सोमवार",weekday_tuesday_full:"मंगलवार",weekday_wednesday_full:"बुधवार",weekday_thursday_full:"गुरुवार",weekday_friday_full:"शुक्रवार",weekday_saturday_full:"शनिवार",weekday_sunday_short:"रवि",weekday_monday_short:"सोम",weekday_tuesday_short:"मंगल",weekday_wednesday_short:"बुध",weekday_thursday_short:"गुरु",weekday_friday_short:"शुक्र",weekday_saturday_short:"शनि",weekday_sunday_min:"र",weekday_monday_min:"सो",weekday_tuesday_min:"मं",weekday_wednesday_min:"बु",weekday_thursday_min:"गु",weekday_friday_min:"शु",weekday_saturday_min:"श",month_january_short:"जन",month_february_short:"फर",month_march_short:"मार्च",month_april_short:"अप्रै",month_may_short:"मई",month_june_short:"जून",month_july_short:"जुलाई",month_august_short:"अग",month_september_short:"सित",month_october_short:"अक्टू",month_november_short:"नव",month_december_short:"दिस",month_january_full:"जनवरी",month_february_full:"फ़रवरी",month_march_full:"मार्च",month_april_full:"अप्रैल",month_may_full:"मई",month_june_full:"जून",month_july_full:"जुलाई",month_august_full:"अगस्त",month_september_full:"सितंबर",month_october_full:"अक्टूबर",month_november_full:"नवंबर",month_december_full:"दिसंबर",message_type_not_supported:"यह संदेश प्रकार समर्थित नहीं है।",message_list_message_already_translated:"अनुवाद के लिए चयनित भाषा मूल संदेश की भाषा के समान है।",media_recorder_error_title:"माइक्रोफ़ोन एक्सेस आवश्यक",media_recorder_error_subtitle:"हम आपके माइक्रोफ़ोन तक पहुँच नहीं पा रहे हैं। रिकॉर्डिंग शुरू करने के लिए कृपया माइक्रोफ़ोन अनुमति दें।",media_recorder_permission_dismiss:"समझ गया",search_title:"खोजें",search_empty_title:"अपनी खोज शुरू करें",search_empty_subtitle:"एक कीवर्ड ऊपर टाइप करके बातचीत या संदेश खोजें।",search_no_result_title:"कोई परिणाम नहीं",search_result_see_more:"और देखें",search_messages_header:"संदेश",search_filter_unread:"अविकसित",search_filter_groups:"समूह",search_filter_photos:"फोटो",search_filter_videos:"वीडियो",search_filter_links:"लिंक",search_filter_documents:"दस्तावेज़",search_filter_audio:"ऑडियो",search_filter_messages:"संदेश",search_filter_conversations:"संवाद",search_no_result_subtitle:"कोई मिलान नहीं मिला। कृपया कोई अलग खोज शब्द आज़माएँ।",search_conversation_header:"संवाद",search_message_subtitle_you:"आप",search_message_title_you:"आप",search_error_title:"ओह!",search_error_subtitle:"ऐसा लगता है कि कुछ गलत हो गया है",ai_assistant_chat_intro_message:"मैं आपकी सहायता के लिए यहाँ हूँ!",ai_assistant_chat_composer_placeholder:"कुछ भी पूछें",ai_assistant_chat_new_chat:"नई चैट",ai_assistant_chat_history:"चैट इतिहास",ai_assistant_chat_history_title:"चैट इतिहास",ai_assistant_chat_thinking:"सोच रहा हूँ…",ai_assistant_chat_executing_tool:"टूल कॉल को निष्पादित कर रहा हूँ...",ai_assistant_chat_no_internet:"इंटरनेट कनेक्शन नहीं है। कृपया अपनी कनेक्शन की जांच करें और फिर से प्रयास करें।",ai_assistant_chat_history_empty_title:"अभी कोई वार्तालाप नहीं",ai_assistant_chat_history_empty_subtitle:"आपका एआई एजेंट तैयार है - कुछ भी पूछें और बातचीत शुरू करें।",ai_assistant_chat_history_error_title:"ओह!",ai_assistant_chat_history_error_subtitle:"हमारी ओर से कुछ गलत हो गया। कृपया पुनः प्रयास करें।",formatting_toolbar_bold:"बोल्ड",formatting_toolbar_italic:"इटैलिक",formatting_toolbar_underline:"रेखांकित",formatting_toolbar_strikethrough:"स्ट्राइकथ्रू",formatting_toolbar_link:"लिंक",formatting_toolbar_numbered_list:"क्रमांकित सूची",formatting_toolbar_bulleted_list:"बुलेट सूची",formatting_toolbar_blockquote:"उद्धरण",formatting_toolbar_code:"कोड",formatting_toolbar_code_block:"कोड ब्लॉक",formatting_toolbar_insert:"डालें",formatting_toolbar_enter_url:"URL दर्ज करें",formatting_toolbar_link_url:"लिंक URL",link_dialog_add_link:"लिंक जोड़ें",link_dialog_edit_link:"लिंक संपादित करें",link_dialog_save:"सहेजें",link_dialog_text:"टेक्स्ट",link_dialog_text_placeholder:"प्रदर्शन टेक्स्ट दर्ज करें",link_dialog_link:"लिंक",link_url_required:"URL आवश्यक है",link_popover_close:"बंद करें",link_popover_edit:"संपादित करें",link_popover_remove:"हटाएं",cancel:"रद्द करें"},ms:{ai_conversation_starter_error:"Nampaknya ada yang tidak kena",ai_conversation_summary_title:"Ringkasan Perbualan",ai_conversation_summary_error:"Nampaknya ada yang tidak kena",ai_conversation_summary_empty:"Tiada Ringkasan Tersedia",ai_smart_replies_title:"Cadangkan balasan",ai_smart_replies_error:"Nampaknya ada yang tidak kena",ai_smart_replies_empty:"Tiada Cadangan Tersedia",calls_outgoing_call:"Panggilan Keluar",calls_cancelled_call:"Panggilan Dibatalkan",calls_rejected_call:"Panggilan Ditolak",calls_missed_call:"Panggilan Terlepas",calls_ended_call:"Panggilan Tamat",calls_answered_call:"Panggilan Dijawab",calls_unanswered_call:"Panggilan Tidak Dijawab",calls_incoming_call:"Panggilan Masuk",calls_busy_call:"Panggilan Sibuk",moderation_block_message:"Mesej anda telah disekat kerana dasar moderasi",message_list_join_call:"Sertai",message_list_voice_call:"Panggilan suara",message_list_video_call:"Panggilan video",message_list_outgoing_call:"Panggilan Keluar",message_list_incoming_call:"Panggilan Masuk",message_list_cancelled_call:"Panggilan Dibatalkan",message_list_rejected_call:"Panggilan Ditolak",message_list_busy_call:"Panggilan Sibuk",message_list_ended_call:"Panggilan Tamat",message_list_answered_call:"Panggilan Dijawab",message_list_unasnwered_call:"Panggilan Tidak Dijawab",message_list_missed_call:"Panggilan Terlepas",conversation_subtitle_voice_call:"Panggilan suara",conversation_subtitle_video_call:"Panggilan video",conversation_subtitle_outgoing_call:"Panggilan Keluar",conversation_subtitle_incoming_call:"Panggilan Masuk",conversation_subtitle_cancelled_call:"Panggilan Dibatalkan",conversation_subtitle_rejected_call:"Panggilan Ditolak",conversation_subtitle_busy_call:"Panggilan Sibuk",conversation_subtitle_ended_call:"Panggilan Tamat",conversation_subtitle_answered_call:"Panggilan Dijawab",conversation_subtitle_unasnwered_call:"Panggilan Tidak Dijawab",conversation_subtitle_missed_call:"Panggilan Terlepas",conversation_subtitle_group_voice_call_initated_self:"Anda memulakan panggilan suara",conversation_subtitle_group_video_call_initated_self:"Anda memulakan panggilan video",conversation_subtitle_group_voice_call_initated:"memulakan panggilan suara",conversation_subtitle_group_video_call_initated:"memulakan panggilan video",messsage_composer_collaborative_document:"Dokumen Kolaboratif",message_list_collaborative_document_title:"Dokumen Kolaboratif",message_list_collaborative_document_subtitile:"Buka dokumen untuk mengedit kandungan bersama",message_list_collaborative_document_open:"Buka Dokumen",conversation_subtitle_collaborative_document:"Dokumen Kolaboratif",messsage_composer_collaborative_whiteboard:"Papan Putih Kolaboratif",message_list_collaborative_whiteboard_title:"Papan Putih Kolaboratif",message_collaborative_whiteboard_subtitile:"Buka papan putih untuk melukis bersama",messag_list_collaborative_whiteboard_open:"Buka Papan Putih",conversation_subtitle_collaborative_whiteboard:"Papan Putih Kolaboratif",call_button_voice_hover:"Panggilan suara",call_button_video_hover:"Panggilan video",call_logs_title:"Panggilan",call_logs_empty_title:"Tiada Log Panggilan Lagi",call_logs_empty_subtitle:"Buat atau terima panggilan untuk melihat sejarah panggilan anda di sini",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Nampaknya ada yang tidak kena",change_scope_title:"Tukar skop",change_scope_subtitle:"Anda boleh menukar skop untuk ahli kumpulan mengurus kebenaran dan tanggungjawab kumpulan.",change_scope_confirm_yes:"Simpan",change_scope_confirm_no:"Batal",change_scope_error:"Ada yang tidak kena. Sila cuba lagi.",member_scope_admin:"Admin",member_scope_moderator:"Moderator",member_scope_participant:"Peserta",member_scope_owner:"Pemilik",conversation_delete_title:"Padam Perbualan?",conversation_delete_subtitle:"Adakah anda mahu memadamkan perbualan ini? Perbualan ini akan dipadamkan dari semua peranti anda.",conversation_delete_confirm_yes:"Padam",conversation_delete_confirm_no:"Batal",conversation_delete_error:"Ada yang tidak kena. Sila cuba lagi.",conversation_chat_title:"Perbualan",conversation_delete_icon_hover:"Padam",conversation_subtitle_typing:"Menulis...",conversation_subtitle_you_message:"Anda",conversation_subtitle_deleted_message:"Mesej dipadamkan",conversation_empty_title:"Tiada Perbualan Lagi",conversation_empty_subtitle:"Mulakan perbualan baru atau jemput orang lain untuk sertai.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Nampaknya ada yang tidak kena",conversation_deleted:"Perbualan Dipadam",message_deleted:"Mesej ini telah dipadam",message_composer_edit_message:"Edit mesej",emoji_search_placeholder:"Cari emoji",message_list_full_screen_viewer:"Paparan Skrin Penuh",member_search_placeholder:"Cari",member_title:"Ahli Kumpulan",member_empty_title:"Tiada Ahli Kumpulan Tersedia",member_empty_subtitle:"Tambah kenalan untuk melihat mereka di sini.",member_error_title:"OOPS!",member_error_subtitle:"Nampaknya ada yang tidak kena",group_title:"Kumpulan",group_seach_placeholder:"",group_search_placeholder:"Cari",group_members:"Ahli",group_member:"Ahli",group_empty_title:"Tiada Kumpulan Tersedia",group_empty_subtitle:"Buat atau sertai kumpulan untuk melihatnya di sini dan mula berkolaborasi",group_error_title:"OOPS!",group_error_subtitle:"Nampaknya ada yang tidak kena",message_header_members:"Ahli",message_header_member:"Ahli",incoming_call_subtitle:"Panggilan Masuk",incoming_call_confirm_yes:"Terima",incoming_call_confirm_no:"Tolak",message_composer_placeholder:"Masukkan mesej anda di sini",message_composer_send_message_icon_hover:"Hantar Mesej",message_composer_attach_icon_hover:"Lampirkan",message_composer_voice_notes_icon_hover:"Rakaman Suara",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Anda boleh menyebut sehingga 10 pengguna sekaligus.",message_composer_wrong_file_type:"Anda memilih jenis fail yang berbeza. Sila pilih fail yang sesuai.",file_type_not_allowed:"Jenis fail ini tidak dibenarkan.",message_composer_mention_all:"semua",message_composer_mention_notify_everyone_label:"Maklumkan semua orang dalam kumpulan ini",message_header_typing:"Menulis...",message_header_status_online:"Dalam talian",message_header_status_offline:"Luar talian",message_header_last_seen:"Terakhir dilihat",message_header_at:"pada",full_screen_viewer_at:"pada",message_header_minute_ago:"minit yang lalu",message_header_minutes_ago:"minit yang lalu",message_header_hour_ago:"jam yang lalu",message_header_hours_ago:"jam yang lalu",message_information_title:"Maklumat Mesej",message_information_close_hover:"Tutup",message_information_read:"Baca",message_information_delivered:"Dihantar",message_information_error:"Nampaknya ada yang tidak kena. Sila cuba lagi.",message_information_group_message_receipt_empty:"Menunggu penerima untuk menerima dan melihat mesej",flag_message_title:"Laporkan Mesej",flag_message_subtitle:"Beritahu kami apa yang tidak sesuai atau salah tentang mesej ini.",flag_message_remark_label:"Sebab",flag_message_remark_optional:"Pilihan",flag_message_remark_placeholder:"Huraikan apa yang membimbangkan tentang mesej ini…",flag_message_error:"Nampaknya ada yang tidak kena",flag_message_character_limit_reached:"Had aksara telah dicapai.",flag_message_confirm_yes:"Laporkan",flag_message_confirm_no:"Batal",flag_message_reason_id_spam:"Spam / Kandungan Tidak Diingini",flag_message_reason_id_sexual:"Kandungan eksplisit atau tidak sesuai",flag_message_reason_id_harassment:"Tingkah laku menghina atau mengancam",flag_message_reported:"Mesej telah dilaporkan.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Nampaknya ada yang tidak kena",message_list_message_copied:"Mesej disalin ke papan klip.",message_list_message_deleted:"Mesej dipadamkan dengan jayanya.",message_list_new_messages:"mesej baru",message_list_new_message:"Baharu",message_list_message_edited:"Mesej dikemas kini dengan jayanya.",message_list_message_translated:"Mesej diterjemahkan dengan jayanya.",message_list_thread_reply:"Balas",message_list_thread_replies:"Balasan",calls_outgoing:"Memanggil...",reaction_reacted:"bertindak balas",reaction_popup_and:"dan",reaction_popup_others:"lain-lain",reaction_popup_you:"Anda",reaction_list_all:"Semua",reaction_list_click_to_remove:"Klik untuk membuang",reaction_list_you:"Anda",reaction_list_error:"Nampaknya ada yang tidak kena. Sila cuba lagi.",search_placeholder:"Cari",text_message_read_more:"Baca lagi",text_message_show_less:"Tunjuk kurang",thread_title:"Benang",thread_close_hover:"Tutup",thread_replies:"Balasan",thread_reply:"Balas",user_title:"Pengguna",user_search_placeholder:"Cari",user_empty_title:"Tiada Pengguna Ditemui",user_empty_subtitle:"Kami tidak dapat mencari pengguna yang sepadan dengan carian anda. Cuba sesuaikan carian anda.",user_error_title:"OOPS!",user_error_subtitle:"Nampaknya ada yang tidak kena",conversation_start:"Klik untuk mulakan perbualan",conversation_message_deleted:"Mesej dipadamkan",conversation_subtitle_image:"Imej",conversation_subtitle_file:"Fail",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"ditambah",conversation_subtitle_joined:"sertai",conversation_subtitle_left:"keluar",conversation_subtitle_kicked:"disingkirkan",conversation_subtitle_banned:"disekat",conversation_subtitle_unbanned:"dibuka sekatan",conversation_subtitle_made:"dibuat",polls_title:"Buat Undian",polls_question:"Soalan",polls_question_placeholder:"Tanya soalan",polls_options:"Pilihan",polls_add_placeholder:"Tambah",polls_add_option_button:"Tambah Pilihan",polls_limit_reached:"Anda telah mencapai had. Anda boleh menambah sehingga 12 pilihan.",polls_required_fields_warning:"Sila isi semua medan yang diperlukan sebelum membuat undian.",polls_error:"Ada yang tidak kena. Sila cuba lagi.",polls_create_button:"Buat",members_remove:"Tendang",members_block:"Larang",members_change_role:"Tukar skop",message_text_translated:"Teks Diterjemah",message_list_translate:"Terjemah",message_list_option_edit:"Edit",message_list_option_delete:"Padam",message_list_option_react:"Tindak balas",message_list_option_reply_in_thread:"Balas dalam thread",message_list_option_reply_to_message:"Balas",message_list_option_reply:"",message_list_option_message_privately:"Mesej Secara Peribadi",message_list_option_copy:"Salin",message_list_option_info:"Info",message_list_option_mark_as_unread:"Tandai Belum Dibaca",message_list_option_flag_message:"Laporkan",message_list_action_edited:"Diedit",message_list_action_added:"ditambah",message_list_action_joined:"sertai",message_list_action_left:"keluar",message_list_action_kicked:"disingkirkan",message_list_action_banned:"disekat",message_list_action_unbanned:"dibuka sekatan",message_list_action_made:"dibuat",message_composer_attach_image:"Lampirkan Imej",message_composer_attach_video:"Lampirkan Video",message_composer_attach_audio:"Lampirkan Audio",message_composer_attach_file:"Lampirkan Fail",message_composer_polls:"Undian",conversation_subtitle_poll:"Undian",message_composer_sticker_hover:"Stiker",conversation_subtitle_sticker:"Stiker",sticker_error:"Nampaknya ada yang tidak kena",sticker_empty:"Tiada Stiker Tersedia",emoji_smiley_people:"Senyuman & Orang",emoji_animals_nature:"Haiwan & Alam",emoji_food_drinks:"Makanan & Minuman",emoji_activity:"Aktiviti",emoji_travel_places:"Perjalanan & Tempat",emoji_objects:"Objek",emoji_symbols:"Simbol",emoji_flags:"Bendera",today:"Hari ini",yesterday:"Semalam",weekday_sunday_full:"Ahad",weekday_monday_full:"Isnin",weekday_tuesday_full:"Selasa",weekday_wednesday_full:"Rabu",weekday_thursday_full:"Khamis",weekday_friday_full:"Jumaat",weekday_saturday_full:"Sabtu",weekday_sunday_short:"Ah",weekday_monday_short:"Is",weekday_tuesday_short:"Se",weekday_wednesday_short:"Ra",weekday_thursday_short:"Kh",weekday_friday_short:"Ju",weekday_saturday_short:"Sa",weekday_sunday_min:"Ah",weekday_monday_min:"Is",weekday_tuesday_min:"Se",weekday_wednesday_min:"Ra",weekday_thursday_min:"Kh",weekday_friday_min:"Ju",weekday_saturday_min:"Sa",month_january_short:"Jan",month_february_short:"Feb",month_march_short:"Mac",month_april_short:"Apr",month_may_short:"Mei",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Ogos",month_september_short:"Sep",month_october_short:"Okt",month_november_short:"Nov",month_december_short:"Dis",month_january_full:"Januari",month_february_full:"Februari",month_march_full:"Mac",month_april_full:"April",month_may_full:"Mei",month_june_full:"Jun",month_july_full:"Julai",month_august_full:"Ogos",month_september_full:"September",month_october_full:"Oktober",month_november_full:"November",month_december_full:"Disember",message_type_not_supported:"Jenis mesej ini tidak disokong.",message_list_message_already_translated:"Bahasa yang dipilih untuk terjemahan adalah serupa dengan bahasa mesej asal.",media_recorder_error_title:"Akses Mikrofon Diperlukan",media_recorder_error_subtitle:"Kami tidak dapat mengakses mikrofon anda. Sila berikan kebenaran mikrofon untuk memulakan rakaman.",media_recorder_permission_dismiss:"Faham",search_title:"Cari",search_empty_title:"Mulakan Carian Anda",search_empty_subtitle:"Cari perbualan atau mesej dengan menaip kata kunci di atas.",search_no_result_title:"Tiada Hasil",search_result_see_more:"Lihat lebih banyak",search_messages_header:"Mesej",search_filter_unread:"Belum dibaca",search_filter_groups:"Kumpulan",search_filter_photos:"Gambar",search_filter_videos:"Video",search_filter_links:"Pautan",search_filter_documents:"Dokumen",search_filter_audio:"Audio",search_filter_messages:"Mesej",search_filter_conversations:"Perbualan",search_no_result_subtitle:"Kami tidak dapat menemui padanan. Sila cuba kata kunci carian lain.",search_conversation_header:"Perbualan",search_message_subtitle_you:"Anda",search_message_title_you:"Anda",search_error_title:"OOPS!",search_error_subtitle:"Nampaknya ada yang tidak kena",ai_assistant_chat_intro_message:"Saya di sini untuk membantu anda!",ai_assistant_chat_composer_placeholder:"Tanyakan apa-apa",ai_assistant_chat_new_chat:"Sembang Baru",ai_assistant_chat_history:"sejarah sembang",ai_assistant_chat_history_title:"Sejarah Sembang",ai_assistant_chat_thinking:"Berfikir…",ai_assistant_chat_executing_tool:"Melaksanakan panggilan alat...",ai_assistant_chat_no_internet:"Tiada sambungan internet. Sila semak sambungan anda dan cuba lagi.",ai_assistant_chat_history_empty_title:"Tiada Perbualan Lagi",ai_assistant_chat_history_empty_subtitle:"Ejen AI anda sedia - tanya apa sahaja dan mulakan perbualan.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Sesuatu yang salah berlaku di pihak kami. Sila cuba lagi.",formatting_toolbar_bold:"Tebal",formatting_toolbar_italic:"Condong",formatting_toolbar_underline:"Garis bawah",formatting_toolbar_strikethrough:"Garis potong",formatting_toolbar_link:"Pautan",formatting_toolbar_numbered_list:"Senarai bernombor",formatting_toolbar_bulleted_list:"Senarai bertitik",formatting_toolbar_blockquote:"Petikan",formatting_toolbar_code:"Kod",formatting_toolbar_code_block:"Blok kod",formatting_toolbar_insert:"Masukkan",formatting_toolbar_enter_url:"Masukkan URL",formatting_toolbar_link_url:"URL pautan",link_dialog_add_link:"Tambah pautan",link_dialog_edit_link:"Edit pautan",link_dialog_save:"Simpan",link_dialog_text:"Teks",link_dialog_text_placeholder:"Masukkan teks paparan",link_dialog_link:"Pautan",link_url_required:"URL diperlukan",link_popover_close:"Tutup",link_popover_edit:"Edit",link_popover_remove:"Buang",cancel:"Batal"},pt:{ai_conversation_starter_error:"Parece que algo deu errado",ai_conversation_summary_title:"Resumo da conversa",ai_conversation_summary_error:"Parece que algo deu errado",ai_conversation_summary_empty:"Nenhum resumo disponível",ai_smart_replies_title:"Sugerir uma resposta",ai_smart_replies_error:"Parece que algo deu errado",ai_smart_replies_empty:"Nenhuma sugestão disponível",calls_outgoing_call:"Chamada de saída",calls_cancelled_call:"Chamada cancelada",calls_rejected_call:"Chamada rejeitada",calls_missed_call:"Chamada perdida",calls_ended_call:"Chamada encerrada",calls_answered_call:"Chamada atendida",calls_unanswered_call:"Chamada não atendida",calls_incoming_call:"Chamada recebida",calls_busy_call:"Chamada ocupada",moderation_block_message:"Sua mensagem foi bloqueada devido às políticas de moderação",message_list_join_call:"Entrar",message_list_voice_call:"Chamada de voz",message_list_video_call:"Chamada de vídeo",message_list_outgoing_call:"Chamada de saída",message_list_incoming_call:"Chamada recebida",message_list_cancelled_call:"Chamada cancelada",message_list_rejected_call:"Chamada rejeitada",message_list_busy_call:"Chamada ocupada",message_list_ended_call:"Chamada encerrada",message_list_answered_call:"Chamada atendida",message_list_unasnwered_call:"Chamada não atendida",message_list_missed_call:"Chamada perdida",conversation_subtitle_voice_call:"Chamada de voz",conversation_subtitle_video_call:"Chamada de vídeo",conversation_subtitle_outgoing_call:"Chamada de saída",conversation_subtitle_incoming_call:"Chamada recebida",conversation_subtitle_cancelled_call:"Chamada cancelada",conversation_subtitle_rejected_call:"Chamada rejeitada",conversation_subtitle_busy_call:"Chamada ocupada",conversation_subtitle_ended_call:"Chamada encerrada",conversation_subtitle_answered_call:"Chamada atendida",conversation_subtitle_unasnwered_call:"Chamada não atendida",conversation_subtitle_missed_call:"Chamada perdida",conversation_subtitle_group_voice_call_initated_self:"Você iniciou uma chamada de voz",conversation_subtitle_group_video_call_initated_self:"Você iniciou uma chamada de vídeo",conversation_subtitle_group_voice_call_initated:"iniciou uma chamada de voz",conversation_subtitle_group_video_call_initated:"iniciou uma chamada de vídeo",messsage_composer_collaborative_document:"Documento colaborativo",message_list_collaborative_document_title:"Documento colaborativo",message_list_collaborative_document_subtitile:"Abrir documento para editar conteúdo juntos",message_list_collaborative_document_open:"Abrir documento",conversation_subtitle_collaborative_document:"Documento colaborativo",messsage_composer_collaborative_whiteboard:"Quadro branco colaborativo",message_list_collaborative_whiteboard_title:"Quadro branco colaborativo",message_collaborative_whiteboard_subtitile:"Abrir quadro branco para desenhar juntos",messag_list_collaborative_whiteboard_open:"Abrir quadro branco",conversation_subtitle_collaborative_whiteboard:"Quadro branco colaborativo",call_button_voice_hover:"Chamada de voz",call_button_video_hover:"Chamada de vídeo",call_logs_title:"Chamadas",call_logs_empty_title:"Nenhum registro de chamadas ainda",call_logs_empty_subtitle:"Faça ou receba chamadas para ver seu histórico de chamadas listado aqui",call_logs_error_title:"OPS!",call_logs_error_subtitle:"Parece que algo deu errado",change_scope_title:"Alterar escopo",change_scope_subtitle:"Você pode alterar o escopo do membro do grupo para gerenciar permissões e responsabilidades do grupo.",change_scope_confirm_yes:"Salvar",change_scope_confirm_no:"Cancelar",change_scope_error:"Algo deu errado. Tente novamente.",member_scope_admin:"Administrador",member_scope_moderator:"Moderador",member_scope_participant:"Participante",member_scope_owner:"Proprietário",conversation_delete_title:"Excluir conversa?",conversation_delete_subtitle:"Você gostaria de excluir esta conversa? Esta conversa será excluída de todos os seus dispositivos.",conversation_delete_confirm_yes:"Excluir",conversation_delete_confirm_no:"Cancelar",conversation_delete_error:"Algo deu errado. Tente novamente.",conversation_chat_title:"Conversas",conversation_delete_icon_hover:"Excluir",conversation_subtitle_typing:"Digitando...",conversation_subtitle_you_message:"Você",conversation_subtitle_deleted_message:"Mensagem excluída",conversation_empty_title:"Nenhuma conversa ainda",conversation_empty_subtitle:"Inicie uma nova conversa ou convide outros para se juntar à conversa.",conversation_error_title:"OPS!",conversation_error_subtitle:"Parece que algo deu errado",conversation_deleted:"Conversa excluída",message_deleted:"Esta mensagem foi excluída",message_composer_edit_message:"Editar mensagem",emoji_search_placeholder:"Pesquisar emoji",message_list_full_screen_viewer:"Visualizador em tela cheia",member_search_placeholder:"Pesquisar",member_title:"Membros do grupo",member_empty_title:"Nenhum membro disponível",member_empty_subtitle:"Adicione contatos para vê-los listados aqui.",member_error_title:"OPS!",member_error_subtitle:"Parece que algo deu errado",group_title:"Grupos",group_seach_placeholder:"",group_search_placeholder:"Pesquisar",group_members:"Membros",group_member:"Membro",group_empty_title:"Nenhum grupo disponível",group_empty_subtitle:"Crie ou entre em grupos para vê-los listados aqui e começar a colaborar",group_error_title:"OPS!",group_error_subtitle:"Parece que algo deu errado",message_header_members:"Membros",message_header_member:"Membro",incoming_call_subtitle:"Chamada recebida",incoming_call_confirm_yes:"Aceitar",incoming_call_confirm_no:"Recusar",message_composer_placeholder:"Digite sua mensagem aqui",message_composer_send_message_icon_hover:"Enviar mensagem",message_composer_attach_icon_hover:"Anexar",message_composer_voice_notes_icon_hover:"Gravação de voz",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Você pode mencionar até 10 usuários de uma vez.",message_composer_wrong_file_type:"Você selecionou um tipo de arquivo diferente. Por favor, escolha o arquivo apropriado.",file_type_not_allowed:"Este tipo de arquivo não é permitido.",message_composer_mention_all:"todos",message_composer_mention_notify_everyone_label:"Notificar todos neste grupo",message_header_typing:"Digitando...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Visto por último",message_header_at:"em",full_screen_viewer_at:"em",message_header_minute_ago:"minuto atrás",message_header_minutes_ago:"minutos atrás",message_header_hour_ago:"hora atrás",message_header_hours_ago:"horas atrás",message_information_title:"Informações da mensagem",message_information_close_hover:"Fechar",message_information_read:"Lida",message_information_delivered:"Entregue",message_information_error:"Parece que algo deu errado. Tente novamente.",message_information_group_message_receipt_empty:"Aguardando os destinatários para receber e visualizar a mensagem",flag_message_title:"Denunciar uma mensagem",flag_message_subtitle:"Diga-nos o que é inapropriado ou incorreto nesta mensagem.",flag_message_remark_label:"Motivo",flag_message_remark_optional:"Opcional",flag_message_remark_placeholder:"Descreva o que é preocupante nesta mensagem…",flag_message_error:"Parece que algo deu errado",flag_message_character_limit_reached:"Limite de caracteres atingido.",flag_message_confirm_yes:"Denunciar",flag_message_confirm_no:"Cancelar",flag_message_reason_id_spam:"Spam / Conteúdo indesejado",flag_message_reason_id_sexual:"Conteúdo explícito ou inapropriado",flag_message_reason_id_harassment:"Comportamento insultante ou ameaçador",flag_message_reported:"Mensagem denunciada.",message_list_error_title:"OPS!",message_list_error_subtitle:"Parece que algo deu errado",message_list_message_copied:"Mensagem copiada para a área de transferência.",message_list_message_deleted:"Mensagem excluída com sucesso.",message_list_new_messages:"novas mensagens",message_list_new_message:"Novo",message_list_message_edited:"Mensagem atualizada com sucesso.",message_list_message_translated:"Mensagem traduzida com sucesso.",message_list_thread_reply:"Responder",message_list_thread_replies:"Respostas",calls_outgoing:"Ligando...",reaction_reacted:"reagiu",reaction_popup_and:"e",reaction_popup_others:"outros",reaction_popup_you:"Você",reaction_list_all:"Todos",reaction_list_click_to_remove:"Clique para remover",reaction_list_you:"Você",reaction_list_error:"Parece que algo deu errado. Tente novamente.",search_placeholder:"Pesquisar",text_message_read_more:"Leia mais",text_message_show_less:"Mostrar menos",thread_title:"Tópico",thread_close_hover:"Fechar",thread_replies:"Respostas",thread_reply:"Responder",user_title:"Usuários",user_search_placeholder:"Pesquisar",user_empty_title:"Nenhum usuário encontrado",user_empty_subtitle:"Não encontramos usuários correspondentes à sua pesquisa. Tente ajustar sua pesquisa.",user_error_title:"OPS!",user_error_subtitle:"Parece que algo deu errado",conversation_start:"Clique para iniciar a conversa",conversation_message_deleted:"Mensagem excluída",conversation_subtitle_image:"Imagem",conversation_subtitle_file:"Arquivo",conversation_subtitle_video:"Vídeo",conversation_subtitle_audio:"Áudio",conversation_subtitle_added:"adicionou",conversation_subtitle_joined:"entrou",conversation_subtitle_left:"saiu",conversation_subtitle_kicked:"expulso",conversation_subtitle_banned:"banido",conversation_subtitle_unbanned:"desbanido",conversation_subtitle_made:"fez",polls_title:"Criar Enquete",polls_question:"Pergunta",polls_question_placeholder:"Faça uma pergunta",polls_options:"Opções",polls_add_placeholder:"Adicionar",polls_add_option_button:"Adicionar Opção",polls_limit_reached:"Você atingiu o limite. Você pode adicionar até 12 opções.",polls_required_fields_warning:"Por favor, preencha todos os campos obrigatórios antes de criar uma enquete.",polls_error:"Algo deu errado. Tente novamente.",polls_create_button:"Criar",members_remove:"Expulsar",members_block:"Banir",members_change_role:"Alterar escopo",message_text_translated:"Texto traduzido",message_list_translate:"Traduzir",message_list_option_edit:"Editar",message_list_option_delete:"Excluir",message_list_option_react:"Reagir",message_list_option_reply_in_thread:"Responder no tópico",message_list_option_reply_to_message:"Responder",message_list_option_reply:"",message_list_option_message_privately:"Mensagem privada",message_list_option_copy:"Copiar",message_list_option_info:"Informações",message_list_option_mark_as_unread:"Marcar como não lido",message_list_option_flag_message:"Denunciar",message_list_action_edited:"Editado",message_list_action_added:"adicionado",message_list_action_joined:"entrou",message_list_action_left:"saiu",message_list_action_kicked:"expulso",message_list_action_banned:"banido",message_list_action_unbanned:"desbanido",message_list_action_made:"fez",message_composer_attach_image:"Anexar imagem",message_composer_attach_video:"Anexar vídeo",message_composer_attach_audio:"Anexar áudio",message_composer_attach_file:"Anexar arquivo",message_composer_polls:"Enquetes",conversation_subtitle_poll:"Enquete",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Parece que algo deu errado",sticker_empty:"Nenhum sticker disponível",emoji_smiley_people:"Emojis de sorriso e pessoas",emoji_animals_nature:"Animais e natureza",emoji_food_drinks:"Comida e bebida",emoji_activity:"Atividade",emoji_travel_places:"Viagem e lugares",emoji_objects:"Objetos",emoji_symbols:"Símbolos",emoji_flags:"Bandeiras",today:"Hoje",yesterday:"Ontem",weekday_sunday_full:"Domingo",weekday_monday_full:"Segunda-feira",weekday_tuesday_full:"Terça-feira",weekday_wednesday_full:"Quarta-feira",weekday_thursday_full:"Quinta-feira",weekday_friday_full:"Sexta-feira",weekday_saturday_full:"Sábado",weekday_sunday_short:"Dom",weekday_monday_short:"Seg",weekday_tuesday_short:"Ter",weekday_wednesday_short:"Qua",weekday_thursday_short:"Qui",weekday_friday_short:"Sex",weekday_saturday_short:"Sáb",weekday_sunday_min:"Do",weekday_monday_min:"Se",weekday_tuesday_min:"Te",weekday_wednesday_min:"Qu",weekday_thursday_min:"Qu",weekday_friday_min:"Se",weekday_saturday_min:"Sá",month_january_short:"Jan",month_february_short:"Fev",month_march_short:"Mar",month_april_short:"Abr",month_may_short:"Mai",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Ago",month_september_short:"Set",month_october_short:"Out",month_november_short:"Nov",month_december_short:"Dez",month_january_full:"Janeiro",month_february_full:"Fevereiro",month_march_full:"Março",month_april_full:"Abril",month_may_full:"Maio",month_june_full:"Junho",month_july_full:"Julho",month_august_full:"Agosto",month_september_full:"Setembro",month_october_full:"Outubro",month_november_full:"Novembro",month_december_full:"Dezembro",message_type_not_supported:"Este tipo de mensagem não é suportado.",message_list_message_already_translated:"O idioma selecionado para tradução é semelhante ao idioma da mensagem original.",media_recorder_error_title:"Acesso ao Microfone Necessário",media_recorder_error_subtitle:"Não conseguimos acessar seu microfone. Conceda permissão para iniciar a gravação.",media_recorder_permission_dismiss:"Entendido",search_title:"Pesquisar",search_empty_title:"Comece sua busca",search_empty_subtitle:"Pesquise por conversas ou mensagens digitando uma palavra-chave acima.",search_no_result_title:"Sem Resultados",search_result_see_more:"Ver mais",search_messages_header:"Mensagens",search_filter_unread:"Não lidas",search_filter_groups:"Grupos",search_filter_photos:"Fotos",search_filter_videos:"Vídeos",search_filter_links:"Links",search_filter_documents:"Documentos",search_filter_audio:"Áudio",search_filter_messages:"Mensagens",search_filter_conversations:"Conversas",search_no_result_subtitle:"Não encontramos nenhuma correspondência. Por favor, tente outra palavra-chave.",search_conversation_header:"Conversas",search_message_subtitle_you:"Você",search_message_title_you:"Você",search_error_title:"OPS!",search_error_subtitle:"Parece que algo deu errado",ai_assistant_chat_intro_message:"Estou aqui para te ajudar!",ai_assistant_chat_composer_placeholder:"Pergunte qualquer coisa",ai_assistant_chat_new_chat:"Novo Chat",ai_assistant_chat_history:"histórico de chat",ai_assistant_chat_history_title:"Histórico de chat",ai_assistant_chat_thinking:"Pensando…",ai_assistant_chat_executing_tool:"Executando chamada da ferramenta...",ai_assistant_chat_no_internet:"Sem conexão com a Internet. Verifique sua conexão e tente novamente.",ai_assistant_chat_history_empty_title:"Nenhuma conversa ainda",ai_assistant_chat_history_empty_subtitle:"Seu agente de IA está pronto - pergunte qualquer coisa e comece a conversa.",ai_assistant_chat_history_error_title:"OPS!",ai_assistant_chat_history_error_subtitle:"Algo deu errado do nosso lado. Por favor, tente novamente.",formatting_toolbar_bold:"Negrito",formatting_toolbar_italic:"Itálico",formatting_toolbar_underline:"Sublinhado",formatting_toolbar_strikethrough:"Tachado",formatting_toolbar_link:"Link",formatting_toolbar_numbered_list:"Lista numerada",formatting_toolbar_bulleted_list:"Lista com marcadores",formatting_toolbar_blockquote:"Citação",formatting_toolbar_code:"Código",formatting_toolbar_code_block:"Bloco de código",formatting_toolbar_insert:"Inserir",formatting_toolbar_enter_url:"Inserir URL",formatting_toolbar_link_url:"URL do link",link_dialog_add_link:"Adicionar link",link_dialog_edit_link:"Editar link",link_dialog_save:"Salvar",link_dialog_text:"Texto",link_dialog_text_placeholder:"Inserir texto de exibição",link_dialog_link:"Link",link_url_required:"URL é obrigatório",link_popover_close:"Fechar",link_popover_edit:"Editar",link_popover_remove:"Remover",cancel:"Cancelar"},sv:{ai_conversation_starter_error:"Det verkar som något gick fel",ai_conversation_summary_title:"Sammanfattning av konversationen",ai_conversation_summary_error:"Det verkar som något gick fel",ai_conversation_summary_empty:"Ingen sammanfattning tillgänglig",ai_smart_replies_title:"Föreslå ett svar",ai_smart_replies_error:"Det verkar som något gick fel",ai_smart_replies_empty:"Inga förslag tillgängliga",calls_outgoing_call:"Utgående samtal",calls_cancelled_call:"Samtal avbrutet",calls_rejected_call:"Samtal avvisat",calls_missed_call:"Missat samtal",calls_ended_call:"Samtal avslutat",calls_answered_call:"Samtal besvarat",calls_unanswered_call:"Samtal obesvarat",calls_incoming_call:"Inkommande samtal",calls_busy_call:"Samtal upptaget",moderation_block_message:"Ditt meddelande blockerades på grund av modereringspolicyer",message_list_join_call:"Gå med",message_list_voice_call:"Röst samtal",message_list_video_call:"Videosamtal",message_list_outgoing_call:"Utgående samtal",message_list_incoming_call:"Inkommande samtal",message_list_cancelled_call:"Samtal avbrutet",message_list_rejected_call:"Samtal avvisat",message_list_busy_call:"Samtal upptaget",message_list_ended_call:"Samtal avslutat",message_list_answered_call:"Samtal besvarat",message_list_unasnwered_call:"Samtal obesvarat",message_list_missed_call:"Missat samtal",conversation_subtitle_voice_call:"Röst samtal",conversation_subtitle_video_call:"Videosamtal",conversation_subtitle_outgoing_call:"Utgående samtal",conversation_subtitle_incoming_call:"Inkommande samtal",conversation_subtitle_cancelled_call:"Samtal avbrutet",conversation_subtitle_rejected_call:"Samtal avvisat",conversation_subtitle_busy_call:"Samtal upptaget",conversation_subtitle_ended_call:"Samtal avslutat",conversation_subtitle_answered_call:"Samtal besvarat",conversation_subtitle_unasnwered_call:"Samtal obesvarat",conversation_subtitle_missed_call:"Missat samtal",conversation_subtitle_group_voice_call_initated_self:"Du har initierat ett röstsamtal",conversation_subtitle_group_video_call_initated_self:"Du har initierat ett videosamtal",conversation_subtitle_group_voice_call_initated:"initierade ett röstsamtal",conversation_subtitle_group_video_call_initated:"initierade ett videosamtal",messsage_composer_collaborative_document:"Samarbetsdokument",message_list_collaborative_document_title:"Samarbetsdokument",message_list_collaborative_document_subtitile:"Öppna dokumentet för att redigera innehåll tillsammans",message_list_collaborative_document_open:"Öppna dokument",conversation_subtitle_collaborative_document:"Samarbetsdokument",messsage_composer_collaborative_whiteboard:"Samarbetswhiteboard",message_list_collaborative_whiteboard_title:"Samarbetswhiteboard",message_collaborative_whiteboard_subtitile:"Öppna whiteboarden för att rita tillsammans",messag_list_collaborative_whiteboard_open:"Öppna whiteboard",conversation_subtitle_collaborative_whiteboard:"Samarbetswhiteboard",call_button_voice_hover:"Röst samtal",call_button_video_hover:"Videosamtal",call_logs_title:"Samtal",call_logs_empty_title:"Inga samtalsloggar än",call_logs_empty_subtitle:"Ring eller ta emot samtal för att se din samtalshistorik här",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Det verkar som något gick fel",change_scope_title:"Ändra omfattning",change_scope_subtitle:"Du kan ändra omfattningen för gruppmedlemmen för att hantera gruppbehörigheter och ansvarsområden.",change_scope_confirm_yes:"Spara",change_scope_confirm_no:"Avbryt",change_scope_error:"Något gick fel. Försök igen.",member_scope_admin:"Admin",member_scope_moderator:"Moderator",member_scope_participant:"Deltagare",member_scope_owner:"Ägare",conversation_delete_title:"Radera konversation?",conversation_delete_subtitle:"Vill du radera denna konversation? Denna konversation kommer att raderas från alla dina enheter.",conversation_delete_confirm_yes:"Radera",conversation_delete_confirm_no:"Avbryt",conversation_delete_error:"Något gick fel. Försök igen.",conversation_chat_title:"Chattar",conversation_delete_icon_hover:"Radera",conversation_subtitle_typing:"Skriver...",conversation_subtitle_you_message:"Du",conversation_subtitle_deleted_message:"Meddelande raderat",conversation_empty_title:"Inga konversationer än",conversation_empty_subtitle:"Starta en ny chatt eller bjud in andra att delta i konversationen.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Det verkar som något gick fel",conversation_deleted:"Konversation raderad",message_deleted:"Detta meddelande raderades",message_composer_edit_message:"Redigera meddelande",emoji_search_placeholder:"Sök emoji",message_list_full_screen_viewer:"Fullskärmsvisare",member_search_placeholder:"Sök",member_title:"Gruppmedlemmar",member_empty_title:"Inga gruppmedlemmar tillgängliga",member_empty_subtitle:"Lägg till kontakter för att se dem här.",member_error_title:"OOPS!",member_error_subtitle:"Det verkar som något gick fel",group_title:"Grupper",group_seach_placeholder:"",group_search_placeholder:"Sök",group_members:"Medlemmar",group_member:"Medlem",group_empty_title:"Inga grupper tillgängliga",group_empty_subtitle:"Skapa eller gå med i grupper för att se dem här och börja samarbeta",group_error_title:"OOPS!",group_error_subtitle:"Det verkar som något gick fel",message_header_members:"Medlemmar",message_header_member:"Medlem",incoming_call_subtitle:"Inkommande samtal",incoming_call_confirm_yes:"Acceptera",incoming_call_confirm_no:"Avböj",message_composer_placeholder:"Skriv ditt meddelande här",message_composer_send_message_icon_hover:"Skicka meddelande",message_composer_attach_icon_hover:"Bifoga",message_composer_voice_notes_icon_hover:"Röstinspelning",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Du kan nämna upp till 10 användare åt gången.",message_composer_wrong_file_type:"Du valde en annan typ av fil. Vänligen välj rätt fil.",file_type_not_allowed:"Denna filtyp är inte tillåten.",message_composer_mention_all:"alla",message_composer_mention_notify_everyone_label:"Meddela alla i den här gruppen",message_header_typing:"Skriver...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Senast sett",message_header_at:"vid",full_screen_viewer_at:"vid",message_header_minute_ago:"en minut sedan",message_header_minutes_ago:"minuter sedan",message_header_hour_ago:"en timme sedan",message_header_hours_ago:"timmar sedan",message_information_title:"Meddelandeinformation",message_information_close_hover:"Stäng",message_information_read:"Läst",message_information_delivered:"Levererad",message_information_error:"Det verkar som något gick fel. Försök igen.",message_information_group_message_receipt_empty:"Väntar på att mottagare ska ta emot och visa meddelandet",flag_message_title:"Rapportera meddelande",flag_message_subtitle:"Berätta vad som är olämpligt eller fel med det här meddelandet.",flag_message_remark_label:"Orsak",flag_message_remark_optional:"Valfritt",flag_message_remark_placeholder:"Beskriv vad som är oroande med det här meddelandet…",flag_message_error:"Det verkar som något gick fel",flag_message_character_limit_reached:"Teckenbegränsningen har uppnåtts.",flag_message_confirm_yes:"Rapportera",flag_message_confirm_no:"Avbryt",flag_message_reason_id_spam:"Spam / oönskat innehåll",flag_message_reason_id_sexual:"Explicit eller olämpligt innehåll",flag_message_reason_id_harassment:"Förolämpande eller hotfullt beteende",flag_message_reported:"Meddelandet har rapporterats.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Det verkar som något gick fel",message_list_message_copied:"Meddelandet kopierades till urklipp.",message_list_message_deleted:"Meddelandet raderades framgångsrikt.",message_list_new_messages:"nya meddelanden",message_list_new_message:"Ny",message_list_message_edited:"Meddelande uppdaterades framgångsrikt.",message_list_message_translated:"Meddelande översatt framgångsrikt.",message_list_thread_reply:"Svara",message_list_thread_replies:"Svar",calls_outgoing:"Ringer...",reaction_reacted:"reagerade",reaction_popup_and:"och",reaction_popup_others:"andra",reaction_popup_you:"Du",reaction_list_all:"Alla",reaction_list_click_to_remove:"Klicka för att ta bort",reaction_list_you:"Du",reaction_list_error:"Det verkar som något gick fel. Försök igen.",search_placeholder:"Sök",text_message_read_more:"Läs mer",text_message_show_less:"Visa mindre",thread_title:"Tråd",thread_close_hover:"Stäng",thread_replies:"Svar",thread_reply:"Svara",user_title:"Användare",user_search_placeholder:"Sök",user_empty_title:"Inga användare funna",user_empty_subtitle:"Vi kunde inte hitta några användare som matchar din sökning. Försök justera din sökning.",user_error_title:"OOPS!",user_error_subtitle:"Det verkar som något gick fel",conversation_start:"Klicka för att starta konversation",conversation_message_deleted:"Medelande raderat",conversation_subtitle_image:"Bild",conversation_subtitle_file:"Fil",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Ljud",conversation_subtitle_added:"lade till",conversation_subtitle_joined:"anslöt",conversation_subtitle_left:"lämnade",conversation_subtitle_kicked:"sparkade ut",conversation_subtitle_banned:"förbjuden",conversation_subtitle_unbanned:"upphävdes bannlyst",conversation_subtitle_made:"gjorde",polls_title:"Skapa omröstning",polls_question:"Fråga",polls_question_placeholder:"Ställ en fråga",polls_options:"Alternativ",polls_add_placeholder:"Lägg till",polls_add_option_button:"Lägg till alternativ",polls_limit_reached:"Du har nått gränsen. Du kan lägga till upp till 12 alternativ.",polls_required_fields_warning:"Vänligen fyll i alla obligatoriska fält innan du skapar en omröstning.",polls_error:"Något gick fel. Försök igen.",polls_create_button:"Skapa",members_remove:"Sparka",members_block:"Banna",members_change_role:"Ändra omfattning",message_text_translated:"Text översatt",message_list_translate:"Översätt",message_list_option_edit:"Redigera",message_list_option_delete:"Radera",message_list_option_react:"Reagera",message_list_option_reply_in_thread:"Svara i tråden",message_list_option_reply_to_message:"Svara",message_list_option_reply:"",message_list_option_message_privately:"Skicka privat meddelande",message_list_option_copy:"Kopiera",message_list_option_info:"Info",message_list_option_mark_as_unread:"Markera oläst",message_list_option_flag_message:"Rapportera",message_list_action_edited:"Redigerad",message_list_action_added:"tillagd",message_list_action_joined:"anslöt",message_list_action_left:"lämnade",message_list_action_kicked:"sparkade ut",message_list_action_banned:"förbjuden",message_list_action_unbanned:"upphävdes bannlyst",message_list_action_made:"gjorde",message_composer_attach_image:"Bifoga bild",message_composer_attach_video:"Bifoga video",message_composer_attach_audio:"Bifoga ljud",message_composer_attach_file:"Bifoga fil",message_composer_polls:"Omröstningar",conversation_subtitle_poll:"Omröstning",message_composer_sticker_hover:"Klistermärke",conversation_subtitle_sticker:"Klistermärke",sticker_error:"Det verkar som något gick fel",sticker_empty:"Inga klistermärken tillgängliga",emoji_smiley_people:"Smileys & Människor",emoji_animals_nature:"Djur & Natur",emoji_food_drinks:"Mat & Dryck",emoji_activity:"Aktivitet",emoji_travel_places:"Resor & Platser",emoji_objects:"Objekt",emoji_symbols:"Symboler",emoji_flags:"Flaggor",today:"Idag",yesterday:"Igår",weekday_sunday_full:"Söndag",weekday_monday_full:"Måndag",weekday_tuesday_full:"Tisdag",weekday_wednesday_full:"Onsdag",weekday_thursday_full:"Torsdag",weekday_friday_full:"Fredag",weekday_saturday_full:"Lördag",weekday_sunday_short:"Sön",weekday_monday_short:"Mån",weekday_tuesday_short:"Tis",weekday_wednesday_short:"Ons",weekday_thursday_short:"Tor",weekday_friday_short:"Fre",weekday_saturday_short:"Lör",weekday_sunday_min:"Sö",weekday_monday_min:"Må",weekday_tuesday_min:"Ti",weekday_wednesday_min:"On",weekday_thursday_min:"To",weekday_friday_min:"Fr",weekday_saturday_min:"Lö",month_january_short:"Jan",month_february_short:"Feb",month_march_short:"Mar",month_april_short:"Apr",month_may_short:"Maj",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Aug",month_september_short:"Sep",month_october_short:"Okt",month_november_short:"Nov",month_december_short:"Dec",month_january_full:"Januari",month_february_full:"Februari",month_march_full:"Mars",month_april_full:"April",month_may_full:"Maj",month_june_full:"Juni",month_july_full:"Juli",month_august_full:"Augusti",month_september_full:"September",month_october_full:"Oktober",month_november_full:"November",month_december_full:"December",message_type_not_supported:"Denna meddelandetyp stöds inte.",message_list_message_already_translated:"Det valda språket för översättning liknar språket i det ursprungliga meddelandet.",media_recorder_error_title:"Mikrofonåtkomst Krävs",media_recorder_error_subtitle:"Vi kunde inte komma åt din mikrofon. Vänligen ge mikrofontillstånd för att börja spela in.",media_recorder_permission_dismiss:"Förstått",search_title:"Sök",search_empty_title:"Börja din sökning",search_empty_subtitle:"Sök efter konversationer eller meddelanden genom att skriva ett nyckelord ovan.",search_no_result_title:"Inga resultat",search_result_see_more:"Se mer",search_messages_header:"Meddelanden",search_filter_unread:"Olästa",search_filter_groups:"Grupper",search_filter_photos:"Fotografier",search_filter_videos:"Videor",search_filter_links:"Länkar",search_filter_documents:"Dokument",search_filter_audio:"Ljud",search_filter_messages:"Meddelanden",search_filter_conversations:"Samtal",search_no_result_subtitle:"Vi kunde inte hitta några träffar. Prova ett annat sökord.",search_conversation_header:"Samtal",search_message_subtitle_you:"Du",search_message_title_you:"Du",search_error_title:"OOPS!",search_error_subtitle:"Det verkar som något gick fel",ai_assistant_chat_intro_message:"Jag är här för att assistera dig!",ai_assistant_chat_composer_placeholder:"Fråga vad som helst",ai_assistant_chat_new_chat:"Ny Chatt",ai_assistant_chat_history:"chattens historik",ai_assistant_chat_history_title:"Chattens Historik",ai_assistant_chat_thinking:"Tänker…",ai_assistant_chat_executing_tool:"Utför verktygsanrop...",ai_assistant_chat_no_internet:"Ingen internetanslutning. Kontrollera din anslutning och försök igen.",ai_assistant_chat_history_empty_title:"Inga konversationer än",ai_assistant_chat_history_empty_subtitle:"Din AI-agent är redo - fråga vad som helst och börja konversationen.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Något gick fel hos oss. Försök igen.",formatting_toolbar_bold:"Fet",formatting_toolbar_italic:"Kursiv",formatting_toolbar_underline:"Understruken",formatting_toolbar_strikethrough:"Genomstruken",formatting_toolbar_link:"Länk",formatting_toolbar_numbered_list:"Numrerad lista",formatting_toolbar_bulleted_list:"Punktlista",formatting_toolbar_blockquote:"Citat",formatting_toolbar_code:"Kod",formatting_toolbar_code_block:"Kodblock",formatting_toolbar_insert:"Infoga",formatting_toolbar_enter_url:"Ange URL",formatting_toolbar_link_url:"Länk-URL",link_dialog_add_link:"Lägg till länk",link_dialog_edit_link:"Redigera länk",link_dialog_save:"Spara",link_dialog_text:"Text",link_dialog_text_placeholder:"Ange visningstext",link_dialog_link:"Länk",link_url_required:"URL krävs",link_popover_close:"Stäng",link_popover_edit:"Redigera",link_popover_remove:"Ta bort",cancel:"Avbryt"},lt:{ai_conversation_starter_error:"Atrodo, kad kažkas nepavyko",ai_conversation_summary_title:"Pokalbio santrauka",ai_conversation_summary_error:"Atrodo, kad kažkas nepavyko",ai_conversation_summary_empty:"Nėra santraukos",ai_smart_replies_title:"Siūlyti atsakymą",ai_smart_replies_error:"Atrodo, kad kažkas nepavyko",ai_smart_replies_empty:"Nėra pasiūlymų",calls_outgoing_call:"Išvykstamas skambutis",calls_cancelled_call:"Skambutis atšauktas",calls_rejected_call:"Skambutis atmestas",calls_missed_call:"Praleistas skambutis",calls_ended_call:"Skambutis baigtas",calls_answered_call:"Skambutis priimtas",calls_unanswered_call:"Skambutis nepriimtas",calls_incoming_call:"Atvykstamas skambutis",calls_busy_call:"Skambutis užimtas",moderation_block_message:"Jūsų žinutė buvo užblokuota dėl moderavimo politikos",message_list_join_call:"Prisijungti",message_list_voice_call:"Balsinis skambutis",message_list_video_call:"Vaizdo skambutis",message_list_outgoing_call:"Išvykstamas skambutis",message_list_incoming_call:"Atvykstamas skambutis",message_list_cancelled_call:"Skambutis atšauktas",message_list_rejected_call:"Skambutis atmestas",message_list_busy_call:"Skambutis užimtas",message_list_ended_call:"Skambutis baigtas",message_list_answered_call:"Skambutis priimtas",message_list_unasnwered_call:"Skambutis nepriimtas",message_list_missed_call:"Praleistas skambutis",conversation_subtitle_voice_call:"Balsinis skambutis",conversation_subtitle_video_call:"Vaizdo skambutis",conversation_subtitle_outgoing_call:"Išvykstamas skambutis",conversation_subtitle_incoming_call:"Atvykstamas skambutis",conversation_subtitle_cancelled_call:"Skambutis atšauktas",conversation_subtitle_rejected_call:"Skambutis atmestas",conversation_subtitle_busy_call:"Skambutis užimtas",conversation_subtitle_ended_call:"Skambutis baigtas",conversation_subtitle_answered_call:"Skambutis priimtas",conversation_subtitle_unasnwered_call:"Skambutis nepriimtas",conversation_subtitle_missed_call:"Praleistas skambutis",conversation_subtitle_group_voice_call_initated_self:"Jūs pradėjote balsinį skambutį",conversation_subtitle_group_video_call_initated_self:"Jūs pradėjote vaizdo skambutį",conversation_subtitle_group_voice_call_initated:"pradėjo balsinį skambutį",conversation_subtitle_group_video_call_initated:"pradėjo vaizdo skambutį",messsage_composer_collaborative_document:"Bendradarbiavimo dokumentas",message_list_collaborative_document_title:"Bendradarbiavimo dokumentas",message_list_collaborative_document_subtitile:"Atidarykite dokumentą, kad kartu redaguotumėte turinį",message_list_collaborative_document_open:"Atidaryti dokumentą",conversation_subtitle_collaborative_document:"Bendradarbiavimo dokumentas",messsage_composer_collaborative_whiteboard:"Bendradarbiavimo baltoji lenta",message_list_collaborative_whiteboard_title:"Bendradarbiavimo baltoji lenta",message_collaborative_whiteboard_subtitile:"Atidarykite baltoją lentą, kad pieštumėte kartu",messag_list_collaborative_whiteboard_open:"Atidaryti baltąją lentą",conversation_subtitle_collaborative_whiteboard:"Bendradarbiavimo baltoji lenta",call_button_voice_hover:"Balsinis skambutis",call_button_video_hover:"Vaizdo skambutis",call_logs_title:"Skambučių žurnalai",call_logs_empty_title:"Nėra skambučių žurnalų",call_logs_empty_subtitle:"Paskambinkite arba priimkite skambutį, kad pamatytumėte savo skambučių istoriją",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Atrodo, kad kažkas nepavyko",change_scope_title:"Pakeisti apimtį",change_scope_subtitle:"Galite pakeisti grupės nario galimybę valdyti grupės leidimus ir pareigas.",change_scope_confirm_yes:"Išsaugoti",change_scope_confirm_no:"Atšaukti",change_scope_error:"Kažkas nepavyko. Pabandykite dar kartą.",member_scope_admin:"Administratorius",member_scope_moderator:"Moderatorius",member_scope_participant:"Dalyvis",member_scope_owner:"Savininkas",conversation_delete_title:"Ar norite ištrinti pokalbį?",conversation_delete_subtitle:"Ar norite ištrinti šį pokalbį? Jis bus ištrintas iš visų jūsų įrenginių.",conversation_delete_confirm_yes:"Ištrinti",conversation_delete_confirm_no:"Atšaukti",conversation_delete_error:"Kažkas nepavyko. Pabandykite dar kartą.",conversation_chat_title:"Pokalbiai",conversation_delete_icon_hover:"Ištrinti",conversation_subtitle_typing:"Rašoma...",conversation_subtitle_you_message:"Jūs",conversation_subtitle_deleted_message:"Žinutė buvo ištrinta",conversation_empty_title:"Nėra pokalbių",conversation_empty_subtitle:"Pradėkite naują pokalbį arba pakvieskite kitus prisijungti.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Atrodo, kad kažkas nepavyko",conversation_deleted:"Pokalbis ištrintas",message_deleted:"Ši žinutė buvo ištrinta",message_composer_edit_message:"Redaguoti žinutę",emoji_search_placeholder:"Ieškoti emodžių",message_list_full_screen_viewer:"Viso ekrano peržiūra",member_search_placeholder:"Ieškoti",member_title:"Grupės nariai",member_empty_title:"Nėra grupės narių",member_empty_subtitle:"Pridėkite kontaktus, kad jie būtų rodomi čia.",member_error_title:"OOPS!",member_error_subtitle:"Atrodo, kad kažkas nepavyko",group_title:"Grupės",group_seach_placeholder:"",group_search_placeholder:"Ieškoti",group_members:"Nariai",group_member:"Narys",group_empty_title:"Nėra grupių",group_empty_subtitle:"Sukurkite arba prisijunkite prie grupių, kad jos būtų rodomos čia ir pradėtumėte bendradarbiauti",group_error_title:"OOPS!",group_error_subtitle:"Atrodo, kad kažkas nepavyko",message_header_members:"Nariai",message_header_member:"Narys",incoming_call_subtitle:"Atvykstamas skambutis",incoming_call_confirm_yes:"Priimti",incoming_call_confirm_no:"Atmesti",message_composer_placeholder:"Įrašykite žinutę čia",message_composer_send_message_icon_hover:"Siųsti žinutę",message_composer_attach_icon_hover:"Priedas",message_composer_voice_notes_icon_hover:"Balsinės pastabos",message_composer_emoji_icon_hover:"Emodžiai",message_composer_mention_limit_warning:"Galite paminėti iki 10 vartotojų vienu metu.",message_composer_wrong_file_type:"Pasirinkote kitokį failo tipą. Prašome pasirinkti tinkamą failą.",file_type_not_allowed:"Šis failo tipas neleidžiamas.",message_composer_mention_all:"visi",message_composer_mention_notify_everyone_label:"Pranešti visiems šioje grupėje",message_header_typing:"Rašoma...",message_header_status_online:"Prisijungęs",message_header_status_offline:"Nėra prisijungęs",message_header_last_seen:"Paskutinį kartą matyta",message_header_at:"prie",full_screen_viewer_at:"prie",message_header_minute_ago:"prieš minutę",message_header_minutes_ago:"prieš minutes",message_header_hour_ago:"prieš valandą",message_header_hours_ago:"prieš valandas",message_information_title:"Žinutės informacija",message_information_close_hover:"Užverti",message_information_read:"Skaityta",message_information_delivered:"Pristatyta",message_information_error:"Atrodo, kad kažkas nepavyko. Pabandykite dar kartą.",message_information_group_message_receipt_empty:"Laukiama, kol gavėjai gaus ir peržiūrės žinutę",flag_message_title:"Pranešti žinutę",flag_message_subtitle:"Pasakykite, kas šiame pranešime yra netinkama ar neteisinga.",flag_message_remark_label:"Priežastis",flag_message_remark_optional:"Pasirinktinai",flag_message_remark_placeholder:"Apibūdinkite, kas šiame pranešime kelia susirūpinimą…",flag_message_error:"Atrodo, kad kažkas nepavyko",flag_message_character_limit_reached:"Pasiektas simbolių limitas.",flag_message_confirm_yes:"Pranešti",flag_message_confirm_no:"Atšaukti",flag_message_reason_id_spam:"Šlamštas / nepageidaujamas turinys",flag_message_reason_id_sexual:"Aiškus arba netinkamas turinys",flag_message_reason_id_harassment:"Įžeidžiantis arba grasinantis elgesys",flag_message_reported:"Pranešimas pateiktas.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Atrodo, kad kažkas nepavyko",message_list_message_copied:"Žinutė nukopijuota į iškarpinę.",message_list_message_deleted:"Žinutė sėkmingai ištrinta.",message_list_new_messages:"naujos žinutės",message_list_new_message:"Naujas",message_list_message_edited:"Žinutė sėkmingai atnaujinta.",message_list_message_translated:"Žinutė sėkmingai išversta.",message_list_thread_reply:"Atsakyti",message_list_thread_replies:"Atsakymai",calls_outgoing:"Skambinama...",reaction_reacted:"reagavo",reaction_popup_and:"ir",reaction_popup_others:"kiti",reaction_popup_you:"Jūs",reaction_list_all:"Visi",reaction_list_click_to_remove:"Spustelėkite, kad pašalintumėte",reaction_list_you:"Jūs",reaction_list_error:"Atrodo, kad kažkas nepavyko. Pabandykite dar kartą.",search_placeholder:"Ieškoti",text_message_read_more:"Skaityti daugiau",text_message_show_less:"Rodyti mažiau",thread_title:"Temos",thread_close_hover:"Užverti",thread_replies:"Atsakymai",thread_reply:"Atsakyti",user_title:"Vartotojai",user_search_placeholder:"Ieškoti",user_empty_title:"Vartotojų nerasta",user_empty_subtitle:"Negalime rasti vartotojų pagal jūsų paiešką. Pabandykite patikslinti paiešką.",user_error_title:"OOPS!",user_error_subtitle:"Atrodo, kad kažkas nepavyko",conversation_start:"Spustelėkite, kad pradėtumėte pokalbį",conversation_message_deleted:"Žinutė buvo ištrinta",conversation_subtitle_image:"Vaizdas",conversation_subtitle_file:"Failas",conversation_subtitle_video:"Vaizdo įrašas",conversation_subtitle_audio:"Garso įrašas",conversation_subtitle_added:"pridėta",conversation_subtitle_joined:"prisijungė",conversation_subtitle_left:"paliko",conversation_subtitle_kicked:"išmestas",conversation_subtitle_banned:"užblokuotas",conversation_subtitle_unbanned:"atrakintas",conversation_subtitle_made:"padaryta",polls_title:"Sukurti apklausą",polls_question:"Klausimas",polls_question_placeholder:"Užduokite klausimą",polls_options:"Pasirinkimai",polls_add_placeholder:"Pridėti",polls_add_option_button:"Pridėti pasirinkimą",polls_limit_reached:"Pasiekėte ribą. Galite pridėti iki 12 pasirinkimų.",polls_required_fields_warning:"Prašome užpildyti visus reikalingus laukus prieš kuriant apklausą.",polls_error:"Kažkas nepavyko. Pabandykite dar kartą.",polls_create_button:"Sukurti",members_remove:"Išmesti",members_block:"Užbaninti",members_change_role:"Pakeisti apimtį",message_text_translated:"Tekstas išverstas",message_list_translate:"Išversti",message_list_option_edit:"Redaguoti",message_list_option_delete:"Ištrinti",message_list_option_react:"Reaguoti",message_list_option_reply_in_thread:"Atsakyti gijoje",message_list_option_reply_to_message:"Atsakyti",message_list_option_reply:"",message_list_option_message_privately:"Siųsti žinutę privačiai",message_list_option_copy:"Kopijuoti",message_list_option_info:"Informacija",message_list_option_mark_as_unread:"Pažymėti kaip neskaitytą",message_list_option_flag_message:"Pranešti",message_list_action_edited:"Redaguota",message_list_action_added:"pridėta",message_list_action_joined:"prisijungta",message_list_action_left:"palikta",message_list_action_kicked:"išmesta",message_list_action_banned:"užblokuota",message_list_action_unbanned:"atrakinta",message_list_action_made:"padaryta",message_composer_attach_image:"Pridėti vaizdą",message_composer_attach_video:"Pridėti vaizdo įrašą",message_composer_attach_audio:"Pridėti garso įrašą",message_composer_attach_file:"Pridėti failą",message_composer_polls:"Apklausos",conversation_subtitle_poll:"Apklausa",message_composer_sticker_hover:"Lipdukas",conversation_subtitle_sticker:"Lipdukas",sticker_error:"Atrodo, kad kažkas nepavyko",sticker_empty:"Nėra prieinamų lipdukų",emoji_smiley_people:"Šypsenėlės ir žmonės",emoji_animals_nature:"Gyvūnai ir gamta",emoji_food_drinks:"Maistas ir gėrimai",emoji_activity:"Veikla",emoji_travel_places:"Kelionės ir vietos",emoji_objects:"Objektai",emoji_symbols:"Simboliai",emoji_flags:"Vėliavos",today:"Šiandien",yesterday:"Vakar",weekday_sunday_full:"Sekmadienis",weekday_monday_full:"Pirmadienis",weekday_tuesday_full:"Antradienis",weekday_wednesday_full:"Trečiadienis",weekday_thursday_full:"Ketvirtadienis",weekday_friday_full:"Penktadienis",weekday_saturday_full:"Šeštadienis",weekday_sunday_short:"Saulė",weekday_monday_short:"Pirm",weekday_tuesday_short:"Ant",weekday_wednesday_short:"Tre",weekday_thursday_short:"Ket",weekday_friday_short:"Pen",weekday_saturday_short:"Šeš",weekday_sunday_min:"Se",weekday_monday_min:"Pir",weekday_tuesday_min:"Ant",weekday_wednesday_min:"Tre",weekday_thursday_min:"Ket",weekday_friday_min:"Pen",weekday_saturday_min:"Šeš",month_january_short:"Saus",month_february_short:"Vas",month_march_short:"Kov",month_april_short:"Bal",month_may_short:"Geg",month_june_short:"Bir",month_july_short:"Lie",month_august_short:"Rgp",month_september_short:"Rgs",month_october_short:"Spal",month_november_short:"Lap",month_december_short:"Grd",month_january_full:"Sausis",month_february_full:"Vasaris",month_march_full:"Kovas",month_april_full:"Balandis",month_may_full:"Gegužė",month_june_full:"Birželis",month_july_full:"Liepa",month_august_full:"Rugpjūtis",month_september_full:"Rugsėjis",month_october_full:"Spalis",month_november_full:"Lapkritis",month_december_full:"Gruodis",message_type_not_supported:"Šis pranešimo tipas nepalaikomas.",message_list_message_already_translated:"Pasirinkta vertimo kalba yra panaši į originalaus pranešimo kalbą.",media_recorder_error_title:"Reikalinga Prieiga prie Mikrofono",media_recorder_error_subtitle:"Nepavyko pasiekti jūsų mikrofono. Prašome suteikti leidimą naudoti mikrofoną, kad galėtumėte pradėti įrašymą.",media_recorder_permission_dismiss:"Supratau",search_title:"Paieška",search_empty_title:"Pradėkite savo paiešką",search_empty_subtitle:"Ieškokite pokalbių ar žinučių įrašydami raktinį žodį aukščiau.",search_no_result_title:"Nėra rezultatų",search_result_see_more:"Žiūrėti daugiau",search_messages_header:"Žinutės",search_filter_unread:"Neskaitoma",search_filter_groups:"Grupės",search_filter_photos:"Nuotraukos",search_filter_videos:"Vaizdo įrašai",search_filter_links:"Nuorodos",search_filter_documents:"Dokumentai",search_filter_audio:"Garso įrašai",search_filter_messages:"Žinutės",search_filter_conversations:"Pokalbiai",search_no_result_subtitle:"Neradome atitikmenų. Pabandykite kitą paieškos raktinį žodį.",search_conversation_header:"Pokalbiai",search_message_subtitle_you:"Jūs",search_message_title_you:"Jūs",search_error_title:"OOPS!",search_error_subtitle:"Atrodo, kad kažkas nepavyko",ai_assistant_chat_intro_message:"Esu čia, kad padėčiau jums!",ai_assistant_chat_composer_placeholder:"Klauskite bet ko",ai_assistant_chat_new_chat:"Naujas Pokalbis",ai_assistant_chat_history:"pokalbių istorija",ai_assistant_chat_history_title:"Pokalbių istorija",ai_assistant_chat_thinking:"Galvoju…",ai_assistant_chat_executing_tool:"Vykdoma įrankio užklausa...",ai_assistant_chat_no_internet:"Nėra interneto ryšio. Patikrinkite savo ryšį ir pabandykite dar kartą.",ai_assistant_chat_history_empty_title:"Nėra pokalbių",ai_assistant_chat_history_empty_subtitle:"Jūsų AI agentas pasiruošęs - klauskite bet ko ir pradėkite pokalbį.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Kažkas nepavyko iš mūsų pusės. Pabandykite dar kartą.",formatting_toolbar_bold:"Pusjuodis",formatting_toolbar_italic:"Kursyvas",formatting_toolbar_underline:"Pabrauktas",formatting_toolbar_strikethrough:"Perbrauktas",formatting_toolbar_link:"Nuoroda",formatting_toolbar_numbered_list:"Numeruotas sąrašas",formatting_toolbar_bulleted_list:"Ženklintas sąrašas",formatting_toolbar_blockquote:"Citata",formatting_toolbar_code:"Kodas",formatting_toolbar_code_block:"Kodo blokas",formatting_toolbar_insert:"Įterpti",formatting_toolbar_enter_url:"Įveskite URL",formatting_toolbar_link_url:"Nuorodos URL",link_dialog_add_link:"Pridėti nuorodą",link_dialog_edit_link:"Redaguoti nuorodą",link_dialog_save:"Išsaugoti",link_dialog_text:"Tekstas",link_dialog_text_placeholder:"Įveskite rodomą tekstą",link_dialog_link:"Nuoroda",link_url_required:"URL yra privalomas",link_popover_close:"Uždaryti",link_popover_edit:"Redaguoti",link_popover_remove:"Pašalinti",cancel:"Atšaukti"},hu:{ai_conversation_starter_error:"Úgy tűnik, valami hiba történt",ai_conversation_summary_title:"Beszélgetés összefoglalója",ai_conversation_summary_error:"Úgy tűnik, valami hiba történt",ai_conversation_summary_empty:"Nem érhető el összefoglaló",ai_smart_replies_title:"Válasz javaslása",ai_smart_replies_error:"Úgy tűnik, valami hiba történt",ai_smart_replies_empty:"Nincsenek javaslatok",calls_outgoing_call:"Kimenő hívás",calls_cancelled_call:"Hívás megszakítva",calls_rejected_call:"Hívás elutasítva",calls_missed_call:"Nem fogadott hívás",calls_ended_call:"Hívás befejeződött",calls_answered_call:"Hívást fogadták",calls_unanswered_call:"Meg nem válaszolt hívás",calls_incoming_call:"Bejövő hívás",calls_busy_call:"A vonal foglalt",moderation_block_message:"Üzenetét moderálási irányelvek miatt blokkolták",message_list_join_call:"Csatlakozás",message_list_voice_call:"Hanghívás",message_list_video_call:"Videóhívás",message_list_outgoing_call:"Kimenő hívás",message_list_incoming_call:"Bejövő hívás",message_list_cancelled_call:"Hívás megszakítva",message_list_rejected_call:"Hívás elutasítva",message_list_busy_call:"A vonal foglalt",message_list_ended_call:"Hívás befejeződött",message_list_answered_call:"Hívást fogadták",message_list_unasnwered_call:"Meg nem válaszolt hívás",message_list_missed_call:"Nem fogadott hívás",conversation_subtitle_voice_call:"Hanghívás",conversation_subtitle_video_call:"Videóhívás",conversation_subtitle_outgoing_call:"Kimenő hívás",conversation_subtitle_incoming_call:"Bejövő hívás",conversation_subtitle_cancelled_call:"Hívás megszakítva",conversation_subtitle_rejected_call:"Hívás elutasítva",conversation_subtitle_busy_call:"A vonal foglalt",conversation_subtitle_ended_call:"Hívás befejeződött",conversation_subtitle_answered_call:"Hívást fogadták",conversation_subtitle_unasnwered_call:"Meg nem válaszolt hívás",conversation_subtitle_missed_call:"Nem fogadott hívás",conversation_subtitle_group_voice_call_initated_self:"Hanghívást indítottál",conversation_subtitle_group_video_call_initated_self:"Videóhívást indítottál",conversation_subtitle_group_voice_call_initated:"hanghívást indított",conversation_subtitle_group_video_call_initated:"videóhívást indított",messsage_composer_collaborative_document:"Közös dokumentum",message_list_collaborative_document_title:"Közös dokumentum",message_list_collaborative_document_subtitile:"Dokumentum megnyitása a tartalom közös szerkesztéséhez",message_list_collaborative_document_open:"Dokumentum megnyitása",conversation_subtitle_collaborative_document:"Közös dokumentum",messsage_composer_collaborative_whiteboard:"Közös rajztábla",message_list_collaborative_whiteboard_title:"Közös rajztábla",message_collaborative_whiteboard_subtitile:"Rajztábla megnyitása a közös rajzoláshoz",messag_list_collaborative_whiteboard_open:"Rajztábla megnyitása",conversation_subtitle_collaborative_whiteboard:"Közös rajztábla",call_button_voice_hover:"Hanghívás",call_button_video_hover:"Videóhívás",call_logs_title:"Hívások",call_logs_empty_title:"Még nincs híváselőzmény",call_logs_empty_subtitle:"Indítson vagy fogadjon hívásokat, hogy megjelenjenek itt a híváselőzmények",call_logs_error_title:"HOPPÁ!",call_logs_error_subtitle:"Úgy tűnik, valami hiba történt",change_scope_title:"Módosítsa a hatókört",change_scope_subtitle:"Módosíthatja a csoporttagok hatókörét a csoport engedélyeinek és felelősségeinek kezeléséhez.",change_scope_confirm_yes:"Mentés",change_scope_confirm_no:"Mégse",change_scope_error:"Valami hiba történt. Próbáld újra.",member_scope_admin:"Admin",member_scope_moderator:"Moderátor",member_scope_participant:"Résztvevő",member_scope_owner:"Tulajdonos",conversation_delete_title:"Törli a beszélgetést?",conversation_delete_subtitle:"Szeretné törölni ezt a beszélgetést? A beszélgetés minden eszközéről törlődni fog.",conversation_delete_confirm_yes:"Törlés",conversation_delete_confirm_no:"Mégse",conversation_delete_error:"Valami hiba történt. Próbáld újra.",conversation_chat_title:"Csevegések",conversation_delete_icon_hover:"Törlés",conversation_subtitle_typing:"Gépel...",conversation_subtitle_you_message:"Te",conversation_subtitle_deleted_message:"Az üzenet törölve lett",conversation_empty_title:"Még nincs beszélgetés",conversation_empty_subtitle:"Kezdj új csevegést, vagy hívd meg másokat, hogy csatlakozzanak a beszélgetéshez.",conversation_error_title:"HOPPÁ!",conversation_error_subtitle:"Úgy tűnik, valami hiba történt",conversation_deleted:"A beszélgetés törölve lett",message_deleted:"Ez az üzenet törölve lett",message_composer_edit_message:"Üzenet szerkesztése",emoji_search_placeholder:"Emoji keresése",message_list_full_screen_viewer:"Teljes képernyős nézet",member_search_placeholder:"Keresés",member_title:"Csoporttagok",member_empty_title:"Nincsenek csoporttagok",member_empty_subtitle:"Vegyen fel partnereket, hogy itt megjelenjenek.",member_error_title:"HOPPÁ!",member_error_subtitle:"Úgy tűnik, valami hiba történt",group_title:"Csoportok",group_seach_placeholder:"",group_search_placeholder:"Keresés",group_members:"Tagok",group_member:"Tag",group_empty_title:"Nincsenek csoportok",group_empty_subtitle:"Hozzon létre vagy csatlakozzon csoportokhoz, hogy megjelenjenek itt és kezdjen együttműködni",group_error_title:"HOPPÁ!",group_error_subtitle:"Úgy tűnik, valami hiba történt",message_header_members:"Tagok",message_header_member:"Tag",incoming_call_subtitle:"Bejövő hívás",incoming_call_confirm_yes:"Fogadás",incoming_call_confirm_no:"Elutasítás",message_composer_placeholder:"Írja be üzenetét ide",message_composer_send_message_icon_hover:"Üzenet küldése",message_composer_attach_icon_hover:"Csatolás",message_composer_voice_notes_icon_hover:"Hangrögzítés",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Legfeljebb 10 felhasználót említhetsz egyszerre.",message_composer_wrong_file_type:"Más típusú fájlt választottál. Kérlek, válassz megfelelő fájlt.",file_type_not_allowed:"Ez a fájltípus nem engedélyezett.",message_composer_mention_all:"mindenki",message_composer_mention_notify_everyone_label:"Értesítsen mindenkit ebben a csoportban",message_header_typing:"Gépel...",message_header_status_online:"Elérhető",message_header_status_offline:"Nincs elérhető",message_header_last_seen:"Utoljára látták",message_header_at:"ekkor",full_screen_viewer_at:"ekkor",message_header_minute_ago:"egy perce",message_header_minutes_ago:"perce",message_header_hour_ago:"egy órája",message_header_hours_ago:"órája",message_information_title:"Üzenet információ",message_information_close_hover:"Bezárás",message_information_read:"Olvasott",message_information_delivered:"Kézbesítve",message_information_error:"Úgy tűnik, valami hiba történt. Kérlek, próbáld újra.",message_information_group_message_receipt_empty:"Várakozás a címzettekre, hogy megkapják és megtekintsék az üzenetet",flag_message_title:"Üzenet jelentése",flag_message_subtitle:"Mondd el, mi helytelen vagy nem megfelelő ebben az üzenetben.",flag_message_remark_label:"Ok",flag_message_remark_optional:"Opcionális",flag_message_remark_placeholder:"Írd le, mi aggaszt ezzel az üzenettel kapcsolatban…",flag_message_error:"Úgy tűnik, valami hiba történt",flag_message_character_limit_reached:"Elérte a karakterkorlátot.",flag_message_confirm_yes:"Jelentés",flag_message_confirm_no:"Mégsem",flag_message_reason_id_spam:"Spam / nem kívánt tartalom",flag_message_reason_id_sexual:"Kifejezett vagy nem megfelelő tartalom",flag_message_reason_id_harassment:"Sértő vagy fenyegető viselkedés",flag_message_reported:"Üzenet jelentve.",message_list_error_title:"HOPPÁ!",message_list_error_subtitle:"Úgy tűnik, valami hiba történt",message_list_message_copied:"Üzenet vágólapra másolva.",message_list_message_deleted:"Az üzenet sikeresen törölve.",message_list_new_messages:"új üzenetek",message_list_new_message:"Új",message_list_message_edited:"Az üzenet sikeresen frissítve.",message_list_message_translated:"Az üzenet sikeresen lefordítva.",message_list_thread_reply:"Válasz",message_list_thread_replies:"Válaszok",calls_outgoing:"Hívás folyamatban...",reaction_reacted:"reagált",reaction_popup_and:"és",reaction_popup_others:"mások",reaction_popup_you:"Te",reaction_list_all:"Összes",reaction_list_click_to_remove:"Kattints az eltávolításhoz",reaction_list_you:"Te",reaction_list_error:"Úgy tűnik, valami hiba történt. Kérlek, próbáld újra.",search_placeholder:"Keresés",text_message_read_more:"Tovább olvasás",text_message_show_less:"Kevesebb mutatása",thread_title:"Szál",thread_close_hover:"Bezárás",thread_replies:"Válaszok",thread_reply:"Válasz",user_title:"Felhasználók",user_search_placeholder:"Keresés",user_empty_title:"Nem találhatók felhasználók",user_empty_subtitle:"Nem találtunk a keresésednek megfelelő felhasználókat. Próbáld meg módosítani a keresést.",user_error_title:"HOPPÁ!",user_error_subtitle:"Úgy tűnik, valami hiba történt",conversation_start:"Kattints a beszélgetés megkezdéséhez",conversation_message_deleted:"Az üzenet törölve",conversation_subtitle_image:"Kép",conversation_subtitle_file:"Fájl",conversation_subtitle_video:"Videó",conversation_subtitle_audio:"Hang",conversation_subtitle_added:"hozzáadta",conversation_subtitle_joined:"csatlakozott",conversation_subtitle_left:"kilépett",conversation_subtitle_kicked:"kirúgta",conversation_subtitle_banned:"kitiltotta",conversation_subtitle_unbanned:"visszaengedte",conversation_subtitle_made:"kinevezte",polls_title:"Szavazás létrehozása",polls_question:"Kérdés",polls_question_placeholder:"Kérdezzen",polls_options:"Lehetőségek",polls_add_placeholder:"Hozzáadás",polls_add_option_button:"Lehetőség hozzáadása",polls_limit_reached:"Elérted a korlátot. Legfeljebb 12 lehetőséget adhatsz hozzá.",polls_required_fields_warning:"Kérjük, töltsd ki az összes kötelező mezőt, mielőtt létrehozod a szavazást.",polls_error:"Valami hiba történt. Próbáld újra.",polls_create_button:"Létrehozás",members_remove:"Kirúg",members_block:"Kitilt",members_change_role:"Módosítsa a hatókört",message_text_translated:"A szöveg lefordítva",message_list_translate:"Fordítás",message_list_option_edit:"Szerkesztés",message_list_option_delete:"Törlés",message_list_option_react:"Reagál",message_list_option_reply_in_thread:"Válasz a szálban",message_list_option_reply_to_message:"Válasz",message_list_option_reply:"",message_list_option_message_privately:"Privát üzenet",message_list_option_copy:"Másolás",message_list_option_info:"Információ",message_list_option_mark_as_unread:"Megjelölés olvasatlanként",message_list_option_flag_message:"Jelentés",message_list_action_edited:"Szerkesztve",message_list_action_added:"hozzáadta",message_list_action_joined:"csatlakozott",message_list_action_left:"kilépett",message_list_action_kicked:"kirúgta",message_list_action_banned:"kitiltotta",message_list_action_unbanned:"visszaengedte",message_list_action_made:"kinevezte",message_composer_attach_image:"Kép csatolása",message_composer_attach_video:"Videó csatolása",message_composer_attach_audio:"Hangfájl csatolása",message_composer_attach_file:"Fájl csatolása",message_composer_polls:"Szavazások",conversation_subtitle_poll:"Szavazás",message_composer_sticker_hover:"Matrica",conversation_subtitle_sticker:"Matrica",sticker_error:"Úgy tűnik, valami hiba történt",sticker_empty:"Nincsenek matricák",emoji_smiley_people:"Hangulatjelek és emberek",emoji_animals_nature:"Állatok és természet",emoji_food_drinks:"Ételek és italok",emoji_activity:"Tevékenység",emoji_travel_places:"Utazás és helyek",emoji_objects:"Tárgyak",emoji_symbols:"Szimbólumok",emoji_flags:"Zászlók",today:"Ma",yesterday:"Tegnap",weekday_sunday_full:"Vasárnap",weekday_monday_full:"Hétfő",weekday_tuesday_full:"Kedd",weekday_wednesday_full:"Szerda",weekday_thursday_full:"Csütörtök",weekday_friday_full:"Péntek",weekday_saturday_full:"Szombat",weekday_sunday_short:"V",weekday_monday_short:"H",weekday_tuesday_short:"K",weekday_wednesday_short:"Sze",weekday_thursday_short:"Cs",weekday_friday_short:"P",weekday_saturday_short:"Szo",weekday_sunday_min:"V",weekday_monday_min:"H",weekday_tuesday_min:"K",weekday_wednesday_min:"Sze",weekday_thursday_min:"Cs",weekday_friday_min:"P",weekday_saturday_min:"Szo",month_january_short:"jan",month_february_short:"febr",month_march_short:"márc",month_april_short:"ápr",month_may_short:"máj",month_june_short:"jún",month_july_short:"júl",month_august_short:"aug",month_september_short:"szept",month_october_short:"okt",month_november_short:"nov",month_december_short:"dec",month_january_full:"január",month_february_full:"február",month_march_full:"március",month_april_full:"április",month_may_full:"május",month_june_full:"június",month_july_full:"július",month_august_full:"augusztus",month_september_full:"szeptember",month_october_full:"október",month_november_full:"november",month_december_full:"december",message_type_not_supported:"Ez az üzenettípus nem támogatott.",message_list_message_already_translated:"A fordításhoz kiválasztott nyelv hasonló az eredeti üzenet nyelvéhez.",media_recorder_error_title:"Mikrofon-hozzáférés Szükséges",media_recorder_error_subtitle:"Nem tudtuk elérni a mikrofont. Kérjük, adjon engedélyt a mikrofon használatához a felvétel megkezdéséhez.",media_recorder_permission_dismiss:"Értem",search_title:"Keresés",search_empty_title:"Kezdje el a keresést",search_empty_subtitle:"Keressen beszélgetéseket vagy üzeneteket, ha beír egy kulcsszót fent.",search_no_result_title:"Nincs találat",search_result_see_more:"Továbbiak megtekintése",search_messages_header:"Üzenetek",search_filter_unread:"Olvasatlan",search_filter_groups:"Csoportok",search_filter_photos:"Fotók",search_filter_videos:"Videók",search_filter_links:"Linkek",search_filter_documents:"Dokumentumok",search_filter_audio:"Hang",search_filter_messages:"Üzenetek",search_filter_conversations:"Beszélgetések",search_no_result_subtitle:"Nem találtunk találatot. Kérjük, próbáljon másik keresőkifejezést.",search_conversation_header:"Beszélgetések",search_message_subtitle_you:"Te",search_message_title_you:"Te",search_error_title:"HOPPÁ!",search_error_subtitle:"Úgy tűnik, valami hiba történt",ai_assistant_chat_intro_message:"Itt vagyok, hogy segítsek!",ai_assistant_chat_composer_placeholder:"Kérdezz bármit",ai_assistant_chat_new_chat:"Új Chat",ai_assistant_chat_history:"chat előzményei",ai_assistant_chat_history_title:"Chat előzményei",ai_assistant_chat_thinking:"Gondolkozom…",ai_assistant_chat_executing_tool:"Eszközhívás végrehajtása...",ai_assistant_chat_no_internet:"Nincs internetkapcsolat. Kérjük, ellenőrizze a kapcsolatát, és próbálja újra.",ai_assistant_chat_history_empty_title:"Még nincs beszélgetés",ai_assistant_chat_history_empty_subtitle:"Az Ön AI ügynöke készen áll - kérdezzen bármit, és kezdje el a beszélgetést.",ai_assistant_chat_history_error_title:"HOPPÁ!",ai_assistant_chat_history_error_subtitle:"Valami hiba történt nálunk. Kérjük, próbálja újra.",formatting_toolbar_bold:"Félkövér",formatting_toolbar_italic:"Dőlt",formatting_toolbar_underline:"Aláhúzott",formatting_toolbar_strikethrough:"Áthúzott",formatting_toolbar_link:"Hivatkozás",formatting_toolbar_numbered_list:"Számozott lista",formatting_toolbar_bulleted_list:"Felsorolás",formatting_toolbar_blockquote:"Idézet",formatting_toolbar_code:"Kód",formatting_toolbar_code_block:"Kódblokk",formatting_toolbar_insert:"Beszúrás",formatting_toolbar_enter_url:"URL megadása",formatting_toolbar_link_url:"Hivatkozás URL",link_dialog_add_link:"Hivatkozás hozzáadása",link_dialog_edit_link:"Hivatkozás szerkesztése",link_dialog_save:"Mentés",link_dialog_text:"Szöveg",link_dialog_text_placeholder:"Megjelenítendő szöveg megadása",link_dialog_link:"Hivatkozás",link_url_required:"Az URL megadása kötelező",link_popover_close:"Bezárás",link_popover_edit:"Szerkesztés",link_popover_remove:"Eltávolítás",cancel:"Mégse"},it:{ai_conversation_starter_error:"Sembra che qualcosa sia andato storto",ai_conversation_summary_title:"Riepilogo della conversazione",ai_conversation_summary_error:"Sembra che qualcosa sia andato storto",ai_conversation_summary_empty:"Nessun riepilogo disponibile",ai_smart_replies_title:"Suggerisci una risposta",ai_smart_replies_error:"Sembra che qualcosa sia andato storto",ai_smart_replies_empty:"Nessun suggerimento disponibile",calls_outgoing_call:"Chiamata in uscita",calls_cancelled_call:"Chiamata annullata",calls_rejected_call:"Chiamata rifiutata",calls_missed_call:"Chiamata persa",calls_ended_call:"Chiamata terminata",calls_answered_call:"Chiamata risposta",calls_unanswered_call:"Chiamata senza risposta",calls_incoming_call:"Chiamata in arrivo",calls_busy_call:"Chiamata occupata",moderation_block_message:"Il tuo messaggio è stato bloccato a causa delle politiche di moderazione",message_list_join_call:"Unisciti",message_list_voice_call:"Chiamata vocale",message_list_video_call:"Videochiamata",message_list_outgoing_call:"Chiamata in uscita",message_list_incoming_call:"Chiamata in arrivo",message_list_cancelled_call:"Chiamata annullata",message_list_rejected_call:"Chiamata rifiutata",message_list_busy_call:"Chiamata occupata",message_list_ended_call:"Chiamata terminata",message_list_answered_call:"Chiamata risposta",message_list_unasnwered_call:"Chiamata senza risposta",message_list_missed_call:"Chiamata persa",conversation_subtitle_voice_call:"Chiamata vocale",conversation_subtitle_video_call:"Videochiamata",conversation_subtitle_outgoing_call:"Chiamata in uscita",conversation_subtitle_incoming_call:"Chiamata in arrivo",conversation_subtitle_cancelled_call:"Chiamata annullata",conversation_subtitle_rejected_call:"Chiamata rifiutata",conversation_subtitle_busy_call:"Chiamata occupata",conversation_subtitle_ended_call:"Chiamata terminata",conversation_subtitle_answered_call:"Chiamata risposta",conversation_subtitle_unasnwered_call:"Chiamata senza risposta",conversation_subtitle_missed_call:"Chiamata persa",conversation_subtitle_group_voice_call_initated_self:"Hai avviato una chiamata vocale",conversation_subtitle_group_video_call_initated_self:"Hai avviato una videochiamata",conversation_subtitle_group_voice_call_initated:"ha avviato una chiamata vocale",conversation_subtitle_group_video_call_initated:"ha avviato una videochiamata",messsage_composer_collaborative_document:"Documento collaborativo",message_list_collaborative_document_title:"Documento collaborativo",message_list_collaborative_document_subtitile:"Apri il documento per modificare i contenuti insieme",message_list_collaborative_document_open:"Apri documento",conversation_subtitle_collaborative_document:"Documento collaborativo",messsage_composer_collaborative_whiteboard:"Lavagna collaborativa",message_list_collaborative_whiteboard_title:"Lavagna collaborativa",message_collaborative_whiteboard_subtitile:"Apri la lavagna per disegnare insieme",messag_list_collaborative_whiteboard_open:"Apri lavagna",conversation_subtitle_collaborative_whiteboard:"Lavagna collaborativa",call_button_voice_hover:"Chiamata vocale",call_button_video_hover:"Videochiamata",call_logs_title:"Chiamate",call_logs_empty_title:"Nessun registro chiamate disponibile",call_logs_empty_subtitle:"Effettua o ricevi chiamate per visualizzare qui lo storico delle chiamate",call_logs_error_title:"OPS!",call_logs_error_subtitle:"Sembra che qualcosa sia andato storto",change_scope_title:"Cambia ambito",change_scope_subtitle:"È possibile modificare l'ambito in cui il membro del gruppo può gestire le autorizzazioni e le responsabilità del gruppo.",change_scope_confirm_yes:"Salva",change_scope_confirm_no:"Annulla",change_scope_error:"Qualcosa è andato storto. Per favore riprova.",member_scope_admin:"Amministratore",member_scope_moderator:"Moderatore",member_scope_participant:"Partecipante",member_scope_owner:"Proprietario",conversation_delete_title:"Eliminare conversazione?",conversation_delete_subtitle:"Vuoi eliminare questa conversazione? Verrà eliminata da tutti i tuoi dispositivi.",conversation_delete_confirm_yes:"Elimina",conversation_delete_confirm_no:"Annulla",conversation_delete_error:"Qualcosa è andato storto. Riprova.",conversation_chat_title:"Chat",conversation_delete_icon_hover:"Elimina",conversation_subtitle_typing:"Sta scrivendo...",conversation_subtitle_you_message:"Tu",conversation_subtitle_deleted_message:"Il messaggio è stato eliminato",conversation_empty_title:"Nessuna conversazione ancora",conversation_empty_subtitle:"Inizia una nuova chat o invita altri a unirsi alla conversazione.",conversation_error_title:"OPS!",conversation_error_subtitle:"Sembra che qualcosa sia andato storto",conversation_deleted:"Conversazione eliminata",message_deleted:"Questo messaggio è stato eliminato",message_composer_edit_message:"Modifica messaggio",emoji_search_placeholder:"Cerca emoji",message_list_full_screen_viewer:"Visualizzatore a schermo intero",member_search_placeholder:"Cerca",member_title:"Membri del gruppo",member_empty_title:"Nessun membro del gruppo disponibile",member_empty_subtitle:"Aggiungi contatti per visualizzarli qui.",member_error_title:"OPS!",member_error_subtitle:"Sembra che qualcosa sia andato storto",group_title:"Gruppi",group_seach_placeholder:"",group_search_placeholder:"Cerca",group_members:"Membri",group_member:"Membro",group_empty_title:"Nessun gruppo disponibile",group_empty_subtitle:"Crea o unisciti a gruppi per vederli elencati qui e iniziare a collaborare",group_error_title:"OPS!",group_error_subtitle:"Sembra che qualcosa sia andato storto",message_header_members:"Membri",message_header_member:"Membro",incoming_call_subtitle:"Chiamata in arrivo",incoming_call_confirm_yes:"Accetta",incoming_call_confirm_no:"Rifiuta",message_composer_placeholder:"Inserisci qui il tuo messaggio",message_composer_send_message_icon_hover:"Invia messaggio",message_composer_attach_icon_hover:"Allega",message_composer_voice_notes_icon_hover:"Registrazione vocale",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Puoi menzionare fino a 10 utenti contemporaneamente.",message_composer_wrong_file_type:"Hai selezionato un tipo di file diverso. Per favore scegli il file appropriato.",file_type_not_allowed:"Questo tipo di file non è consentito.",message_composer_mention_all:"tutti",message_composer_mention_notify_everyone_label:"Notifica tutti in questo gruppo",message_header_typing:"Sta scrivendo...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Ultimo accesso",message_header_at:"alle",full_screen_viewer_at:"alle",message_header_minute_ago:"un minuto fa",message_header_minutes_ago:"minuti fa",message_header_hour_ago:"un'ora fa",message_header_hours_ago:"ore fa",message_information_title:"Informazioni sul messaggio",message_information_close_hover:"Chiudi",message_information_read:"Letto",message_information_delivered:"Consegnato",message_information_error:"Sembra che qualcosa sia andato storto. Riprova.",message_information_group_message_receipt_empty:"In attesa che i destinatari ricevano e visualizzino il messaggio",flag_message_title:"Segnala un messaggio",flag_message_subtitle:"Dicci cosa c'è di inappropriato o errato in questo messaggio.",flag_message_remark_label:"Motivo",flag_message_remark_optional:"Opzionale",flag_message_remark_placeholder:"Descrivi cosa ti preoccupa di questo messaggio…",flag_message_error:"Sembra che qualcosa sia andato storto",flag_message_character_limit_reached:"Limite di caratteri raggiunto.",flag_message_confirm_yes:"Segnala",flag_message_confirm_no:"Annulla",flag_message_reason_id_spam:"Spam / contenuto indesiderato",flag_message_reason_id_sexual:"Contenuto esplicito o inappropriato",flag_message_reason_id_harassment:"Comportamento offensivo o minaccioso",flag_message_reported:"Messaggio segnalato.",message_list_error_title:"OPS!",message_list_error_subtitle:"Sembra che qualcosa sia andato storto",message_list_message_copied:"Messaggio copiato negli appunti.",message_list_message_deleted:"Messaggio eliminato con successo.",message_list_new_messages:"nuovi messaggi",message_list_new_message:"Nuovo",message_list_message_edited:"Messaggio aggiornato con successo.",message_list_message_translated:"Messaggio tradotto con successo.",message_list_thread_reply:"Rispondi",message_list_thread_replies:"Risposte",calls_outgoing:"Chiamata in corso...",reaction_reacted:"ha reagito",reaction_popup_and:"e",reaction_popup_others:"altri",reaction_popup_you:"Tu",reaction_list_all:"Tutti",reaction_list_click_to_remove:"Clicca per rimuovere",reaction_list_you:"Tu",reaction_list_error:"Sembra che qualcosa sia andato storto. Riprova.",search_placeholder:"Cerca",text_message_read_more:"Leggi di più",text_message_show_less:"Mostra meno",thread_title:"Discussione",thread_close_hover:"Chiudi",thread_replies:"Risposte",thread_reply:"Rispondi",user_title:"Utenti",user_search_placeholder:"Cerca",user_empty_title:"Nessun utente trovato",user_empty_subtitle:"Non abbiamo trovato utenti corrispondenti alla tua ricerca. Prova a modificare i tuoi criteri.",user_error_title:"OPS!",user_error_subtitle:"Sembra che qualcosa sia andato storto",conversation_start:"Clicca per avviare la conversazione",conversation_message_deleted:"Il messaggio è stato eliminato",conversation_subtitle_image:"Immagine",conversation_subtitle_file:"File",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"aggiunto",conversation_subtitle_joined:"si è unito",conversation_subtitle_left:"ha lasciato",conversation_subtitle_kicked:"espulso",conversation_subtitle_banned:"bannato",conversation_subtitle_unbanned:"sbannato",conversation_subtitle_made:"fatto",polls_title:"Crea sondaggio",polls_question:"Domanda",polls_question_placeholder:"Fai una domanda",polls_options:"Opzioni",polls_add_placeholder:"Aggiungi",polls_add_option_button:"Aggiungi opzione",polls_limit_reached:"Hai raggiunto il limite. Puoi aggiungere fino a 12 opzioni.",polls_required_fields_warning:"Compila tutti i campi richiesti prima di creare un sondaggio.",polls_error:"Qualcosa è andato storto. Riprova.",polls_create_button:"Crea",members_remove:"Espellere",members_block:"Bannare",members_change_role:"Cambia ambito",message_text_translated:"Testo tradotto",message_list_translate:"Traduci",message_list_option_edit:"Modifica",message_list_option_delete:"Elimina",message_list_option_react:"Reagisci",message_list_option_reply_in_thread:"Rispondi nel thread",message_list_option_reply_to_message:"Rispondi",message_list_option_reply:"",message_list_option_message_privately:"Invia messaggio privato",message_list_option_copy:"Copia",message_list_option_info:"Info",message_list_option_mark_as_unread:"Contrassegna come non letto",message_list_option_flag_message:"Segnala",message_list_action_edited:"Modificato",message_list_action_added:"aggiunto",message_list_action_joined:"si è unito",message_list_action_left:"ha lasciato",message_list_action_kicked:"espulso",message_list_action_banned:"bannato",message_list_action_unbanned:"sbannato",message_list_action_made:"fatto",message_composer_attach_image:"Allega immagine",message_composer_attach_video:"Allega video",message_composer_attach_audio:"Allega audio",message_composer_attach_file:"Allega file",message_composer_polls:"Sondaggi",conversation_subtitle_poll:"Sondaggio",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Sembra che qualcosa sia andato storto",sticker_empty:"Nessuno sticker disponibile",emoji_smiley_people:"Faccine e persone",emoji_animals_nature:"Animali e natura",emoji_food_drinks:"Cibo e bevande",emoji_activity:"Attività",emoji_travel_places:"Viaggi e luoghi",emoji_objects:"Oggetti",emoji_symbols:"Simboli",emoji_flags:"Bandiere",today:"Oggi",yesterday:"Ieri",weekday_sunday_full:"Domenica",weekday_monday_full:"Lunedì",weekday_tuesday_full:"Martedì",weekday_wednesday_full:"Mercoledì",weekday_thursday_full:"Giovedì",weekday_friday_full:"Venerdì",weekday_saturday_full:"Sabato",weekday_sunday_short:"Dom",weekday_monday_short:"Lun",weekday_tuesday_short:"Mar",weekday_wednesday_short:"Mer",weekday_thursday_short:"Gio",weekday_friday_short:"Ven",weekday_saturday_short:"Sab",weekday_sunday_min:"Do",weekday_monday_min:"Lu",weekday_tuesday_min:"Ma",weekday_wednesday_min:"Me",weekday_thursday_min:"Gi",weekday_friday_min:"Ve",weekday_saturday_min:"Sa",month_january_short:"Gen",month_february_short:"Feb",month_march_short:"Mar",month_april_short:"Apr",month_may_short:"Mag",month_june_short:"Giu",month_july_short:"Lug",month_august_short:"Ago",month_september_short:"Set",month_october_short:"Ott",month_november_short:"Nov",month_december_short:"Dic",month_january_full:"Gennaio",month_february_full:"Febbraio",month_march_full:"Marzo",month_april_full:"Aprile",month_may_full:"Maggio",month_june_full:"Giugno",month_july_full:"Luglio",month_august_full:"Agosto",month_september_full:"Settembre",month_october_full:"Ottobre",month_november_full:"Novembre",month_december_full:"Dicembre",message_type_not_supported:"Questo tipo di messaggio non è supportato.",message_list_message_already_translated:"La lingua selezionata per la traduzione è simile alla lingua del messaggio originale.",media_recorder_error_title:"Accesso al Microfono Necessario",media_recorder_error_subtitle:"Non siamo riusciti ad accedere al tuo microfono. Concedi l’autorizzazione per iniziare a registrare.",media_recorder_permission_dismiss:"Capito",search_title:"Cerca",search_empty_title:"Inizia la tua ricerca",search_empty_subtitle:"Cerca conversazioni o messaggi digitando una parola chiave sopra.",search_no_result_title:"Nessun risultato",search_result_see_more:"Vedi di più",search_messages_header:"Messaggi",search_filter_unread:"Non letti",search_filter_groups:"Gruppi",search_filter_photos:"Foto",search_filter_videos:"Video",search_filter_links:"Link",search_filter_documents:"Documenti",search_filter_audio:"Audio",search_filter_messages:"Messaggi",search_filter_conversations:"Conversazioni",search_no_result_subtitle:"Nessuna corrispondenza trovata. Prova con una parola chiave diversa.",search_conversation_header:"Conversazioni",search_message_subtitle_you:"Tu",search_message_title_you:"Tu",search_error_title:"OPS!",search_error_subtitle:"Sembra che qualcosa sia andato storto",ai_assistant_chat_intro_message:"Sono qui per aiutarti!",ai_assistant_chat_composer_placeholder:"Chiedi qualsiasi cosa",ai_assistant_chat_new_chat:"Nuova Chat",ai_assistant_chat_history:"cronologia chat",ai_assistant_chat_history_title:"Cronologia chat",ai_assistant_chat_thinking:"Sto pensando…",ai_assistant_chat_executing_tool:"Esecuzione della chiamata dello strumento...",ai_assistant_chat_no_internet:"Nessuna connessione a Internet. Controlla la tua connessione e riprova.",ai_assistant_chat_history_empty_title:"Nessuna conversazione ancora",ai_assistant_chat_history_empty_subtitle:"Il tuo agente AI è pronto - chiedi qualsiasi cosa e inizia la conversazione.",ai_assistant_chat_history_error_title:"OPS!",ai_assistant_chat_history_error_subtitle:"Qualcosa è andato storto da parte nostra. Per favore, riprova.",formatting_toolbar_bold:"Grassetto",formatting_toolbar_italic:"Corsivo",formatting_toolbar_underline:"Sottolineato",formatting_toolbar_strikethrough:"Barrato",formatting_toolbar_link:"Collegamento",formatting_toolbar_numbered_list:"Elenco numerato",formatting_toolbar_bulleted_list:"Elenco puntato",formatting_toolbar_blockquote:"Citazione",formatting_toolbar_code:"Codice",formatting_toolbar_code_block:"Blocco di codice",formatting_toolbar_insert:"Inserisci",formatting_toolbar_enter_url:"Inserisci URL",formatting_toolbar_link_url:"URL del collegamento",link_dialog_add_link:"Aggiungi collegamento",link_dialog_edit_link:"Modifica collegamento",link_dialog_save:"Salva",link_dialog_text:"Testo",link_dialog_text_placeholder:"Inserisci testo visualizzato",link_dialog_link:"Collegamento",link_url_required:"L'URL è obbligatorio",link_popover_close:"Chiudi",link_popover_edit:"Modifica",link_popover_remove:"Rimuovi",cancel:"Annulla"},ja:{ai_conversation_starter_error:"何か問題が発生したようです",ai_conversation_summary_title:"会話の概要",ai_conversation_summary_error:"何か問題が発生したようです",ai_conversation_summary_empty:"要約はありません",ai_smart_replies_title:"返信を提案",ai_smart_replies_error:"何か問題が発生したようです",ai_smart_replies_empty:"提案はありません",calls_outgoing_call:"発信中の通話",calls_cancelled_call:"通話がキャンセルされました",calls_rejected_call:"通話が拒否されました",calls_missed_call:"不在着信",calls_ended_call:"通話が終了しました",calls_answered_call:"通話が応答されました",calls_unanswered_call:"応答のない通話",calls_incoming_call:"着信中の通話",calls_busy_call:"通話中",moderation_block_message:"あなたのメッセージはモデレーションポリシーによりブロックされました",message_list_join_call:"参加",message_list_voice_call:"音声通話",message_list_video_call:"ビデオ通話",message_list_outgoing_call:"発信中の通話",message_list_incoming_call:"着信中の通話",message_list_cancelled_call:"通話がキャンセルされました",message_list_rejected_call:"通話が拒否されました",message_list_busy_call:"通話中",message_list_ended_call:"通話が終了しました",message_list_answered_call:"通話が応答されました",message_list_unasnwered_call:"応答のない通話",message_list_missed_call:"不在着信",conversation_subtitle_voice_call:"音声通話",conversation_subtitle_video_call:"ビデオ通話",conversation_subtitle_outgoing_call:"発信中の通話",conversation_subtitle_incoming_call:"着信中の通話",conversation_subtitle_cancelled_call:"通話がキャンセルされました",conversation_subtitle_rejected_call:"通話が拒否されました",conversation_subtitle_busy_call:"通話中",conversation_subtitle_ended_call:"通話が終了しました",conversation_subtitle_answered_call:"通話が応答されました",conversation_subtitle_unasnwered_call:"応答のない通話",conversation_subtitle_missed_call:"不在着信",conversation_subtitle_group_voice_call_initated_self:"音声通話を開始しました",conversation_subtitle_group_video_call_initated_self:"ビデオ通話を開始しました",conversation_subtitle_group_voice_call_initated:"音声通話を開始しました",conversation_subtitle_group_video_call_initated:"ビデオ通話を開始しました",messsage_composer_collaborative_document:"共同ドキュメント",message_list_collaborative_document_title:"共同ドキュメント",message_list_collaborative_document_subtitile:"ドキュメントを開いて一緒に編集する",message_list_collaborative_document_open:"ドキュメントを開く",conversation_subtitle_collaborative_document:"共同ドキュメント",messsage_composer_collaborative_whiteboard:"共同ホワイトボード",message_list_collaborative_whiteboard_title:"共同ホワイトボード",message_collaborative_whiteboard_subtitile:"ホワイトボードを開いて一緒に描画する",messag_list_collaborative_whiteboard_open:"ホワイトボードを開く",conversation_subtitle_collaborative_whiteboard:"共同ホワイトボード",call_button_voice_hover:"音声通話",call_button_video_hover:"ビデオ通話",call_logs_title:"通話履歴",call_logs_empty_title:"通話履歴がありません",call_logs_empty_subtitle:"発信または着信を行うと、ここに通話履歴が表示されます",call_logs_error_title:"エラー!",call_logs_error_subtitle:"何か問題が発生したようです",change_scope_title:"スコープを変更",change_scope_subtitle:"グループメンバーのスコープを変更して、グループの権限と責任を管理できます。",change_scope_confirm_yes:"保存",change_scope_confirm_no:"キャンセル",change_scope_error:"エラーが発生しました。もう一度お試しください。",member_scope_admin:"管理者",member_scope_moderator:"モデレーター",member_scope_participant:"参加者",member_scope_owner:"所有者",conversation_delete_title:"会話を削除しますか？",conversation_delete_subtitle:"この会話を削除しますか？すべてのデバイスから削除されます。",conversation_delete_confirm_yes:"削除",conversation_delete_confirm_no:"キャンセル",conversation_delete_error:"エラーが発生しました。もう一度お試しください。",conversation_chat_title:"チャット",conversation_delete_icon_hover:"削除",conversation_subtitle_typing:"入力中…",conversation_subtitle_you_message:"あなた",conversation_subtitle_deleted_message:"メッセージは削除されました",conversation_empty_title:"会話がまだありません",conversation_empty_subtitle:"新しいチャットを開始するか、他のユーザーを招待して会話に参加させてください。",conversation_error_title:"エラー!",conversation_error_subtitle:"何か問題が発生したようです",conversation_deleted:"会話が削除されました",message_deleted:"このメッセージは削除されました",message_composer_edit_message:"メッセージを編集",emoji_search_placeholder:"絵文字を検索",message_list_full_screen_viewer:"全画面ビューアー",member_search_placeholder:"検索",member_title:"グループメンバー",member_empty_title:"利用可能なグループメンバーがいません",member_empty_subtitle:"連絡先を追加して、ここに表示させましょう。",member_error_title:"エラー!",member_error_subtitle:"何か問題が発生したようです",group_title:"グループ",group_seach_placeholder:"",group_search_placeholder:"検索",group_members:"メンバー",group_member:"メンバー",group_empty_title:"利用可能なグループがありません",group_empty_subtitle:"グループを作成または参加して、一覧表示し、共同作業を始めましょう",group_error_title:"エラー!",group_error_subtitle:"何か問題が発生したようです",message_header_members:"メンバー",message_header_member:"メンバー",incoming_call_subtitle:"着信中の通話",incoming_call_confirm_yes:"受ける",incoming_call_confirm_no:"拒否",message_composer_placeholder:"ここにメッセージを入力",message_composer_send_message_icon_hover:"メッセージを送信",message_composer_attach_icon_hover:"添付",message_composer_voice_notes_icon_hover:"ボイス録音",message_composer_emoji_icon_hover:"絵文字",message_composer_mention_limit_warning:"一度に最大10人までメンションできます。",message_composer_wrong_file_type:"異なる種類のファイルを選択しました。適切なファイルを選択してください。",file_type_not_allowed:"このファイル形式は許可されていません。",message_composer_mention_all:"全員",message_composer_mention_notify_everyone_label:"このグループの全員に通知します",message_header_typing:"入力中…",message_header_status_online:"オンライン",message_header_status_offline:"オフライン",message_header_last_seen:"最終ログイン",message_header_at:"時刻",full_screen_viewer_at:"時刻",message_header_minute_ago:"1分前",message_header_minutes_ago:"分前",message_header_hour_ago:"1時間前",message_header_hours_ago:"時間前",message_information_title:"メッセージ情報",message_information_close_hover:"閉じる",message_information_read:"既読",message_information_delivered:"配信済み",message_information_error:"何か問題が発生したようです。もう一度お試しください。",message_information_group_message_receipt_empty:"受信者がメッセージを受け取り、閲覧するのを待っています",flag_message_title:"メッセージを報告",flag_message_subtitle:"このメッセージのどの部分が不適切または間違っているかを教えてください。",flag_message_remark_label:"理由",flag_message_remark_optional:"任意",flag_message_remark_placeholder:"このメッセージの気になる点を説明してください…",flag_message_error:"何か問題が発生したようです",flag_message_character_limit_reached:"文字数の上限に達しました。",flag_message_confirm_yes:"報告する",flag_message_confirm_no:"キャンセル",flag_message_reason_id_spam:"スパム／望ましくない内容",flag_message_reason_id_sexual:"露骨または不適切な内容",flag_message_reason_id_harassment:"侮辱的または脅迫的な行為",flag_message_reported:"メッセージが報告されました。",message_list_error_title:"エラー!",message_list_error_subtitle:"何か問題が発生したようです",message_list_message_copied:"メッセージをクリップボードにコピーしました。",message_list_message_deleted:"メッセージを正常に削除しました。",message_list_new_messages:"件の新しいメッセージ",message_list_new_message:"新規",message_list_message_edited:"メッセージが正常に更新されました。",message_list_message_translated:"メッセージが正常に翻訳されました。",message_list_thread_reply:"返信",message_list_thread_replies:"返信",calls_outgoing:"通話しています…",reaction_reacted:"反応しました",reaction_popup_and:"と",reaction_popup_others:"その他",reaction_popup_you:"あなた",reaction_list_all:"すべて",reaction_list_click_to_remove:"クリックして削除",reaction_list_you:"あなた",reaction_list_error:"何か問題が発生したようです。もう一度お試しください。",search_placeholder:"検索",text_message_read_more:"もっと読む",text_message_show_less:"表示を減らす",thread_title:"スレッド",thread_close_hover:"閉じる",thread_replies:"返信",thread_reply:"返信",user_title:"ユーザー",user_search_placeholder:"検索",user_empty_title:"ユーザーが見つかりません",user_empty_subtitle:"検索条件に合致するユーザーがいませんでした。条件を変更してお試しください。",user_error_title:"エラー!",user_error_subtitle:"何か問題が発生したようです",conversation_start:"クリックして会話を開始",conversation_message_deleted:"メッセージは削除されました",conversation_subtitle_image:"画像",conversation_subtitle_file:"ファイル",conversation_subtitle_video:"ビデオ",conversation_subtitle_audio:"音声",conversation_subtitle_added:"追加しました",conversation_subtitle_joined:"参加しました",conversation_subtitle_left:"退出しました",conversation_subtitle_kicked:"キックされました",conversation_subtitle_banned:"禁止されました",conversation_subtitle_unbanned:"解除されました",conversation_subtitle_made:"に設定しました",polls_title:"投票を作成",polls_question:"質問",polls_question_placeholder:"質問を入力",polls_options:"オプション",polls_add_placeholder:"追加",polls_add_option_button:"オプションを追加",polls_limit_reached:"上限に達しました。最大で12のオプションを追加できます。",polls_required_fields_warning:"投票を作成する前に、必要な項目をすべて入力してください。",polls_error:"エラーが発生しました。もう一度お試しください。",polls_create_button:"作成",members_remove:"キック",members_block:"バン",members_change_role:"スコープを変更",message_text_translated:"テキストが翻訳されました",message_list_translate:"翻訳",message_list_option_edit:"編集",message_list_option_delete:"削除",message_list_option_react:"リアクション",message_list_option_reply_in_thread:"スレッドで返信",message_list_option_reply_to_message:"返信",message_list_option_reply:"",message_list_option_message_privately:"プライベートメッセージ",message_list_option_copy:"コピー",message_list_option_info:"情報",message_list_option_mark_as_unread:"未読にする",message_list_option_flag_message:"報告",message_list_action_edited:"編集しました",message_list_action_added:"追加しました",message_list_action_joined:"参加しました",message_list_action_left:"退出しました",message_list_action_kicked:"キックしました",message_list_action_banned:"禁止しました",message_list_action_unbanned:"解除しました",message_list_action_made:"に設定しました",message_composer_attach_image:"画像を添付",message_composer_attach_video:"ビデオを添付",message_composer_attach_audio:"音声を添付",message_composer_attach_file:"ファイルを添付",message_composer_polls:"投票",conversation_subtitle_poll:"投票",message_composer_sticker_hover:"ステッカー",conversation_subtitle_sticker:"ステッカー",sticker_error:"何か問題が発生したようです",sticker_empty:"ステッカーがありません",emoji_smiley_people:"スマイリー＆人",emoji_animals_nature:"動物＆自然",emoji_food_drinks:"食べ物＆飲み物",emoji_activity:"アクティビティ",emoji_travel_places:"旅行＆場所",emoji_objects:"オブジェクト",emoji_symbols:"シンボル",emoji_flags:"旗",today:"今日",yesterday:"昨日",weekday_sunday_full:"日曜日",weekday_monday_full:"月曜日",weekday_tuesday_full:"火曜日",weekday_wednesday_full:"水曜日",weekday_thursday_full:"木曜日",weekday_friday_full:"金曜日",weekday_saturday_full:"土曜日",weekday_sunday_short:"日",weekday_monday_short:"月",weekday_tuesday_short:"火",weekday_wednesday_short:"水",weekday_thursday_short:"木",weekday_friday_short:"金",weekday_saturday_short:"土",weekday_sunday_min:"日",weekday_monday_min:"月",weekday_tuesday_min:"火",weekday_wednesday_min:"水",weekday_thursday_min:"木",weekday_friday_min:"金",weekday_saturday_min:"土",month_january_short:"1月",month_february_short:"2月",month_march_short:"3月",month_april_short:"4月",month_may_short:"5月",month_june_short:"6月",month_july_short:"7月",month_august_short:"8月",month_september_short:"9月",month_october_short:"10月",month_november_short:"11月",month_december_short:"12月",month_january_full:"1月",month_february_full:"2月",month_march_full:"3月",month_april_full:"4月",month_may_full:"5月",month_june_full:"6月",month_july_full:"7月",month_august_full:"8月",month_september_full:"9月",month_october_full:"10月",month_november_full:"11月",month_december_full:"12月",message_type_not_supported:"このメッセージタイプはサポートされていません。",message_list_message_already_translated:"翻訳のために選択された言語は、元のメッセージの言語と似ています。",media_recorder_error_title:"マイクへのアクセスが必要です",media_recorder_error_subtitle:"マイクにアクセスできませんでした。録音を開始するには、マイクの許可を与えてください。",media_recorder_permission_dismiss:"了解",search_title:"検索",search_empty_title:"検索を始める",search_empty_subtitle:"キーワードを上に入力して会話やメッセージを検索します。",search_no_result_title:"結果なし",search_result_see_more:"もっと見る",search_messages_header:"メッセージ",search_filter_unread:"未読",search_filter_groups:"グループ",search_filter_photos:"写真",search_filter_videos:"ビデオ",search_filter_links:"リンク",search_filter_documents:"ドキュメント",search_filter_audio:"オーディオ",search_filter_messages:"メッセージ",search_filter_conversations:"会話",search_no_result_subtitle:"一致するものが見つかりませんでした。別のキーワードでお試しください。",search_conversation_header:"会話",search_message_subtitle_you:"あなた",search_message_title_you:"あなた",search_error_title:"エラー!",search_error_subtitle:"何か問題が発生したようです",ai_assistant_chat_intro_message:"お手伝いするためにここにいます！",ai_assistant_chat_composer_placeholder:"何でも聞いてください",ai_assistant_chat_new_chat:"新しいチャット",ai_assistant_chat_history:"チャット履歴",ai_assistant_chat_history_title:"チャット履歴",ai_assistant_chat_thinking:"考え中…",ai_assistant_chat_executing_tool:"ツール呼び出しを実行中...",ai_assistant_chat_no_internet:"インターネット接続がありません。接続を確認して、もう一度試してください。",ai_assistant_chat_history_empty_title:"会話がまだありません",ai_assistant_chat_history_empty_subtitle:"あなたのAIエージェントは準備ができました - 何でも聞いて、会話を始めてください。",ai_assistant_chat_history_error_title:"エラー!",ai_assistant_chat_history_error_subtitle:"当社側で問題が発生しました。もう一度試してください。",formatting_toolbar_bold:"太字",formatting_toolbar_italic:"斜体",formatting_toolbar_underline:"下線",formatting_toolbar_strikethrough:"取り消し線",formatting_toolbar_link:"リンク",formatting_toolbar_numbered_list:"番号付きリスト",formatting_toolbar_bulleted_list:"箇条書きリスト",formatting_toolbar_blockquote:"引用",formatting_toolbar_code:"コード",formatting_toolbar_code_block:"コードブロック",formatting_toolbar_insert:"挿入",formatting_toolbar_enter_url:"URLを入力",formatting_toolbar_link_url:"リンクURL",link_dialog_add_link:"リンクを追加",link_dialog_edit_link:"リンクを編集",link_dialog_save:"保存",link_dialog_text:"テキスト",link_dialog_text_placeholder:"表示テキストを入力",link_dialog_link:"リンク",link_url_required:"URLは必須です",link_popover_close:"閉じる",link_popover_edit:"編集",link_popover_remove:"削除",cancel:"キャンセル"},ko:{ai_conversation_starter_error:"문제가 발생한 것 같습니다.",ai_conversation_summary_title:"대화 요약",ai_conversation_summary_error:"문제가 발생한 것 같습니다.",ai_conversation_summary_empty:"요약이 없습니다.",ai_smart_replies_title:"답장 제안",ai_smart_replies_error:"문제가 발생한 것 같습니다.",ai_smart_replies_empty:"제안이 없습니다.",calls_outgoing_call:"발신 통화",calls_cancelled_call:"통화 취소됨",calls_rejected_call:"통화 거절됨",calls_missed_call:"통화 놓침",calls_ended_call:"통화 종료됨",calls_answered_call:"통화 응답됨",calls_unanswered_call:"응답 없는 통화",calls_incoming_call:"수신 통화",calls_busy_call:"통화 중",moderation_block_message:"귀하의 메시지는 관리 정책으로 인해 차단되었습니다",message_list_join_call:"참여",message_list_voice_call:"음성 통화",message_list_video_call:"영상 통화",message_list_outgoing_call:"발신 통화",message_list_incoming_call:"수신 통화",message_list_cancelled_call:"통화 취소됨",message_list_rejected_call:"통화 거절됨",message_list_busy_call:"통화 중",message_list_ended_call:"통화 종료됨",message_list_answered_call:"통화 응답됨",message_list_unasnwered_call:"응답 없는 통화",message_list_missed_call:"통화 놓침",conversation_subtitle_voice_call:"음성 통화",conversation_subtitle_video_call:"영상 통화",conversation_subtitle_outgoing_call:"발신 통화",conversation_subtitle_incoming_call:"수신 통화",conversation_subtitle_cancelled_call:"통화 취소됨",conversation_subtitle_rejected_call:"통화 거절됨",conversation_subtitle_busy_call:"통화 중",conversation_subtitle_ended_call:"통화 종료됨",conversation_subtitle_answered_call:"통화 응답됨",conversation_subtitle_unasnwered_call:"응답 없는 통화",conversation_subtitle_missed_call:"통화 놓침",conversation_subtitle_group_voice_call_initated_self:"음성 통화를 시작했습니다.",conversation_subtitle_group_video_call_initated_self:"영상 통화를 시작했습니다.",conversation_subtitle_group_voice_call_initated:"음성 통화를 시작했습니다.",conversation_subtitle_group_video_call_initated:"영상 통화를 시작했습니다.",messsage_composer_collaborative_document:"협업 문서",message_list_collaborative_document_title:"협업 문서",message_list_collaborative_document_subtitile:"함께 문서를 열어 콘텐츠를 편집하세요",message_list_collaborative_document_open:"문서 열기",conversation_subtitle_collaborative_document:"협업 문서",messsage_composer_collaborative_whiteboard:"협업 화이트보드",message_list_collaborative_whiteboard_title:"협업 화이트보드",message_collaborative_whiteboard_subtitile:"함께 그릴 수 있도록 화이트보드를 여세요",messag_list_collaborative_whiteboard_open:"화이트보드 열기",conversation_subtitle_collaborative_whiteboard:"협업 화이트보드",call_button_voice_hover:"음성 통화",call_button_video_hover:"영상 통화",call_logs_title:"통화 기록",call_logs_empty_title:"통화 기록이 없습니다.",call_logs_empty_subtitle:"통화를 하거나 받으면 통화 기록이 여기에 표시됩니다.",call_logs_error_title:"앗!",call_logs_error_subtitle:"문제가 발생한 것 같습니다.",change_scope_title:"범위 변경",change_scope_subtitle:"그룹 구성원의 범위를 변경하여 그룹 권한과 책임을 관리할 수 있습니다.",change_scope_confirm_yes:"저장",change_scope_confirm_no:"취소",change_scope_error:"문제가 발생했습니다. 다시 시도해 주세요.",member_scope_admin:"관리자",member_scope_moderator:"모더레이터",member_scope_participant:"참가자",member_scope_owner:"소유자",conversation_delete_title:"대화를 삭제하시겠습니까?",conversation_delete_subtitle:"이 대화를 삭제하시겠습니까? 이 대화는 모든 장치에서 삭제됩니다.",conversation_delete_confirm_yes:"삭제",conversation_delete_confirm_no:"취소",conversation_delete_error:"문제가 발생한 것 같습니다. 다시 시도해 주세요.",conversation_chat_title:"채팅",conversation_delete_icon_hover:"삭제",conversation_subtitle_typing:"입력 중...",conversation_subtitle_you_message:"당신",conversation_subtitle_deleted_message:"메시지가 삭제되었습니다.",conversation_empty_title:"아직 대화가 없습니다.",conversation_empty_subtitle:"새로운 채팅을 시작하거나 다른 사람을 초대하여 대화에 참여하세요.",conversation_error_title:"앗!",conversation_error_subtitle:"문제가 발생한 것 같습니다.",conversation_deleted:"대화가 삭제되었습니다.",message_deleted:"이 메시지는 삭제되었습니다.",message_composer_edit_message:"메시지 편집",emoji_search_placeholder:"이모지 검색",message_list_full_screen_viewer:"전체 화면 보기",member_search_placeholder:"검색",member_title:"그룹 멤버",member_empty_title:"사용 가능한 그룹 멤버가 없습니다.",member_empty_subtitle:"연락처를 추가하여 여기에 표시하세요.",member_error_title:"앗!",member_error_subtitle:"문제가 발생한 것 같습니다.",group_title:"그룹",group_seach_placeholder:"",group_search_placeholder:"검색",group_members:"멤버",group_member:"멤버",group_empty_title:"사용 가능한 그룹이 없습니다.",group_empty_subtitle:"그룹을 생성하거나 가입하여 여기에 표시하고 협업을 시작하세요.",group_error_title:"앗!",group_error_subtitle:"문제가 발생한 것 같습니다.",message_header_members:"멤버",message_header_member:"멤버",incoming_call_subtitle:"수신 통화",incoming_call_confirm_yes:"수락",incoming_call_confirm_no:"거절",message_composer_placeholder:"여기에 메시지를 입력하세요.",message_composer_send_message_icon_hover:"메시지 보내기",message_composer_attach_icon_hover:"첨부",message_composer_voice_notes_icon_hover:"음성 녹음",message_composer_emoji_icon_hover:"이모지",message_composer_mention_limit_warning:"한 번에 최대 10명의 사용자를 멘션할 수 있습니다.",message_composer_wrong_file_type:"다른 유형의 파일을 선택했습니다. 적절한 파일을 선택하세요.",file_type_not_allowed:"이 파일 형식은 허용되지 않습니다.",message_composer_mention_all:"모두",message_composer_mention_notify_everyone_label:"이 그룹의 모든 사람에게 알림을 보냅니다",message_header_typing:"입력 중...",message_header_status_online:"온라인",message_header_status_offline:"오프라인",message_header_last_seen:"마지막 접속",message_header_at:"에서",full_screen_viewer_at:"에서",message_header_minute_ago:"1분 전",message_header_minutes_ago:"분 전",message_header_hour_ago:"1시간 전",message_header_hours_ago:"시간 전",message_information_title:"메시지 정보",message_information_close_hover:"닫기",message_information_read:"읽음",message_information_delivered:"배달됨",message_information_error:"문제가 발생한 것 같습니다. 다시 시도해 주세요.",message_information_group_message_receipt_empty:"수신자가 메시지를 수신하고 보기 전까지 기다리고 있습니다.",flag_message_title:"메시지 신고",flag_message_subtitle:"이 메시지의 부적절하거나 잘못된 부분을 알려주세요.",flag_message_remark_label:"사유",flag_message_remark_optional:"선택",flag_message_remark_placeholder:"이 메시지에서 우려되는 부분을 설명해주세요…",flag_message_error:"문제가 발생한 것 같습니다.",flag_message_character_limit_reached:"문자 제한에 도달했습니다.",flag_message_confirm_yes:"신고",flag_message_confirm_no:"취소",flag_message_reason_id_spam:"스팸 / 원치 않는 콘텐츠",flag_message_reason_id_sexual:"명백하거나 부적절한 콘텐츠",flag_message_reason_id_harassment:"모욕적이거나 위협적인 행동",flag_message_reported:"메시지가 신고되었습니다.",message_list_error_title:"앗!",message_list_error_subtitle:"문제가 발생한 것 같습니다.",message_list_message_copied:"메시지가 클립보드에 복사되었습니다.",message_list_message_deleted:"메시지가 성공적으로 삭제되었습니다.",message_list_new_messages:"새 메시지",message_list_new_message:"새 메시지",message_list_message_edited:"메시지가 성공적으로 업데이트되었습니다.",message_list_message_translated:"메시지가 성공적으로 번역되었습니다.",message_list_thread_reply:"답글",message_list_thread_replies:"답글들",calls_outgoing:"통화 중...",reaction_reacted:"반응함",reaction_popup_and:"그리고",reaction_popup_others:"다른 사람들",reaction_popup_you:"당신",reaction_list_all:"모두",reaction_list_click_to_remove:"제거하려면 클릭",reaction_list_you:"당신",reaction_list_error:"문제가 발생한 것 같습니다. 다시 시도해 주세요.",search_placeholder:"검색",text_message_read_more:"더 보기",text_message_show_less:"덜 보기",thread_title:"스레드",thread_close_hover:"닫기",thread_replies:"답글",thread_reply:"답글",user_title:"사용자",user_search_placeholder:"검색",user_empty_title:"사용자를 찾을 수 없습니다.",user_empty_subtitle:"검색에 맞는 사용자가 없습니다. 검색 조건을 조정해 보세요.",user_error_title:"앗!",user_error_subtitle:"문제가 발생한 것 같습니다.",conversation_start:"대화를 시작하려면 클릭",conversation_message_deleted:"메시지가 삭제되었습니다.",conversation_subtitle_image:"이미지",conversation_subtitle_file:"파일",conversation_subtitle_video:"비디오",conversation_subtitle_audio:"음성",conversation_subtitle_added:"추가됨",conversation_subtitle_joined:"참여함",conversation_subtitle_left:"떠났습니다",conversation_subtitle_kicked:"킥당함",conversation_subtitle_banned:"금지됨",conversation_subtitle_unbanned:"금지 해제됨",conversation_subtitle_made:"만들어짐",polls_title:"투표 만들기",polls_question:"질문",polls_question_placeholder:"질문을 입력하세요",polls_options:"옵션",polls_add_placeholder:"추가",polls_add_option_button:"옵션 추가",polls_limit_reached:"한도에 도달했습니다. 최대 12개의 옵션을 추가할 수 있습니다.",polls_required_fields_warning:"투표를 생성하기 전에 모든 필수 항목을 입력하세요.",polls_error:"문제가 발생한 것 같습니다. 다시 시도해 주세요.",polls_create_button:"만들기",members_remove:"킥",members_block:"밴",members_change_role:"범위 변경",message_text_translated:"텍스트 번역됨",message_list_translate:"번역",message_list_option_edit:"편집",message_list_option_delete:"삭제",message_list_option_react:"반응",message_list_option_reply_in_thread:"스레드에서 답장하기",message_list_option_reply_to_message:"답글",message_list_option_reply:"",message_list_option_message_privately:"비공개 메시지",message_list_option_copy:"복사",message_list_option_info:"정보",message_list_option_mark_as_unread:"읽지 않음으로 표시",message_list_option_flag_message:"신고",message_list_action_edited:"편집됨",message_list_action_added:"추가됨",message_list_action_joined:"참여됨",message_list_action_left:"떠났음",message_list_action_kicked:"킥됨",message_list_action_banned:"금지됨",message_list_action_unbanned:"금지 해제됨",message_list_action_made:"만들어짐",message_composer_attach_image:"이미지 첨부",message_composer_attach_video:"비디오 첨부",message_composer_attach_audio:"음성 첨부",message_composer_attach_file:"파일 첨부",message_composer_polls:"투표",conversation_subtitle_poll:"투표",message_composer_sticker_hover:"스티커",conversation_subtitle_sticker:"스티커",sticker_error:"문제가 발생한 것 같습니다.",sticker_empty:"스티커가 없습니다.",emoji_smiley_people:"스마일리 & 사람들",emoji_animals_nature:"동물 & 자연",emoji_food_drinks:"음식 & 음료",emoji_activity:"활동",emoji_travel_places:"여행 & 장소",emoji_objects:"물건들",emoji_symbols:"기호",emoji_flags:"국기",today:"오늘",yesterday:"어제",weekday_sunday_full:"일요일",weekday_monday_full:"월요일",weekday_tuesday_full:"화요일",weekday_wednesday_full:"수요일",weekday_thursday_full:"목요일",weekday_friday_full:"금요일",weekday_saturday_full:"토요일",weekday_sunday_short:"일",weekday_monday_short:"월",weekday_tuesday_short:"화",weekday_wednesday_short:"수",weekday_thursday_short:"목",weekday_friday_short:"금",weekday_saturday_short:"토",weekday_sunday_min:"일",weekday_monday_min:"월",weekday_tuesday_min:"화",weekday_wednesday_min:"수",weekday_thursday_min:"목",weekday_friday_min:"금",weekday_saturday_min:"토",month_january_short:"1월",month_february_short:"2월",month_march_short:"3월",month_april_short:"4월",month_may_short:"5월",month_june_short:"6월",month_july_short:"7월",month_august_short:"8월",month_september_short:"9월",month_october_short:"10월",month_november_short:"11월",month_december_short:"12월",month_january_full:"1월",month_february_full:"2월",month_march_full:"3월",month_april_full:"4월",month_may_full:"5월",month_june_full:"6월",month_july_full:"7월",month_august_full:"8월",month_september_full:"9월",month_october_full:"10월",month_november_full:"11월",month_december_full:"12월",message_type_not_supported:"이 메시지 유형은 지원되지 않습니다.",message_list_message_already_translated:"번역을 위해 선택한 언어가 원본 메시지의 언어와 유사합니다.",media_recorder_error_title:"마이크 액세스 필요",media_recorder_error_subtitle:"마이크에 접근할 수 없습니다. 녹음을 시작하려면 마이크 권한을 허용해주세요.",search_title:"검색",search_empty_title:"검색을 시작하세요",search_empty_subtitle:"위에 키워드를 입력하여 대화나 메시지를 검색하세요.",search_no_result_title:"결과 없음",search_result_see_more:"더 보기",search_messages_header:"메시지",search_filter_unread:"읽지 않음",search_filter_groups:"그룹",search_filter_photos:"사진",search_filter_videos:"비디오",search_filter_links:"링크",search_filter_documents:"문서",search_filter_audio:"오디오",search_filter_messages:"메시지",search_filter_conversations:"대화",search_no_result_subtitle:"일치하는 항목이 없습니다. 다른 검색어를 사용해 보세요.",search_conversation_header:"대화",search_message_subtitle_you:"당신",search_message_title_you:"당신",search_error_title:"앗!",search_error_subtitle:"문제가 발생한 것 같습니다.",ai_assistant_chat_intro_message:"저는 여러분을 돕기 위해 여기 있습니다!",ai_assistant_chat_composer_placeholder:"무엇이든 물어보세요",ai_assistant_chat_new_chat:"새 채팅",ai_assistant_chat_history:"채팅 기록",ai_assistant_chat_history_title:"채팅 기록",ai_assistant_chat_thinking:"생각 중…",ai_assistant_chat_executing_tool:"도구 호출 실행 중...",ai_assistant_chat_no_internet:"인터넷 연결이 없습니다. 연결을 확인하고 다시 시도하세요.",ai_assistant_chat_history_empty_title:"아직 대화가 없습니다.",ai_assistant_chat_history_empty_subtitle:"AI 에이전트가 준비되었습니다 - 무엇이든 물어보고 대화를 시작하세요.",ai_assistant_chat_history_error_title:"앗!",ai_assistant_chat_history_error_subtitle:"우리 측에서 문제가 발생했습니다. 다시 시도해주세요."},nl:{ai_conversation_starter_error:"Het lijkt erop dat er iets mis is gegaan",ai_conversation_summary_title:"Gespreks Samenvatting",ai_conversation_summary_error:"Het lijkt erop dat er iets mis is gegaan",ai_conversation_summary_empty:"Geen Samenvatting Beschikbaar",ai_smart_replies_title:"Stel een antwoord voor",ai_smart_replies_error:"Het lijkt erop dat er iets mis is gegaan",ai_smart_replies_empty:"Geen Suggesties Beschikbaar",calls_outgoing_call:"Uitgaande Oproep",calls_cancelled_call:"Oproep Geannuleerd",calls_rejected_call:"Oproep Geweigerd",calls_missed_call:"Gemiste Oproep",calls_ended_call:"Oproep Beëindigd",calls_answered_call:"Oproep Beantwoord",calls_unanswered_call:"Oproep Niet Beantwoord",calls_incoming_call:"Binnenkomende Oproep",calls_busy_call:"Oproep Bezet",moderation_block_message:"Je bericht werd geblokkeerd vanwege het moderatiebeleid",message_list_join_call:"Deelnemen",message_list_voice_call:"Gesprek",message_list_video_call:"Videobel",message_list_outgoing_call:"Uitgaande Oproep",message_list_incoming_call:"Binnenkomende Oproep",message_list_cancelled_call:"Oproep Geannuleerd",message_list_rejected_call:"Oproep Geweigerd",message_list_busy_call:"Oproep Bezet",message_list_ended_call:"Oproep Beëindigd",message_list_answered_call:"Oproep Beantwoord",message_list_unasnwered_call:"Oproep Niet Beantwoord",message_list_missed_call:"Gemiste Oproep",conversation_subtitle_voice_call:"Gesprek",conversation_subtitle_video_call:"Videobel",conversation_subtitle_outgoing_call:"Uitgaande Oproep",conversation_subtitle_incoming_call:"Binnenkomende Oproep",conversation_subtitle_cancelled_call:"Oproep Geannuleerd",conversation_subtitle_rejected_call:"Oproep Geweigerd",conversation_subtitle_busy_call:"Oproep Bezet",conversation_subtitle_ended_call:"Oproep Beëindigd",conversation_subtitle_answered_call:"Oproep Beantwoord",conversation_subtitle_unasnwered_call:"Oproep Niet Beantwoord",conversation_subtitle_missed_call:"Gemiste Oproep",conversation_subtitle_group_voice_call_initated_self:"Je hebt een gesprek gestart",conversation_subtitle_group_video_call_initated_self:"Je hebt een videobel gestart",conversation_subtitle_group_voice_call_initated:"heeft een gesprek gestart",conversation_subtitle_group_video_call_initated:"heeft een videobel gestart",messsage_composer_collaborative_document:"Samenwerkend Document",message_list_collaborative_document_title:"Samenwerkend Document",message_list_collaborative_document_subtitile:"Open document om samen inhoud te bewerken",message_list_collaborative_document_open:"Open Document",conversation_subtitle_collaborative_document:"Samenwerkend Document",messsage_composer_collaborative_whiteboard:"Samenwerkend Whiteboard",message_list_collaborative_whiteboard_title:"Samenwerkend Whiteboard",message_collaborative_whiteboard_subtitile:"Open whiteboard om samen te tekenen",messag_list_collaborative_whiteboard_open:"Open Whiteboard",conversation_subtitle_collaborative_whiteboard:"Samenwerkend Whiteboard",call_button_voice_hover:"Gesprek",call_button_video_hover:"Videobel",call_logs_title:"Oproepen",call_logs_empty_title:"Nog geen Oproep Logboeken",call_logs_empty_subtitle:"Maak of ontvang oproepen om je oproephistorie hier te zien",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",change_scope_title:"Wijzig reikwijdte",change_scope_subtitle:"U kunt de reikwijdte voor het groepslid wijzigen om groepsmachtigingen en verantwoordelijkheden te beheren.",change_scope_confirm_yes:"Opslaan",change_scope_confirm_no:"Annuleren",change_scope_error:"Er ging iets mis. Probeer het opnieuw.",member_scope_admin:"Admin",member_scope_moderator:"Moderator",member_scope_participant:"Deelnemer",member_scope_owner:"Eigenaar",conversation_delete_title:"Gesprek Verwijderen?",conversation_delete_subtitle:"Wil je dit gesprek verwijderen? Dit gesprek wordt verwijderd van al je apparaten.",conversation_delete_confirm_yes:"Verwijderen",conversation_delete_confirm_no:"Annuleren",conversation_delete_error:"Er ging iets mis. Probeer het opnieuw.",conversation_chat_title:"Chats",conversation_delete_icon_hover:"Verwijderen",conversation_subtitle_typing:"Typen...",conversation_subtitle_you_message:"Jij",conversation_subtitle_deleted_message:"Bericht is verwijderd",conversation_empty_title:"Nog Geen Gesprekken",conversation_empty_subtitle:"Start een nieuw gesprek of nodig anderen uit om deel te nemen.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",conversation_deleted:"Gesprek Verwijderd",message_deleted:"Dit bericht werd verwijderd",message_composer_edit_message:"Bewerk bericht",emoji_search_placeholder:"Zoek emoji",message_list_full_screen_viewer:"Volledig Scherm Viewer",member_search_placeholder:"Zoeken",member_title:"Groepsleden",member_empty_title:"Geen Groepsleden Beschikbaar",member_empty_subtitle:"Voeg contacten toe om ze hier te zien.",member_error_title:"OOPS!",member_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",group_title:"Groepen",group_seach_placeholder:"",group_search_placeholder:"Zoeken",group_members:"Leden",group_member:"Lid",group_empty_title:"Geen Groepen Beschikbaar",group_empty_subtitle:"Maak of sluit groepen aan om ze hier te zien en samen te werken",group_error_title:"OOPS!",group_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",message_header_members:"Leden",message_header_member:"Lid",incoming_call_subtitle:"Binnenkomende Oproep",incoming_call_confirm_yes:"Accepteren",incoming_call_confirm_no:"Afwijzen",message_composer_placeholder:"Voer je bericht hier in",message_composer_send_message_icon_hover:"Bericht Versturen",message_composer_attach_icon_hover:"Bijvoegen",message_composer_voice_notes_icon_hover:"Opname",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Je kunt maximaal 10 gebruikers tegelijk vermelden.",message_composer_wrong_file_type:"Je hebt een ander bestandstype geselecteerd. Kies het juiste bestand.",file_type_not_allowed:"Dit bestandstype is niet toegestaan.",message_composer_mention_all:"iedereen",message_composer_mention_notify_everyone_label:"Iedereen in deze groep informeren",message_header_typing:"Typen...",message_header_status_online:"Online",message_header_status_offline:"Offline",message_header_last_seen:"Laatst gezien",message_header_at:"om",full_screen_viewer_at:"om",message_header_minute_ago:"minuut geleden",message_header_minutes_ago:"minuten geleden",message_header_hour_ago:"uur geleden",message_header_hours_ago:"uren geleden",message_information_title:"Bericht Informatie",message_information_close_hover:"Sluiten",message_information_read:"Gelezen",message_information_delivered:"Afgeleverd",message_information_error:"Het lijkt erop dat er iets mis is gegaan. Probeer het opnieuw.",message_information_group_message_receipt_empty:"Wachten op ontvangers om het bericht te ontvangen en te bekijken",flag_message_title:"Een bericht rapporteren",flag_message_subtitle:"Vertel ons wat er ongepast of onjuist is aan dit bericht.",flag_message_remark_label:"Reden",flag_message_remark_optional:"Optioneel",flag_message_remark_placeholder:"Beschrijf wat er zorgwekkend is aan dit bericht…",flag_message_error:"Het lijkt erop dat er iets mis is gegaan",flag_message_character_limit_reached:"Tekenlimiet bereikt.",flag_message_confirm_yes:"Rapporteren",flag_message_confirm_no:"Annuleren",flag_message_reason_id_spam:"Spam / ongewenste inhoud",flag_message_reason_id_sexual:"Expliciete of ongepaste inhoud",flag_message_reason_id_harassment:"Beledigend of bedreigend gedrag",flag_message_reported:"Bericht gerapporteerd.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",message_list_message_copied:"Bericht gekopieerd naar klembord.",message_list_message_deleted:"Bericht succesvol verwijderd.",message_list_new_messages:"nieuwe berichten",message_list_new_message:"Nieuw",message_list_message_edited:"Bericht succesvol bijgewerkt.",message_list_message_translated:"Bericht succesvol vertaald.",message_list_thread_reply:"Antwoord",message_list_thread_replies:"Antwoorden",calls_outgoing:"Bellen...",reaction_reacted:"gereageerd",reaction_popup_and:"en",reaction_popup_others:"anderen",reaction_popup_you:"Jij",reaction_list_all:"Alle",reaction_list_click_to_remove:"Klik om te verwijderen",reaction_list_you:"Jij",reaction_list_error:"Het lijkt erop dat er iets mis is gegaan. Probeer het opnieuw.",search_placeholder:"Zoeken",text_message_read_more:"Lees meer",text_message_show_less:"Toon minder",thread_title:"Thread",thread_close_hover:"Sluiten",thread_replies:"Antwoorden",thread_reply:"Antwoord",user_title:"Gebruikers",user_search_placeholder:"Zoeken",user_empty_title:"Geen Gebruikers Gevonden",user_empty_subtitle:"We konden geen gebruikers vinden die overeenkomen met je zoekopdracht. Probeer je zoekopdracht aan te passen.",user_error_title:"OOPS!",user_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",conversation_start:"Klik om gesprek te starten",conversation_message_deleted:"Bericht is verwijderd",conversation_subtitle_image:"Afbeelding",conversation_subtitle_file:"Bestand",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Audio",conversation_subtitle_added:"toegevoegd",conversation_subtitle_joined:"deelnomen",conversation_subtitle_left:"verliet",conversation_subtitle_kicked:"geschopt",conversation_subtitle_banned:"verbannen",conversation_subtitle_unbanned:"gedebandeerd",conversation_subtitle_made:"gemaakt",polls_title:"Maak Poll",polls_question:"Vraag",polls_question_placeholder:"Stel vraag",polls_options:"Opties",polls_add_placeholder:"Toevoegen",polls_add_option_button:"Voeg Optie Toe",polls_limit_reached:"Je hebt de limiet bereikt. Je kunt maximaal 12 opties toevoegen.",polls_required_fields_warning:"Vul alle verplichte velden in voordat je een poll maakt.",polls_error:"Er ging iets mis. Probeer het opnieuw.",polls_create_button:"Maken",members_remove:"Kick",members_block:"Verbannen",members_change_role:"Wijzig reikwijdte",message_text_translated:"Tekst Vertaald",message_list_translate:"Vertalen",message_list_option_edit:"Bewerken",message_list_option_delete:"Verwijderen",message_list_option_react:"Reageren",message_list_option_reply_in_thread:"Reageren in thread",message_list_option_reply_to_message:"Antwoorden",message_list_option_reply:"",message_list_option_message_privately:"Privé Bericht",message_list_option_copy:"Kopieer",message_list_option_info:"Info",message_list_option_mark_as_unread:"Markeren als ongelezen",message_list_option_flag_message:"Rapporteren",message_list_action_edited:"Bewerkt",message_list_action_added:"toegevoegd",message_list_action_joined:"deelnomen",message_list_action_left:"verliet",message_list_action_kicked:"geschopt",message_list_action_banned:"verbannen",message_list_action_unbanned:"gedebandeerd",message_list_action_made:"gemaakt",message_composer_attach_image:"Afbeelding Bijvoegen",message_composer_attach_video:"Video Bijvoegen",message_composer_attach_audio:"Audio Bijvoegen",message_composer_attach_file:"Bestand Bijvoegen",message_composer_polls:"Polls",conversation_subtitle_poll:"Poll",message_composer_sticker_hover:"Sticker",conversation_subtitle_sticker:"Sticker",sticker_error:"Het lijkt erop dat er iets mis is gegaan",sticker_empty:"Geen Stickers Beschikbaar",emoji_smiley_people:"Smileys & Mensen",emoji_animals_nature:"Dieren & Natuur",emoji_food_drinks:"Eten & Drinken",emoji_activity:"Activiteiten",emoji_travel_places:"Reizen & Plaatsen",emoji_objects:"Objecten",emoji_symbols:"Symbolen",emoji_flags:"Vlaggen",today:"Vandaag",yesterday:"Gisteren",weekday_sunday_full:"Zondag",weekday_monday_full:"Maandag",weekday_tuesday_full:"Dinsdag",weekday_wednesday_full:"Woensdag",weekday_thursday_full:"Donderdag",weekday_friday_full:"Vrijdag",weekday_saturday_full:"Zaterdag",weekday_sunday_short:"Zo",weekday_monday_short:"Ma",weekday_tuesday_short:"Di",weekday_wednesday_short:"Wo",weekday_thursday_short:"Do",weekday_friday_short:"Vr",weekday_saturday_short:"Za",weekday_sunday_min:"Zo",weekday_monday_min:"Ma",weekday_tuesday_min:"Di",weekday_wednesday_min:"Wo",weekday_thursday_min:"Do",weekday_friday_min:"Vr",weekday_saturday_min:"Za",month_january_short:"Jan",month_february_short:"Feb",month_march_short:"Mrt",month_april_short:"Apr",month_may_short:"Mei",month_june_short:"Jun",month_july_short:"Jul",month_august_short:"Aug",month_september_short:"Sep",month_october_short:"Okt",month_november_short:"Nov",month_december_short:"Dec",month_january_full:"Januari",month_february_full:"Februari",month_march_full:"Maart",month_april_full:"April",month_may_full:"Mei",month_june_full:"Juni",month_july_full:"Juli",month_august_full:"Augustus",month_september_full:"September",month_october_full:"Oktober",month_november_full:"November",month_december_full:"December",message_type_not_supported:"Dit berichttype wordt niet ondersteund.",message_list_message_already_translated:"De geselecteerde taal voor vertaling is vergelijkbaar met de taal van het oorspronkelijke bericht.",media_recorder_error_title:"Microfoontoegang Nodig",media_recorder_error_subtitle:"We hebben geen toegang tot je microfoon. Geef microfoonmachtiging om te beginnen met opnemen.",media_recorder_permission_dismiss:"Begrepen",search_title:"Zoeken",search_empty_title:"Begin met zoeken",search_empty_subtitle:"Zoek naar gesprekken of berichten door een trefwoord hierboven in te voeren.",search_no_result_title:"Geen resultaten",search_result_see_more:"Bekijk meer",search_messages_header:"Berichten",search_filter_unread:"Ongelezen",search_filter_groups:"Groepen",search_filter_photos:"Foto's",search_filter_videos:"Video's",search_filter_links:"Links",search_filter_documents:"Documenten",search_filter_audio:"Audio",search_filter_messages:"Berichten",search_filter_conversations:"Gesprekken",search_no_result_subtitle:"We konden geen resultaten vinden. Probeer een ander zoekwoord.",search_conversation_header:"Gesprekken",search_message_subtitle_you:"Jij",search_message_title_you:"Jij",search_error_title:"OOPS!",search_error_subtitle:"Het lijkt erop dat er iets mis is gegaan",ai_assistant_chat_intro_message:"Ik ben hier om je te helpen!",ai_assistant_chat_composer_placeholder:"Vraag iets",ai_assistant_chat_new_chat:"Nieuw Gesprek",ai_assistant_chat_history:"chatgeschiedenis",ai_assistant_chat_history_title:"Chatgeschiedenis",ai_assistant_chat_thinking:"Denken…",ai_assistant_chat_executing_tool:"Hulpmiddel oproep uitvoeren...",ai_assistant_chat_no_internet:"Geen internetverbinding. Controleer je verbinding en probeer het opnieuw.",ai_assistant_chat_history_empty_title:"Nog Geen Gesprekken",ai_assistant_chat_history_empty_subtitle:"Uw AI-agent is klaar - vraag alles en begin het gesprek.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Er ging iets mis aan onze kant. Probeer het opnieuw.",formatting_toolbar_bold:"Vet",formatting_toolbar_italic:"Cursief",formatting_toolbar_underline:"Onderstreept",formatting_toolbar_strikethrough:"Doorgestreept",formatting_toolbar_link:"Link",formatting_toolbar_numbered_list:"Genummerde lijst",formatting_toolbar_bulleted_list:"Opsommingslijst",formatting_toolbar_blockquote:"Citaat",formatting_toolbar_code:"Code",formatting_toolbar_code_block:"Codeblok",formatting_toolbar_insert:"Invoegen",formatting_toolbar_enter_url:"URL invoeren",formatting_toolbar_link_url:"Link-URL",link_dialog_add_link:"Link toevoegen",link_dialog_edit_link:"Link bewerken",link_dialog_save:"Opslaan",link_dialog_text:"Tekst",link_dialog_text_placeholder:"Weergavetekst invoeren",link_dialog_link:"Link",link_url_required:"URL is verplicht",link_popover_close:"Sluiten",link_popover_edit:"Bewerken",link_popover_remove:"Verwijderen",cancel:"Annuleren"},tr:{ai_conversation_starter_error:"Bir şeyler ters gitmiş gibi görünüyor",ai_conversation_summary_title:"Konuşma özeti",ai_conversation_summary_error:"Bir şeyler ters gitmiş gibi görünüyor",ai_conversation_summary_empty:"Özet mevcut değil",ai_smart_replies_title:"Yanıt öner",ai_smart_replies_error:"Bir şeyler ters gitmiş gibi görünüyor",ai_smart_replies_empty:"Öneri mevcut değil",calls_outgoing_call:"Giden Arama",calls_cancelled_call:"Arama İptal Edildi",calls_rejected_call:"Arama Reddedildi",calls_missed_call:"Kaçırılan Arama",calls_ended_call:"Arama Sonlandırıldı",calls_answered_call:"Arama Cevaplandı",calls_unanswered_call:"Cevapsız Arama",calls_incoming_call:"Gelen Arama",calls_busy_call:"Meşgul Arama",moderation_block_message:"Mesajınız moderasyon politikaları nedeniyle engellendi",message_list_join_call:"Katıl",message_list_voice_call:"Sesli arama",message_list_video_call:"Görüntülü arama",message_list_outgoing_call:"Giden Arama",message_list_incoming_call:"Gelen Arama",message_list_cancelled_call:"Arama İptal Edildi",message_list_rejected_call:"Arama Reddedildi",message_list_busy_call:"Meşgul Arama",message_list_ended_call:"Arama Sonlandırıldı",message_list_answered_call:"Arama Cevaplandı",message_list_unasnwered_call:"Cevapsız Arama",message_list_missed_call:"Kaçırılan Arama",conversation_subtitle_voice_call:"Sesli arama",conversation_subtitle_video_call:"Görüntülü arama",conversation_subtitle_outgoing_call:"Giden Arama",conversation_subtitle_incoming_call:"Gelen Arama",conversation_subtitle_cancelled_call:"Arama İptal Edildi",conversation_subtitle_rejected_call:"Arama Reddedildi",conversation_subtitle_busy_call:"Meşgul Arama",conversation_subtitle_ended_call:"Arama Sonlandırıldı",conversation_subtitle_answered_call:"Arama Cevaplandı",conversation_subtitle_unasnwered_call:"Cevapsız Arama",conversation_subtitle_missed_call:"Kaçırılan Arama",conversation_subtitle_group_voice_call_initated_self:"Bir sesli arama başlattınız",conversation_subtitle_group_video_call_initated_self:"Bir görüntülü arama başlattınız",conversation_subtitle_group_voice_call_initated:"sesli arama başlattı",conversation_subtitle_group_video_call_initated:"görüntülü arama başlattı",messsage_composer_collaborative_document:"Ortak Belge",message_list_collaborative_document_title:"Ortak Belge",message_list_collaborative_document_subtitile:"İçeriği birlikte düzenlemek için belgeyi açın",message_list_collaborative_document_open:"Belgeyi Aç",conversation_subtitle_collaborative_document:"Ortak Belge",messsage_composer_collaborative_whiteboard:"Ortak Beyaz Tahta",message_list_collaborative_whiteboard_title:"Ortak Beyaz Tahta",message_collaborative_whiteboard_subtitile:"Birlikte çizim yapmak için beyaz tahtayı açın",messag_list_collaborative_whiteboard_open:"Beyaz Tahtayı Aç",conversation_subtitle_collaborative_whiteboard:"Ortak Beyaz Tahta",call_button_voice_hover:"Sesli arama",call_button_video_hover:"Görüntülü arama",call_logs_title:"Aramalar",call_logs_empty_title:"Henüz Arama Kaydı Yok",call_logs_empty_subtitle:"Arama yapın veya alın, böylece arama geçmişinizi burada görebilirsiniz",call_logs_error_title:"OOPS!",call_logs_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",change_scope_title:"Kapsamı Değiştir",change_scope_subtitle:"Grup izinlerini ve sorumluluklarını yönetmek için grup üyesinin kapsamını değiştirebilirsiniz.",change_scope_confirm_yes:"Kaydet",change_scope_confirm_no:"İptal Et",change_scope_error:"Bir şeyler ters gitmiş gibi görünüyor. Lütfen tekrar deneyin.",member_scope_admin:"Yönetici",member_scope_moderator:"Moderatör",member_scope_participant:"Katılımcı",member_scope_owner:"Sahip",conversation_delete_title:"Konuşmayı Silmek İstiyor Musunuz?",conversation_delete_subtitle:"Bu konuşmayı silmek istiyor musunuz? Bu konuşma tüm cihazlarınızdan silinecek.",conversation_delete_confirm_yes:"Sil",conversation_delete_confirm_no:"İptal Et",conversation_delete_error:"Bir şeyler ters gitmiş gibi görünüyor. Lütfen tekrar deneyin.",conversation_chat_title:"Sohbetler",conversation_delete_icon_hover:"Sil",conversation_subtitle_typing:"Yazıyor...",conversation_subtitle_you_message:"Siz",conversation_subtitle_deleted_message:"Mesaj silindi",conversation_empty_title:"Henüz Konuşma Yok",conversation_empty_subtitle:"Yeni bir sohbet başlatın veya başkalarını davet edin.",conversation_error_title:"OOPS!",conversation_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",conversation_deleted:"Konuşma Silindi",message_deleted:"Bu mesaj silindi",message_composer_edit_message:"Mesajı Düzenle",emoji_search_placeholder:"Emoji Ara",message_list_full_screen_viewer:"Tam Ekran Görüntüleyici",member_search_placeholder:"Ara",member_title:"Grup Üyeleri",member_empty_title:"Grup Üyesi Yok",member_empty_subtitle:"Kontak ekleyin ve onları burada görün.",member_error_title:"OOPS!",member_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",group_title:"Gruplar",group_seach_placeholder:"",group_search_placeholder:"Ara",group_members:"Üyeler",group_member:"Üye",group_empty_title:"Grup Yok",group_empty_subtitle:"Grup oluşturun veya gruplara katılın ve burada görünmeye başlayın",group_error_title:"OOPS!",group_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",message_header_members:"Üyeler",message_header_member:"Üye",incoming_call_subtitle:"Gelen Arama",incoming_call_confirm_yes:"Kabul Et",incoming_call_confirm_no:"Reddet",message_composer_placeholder:"Mesajınızı buraya yazın",message_composer_send_message_icon_hover:"Mesaj Gönder",message_composer_attach_icon_hover:"Ekle",message_composer_voice_notes_icon_hover:"Ses Kaydı",message_composer_emoji_icon_hover:"Emoji",message_composer_mention_limit_warning:"Bir kerede 10 kullanıcıya kadar etiketleyebilirsiniz.",message_composer_wrong_file_type:"Farklı bir dosya türü seçtiniz. Lütfen uygun dosyayı seçin.",file_type_not_allowed:"Bu dosya türüne izin verilmiyor.",message_composer_mention_all:"herkes",message_composer_mention_notify_everyone_label:"Bu gruptaki herkese bildirim gönder",message_header_typing:"Yazıyor...",message_header_status_online:"Çevrimiçi",message_header_status_offline:"Çevrimdışı",message_header_last_seen:"Son Görülme",message_header_at:"şu anda",full_screen_viewer_at:"şu anda",message_header_minute_ago:"bir dakika önce",message_header_minutes_ago:"dakikalar önce",message_header_hour_ago:"bir saat önce",message_header_hours_ago:"saatler önce",message_information_title:"Mesaj Bilgisi",message_information_close_hover:"Kapat",message_information_read:"Okundu",message_information_delivered:"Teslim Edildi",message_information_error:"Bir şeyler ters gitmiş gibi görünüyor. Lütfen tekrar deneyin.",message_information_group_message_receipt_empty:"Alıcıların mesajı almasını ve görüntülemesini bekliyor",flag_message_title:"Mesajı bildir",flag_message_subtitle:"Bu mesajda neyin uygunsuz veya yanlış olduğunu bize bildirin.",flag_message_remark_label:"Sebep",flag_message_remark_optional:"İsteğe bağlı",flag_message_remark_placeholder:"Bu mesajla ilgili endişe verici durumu açıklayın…",flag_message_error:"Bir şeyler ters gitmiş gibi görünüyor",flag_message_character_limit_reached:"Karakter sınırına ulaşıldı.",flag_message_confirm_yes:"Bildir",flag_message_confirm_no:"İptal",flag_message_reason_id_spam:"Spam / İstenmeyen içerik",flag_message_reason_id_sexual:"Açık veya uygunsuz içerik",flag_message_reason_id_harassment:"Hakaret içeren veya tehdit edici davranış",flag_message_reported:"Mesaj bildirildi.",message_list_error_title:"OOPS!",message_list_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",message_list_message_copied:"Mesaj panoya kopyalandı.",message_list_message_deleted:"Mesaj başarıyla silindi.",message_list_new_messages:"yeni mesajlar",message_list_new_message:"Yeni",message_list_message_edited:"Mesaj başarıyla güncellendi.",message_list_message_translated:"Mesaj başarıyla çevrildi.",message_list_thread_reply:"Yanıtla",message_list_thread_replies:"Yanıtlar",calls_outgoing:"Aranıyor...",reaction_reacted:"tepki verdi",reaction_popup_and:"ve",reaction_popup_others:"diğerleri",reaction_popup_you:"Sen",reaction_list_all:"Hepsi",reaction_list_click_to_remove:"Kaldırmak için tıklayın",reaction_list_you:"Sen",reaction_list_error:"Bir şeyler ters gitmiş gibi görünüyor. Lütfen tekrar deneyin.",search_placeholder:"Ara",text_message_read_more:"Daha fazla oku",text_message_show_less:"Daha az göster",thread_title:"Konu",thread_close_hover:"Kapat",thread_replies:"Yanıtlar",thread_reply:"Yanıtla",user_title:"Kullanıcılar",user_search_placeholder:"Ara",user_empty_title:"Kullanıcı Bulunamadı",user_empty_subtitle:"Aramanıza uyan kullanıcılar bulunamadı. Aramanızı ayarlamayı deneyin.",user_error_title:"OOPS!",user_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",conversation_start:"Konuşmaya başlamak için tıklayın",conversation_message_deleted:"Mesaj silindi",conversation_subtitle_image:"Resim",conversation_subtitle_file:"Dosya",conversation_subtitle_video:"Video",conversation_subtitle_audio:"Ses",conversation_subtitle_added:"eklendi",conversation_subtitle_joined:"katıldı",conversation_subtitle_left:"ayrıldı",conversation_subtitle_kicked:"atıldı",conversation_subtitle_banned:"yasaklandı",conversation_subtitle_unbanned:"yasaklama kaldırıldı",conversation_subtitle_made:"yapıldı",polls_title:"Anket Oluştur",polls_question:"Soru",polls_question_placeholder:"Soru sor",polls_options:"Seçenekler",polls_add_placeholder:"Ekle",polls_add_option_button:"Seçenek Ekle",polls_limit_reached:"Sınırına ulaştınız. 12 seçeneğe kadar ekleyebilirsiniz.",polls_required_fields_warning:"Lütfen anket oluşturulmadan önce tüm gerekli alanları doldurun.",polls_error:"Bir şeyler ters gitmiş gibi görünüyor. Lütfen tekrar deneyin.",polls_create_button:"Oluştur",members_remove:"At",members_block:"Yasakla",members_change_role:"Kapsamı Değiştir",message_text_translated:"Metin Çevrildi",message_list_translate:"Çevir",message_list_option_edit:"Düzenle",message_list_option_delete:"Sil",message_list_option_react:"Tepki Ver",message_list_option_reply_in_thread:"Konu içinde yanıtla",message_list_option_reply_to_message:"Yanıtla",message_list_option_reply:"",message_list_option_message_privately:"Özel Mesaj Gönder",message_list_option_copy:"Kopyala",message_list_option_info:"Bilgi",message_list_option_mark_as_unread:"Okunmadı olarak işaretle",message_list_option_flag_message:"Bildir",message_list_action_edited:"Düzenlendi",message_list_action_added:"eklendi",message_list_action_joined:"katıldı",message_list_action_left:"ayrıldı",message_list_action_kicked:"atıldı",message_list_action_banned:"yasaklandı",message_list_action_unbanned:"yasaklama kaldırıldı",message_list_action_made:"yapıldı",message_composer_attach_image:"Resim Ekle",message_composer_attach_video:"Video Ekle",message_composer_attach_audio:"Ses Ekle",message_composer_attach_file:"Dosya Ekle",message_composer_polls:"Anketler",conversation_subtitle_poll:"Anket",message_composer_sticker_hover:"Çıkartma",conversation_subtitle_sticker:"Çıkartma",sticker_error:"Bir şeyler ters gitmiş gibi görünüyor",sticker_empty:"Hiç Çıkartma Yok",emoji_smiley_people:"Gülücükler & İnsanlar",emoji_animals_nature:"Hayvanlar & Doğa",emoji_food_drinks:"Yemek & İçecek",emoji_activity:"Aktivite",emoji_travel_places:"Seyahat & Yerler",emoji_objects:"Nesneler",emoji_symbols:"Semboller",emoji_flags:"Bayraklar",today:"Bugün",yesterday:"Dün",weekday_sunday_full:"Pazar",weekday_monday_full:"Pazartesi",weekday_tuesday_full:"Salı",weekday_wednesday_full:"Çarşamba",weekday_thursday_full:"Perşembe",weekday_friday_full:"Cuma",weekday_saturday_full:"Cumartesi",weekday_sunday_short:"Pazar",weekday_monday_short:"Pzt",weekday_tuesday_short:"Sal",weekday_wednesday_short:"Çar",weekday_thursday_short:"Per",weekday_friday_short:"Cum",weekday_saturday_short:"Cmt",weekday_sunday_min:"Pz",weekday_monday_min:"Pt",weekday_tuesday_min:"Sa",weekday_wednesday_min:"Ça",weekday_thursday_min:"Pe",weekday_friday_min:"Cu",weekday_saturday_min:"Ct",month_january_short:"Oca",month_february_short:"Şub",month_march_short:"Mar",month_april_short:"Nis",month_may_short:"May",month_june_short:"Haz",month_july_short:"Tem",month_august_short:"Ağu",month_september_short:"Eyl",month_october_short:"Eki",month_november_short:"Kas",month_december_short:"Ara",month_january_full:"Ocak",month_february_full:"Şubat",month_march_full:"Mart",month_april_full:"Nisan",month_may_full:"Mayıs",month_june_full:"Haziran",month_july_full:"Temmuz",month_august_full:"Ağustos",month_september_full:"Eylül",month_october_full:"Ekim",month_november_full:"Kasım",month_december_full:"Aralık",message_type_not_supported:"Bu mesaj türü desteklenmemektedir.",message_list_message_already_translated:"Çeviri için seçilen dil, orijinal mesajın diliyle benzer.",media_recorder_error_title:"Mikrofon Erişimi Gerekli",media_recorder_error_subtitle:"Mikrofonunuza erişemedik. Kayıt başlatmak için lütfen mikrofon izni verin.",media_recorder_permission_dismiss:"Anlaşıldı",search_title:"Ara",search_empty_title:"Aramanıza Başlayın",search_empty_subtitle:"Yukarıya bir anahtar kelime yazarak konuşmalar veya mesajlar arayın.",search_no_result_title:"Sonuç Yok",search_result_see_more:"Daha fazla göster",search_messages_header:"Mesajlar",search_filter_unread:"Okunmamış",search_filter_groups:"Gruplar",search_filter_photos:"Fotoğraflar",search_filter_videos:"Videolar",search_filter_links:"Bağlantılar",search_filter_documents:"Belgeler",search_filter_audio:"Ses",search_filter_messages:"Mesajlar",search_filter_conversations:"Konuşmalar",search_no_result_subtitle:"Eşleşme bulunamadı. Lütfen farklı bir arama kelimesi deneyin.",search_conversation_header:"Konuşmalar",search_message_subtitle_you:"Sen",search_message_title_you:"Sen",search_error_title:"OOPS!",search_error_subtitle:"Bir şeyler ters gitmiş gibi görünüyor",ai_assistant_chat_intro_message:"Yardımcı olmak için buradayım!",ai_assistant_chat_composer_placeholder:"Herhangi bir şey sor",ai_assistant_chat_new_chat:"Yeni Sohbet",ai_assistant_chat_history:"sohbet geçmişi",ai_assistant_chat_history_title:"Sohbet Geçmişi",ai_assistant_chat_thinking:"Düşünüyorum…",ai_assistant_chat_executing_tool:"Araç çağrısı yürütülüyor...",ai_assistant_chat_no_internet:"İnternet bağlantısı yok. Bağlantınızı kontrol edin ve tekrar deneyin.",ai_assistant_chat_history_empty_title:"Henüz Konuşma Yok",ai_assistant_chat_history_empty_subtitle:"AI ajanınız hazır - herhangi bir şey sorun ve sohbeti başlatın.",ai_assistant_chat_history_error_title:"OOPS!",ai_assistant_chat_history_error_subtitle:"Bizim tarafımızda bir sorun oluştu. Lütfen tekrar deneyin.",formatting_toolbar_bold:"Kalın",formatting_toolbar_italic:"İtalik",formatting_toolbar_underline:"Altı çizili",formatting_toolbar_strikethrough:"Üstü çizili",formatting_toolbar_link:"Bağlantı",formatting_toolbar_numbered_list:"Numaralı liste",formatting_toolbar_bulleted_list:"Madde işaretli liste",formatting_toolbar_blockquote:"Alıntı",formatting_toolbar_code:"Kod",formatting_toolbar_code_block:"Kod bloğu",formatting_toolbar_insert:"Ekle",formatting_toolbar_enter_url:"URL girin",formatting_toolbar_link_url:"Bağlantı URL'si",link_dialog_add_link:"Bağlantı ekle",link_dialog_edit_link:"Bağlantıyı düzenle",link_dialog_save:"Kaydet",link_dialog_text:"Metin",link_dialog_text_placeholder:"Görüntüleme metni girin",link_dialog_link:"Bağlantı",link_url_required:"URL gereklidir",link_popover_close:"Kapat",link_popover_edit:"Düzenle",link_popover_remove:"Kaldır",cancel:"İptal"}},G.localizationSettings={},G.calendarObject={},G.disableAutoDetection=!1,G.disableDateTimeLocalization=!1,G.defaultTimezones={"en-US":"America/New_York","en-GB":"Europe/London",ru:"Europe/Moscow",fr:"Europe/Paris",de:"Europe/Berlin",zh:"Asia/Shanghai","zh-TW":"Asia/Taipei",es:"Europe/Madrid",hi:"Asia/Kolkata",ms:"Asia/Kuala_Lumpur",pt:"Europe/Lisbon",sv:"Europe/Stockholm",lt:"Europe/Vilnius",hu:"Europe/Budapest",it:"Europe/Rome",ja:"Asia/Tokyo",ko:"Asia/Seoul",nl:"Europe/Amsterdam",tr:"Europe/Istanbul"},G.getLocalizedString=e=>{let t=B.getCurrentLanguage();return e&&B.translations[t][e]&&""!=B.translations[t][e]?B.translations[t][e]:(B.localizationSettings.missingKeyHandler&&B.localizationSettings.missingKeyHandler(e),"")};const V=e=>G.getLocalizedString(e),H=e=>{const{searchText:t="",placeholderText:n=V("search_placeholder"),onChange:o=({value:e=""})=>{}}=e,{searchValue:i,onInputChange:s}=(({searchText:e="",onChange:t=({value:e=""})=>{}})=>{const[n,r]=a.useState(e);return{searchValue:n,onInputChange:a.useCallback(e=>{r(e.target.value),t({value:e.target.value})},[])}})({searchText:t,onChange:o});return r.jsx("div",{className:"cometchat",style:{height:"inherit",width:"inherit"},children:r.jsxs("div",{className:"cometchat-search-bar",children:[r.jsx("div",{className:"cometchat-search-bar__icon"}),r.jsx("input",{className:"cometchat-search-bar__input",onChange:s,placeholder:n,value:i})]})})},z=a.createContext({iframeDocument:null,iframeWindow:null,iframe:null}),Y=()=>{const e=a.useContext(z);if(void 0===e)throw new Error("useCometChatFrameContext must be used within a CometChatFrameProvider");return e};function q(e,t){let n;const r=t[e];if("function"==typeof r){const e=r.call(t);n=String(void 0===e&&t?.id?t?.id:e)}else n=String(r);return n}const K=(0,a.memo)(function(e){const{hideSearch:n=!1,searchText:i="",onSearch:s,searchPlaceholderText:c="Search",list:d,itemView:p,showSectionHeader:h=!0,sectionHeaderKey:m,listItemKey:g,onScrolledToBottom:f,onScrolledToTop:_,state:b,loadingView:v,hideError:y=!1,errorView:E,emptyView:C,scrollToBottom:S=!1,onError:w,scrolledUpCallback:k,headerView:x,title:T="",searchView:A,onSearchBarClicked:R,showShimmerOnTop:I=!1,showScrollbar:O=!1,scrollToEnd:N=!1,observeScrollFromViewport:M=!1}=e,D=a.useRef(null),L=a.useRef(null),P=a.useRef(null),j=a.useRef(!1),U=a.useRef(null),F=a.useRef([0,0]),B=a.useRef(!1),G=l(_),V=l(f),z=l(s),K=u(w),W=Y(),J=()=>W?.iframeWindow||window,Z=e=>{const t=e.value;null!==U.current&&J().clearTimeout(U.current),U.current=J().setTimeout(()=>{z.current?.(t),U.current=null},500)};function $(){return n&&!A?null:r.jsx("div",{className:"cometchat-list__header-search-bar",onClick:()=>{!A&&R&&R()},children:A||r.jsx(H,{onChange:Z,searchText:i,placeholderText:c})})}function Q(){return r.jsx("div",{className:"cometchat-list__loading-view "+(I?"cometchat-list__loading-view-top":""),children:v})}return a.useEffect(()=>{if(N&&D.current){const e=D.current;e.scrollTop=e.scrollHeight}},[N]),function(e){const{intersectionObserverRootRef:t,intersectionObserverBottomTargetRef:n,intersectionObserverTopTargetRef:r,onScrolledToBottomRef:o,onScrolledToTopRef:i,scrollToBottom:s,didComponentScrollToBottomRef:c,scrollHeightTupleRef:l,didTopObserverCallbackRunRef:u,errorHandler:d,scrolledUpCallback:p,observeScrollFromViewport:h=!1}=e;a.useEffect(()=>{if(!t.current||!n.current)return;let e=!1;const r=t.current,a=n.current,i=new IntersectionObserver(async function(t){const n=t[0];if(n&&p&&p(n.isIntersecting),c.current&&n.isIntersecting&&(c.current=!1),!(!n.isIntersecting||e||!h&&r.scrollHeight<=r.clientHeight)){e=!0;try{await Promise.all([o.current?.()])}catch(e){d(e)}e=!1}},{root:h?null:r,threshold:.1});return i.observe(a),()=>{i.unobserve(a)}},[d,c,n,t,o,p,h]),a.useEffect(()=>{if(!t.current||!r.current)return;let e=!1;const n=t.current,a=r.current,o=new IntersectionObserver(async function(t){if(!(!t[0].isIntersecting||e||n.scrollHeight<=n.clientHeight)){e=!0;try{await Promise.all([i.current?.()])}catch(e){d(e)}e=!1,u.current=!0}},{root:n,threshold:.1});return o.observe(a),()=>{o.unobserve(a)}},[d,u,t,r,i]),a.useEffect(()=>{t.current&&(t.current.scrollHeight>t.current.clientHeight?0!==Math.round(t.current.scrollHeight-l.current[1])&&(l.current[0]=l.current[1],l.current[1]=t.current.scrollHeight,!s&&u.current&&0!==l.current[0]&&(t.current.scrollTop=Math.max(l.current[1]-l.current[0],0))):(l.current[0]=0,l.current[1]=0),u.current&&(u.current=!1))}),a.useEffect(()=>{setTimeout(()=>{const e=t.current,r=s&&(e?.scrollHeight??0)>(e?.clientHeight??0)&&null!==n.current;e&&r&&setTimeout(()=>{c.current=!0,e&&(e.scrollTop=e.scrollHeight)},50)})})}({intersectionObserverRootRef:D,intersectionObserverBottomTargetRef:P,onScrolledToBottomRef:V,onScrolledToTopRef:G,intersectionObserverTopTargetRef:L,scrollToBottom:S,didComponentScrollToBottomRef:j,scrollHeightTupleRef:F,didTopObserverCallbackRunRef:B,errorHandler:K,scrolledUpCallback:k,observeScrollFromViewport:M}),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsxs("div",{className:"cometchat-list "+(O?"":" cometchat-list-hide-scrollbar"),children:[x||T||$()?r.jsxs("div",{className:"cometchat-list__header",children:[x??null,!x&&T?r.jsx("div",{className:"cometchat-list__header-title",children:T}):null,$()]}):null,r.jsxs("div",{ref:D,className:"cometchat-list__body",children:[r.jsx("div",{ref:L,className:"cometchat-list__body-intersection-top",style:{height:"1px",minHeight:"1px"}}),function(){if(b===t.DGz.loading&&0===d.length||b===t.DGz.empty||b===t.DGz.error)return null;let e="";return d.map((t,n)=>{let a=null;if(h){let n;void 0===m?(K(new o.CometChat.CometChatException({code:"ERROR",name:"Error",message:"'sectionHeaderKey' prop must be provided when 'showSectionHeader' prop is set to true. 'showSectionHeader' is set to be true by default"})),n=" "):n=(q(m,t)||" ")[0].toUpperCase();let i=null;e&&e===n||(i=r.jsx("div",{className:"cometchat-list__section-header",children:n}),e=n),a=r.jsx("div",{className:"cometchat-list__section",children:i})}return r.jsxs("div",{className:"cometchat-list__item-wrapper",children:[a,p(t,n)]},g?q(g,t):n)})}(),I?Q():function(){let e=null;switch(b){case t.DGz.loading:0===d.length&&(e=Q());break;case t.DGz.error:e=y?null:r.jsx("div",{className:"cometchat-list__error-view",children:E});break;case t.DGz.empty:e=r.jsx("div",{className:"cometchat-list__empty-view",children:C});case t.DGz.loaded:}return e}(),r.jsx("div",{ref:P,className:"cometchat-list__body-intersection-bottom",style:{height:"1px",minHeight:"1px"}})]})]})})}),W=e=>{const{image:t="",name:n=""}=e,a=n.split(" ");return r.jsx("div",{className:"cometchat",style:{height:"inherit",width:"inherit",display:"flex",justifyContent:"center",alignItems:"center"},children:r.jsx("div",{className:"cometchat-avatar",children:t?r.jsx("img",{src:t,className:"cometchat-avatar__image"}):r.jsx("span",{className:"cometchat-avatar__text",children:a.length&&a.length>1?a[0].substring(0,1).toUpperCase()+a[1].substring(0,1).toUpperCase():n.substring(0,2).toUpperCase()})})})},J=e=>{const{id:t="",avatarURL:n="",avatarName:o="",title:i="",onListItemClicked:s=()=>{},menuView:c,subtitleView:l,trailingView:u,titleView:d,leadingView:p,stopEventPropagation:h=!1}=e,[m,g]=a.useState(!1),f=a.useRef(null),{listItemClick:_,isHovering:b,hideTail:v,showTail:y}=(({id:e="",onListItemClicked:t=({id:e=""})=>{},menuRef:n})=>{const[r,o]=a.useState(!1),i=Y(),s=()=>i?.iframeDocument||document;return a.useEffect(()=>{const e=e=>{r&&n.current&&!n.current.contains(e.target)&&o(!1)};return r?s().addEventListener("click",e):s().removeEventListener("click",e),()=>s().removeEventListener("click",e)},[r]),{listItemClick:n=>{n&&n?.stopPropagation&&n.stopPropagation(),t({id:e,shiftKey:n?.shiftKey,metaKey:n?.metaKey})},isHovering:r,showTail:()=>{o(!0)},hideTail:()=>{o(!1)}}})({onListItemClicked:s,id:t,menuRef:f});return r.jsx("div",{className:"cometchat",style:{width:"100%",height:"fit-content"},children:r.jsxs("div",{onMouseEnter:()=>{y(),g(!0)},onMouseLeave:()=>{v(),g(!1)},className:"cometchat-list-item",id:t,onClick:_,children:[p||(o?.trim()?.length>0||n?.trim()?.length>0?r.jsxs("div",{className:"cometchat-list-item__leading-view",children:[r.jsx(W,{image:n,name:o}),r.jsx("div",{className:"cometchat-status-indicator cometchat-list-item__status",children:r.jsx("div",{className:"cometchat-list-item__status-icon"})})]}):null),r.jsxs("div",{className:"cometchat-list-item__body",children:[r.jsxs("div",{className:"cometchat-list-item__title-container",children:[d??r.jsx("div",{className:"cometchat-list-item__body-title",children:i}),r.jsx("div",{className:"cometchat-list-item__body-subtitle",children:l})]}),r.jsx("div",{onClick:e=>{e?.stopPropagation&&h&&e.stopPropagation()},className:!b||b&&!c?"cometchat-list-item__trailing-view":"cometchat-list-item__trailing-view-hidden",children:u}),r.jsx("div",{ref:f,className:b&&c?"cometchat-list-item__menu-view":"cometchat-list-item__trailing-view-hidden",onClick:e=>{e?.stopPropagation&&e.stopPropagation()},children:m&&c?c:null})]})]})})},Z=e=>{const{checked:t=!1,name:n="name",labelText:o="",disabled:i=!1,id:s="",onRadioButtonChanged:c=()=>{}}=e,[l,u]=a.useState(t);a.useEffect(()=>{u(t)},[t]);const{updateRadioState:d}=(({checked:e=!1,onRadioButtonChanged:t=e=>{},id:n="",name:r="name"})=>{const o=Y(),i=()=>o?.iframeDocument||document;return a.useEffect(()=>{i().getElementsByName(r).forEach(t=>{t.value===n&&1==e&&(t.checked=!0)})},[e,r,n]),{updateRadioState:a.useCallback(e=>{i().getElementsByName(r).forEach(t=>{t.value===n?t.checked=e.target?.checked:t.checked=!e.target?.checked}),t({checked:e.target?.checked,labelText:e.target.labels?.[0].innerText,id:n})},[n])}})({checked:t,onRadioButtonChanged:c,id:s,name:n});return r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-radiobutton",children:r.jsxs("label",{className:"cometchat-radiobutton__label",children:[r.jsx("input",{type:"radio",name:n,onChange:d,disabled:i,value:s}),r.jsx("span",{className:"cometchat-radiobutton__selected"}),o]})})})};class ${constructor(e){const{searchText:t,usersRequestBuilder:n,searchRequestBuilder:r,usersSearchText:a}=e;let o=n||this.getDefaultRequestBuilder();t&&r?(o=r,o.setSearchKeyword(t)):t&&!r&&n?(o=n,o.setSearchKeyword(t)):!t&&n&&r?(o=n,o.setSearchKeyword(a.current)):t||!n||r?t||n||!r?o.setSearchKeyword(t):(o=this.getDefaultRequestBuilder(),o.setSearchKeyword(a.current)):(o=n,o.setSearchKeyword(a.current)),this.usersRequest=o.build()}getDefaultRequestBuilder(){return(new o.CometChat.UsersRequestBuilder).setLimit($.defaultLimit)}fetchNext(){return this.usersRequest.fetchNext()}getCurrentPage(){return this.usersRequest.pagination.current_page}static attachConnestionListener(e){const t="UsersList_connection_"+String(Date.now());return o.CometChat.addConnectionListener(t,new o.CometChat.ConnectionListener({onConnected:()=>{e&&e()},onDisconnected:()=>{}})),()=>o.CometChat.removeConnectionListener(t)}}$.defaultLimit=30;var Q=function(e,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Q(e,t)};function X(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ee(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function te(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function re(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function ae(e){return this instanceof ae?(this.v=e,this):new ae(e)}function oe(e){return"function"==typeof e}function ie(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var se=ie(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function ce(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var le=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var i=te(o),s=i.next();!s.done;s=i.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(oe(c))try{c()}catch(e){a=e instanceof se?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=te(l),d=u.next();!d.done;d=u.next()){var p=d.value;try{pe(p)}catch(e){a=null!=a?a:[],e instanceof se?a=re(re([],ne(a)),ne(e.errors)):a.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(a)throw new se(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ce(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ce(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ue=le.EMPTY;function de(e){return e instanceof le||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function pe(e){oe(e)?e():e.unsubscribe()}var he={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=he.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,re([e,t],ne(n))):setTimeout.apply(void 0,re([e,t],ne(n)))},clearTimeout:function(e){var t=he.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function me(e){he.setTimeout(function(){throw e})}function ge(){}function fe(e){e()}var _e=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,de(t)&&t.add(n)):n.destination=Ee,n}return X(t,e),t.create=function(e,t,n){return new ve(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(le);Function.prototype.bind;var be=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ye(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ye(e)}else ye(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ye(e)}},e}(),ve=function(e){function t(t,n,r){var a,o=e.call(this)||this;return a=oe(t)||!t?{next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:t,o.destination=new be(a),o}return X(t,e),t}(_e);function ye(e){me(e)}var Ee={closed:!0,next:ge,error:function(e){throw e},complete:ge},Ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Se(e){return e}var we=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,a=this,o=(r=e)&&r instanceof _e||function(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(r)&&de(r)?e:new ve(e,t,n);return fe(function(){var e=a,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?a._subscribe(o):a._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ke(t))(function(t,r){var a=new ve({next:function(t){try{e(t)}catch(e){r(e),a.unsubscribe()}},error:r,complete:t});n.subscribe(a)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ce]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Se:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ke(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function ke(e){var t;return null!==(t=null!=e?e:undefined)&&void 0!==t?t:Promise}function xe(e){return function(t){if(function(e){return oe(null==e?void 0:e.lift)}(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(e,t,n,r,a){return new Ae(e,t,n,r,a)}var Ae=function(e){function t(t,n,r,a,o,i){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=i,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=a?function(e){try{a(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return X(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(_e),Re=ie(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ie=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return X(t,e),t.prototype.lift=function(e){var t=new Oe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Re},t.prototype.next=function(e){var t=this;fe(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var a=te(t.currentObservers),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;fe(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;fe(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,o=n.observers;return r||a?ue:(this.currentObservers=null,o.push(e),new le(function(){t.currentObservers=null,ce(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,a=t.isStopped;n?e.error(r):a&&e.complete()},t.prototype.asObservable=function(){var e=new we;return e.source=this,e},t.create=function(e,t){return new Oe(e,t)},t}(we),Oe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return X(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:ue},t}(Ie),Ne=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return X(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ie),Me={now:function(){return(Me.delegate||Date).now()},delegate:void 0},De=function(e){function t(t,n){return e.call(this)||this}return X(t,e),t.prototype.schedule=function(e,t){return this},t}(le),Le={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=Le.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,re([e,t],ne(n))):setInterval.apply(void 0,re([e,t],ne(n)))},clearInterval:function(e){var t=Le.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return X(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),Le.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&Le.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ce(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(De),je=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=Me.now,e}(),Ue=new(function(e){function t(t,n){void 0===n&&(n=je.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return X(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(je))(Pe),Fe=Ue,Be=new we(function(e){return e.complete()});function Ge(e){return e&&oe(e.schedule)}function Ve(e){return Ge((t=e)[t.length-1])?e.pop():void 0;var t}var He=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ze(e){return oe(null==e?void 0:e.then)}function Ye(e){return oe(e[Ce])}function qe(e){return Symbol.asyncIterator&&oe(null==e?void 0:e[Symbol.asyncIterator])}function Ke(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var We,Je="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ze(e){return oe(null==e?void 0:e[Je])}function $e(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),r[Symbol.asyncIterator]=function(){return this},r;function i(e,t){a[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{!function(e){e.value instanceof ae?Promise.resolve(e.value.v).then(c,l):u(o[0][2],e)}(a[e](t))}catch(e){u(o[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function(){var t,n,r;return ee(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ae(t.read())];case 3:return n=a.sent(),r=n.value,n.done?[4,ae(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ae(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Qe(e){return oe(null==e?void 0:e.getReader)}function Xe(e){if(e instanceof we)return e;if(null!=e){if(Ye(e))return a=e,new we(function(e){var t=a[Ce]();if(oe(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(He(e))return r=e,new we(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()});if(ze(e))return n=e,new we(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,me)});if(qe(e))return et(e);if(Ze(e))return t=e,new we(function(e){var n,r;try{for(var a=te(t),o=a.next();!o.done;o=a.next()){var i=o.value;if(e.next(i),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}e.complete()});if(Qe(e))return et($e(e))}var t,n,r,a;throw Ke(e)}function et(e){return new we(function(t){(function(e,t){var n,r,a,o;return function(e,t,n,r){return new(n||(n=Promise))(function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function i(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(o,i)}s((r=r.apply(e,[])).next())})}(this,0,void 0,function(){var i,s;return ee(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=te(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,a,(t=e[n](t)).done,t.value)})}}}(e),c.label=1;case 1:return[4,n.next()];case 2:if((r=c.sent()).done)return[3,4];if(i=r.value,t.next(i),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),a={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function tt(e,t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=!1);var o=t.schedule(function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!a)return o}function nt(e,t){return void 0===t&&(t=0),xe(function(n,r){n.subscribe(Te(r,function(n){return tt(r,e,function(){return r.next(n)},t)},function(){return tt(r,e,function(){return r.complete()},t)},function(n){return tt(r,e,function(){return r.error(n)},t)}))})}function rt(e,t){return void 0===t&&(t=0),xe(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function at(e,t){if(!e)throw new Error("Iterable cannot be null");return new we(function(n){tt(n,t,function(){var r=e[Symbol.asyncIterator]();tt(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function ot(e,t){return t?function(e,t){if(null!=e){if(Ye(e))return function(e,t){return Xe(e).pipe(rt(t),nt(t))}(e,t);if(He(e))return function(e,t){return new we(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(ze(e))return function(e,t){return Xe(e).pipe(rt(t),nt(t))}(e,t);if(qe(e))return at(e,t);if(Ze(e))return function(e,t){return new we(function(n){var r;return tt(n,t,function(){r=e[Je](),tt(n,t,function(){var e,t,a;try{t=(e=r.next()).value,a=e.done}catch(e){return void n.error(e)}a?n.complete():n.next(t)},0,!0)}),function(){return oe(null==r?void 0:r.return)&&r.return()}})}(e,t);if(Qe(e))return function(e,t){return at($e(e),t)}(e,t)}throw Ke(e)}(e,t):Xe(e)}function it(e,t){return xe(function(n,r){var a=0;n.subscribe(Te(r,function(n){r.next(e.call(t,n,a++))}))})}function st(e,t,n){return void 0===n&&(n=1/0),oe(t)?st(function(n,r){return it(function(e,a){return t(n,e,r,a)})(Xe(e(n,r)))},n):("number"==typeof t&&(n=t),xe(function(t,r){return function(e,t,n,r){var a=[],o=0,i=0,s=!1,c=function(){!s||a.length||o||t.complete()},l=function(e){o++;var s=!1;Xe(n(e,i++)).subscribe(Te(t,function(e){t.next(e)},function(){s=!0},void 0,function(){if(s)try{o--;for(var e=function(){var e=a.shift();l(e)};a.length&&o<r;)e();c()}catch(e){t.error(e)}}))};return e.subscribe(Te(t,function(e){return o<r?l(e):a.push(e)},function(){s=!0,c()})),function(){}}(t,r,e,n)}))}function ct(e){return e<=0?function(){return Be}:xe(function(t,n){var r=0;t.subscribe(Te(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function lt(e,t){return t?function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){return void 0===(e=1)&&(e=1/0),st(Se,e);var e}()(ot(e,Ve(e)))}(t.pipe(ct(1),xe(function(e,t){e.subscribe(Te(t,ge))})),n.pipe(lt(e)))}:st(function(t,n){return Xe(e(t,n)).pipe(ct(1),function(e){return it(function(){return e})}(t))})}class ut{static publishEvent(e,t){e.next(t)}}ut.ccUserBlocked=new Ie,ut.ccUserUnblocked=new Ie;class dt{static setLoggedInUser(e){this.loggedInUser=e}static getLoggedInUser(){return this.loggedInUser}static removeLoggedInUser(){this.loggedInUser=null}static attachListener(){this.isAttached&&(this.removeListener(),this.isAttached=!1,this.listenerID=""),this.listenerID=`CometChatLoginListener_${(new Date).getTime()}`,o.CometChat.addLoginListener(this.listenerID,new o.CometChat.LoginListener({loginSuccess:e=>{this.setLoggedInUser(e)},logoutSuccess:()=>{this.removeLoggedInUser()}})),this.isAttached=!0}static removeListener(){this.isAttached&&(o.CometChat.removeLoginListener(this.listenerID),this.isAttached=!1,this.listenerID="")}}dt.loggedInUser=null,dt.listenerID="",dt.isAttached=!1;class pt{}pt.MessageCategory=Object.freeze({message:o.CometChat.CATEGORY_MESSAGE,custom:o.CometChat.CATEGORY_CUSTOM,action:o.CometChat.CATEGORY_ACTION,call:o.CometChat.CATEGORY_CALL,interactive:o.CometChat.CATEGORY_INTERACTIVE,agentic:o.CometChat.MessageCategory.AGENTIC}),pt.moderationStatus=Object.freeze({pending:o.CometChat.ModerationStatus.PENDING,approved:o.CometChat.ModerationStatus.APPROVED,disapproved:o.CometChat.ModerationStatus.DISAPPROVED,unmoderated:o.CometChat.ModerationStatus.UNMODERATED}),pt.MessageTypes=Object.freeze({text:o.CometChat.MESSAGE_TYPE.TEXT,file:o.CometChat.MESSAGE_TYPE.FILE,image:o.CometChat.MESSAGE_TYPE.IMAGE,audio:o.CometChat.MESSAGE_TYPE.AUDIO,video:o.CometChat.MESSAGE_TYPE.VIDEO,delete:"delete",edited:"edited",groupMember:"groupMember",form:"form",card:"card",customInteractive:"customInteractive",scheduler:"scheduler",assistant:o.CometChat.MESSAGE_TYPE.ASSISTANT,toolArguments:o.CometChat.MESSAGE_TYPE.TOOL_ARGUMENTS,toolResults:o.CometChat.MESSAGE_TYPE.TOOL_RESULT}),pt.groupMemberAction=Object.freeze({ROLE:"role",BLOCK:"block",REMOVE:"remove",JOINED:o.CometChat.ACTION_TYPE.MEMBER_JOINED,LEFT:o.CometChat.ACTION_TYPE.MEMBER_LEFT,ADDED:o.CometChat.ACTION_TYPE.MEMBER_ADDED,BANNED:o.CometChat.ACTION_TYPE.MEMBER_BANNED,UNBANNED:o.CometChat.ACTION_TYPE.MEMBER_UNBANNED,KICKED:o.CometChat.ACTION_TYPE.MEMBER_KICKED,INVITED:o.CometChat.ACTION_TYPE.MEMBER_INVITED,SCOPE_CHANGE:o.CometChat.ACTION_TYPE.MEMBER_SCOPE_CHANGED}),pt.MessageReceiverType=Object.freeze({user:o.CometChat.RECEIVER_TYPE.USER,group:o.CometChat.RECEIVER_TYPE.GROUP}),pt.userStatusType=Object.freeze({online:o.CometChat.USER_STATUS.ONLINE,offline:o.CometChat.USER_STATUS.OFFLINE}),pt.MessageOption=Object.freeze({editMessage:"edit",deleteMessage:"delete",replyMessage:"reply",replyInThread:"replyInThread",translateMessage:"translate",reactToMessage:"react",messageInformation:"messageInformation",markAsUnread:"markAsUnread",flagMessage:"flagMessage",copyMessage:"copy",shareMessage:"share",forwardMessage:"forward",sendMessagePrivately:"sendMessagePrivately",replyMessagePrivately:"replyMessagePrivately"}),pt.GroupOptions=Object.freeze({leave:"leave",delete:"delete",viewMembers:"viewMembers",addMembers:"addMembers",bannedMembers:"bannedMembers"}),pt.GroupMemberOptions=Object.freeze({kick:"kick",ban:"ban",unban:"unban",changeScope:"changeScope"}),pt.groupMemberScope=Object.freeze({owner:"owner",admin:o.CometChat.GROUP_MEMBER_SCOPE.ADMIN,participant:o.CometChat.GROUP_MEMBER_SCOPE.PARTICIPANT,moderator:o.CometChat.GROUP_MEMBER_SCOPE.MODERATOR}),pt.UserOptions=Object.freeze({block:"block",unblock:"unblock",viewProfile:"viewProfile"}),pt.ConversationOptions=Object.freeze({delete:"delete"}),pt.GroupTypes=Object.freeze({private:o.CometChat.GROUP_TYPE.PRIVATE,password:o.CometChat.GROUP_TYPE.PASSWORD,public:o.CometChat.GROUP_TYPE.PUBLIC}),pt.liveReaction=Object.freeze({timeout:1500}),pt.messages=Object.freeze({MESSAGE_DELIVERED:"onMessagesDelivered",MESSAGE_READ:"onMessagesRead",MESSAGE_DELETED:"onMessageDeleted",MESSAGE_EDITED:"onMessageEdited",MESSAGE_SENT:"messageSent",TEXT_MESSAGE_RECEIVED:"onTextMessageReceived",MEDIA_MESSAGE_RECEIVED:"onMediaMessageReceived",CUSTOM_MESSAGE_RECEIVED:"onCustomMessageReceived",TRANSIENT_MESSAGE_RECEIVED:"onTransientMessageReceived",INTERACTIVE_MESSAGE_RECEIVED:"onInteractiveMessageReceived",DELIVERY:"delivery",READ:"read",APP_SYSTEM:"app_system",MESSAGE_REACTION_ADDED:"onMessageReactionAdded",MESSAGE_REACTION_REMOVED:"onMessageReactionRemoved"}),pt.details=Object.freeze({primary:"primary",secondary:"secondary"}),pt.calls=Object.freeze({meeting:"meeting",ongoing:o.CometChat.CALL_STATUS.ONGOING,ended:o.CometChat.CALL_STATUS.ENDED,initiated:o.CometChat.CALL_STATUS.INITIATED,cancelled:o.CometChat.CALL_STATUS.CANCELLED,rejected:o.CometChat.CALL_STATUS.REJECTED,unanswered:o.CometChat.CALL_STATUS.UNANSWERED,busy:o.CometChat.CALL_STATUS.BUSY,activecall:"cometchat:activecall",default:o.CometChat.CALL_MODE.DEFAULT,grid:o.CometChat.CALL_MODE.GRID,single:o.CometChat.CALL_MODE.SINGLE,spotlight:o.CometChat.CALL_MODE.SPOTLIGHT,tile:o.CometChat.CALL_MODE.TILE}),pt.goalType=Object.freeze({allOf:o.CometChat.GoalType.ALL_OF,anyOf:o.CometChat.GoalType.ANY_OF,anyAction:o.CometChat.GoalType.ANY_ACTION,none:o.CometChat.GoalType.NONE}),pt.requestBuilderLimits=Object.freeze({reactionListLimit:10,reactionInfoLimit:10,messageListLimit:30,usersLimit:30,groupsLimit:30}),pt.radioNames=Object.freeze({conversations:"conversations",users:"users",groups:"groups",changeScope:"changeScope",groupMembers:"groupMembers"}),pt.mimeTypes=Object.freeze({audio:"audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg",video:"video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt",image:"image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr"}),pt.streamMessageTypes=Object.freeze({run_started:o.CometChat.AI_ASSISTANT_EVENTS.RUN_STARTED,text_message_start:o.CometChat.AI_ASSISTANT_EVENTS.TEXT_MESSAGE_START,text_message_content:o.CometChat.AI_ASSISTANT_EVENTS.TEXT_MESSAGE_CONTENT,text_message_end:o.CometChat.AI_ASSISTANT_EVENTS.TEXT_MESSAGE_END,run_finished:o.CometChat.AI_ASSISTANT_EVENTS.RUN_FINISHED,tool_call_start:o.CometChat.AI_ASSISTANT_EVENTS.TOOL_CALL_STARTED,tool_call_end:o.CometChat.AI_ASSISTANT_EVENTS.TOOL_CALL_ENDED,tool_call_args:o.CometChat.AI_ASSISTANT_EVENTS.TOOL_CALL_ARGUMENT,tool_call_result:o.CometChat.AI_ASSISTANT_EVENTS.TOOL_CALL_RESULT});class ht{static clone(e){if("object"!=typeof e||!e)return e;let t;if(Array.isArray(e)){t=[];for(const n of e)t.push(We.clone(n));return t}{t={};const n=Object.getOwnPropertyDescriptors(e);for(const e of Reflect.ownKeys(n)){const r=n[e];r.hasOwnProperty("value")?Object.defineProperty(t,e,{...r,value:We.clone(r.value)}):Object.defineProperty(t,e,r)}Object.setPrototypeOf(t,Object.getPrototypeOf(e))}return t}static getExtensionData(e){let t;const n=We.checkMessageForExtensionsData(e,"xss-filter");n&&We.checkHasOwnProperty(n,"sanitized_text")&&We.checkHasOwnProperty(n,"hasXSS")&&"yes"===n.hasXSS&&(t=n?.sanitized_text);const r=We.checkMessageForExtensionsData(e,"data-masking");r&&We.checkHasOwnProperty(r,"data")&&We.checkHasOwnProperty(r.data,"sensitive_data")&&We.checkHasOwnProperty(r.data,"message_masked")&&"yes"===r.data?.sensitive_data&&(t=r?.data?.message_masked);const a=We.checkMessageForExtensionsData(e,"profanity-filter");return a&&We.checkHasOwnProperty(a,"profanity")&&We.checkHasOwnProperty(a,"message_clean")&&"yes"===a.profanity&&(t=a?.message_clean),t||e.text}static convertFormattingHtmlToMarkdown(e){if(!e||"string"!=typeof e)return e;let t=e;if(/&lt;(\/?)(b|strong|i|em|u|s|strike|del|code|pre|blockquote|a|ol|ul|li)((?:\s[^&]*)?)&gt;/gi.test(e)&&(t=e.replace(/&lt;(\/?)(b|strong|i|em|u|s|strike|del|code|pre|blockquote|a|ol|ul|li)((?:\s[^&]*)?)&gt;/gi,"<$1$2$3>")),!/<\/?(b|strong|i|em|u|s|strike|del|code|pre|blockquote|a|ol|ul|li|p|div)[\s>]/i.test(t))return e;const n=[];t=t.replace(/<@(uid|all):[^>]+>/g,e=>{const t=n.length;return n.push(e),`​__MENTION_${t}__​`});const r=document.createElement("div");r.innerHTML=t;const a=(e,t=0)=>{let n="";for(let r=0;r<e.childNodes.length;r++){const o=e.childNodes[r];if(o.nodeType===Node.TEXT_NODE)n+=o.textContent||"";else if(o.nodeType===Node.ELEMENT_NODE){const e=o,r=e.tagName.toUpperCase(),i=a(e,t);switch(r){case"B":case"STRONG":n+=`**${i}**`;break;case"I":case"EM":n+=`_${i}_`;break;case"U":n+=`<u>${i}</u>`;break;case"S":case"STRIKE":case"DEL":n+=`~~${i}~~`;break;case"PRE":n+=`\`\`\`${e.querySelector("code")?.textContent||i}\`\`\``;break;case"CODE":"PRE"===e.parentElement?.tagName?n+=i:n+=`\`${i}\``;break;case"BLOCKQUOTE":{const e=i.split("\n");for(;e.length>0&&""===e[e.length-1].trim();)e.pop();n+=e.map(e=>`> ${e}`).join("\n");break}case"A":{const t=e.getAttribute("href")||"";n+=`[${i||t}](${t})`;break}case"OL":{let r=1;const o="    ".repeat(t);for(let i=0;i<e.children.length;i++)if("LI"===e.children[i].tagName){const s=e.children[i];let c="",l="";for(let e=0;e<s.childNodes.length;e++){const n=s.childNodes[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.tagName.toUpperCase();"OL"===e||"UL"===e?l+=a(n,t+1):c+=a(n,t)}else c+=n.textContent||""}c.replace(/\n/g,"").trim()&&(n+=`${o}${r}. ${c}\n`,r++),l&&(n+=l)}break}case"UL":{const r="    ".repeat(t);for(let o=0;o<e.children.length;o++)if("LI"===e.children[o].tagName){const i=e.children[o];let s="",c="";for(let e=0;e<i.childNodes.length;e++){const n=i.childNodes[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.tagName.toUpperCase();"OL"===e||"UL"===e?c+=a(n,t+1):s+=a(n,t)}else s+=n.textContent||""}s.replace(/\n/g,"").trim()&&(n+=`${r}• ${s}\n`),c&&(n+=c)}break}case"LI":case"SPAN":default:n+=i;break;case"BR":n+="\n";break;case"DIV":case"P":n+=i+"\n"}}}return n};let o=a(r).trim();return o=o.replace(/\u200B__MENTION_(\d+)__\u200B/g,(e,t)=>n[parseInt(t,10)]),o}static sanitizeText(e){return e&&"string"==typeof e?e.replace(/<[^>]*>/g,e=>{const t=e.slice(1,-1).trim();return/^\/?u$/i.test(t)?e:/^\/?[a-zA-Z]/.test(t)?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):/^@/.test(t)?e:e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}):e}static stripMarkdownFormatting(e){if(!e||"string"!=typeof e)return e;let t=e;const n=[];return t=t.replace(/<@(uid|all):[^>]+>/g,e=>{const t=n.length;return n.push(e),`​__MENTION_${t}__​`}),t=t.replace(/```([\s\S]*?)```/g,"$1"),t=t.replace(/`([^`]+)`/g,"$1"),t=t.replace(/\*\*([\s\S]+?)\*\*/g,"$1"),t=t.replace(/(?<!\w)_([\s\S]+?)_(?!\w)/g,"$1"),t=t.replace(/~~([\s\S]+?)~~/g,"$1"),t=t.replace(/^>\s?/gm,""),t=t.replace(/^\s*\d+\.\s/gm,""),t=t.replace(/^\s*•\s/gm,""),t=t.replace(/<\/?u>/gi,""),t=t.replace(/\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/\u200B__MENTION_(\d+)__\u200B/g,(e,t)=>n[parseInt(t,10)]),t}}We=ht,ht.checkHasOwnProperty=(e={},t)=>Object.prototype.hasOwnProperty.call(e,t),ht.ID=()=>"_"+Math.random().toString(36).substr(2,9),ht.getUnixTimestamp=()=>Math.round(+new Date/1e3),ht.checkMessageForExtensionsData=(e,t)=>{try{let n={};if(e.hasOwnProperty("metadata")){const r=e?.metadata,a=r["@injected"];if(a&&a.hasOwnProperty("extensions")){const e=a.extensions;e&&e.hasOwnProperty(t)&&(n=e[t])}}return n}catch(e){}},ht.convertBlobToWav=async e=>{const t=await e.arrayBuffer(),n=new window.AudioContext,r=await n.decodeAudioData(t),a=We.audioBufferToWav(r);return{wavBlob:new Blob([a],{type:"audio/wav"})}},ht.audioBufferToWav=e=>{const t=e.numberOfChannels,n=e.sampleRate,r=e.length*t*2+44,a=new ArrayBuffer(r),o=new DataView(a);We.writeString(o,0,"RIFF"),o.setUint32(4,36+e.length*t*2,!0),We.writeString(o,8,"WAVE"),We.writeString(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,t,!0),o.setUint32(24,n,!0),o.setUint32(28,n*t*2,!0),o.setUint16(32,2*t,!0),o.setUint16(34,16,!0),We.writeString(o,36,"data"),o.setUint32(40,e.length*t*2,!0);let i=44;for(let n=0;n<e.length;n++)for(let r=0;r<t;r++){const t=e.getChannelData(r)[n],a=32767*Math.max(-1,Math.min(1,t));o.setInt16(i,a,!0),i+=2}return a},ht.writeString=(e,t,n)=>{for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},ht.convertToWav=async e=>{const{wavBlob:t}=await We.convertBlobToWav(e),n=new File([t],"audio.wav",{type:"audio/wav"}),r=new o.CometChat.MediaMessage("superhero2",n,o.CometChat.MESSAGE_TYPE.AUDIO,o.CometChat.RECEIVER_TYPE.USER);return(await o.CometChat.sendMediaMessage(r)).getAttachment().getUrl()};const mt={video:null,mediaRecorder:null},gt={instance:null,setIsPlaying:null};function ft(e=!0){e&&gt.instance&&gt.setIsPlaying&&(gt.instance.pause(),gt.setIsPlaying&&gt.setIsPlaying(!1)),mt.video&&!mt.video.paused&&mt.video.pause(),mt.mediaRecorder&&mt.mediaRecorder.stop()}function _t(e,t){return!e.getSender()||t?.getUid()===e.getSender().getUid()}function bt(){const e=navigator.userAgent;return/^((?!chrome|android).)*safari/i.test(e)}function vt(e){return/^(https?:\/\/|www\.)[^\s]+$/i.test(e)}function yt(e){const t=document.documentElement;return getComputedStyle(t).getPropertyValue(e).trim()}function Et(){return document.querySelector('[data-theme="dark"]')?"dark":"light"}async function Ct(e){return new Promise(t=>{const n=new FileReader;n.onload=async()=>{try{if(n.result){const r=new AudioContext,a=n.result,o=function(e){const t=e.numberOfChannels;e.sampleRate;const n=e.length*t*2+44,r=new ArrayBuffer(n),a=new DataView(r);!function(e,t){const n=t.numberOfChannels,r=t.sampleRate,a=t.length*n*2+44;St(e,0,"RIFF"),e.setUint32(4,a-8,!0),St(e,8,"WAVE"),St(e,12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,n,!0),e.setUint32(24,r,!0),e.setUint32(28,r*n*2,!0),e.setUint16(32,2*n,!0),e.setUint16(34,16,!0),St(e,36,"data"),e.setUint32(40,a-44,!0)}(a,e);let o=44;const i=[];for(let n=0;n<t;n++)i[n]=e.getChannelData(n);for(let n=0;n<e.length;n++)for(let e=0;e<t;e++){const t=Math.max(-1,Math.min(1,i[e][n]));a.setInt16(o,t<0?32768*t:32767*t,!0),o+=2}return new Blob([r],{type:"audio/wav"})}(await r.decodeAudioData(a)),i=new File([o],e.name.replace(".webm",".wav"),{type:"audio/wav"});t(i)}else t(e)}catch(n){console.warn("Audio conversion failed, using original file:",n),t(e)}},n.onerror=()=>{console.warn(`Converting the file named "${e.name}" to binary failed, using original file`),t(e)},n.readAsArrayBuffer(e)})}function St(e,t,n){for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}function wt(){return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent)}function kt(e){return e&&Object.keys(e).length>0?Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t)):{}}function xt(){window&&window.dispatchEvent(new CustomEvent("overlayclick"))}const Tt=e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerHTML},At=(e,t)=>{const n=new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,"i").exec(e);return n?n[1]??n[2]??n[3]??"":null},Rt=new Set(["span","b","strong","i","em","u","s","strike","del","br","ol","ul","li","a","p","div","blockquote","pre","code","sub","sup","h1","h2","h3","h4","h5","h6"]),It=new Set(["br"]),Ot=new Set(["script","iframe","object","embed","form","input","textarea","select","button","style","link","meta"]),Nt=/<\/?[a-z][a-z0-9]*\b[^>]*\/?>|[^<]+/gi,Mt=e=>{const t=e.match(/^<\/?([a-z][a-z0-9]*)/i);return t?t[1].toLowerCase():""},Dt=(e,t)=>{const n=At(e,"style");n&&t.setAttribute("style",n);const r=At(e,"class");r&&(t.className=r);const a=At(e,"contenteditable");if(null!==a&&t.setAttribute("contenteditable",a),"a"===t.tagName.toLowerCase()){const n=At(e,"href");n&&t.setAttribute("href",n),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer")}for(const[n,r]of(e=>{const t=[],n=/\b(data-[\w-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gi;let r;for(;r=n.exec(e);)t.push([r[1],r[2]??r[3]??r[4]??""]);return t})(e))t.setAttribute(n,r)},Lt=(e,t)=>{const n=document.createDocumentFragment(),r=[],a=e=>{(r[r.length-1]??n).appendChild(e)};let o;for(;o=Nt.exec(e);){const e=o[0];if(!e.startsWith("<")){a(document.createTextNode(e));continue}const t=Mt(e),n=e.startsWith("</");if(!Ot.has(t))if(n){if(Rt.has(t)&&r.length)for(let e=r.length-1;e>=0;e--)if(r[e].tagName.toLowerCase()===t){r.splice(e);break}}else if(Rt.has(t)){if("span"===t&&!(At(e,"class")||"").trim()){a(document.createTextNode(e));continue}const n=document.createElement(t);Dt(e,n),a(n),It.has(t)||r.push(n)}else a(document.createTextNode(e))}if(t?.length){const e=n=>{if(n instanceof HTMLElement&&"span"===n.tagName.toLowerCase()&&n.classList.length>0)for(let e=0;e<t.length;e++)t[e].registerEventListeners(n,n.classList);n.childNodes.forEach(e)};e(n)}return n},Pt=(e,t)=>{const n=a.useRef(null),r=a.useCallback(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(),n.current=null},t)},[e,t]),o=a.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=null)},[]);return a.useEffect(()=>o,[o]),{debouncedCallback:r,cleanup:o}};const jt=()=>(()=>{if(navigator.userAgent.includes("Mac")&&"ontouchend"in document)return!0;const e=navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/.test(e)})()||(()=>{if(navigator.userAgent.includes("Mac")&&"ontouchend"in document)return!1;const e=navigator.userAgent.toLowerCase();return/macintosh|mac os x/.test(e)})();var Ut;!function(e){e.top="top",e.right="right",e.bottom="bottom",e.left="left"}(Ut||(Ut={}));const Ft=a.forwardRef(({placement:e=Ut.bottom,closeOnOutsideClick:t=!0,showOnHover:n=!1,debounceOnHover:o=500,children:i,content:s,onOutsideClick:c,childClickHandler:l,disableBackgroundInteraction:u=!1,useParentContainer:d=!1,useParentHeight:p=!0,showTooltip:h=!1},m)=>{const g=a.useRef(null),[f,_]=a.useState(!1),[b,v]=a.useState({}),y=a.useRef(null),E=a.useRef(null),C=a.useRef(null),S=a.useRef(Ut.top),w=a.useRef(null);a.useImperativeHandle(m,()=>({openPopover(){M(),_(!0)},closePopover(){_(!1)}}));const k=Y(),x=()=>k?.iframeWindow||window,T=()=>k?.iframeDocument||document,A=a.useCallback(e=>{_(e=>!e)},[]),R=e=>{if(y.current){const t=y.current.getBoundingClientRect(),n=e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom;y.current.contains(e.target)||n||(_(!1),c&&c())}};a.useEffect(()=>{if(t&&f)return T().addEventListener("click",R),()=>T().removeEventListener("click",R)},[t,f]),a.useEffect(()=>{if(!y.current)return;const e=new MutationObserver(()=>{requestAnimationFrame(()=>M())});return e.observe(y.current,{childList:!0,subtree:!0,attributes:!0}),()=>e.disconnect()},[f]),a.useEffect(()=>{const e=()=>{f&&(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{requestAnimationFrame(()=>{M()})},0))},t=()=>{if(!f||!E.current)return;const e=E.current.getBoundingClientRect(),t=x().innerHeight,n=x().innerWidth;e.bottom<0||e.top>t||e.right<0||e.left>n?(_(!1),c&&c()):requestAnimationFrame(()=>{M()})};if(f)return x().addEventListener("resize",e),x().addEventListener("scroll",t,!0),()=>{x().removeEventListener("resize",e),x().removeEventListener("scroll",t),w.current&&clearTimeout(w.current)}},[f]),a.useLayoutEffect(()=>{f?M():v({})},[s,f]);const I=a.useCallback((t,n)=>{const r=t.top,a=x().innerHeight-t.bottom,o=t.left,i=x().innerWidth-t.right;if(d){const r=C.current?.getBoundingClientRect();if(!r)return e;const a=t.top-r.top,o=r.bottom-t.bottom,i=t.left-r.left,s=r.right-t.right;if(e===Ut.top&&a>=n+(h?0:10))return Ut.top;if(e===Ut.bottom&&o>=n+(h?0:10))return Ut.bottom;if(e===Ut.left&&i>=n+10)return Ut.left;if(e===Ut.right&&s>=n+10)return Ut.right;if(a>=n+10)return Ut.top;if(o>=n+10)return Ut.bottom;if(i>=n+10)return Ut.left;if(s>=n+10)return Ut.right}return e===Ut.top&&r>=n+10?Ut.top:e===Ut.bottom&&a>=n+10?Ut.bottom:e===Ut.left&&o>=n+10?Ut.left:e===Ut.right&&i>=n+10?Ut.right:r>=n+10?Ut.top:a>=n+10?Ut.bottom:o>=n+10?Ut.left:i>=n+10?Ut.right:e},[e,d]),O=a.useCallback(()=>{if(!y.current||!E.current||!C.current)return;const e=y.current.scrollHeight,t=y.current.scrollWidth,n=E.current.getBoundingClientRect(),r=C.current.getBoundingClientRect();if(!n||!r)return;if(!p)return void N();const a=I(n,e);S.current=a;let o={};if([Ut.top,Ut.bottom].includes(a)){o.top=a===Ut.top?`${Math.max(r.top,n.top-e-(h?5:10))}px`:`${Math.min(r.bottom-e,n.bottom+10)}px`;let i=Math.max(r.left,n.left);i=Math.min(i,r.right-t-10),o.left=`${i}px`}else{o.left=a===Ut.left?`${Math.max(r.left,n.left-t-10)}px`:`${Math.min(r.right-t,n.right+10)}px`;let i=Math.max(r.top,n.top);i=Math.min(i,r.bottom-e-10),o.top=`${i}px`}v(o)},[f,p,I,h]),N=a.useCallback(()=>{if(!y.current||!E.current)return;const t=y.current.scrollWidth,n=E.current.getBoundingClientRect(),r=C.current?.getBoundingClientRect()||{left:0,right:x().innerWidth,width:x().innerWidth},a=y.current.scrollHeight;let o={};e===Ut.top?o.top=n.top-a-10+"px":e===Ut.bottom&&(o.top=`${n.bottom+10}px`);const i=n.left+n.width/2-t/2;i<r.left?o.left=`${r.left+10}px`:i+t>r.right?o.left=r.right-t-10+"px":o.left=`${i}px`,v(o)},[e]),M=a.useCallback(()=>{if(d)return C.current=C.current||D(),void O();const e=y.current?.scrollHeight||0,t=y.current?.scrollWidth||0,n=E.current?.getBoundingClientRect();if(!n)return;const r=x().innerHeight,a=x().innerWidth,o=I(n,e);S.current=o;let i={};[Ut.top,Ut.bottom].includes(o)?(i.top=o===Ut.top?`${n.top-e-10<0?n.bottom+10:n.top-e-10}px`:`${n.bottom+e+10>r?n.top-e-10:n.bottom+10}px`,i.left=n.left+t-10>a?a-t-10+"px":n.left-10+"px"):(i.left=o===Ut.left?`${n.left-t-10<0?n.right+10:n.left-t-10}px`:`${n.right+t+10>a?n.left-t-10:n.right+10}px`,i.top=n.top+e-10>r?r-e-10+"px":n.top-10+"px"),v(i)},[f,O,d,I]),D=()=>{if(!y.current)return;let e=y.current,t=null;for(;e;)e.classList?.contains("cometchat")&&(t=e),e=e.parentElement;return t};return a.useEffect(()=>{d&&(C.current=D())},[d,f]),r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-popover",children:[u&&f&&r.jsx("div",{className:"cometchat-popover__overlay",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:999,backgroundColor:"transparent",pointerEvents:"auto"},onClick:e=>{e?.stopPropagation(),R(e.nativeEvent),xt()},onWheel:e=>e?.stopPropagation(),onMouseMove:e=>e?.stopPropagation(),onKeyDown:e=>e?.stopPropagation()}),r.jsx("div",{style:{...u&&f&&{position:"relative",zIndex:1e3,pointerEvents:"auto"}},ref:E,onClick:e=>{if(e.stopPropagation(),!n){if(!l)return A();l(A,e)}},className:"cometchat-popover__button",onMouseEnter:()=>{if(g.current&&(clearTimeout(g.current),g.current=null),n&&!f)return g.current=setTimeout(()=>{M(),_(!0)},o),g.current},onMouseLeave:()=>{if(g.current&&(clearTimeout(g.current),g.current=null),n&&f)return g.current=setTimeout(()=>_(!1),o),g.current},children:i}),f&&r.jsxs("div",{ref:y,style:{...b,...u&&f&&{zIndex:1e3,pointerEvents:"auto"}},className:"cometchat-popover__content",children:[h&&S.current==Ut.top?r.jsx("div",{className:"cometchat-popover__content-tooltip-top"}):null,s,h&&S.current==Ut.bottom?r.jsx("div",{className:"cometchat-popover__content-tooltip-bottom"}):null]})]})})});class Bt{constructor(e){this.id=e.id,this.title=e.title,this.iconURL=e.iconURL}}class Gt extends Bt{constructor(e){super(e),this.onClick=e.onClick}}class Vt extends Bt{constructor(e){super(e),this.customView=e.customView}}class Ht{constructor(e){this.id="",this.iconURL="",this.onClick=null,this.title="",Object.assign(this,e)}}class zt{constructor(e){this.id="",this.title="",this.iconURL="",this.onClick=null,Object.assign(this,e)}}class Yt{constructor(e){this.contentView=null,this.bubbleView=null,this.headerView=null,this.replyView=null,this.footerView=null,this.bottomView=null,this.statusInfoView=null,this.category="",Object.assign(this,e)}}const qt=e=>{const[n,o]=a.useState(!1),{data:i,topMenuSize:s=2,moreIconHoverText:c,onOptionClicked:l,placement:u=t.W.left,closeOnOutsideClick:d=!1,disableBackgroundInteraction:p=!1,useParentContainer:h=!1,useParentHeight:m=!1,forceStaticPlacement:g=!1}=e,f=a.createRef(),_=a.useRef(null),b=a.useRef(null),[v,y]=a.useState({}),E=a.useRef(null),C=a.useRef(null),S=Y(),w=()=>S?.iframeWindow||window,k=()=>S?.iframeDocument||document,x=e=>{_.current&&!_.current.contains(e.target)&&o(!1)};a.useEffect(()=>{if(d)return k().addEventListener("click",x),()=>k().removeEventListener("click",x)},[d]);const T=a.useCallback(()=>{o(e=>(e||f.current?.closePopover(),!e))},[y]),A=a.useCallback(()=>r.jsx("div",{title:c,onClick:T,className:"cometchat-menu-list__sub-menu",ref:_,onMouseEnter:()=>{j()},style:{...p&&n&&{zIndex:1e3,pointerEvents:"auto"}},children:r.jsx("div",{className:"cometchat-menu-list__sub-menu-icon"})}),[c,T,n,p]),R=a.useCallback((e,t)=>{if(e.length>0)return e?.map((n,a)=>{const s=(0==a||e.length<=2)&&!t?"":"cometchat-menu-list__menu";let c,h=null;return c=n instanceof Vt&&n?.customView?r.jsx("div",{id:n.id,children:r.jsx(Ft,{disableBackgroundInteraction:p,useParentContainer:!0,ref:f,closeOnOutsideClick:d,placement:u,content:r.jsx(r.Fragment,{children:n?.customView(()=>{f.current?.closePopover()})}),children:r.jsx("div",{slot:"children",children:r.jsxs("div",{onClick:()=>{y({}),o(!1)},title:n?.title,className:t?"cometchat-menu-list__sub-menu-list-item":"cometchat-menu-list__main-menu-item",children:[r.jsx("div",{className:t?`cometchat-menu-list__sub-menu-list-item-icon cometchat-menu-list__sub-menu-list-item-icon-${n.id}`:`cometchat-menu-list__main-menu-item-icon cometchat-menu-list__main-menu-item-icon-${n.id}`,style:n?.iconURL?{WebkitMask:`url(${n?.iconURL}) center center no-repeat`,display:"flex"}:void 0}),t?r.jsx("label",{className:`cometchat-menu-list__sub-menu-item-title cometchat-menu-list__sub-menu-item-title-${n.id}`,children:n?.title}):""]})})})}):r.jsx("div",{id:n.id,className:s,children:r.jsxs("div",{className:t?"cometchat-menu-list__sub-menu-list-item":"cometchat-menu-list__main-menu-item",title:n?.title,onClick:()=>{o(!1),y({}),l?l?.(n):(n instanceof zt||n instanceof Gt)&&n?.onClick&&n.onClick()},children:[r.jsx("div",{className:t?`cometchat-menu-list__sub-menu-list-item-icon cometchat-menu-list__sub-menu-list-item-icon-${n.id}`:`cometchat-menu-list__main-menu-item-icon cometchat-menu-list__main-menu-item-icon-${n.id}`,style:n?.iconURL?{WebkitMask:`url(${n?.iconURL}) center center no-repeat`,WebkitMaskSize:"contain",display:"flex"}:void 0}),t?r.jsx("label",{className:`cometchat-menu-list__sub-menu-item-title cometchat-menu-list__sub-menu-item-title-${n.id}`,children:n?.title}):""]})}),!t&&i?.length>e?.length&&a===e?.length-1&&(h=A()),r.jsxs("div",{className:"cometchat-menu-list__menu-wrapper",children:[c,h]},n.title)});{const e=A();return r.jsx("div",{className:"cometchat-menu-list__menu-wrapper",children:e})}},[u,i,l,A,p]),I=()=>{if(!_.current)return;let e=_.current,t=null;for(;e;)e.classList?.contains("cometchat")&&(t=e),e=e.parentElement;return t},O=a.useCallback(()=>R(i.slice(0,s>0?s-1:0),!1),[R,s,i]),N=a.useCallback(()=>R(i.slice(s>0?s-1:0),!0),[R,s,i]),M=a.useCallback((e,n,r,a=u,o="viewport")=>{const{width:i,height:s}=n;let c={};const l=10;if(g){const n=window.innerWidth,o=r?r.left:0,u=r?r.right:n;let d=e.left,p=e.top;switch(a){case t.W.top:p=e.top-s-l,d=e.left;break;case t.W.bottom:p=e.bottom+l,d=e.left;break;case t.W.left:p=e.top,d=e.left-i-l;break;case t.W.right:p=e.top,d=e.right+l;break;default:p=e.top,d=e.left-i-l}return d+i>u&&(d=u-i-l),d<o&&(d=o+l),c.top=`${p}px`,c.left=`${d}px`,c}if("parent"===o&&r)if([t.W.top,t.W.bottom].includes(a)){c.top=m?a===t.W.bottom?`${Math.min(r.bottom-s,e.bottom+l)}px`:`${Math.max(r.top,e.top-s-l)}px`:a===t.W.bottom?`${e.bottom+l}px`:e.top-s-l+"px";let n=Math.max(r.left,e.left);n=Math.min(n,r.right-i-l),c.left=`${n}px`}else if(c.left=a===t.W.left?`${Math.max(r.left,e.left-i-l)}px`:`${Math.min(r.right-i,e.right+l)}px`,m){let t=Math.max(r.top,e.top);t=Math.min(t,r.bottom-s-l),c.top=`${t}px`}else c.top=`${e.top}px`;else if("centered"===o&&r){a===t.W.top?c.top=e.top-s-l+"px":a===t.W.bottom&&(c.top=`${e.bottom+l}px`);const n=e.left+e.width/2-i/2;n<r.left?c.left=`${r.left+l}px`:n+i>r.right?c.left=r.right-i-l+"px":c.left=`${n}px`}else{const n=w().innerHeight,r=w().innerWidth;[t.W.top,t.W.bottom].includes(a)?(c.top=a===t.W.bottom?`${e.bottom+s+l>n?e.top-s-l:e.bottom+l}px`:`${e.top-s-l<0?e.bottom+l:e.top-s-l}px`,c.left=e.left+i-l>r?r-i-l+"px":e.left-l+"px"):(c.left=a===t.W.left?`${e.left-i-l<0?e.right+l:e.left-i-l}px`:`${e.right+i+l>r?e.left-i-l:e.right+l}px`,c.top=e.top+s-l>n?n-s-l+"px":e.top-l+"px")}return c},[u,m,g]),D=a.useCallback((e,n)=>{if(g)return u;const r=e.top,a=E.current?.getBoundingClientRect(),o=a?a.bottom-e.bottom:0;return h?a?o>=n+10?t.W.bottom:r>=n+10?t.W.top:u:u:wt()?o>=n+10?t.W.bottom:t.W.top:u},[u,g]),L=a.useCallback(()=>{if(!_.current||!E.current)return;const e=b.current?.clientHeight||48*i.length,t=b.current?.clientWidth||160,n=_.current?.getBoundingClientRect(),r=E.current.getBoundingClientRect();if(!n||!r)return;const a=D(n,e),o=M(n,{width:t,height:e},r,a,"parent");y(o)},[n,m,M,D]),P=a.useCallback(()=>{if(!b.current||!_.current)return;const e=b.current.scrollWidth,t=b.current.scrollHeight,n=_.current.getBoundingClientRect(),r=E.current?.getBoundingClientRect()||{left:0,right:w().innerWidth,width:w().innerWidth,height:w().innerHeight,top:0,bottom:w().innerHeight,x:0,y:0,toJSON:()=>({})},a=M(n,{width:e,height:t},r,u,"centered");y(a)},[u,M]),j=a.useCallback(()=>{if(h)return E.current=E.current||I(),void L();if(!h&&m)return void P();const e=b.current?.clientHeight||48*i.length,t=b.current?.clientWidth||160,n=_.current?.getBoundingClientRect();if(!n)return;const r=D(n,e),a=M(n,{width:t,height:e},null,r,"viewport");0===Object.keys(v).length&&y(a)},[n,v,L,h,m,P,M,D]);return a.useEffect(()=>{h&&(E.current=I())},[h,n]),a.useEffect(()=>{if(h&&!m){const e=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{n&&j()},100)};return w().addEventListener("resize",e),()=>{w().removeEventListener("resize",e),C.current&&clearTimeout(C.current)}}},[n,j,h,m]),r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-menu-list",children:[r.jsx("div",{className:"cometchat-menu-list__main-menu",children:O()}),p&&n&&r.jsx("div",{className:"cometchat-popover__overlay",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:999,backgroundColor:"transparent",pointerEvents:"auto"},onClick:e=>{e?.stopPropagation(),x(e.nativeEvent),xt()},onWheel:e=>e?.stopPropagation(),onMouseMove:e=>e?.stopPropagation(),onKeyDown:e=>e?.stopPropagation()}),r.jsx("div",{ref:b,className:"cometchat-menu-list__sub-menu-list",id:"subMenuContext",style:{...v,visibility:n?"visible":"hidden",opacity:n?1:0,pointerEvents:n?"auto":"none",transition:"visibility 0s, opacity 0.3s ease",...p&&n&&{zIndex:1e3}},children:N()})]})})};var Kt="data:image/svg+xml,%3Csvg%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_7089_707053%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22120%22%20height%3D%22120%22%3E%3Cpath%20d%3D%22M120%2060C120%2068.9108%20118.054%2077.3757%20114.559%2084.9811C105.089%20105.649%2084.2189%20120%2060%20120C35.7811%20120%2014.9108%20105.649%205.44054%2084.9811C1.94595%2077.3757%200%2068.9108%200%2060C0%2026.8622%2026.8622%200%2060%200C93.1378%200%20120%2026.8622%20120%2060Z%22%20fill%3D%22%23F4F7FC%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_7089_707053%29%22%3E%3Cpath%20d%3D%22M2.625%2084L22.5%2079.875L39%2086.25L24%2094.5L2.625%2084Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Cpath%20d%3D%22M117.375%2084L97.5%2079.875L81%2086.25L96%2094.5L117.375%2084Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M39%2086.25H81L96%2094.5H24L39%2086.25Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3Cpath%20d%3D%22M45.0793%2050.5798C51.8385%2046.6773%2060.4814%2048.9932%2064.3838%2055.7524C68.2863%2062.5115%2065.9704%2071.1545%2059.2112%2075.0569L51.2626%2079.646L49.1291%2089.2059C48.8661%2090.3844%2047.2924%2090.6255%2046.6887%2089.5798L43.0171%2083.2205C37.4837%2083.9945%2031.7809%2081.424%2028.8155%2076.2878C24.9131%2069.5286%2027.229%2060.8857%2033.9882%2056.9833L45.0793%2050.5798Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2054.8662%2058.7017%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2047.217%2063.1196%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2039.568%2067.5317%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Cpath%20d%3D%22M68.7319%2023.6854C58.716%2021.0017%2048.4209%2026.9456%2045.7371%2036.9615C43.0534%2046.9774%2048.9973%2057.2726%2059.0132%2059.9563L70.7932%2063.1128L76.8182%2074.647C77.5609%2076.0689%2079.6633%2075.8372%2080.0785%2074.2876L82.6036%2064.864C89.9703%2063.9541%2096.404%2058.6946%2098.4433%2051.0841C101.127%2041.0681%2095.1831%2030.773%2085.1672%2028.0892L68.7319%2023.6854Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Ccircle%20cx%3D%2261.039%22%20cy%3D%2241.0622%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2061.039%2041.0622%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Ccircle%20cx%3D%2272.3738%22%20cy%3D%2244.0973%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2072.3738%2044.0973%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Ccircle%20cx%3D%2283.7081%22%20cy%3D%2247.1384%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2083.7081%2047.1384%29%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M41.6951%2032.7839C42.2994%2032.6391%2042.6718%2032.0319%2042.527%2031.4277C42.3822%2030.8234%2041.775%2030.451%2041.1708%2030.5958L38.2534%2031.2949C37.6492%2031.4397%2037.2768%2032.0469%2037.4216%2032.6511C37.5663%2033.2553%2038.1735%2033.6278%2038.7777%2033.483L41.6951%2032.7839ZM52.5122%2019.092C52.5109%2019.7133%2052.0063%2020.216%2051.385%2020.2148C50.7637%2020.2136%2050.261%2019.7089%2050.2622%2019.0876L50.268%2016.0876C50.2692%2015.4663%2050.7739%2014.9636%2051.3952%2014.9648C52.0165%2014.966%2052.5192%2015.4707%2052.518%2016.092L52.5122%2019.092ZM43.1169%2026.0355C42.9758%2026.6405%2042.3709%2027.0167%2041.7658%2026.8756L38.8442%2026.1942C38.2391%2026.0531%2037.863%2025.4482%2038.0041%2024.8431C38.1452%2024.2381%2038.7501%2023.8619%2039.3552%2024.003L42.2768%2024.6844C42.8819%2024.8255%2043.258%2025.4304%2043.1169%2026.0355ZM46.7835%2020.5285C47.0607%2021.0846%2046.8345%2021.76%2046.2784%2022.0372C45.7224%2022.3143%2045.0469%2022.0882%2044.7698%2021.5321L43.4316%2018.8471C43.1544%2018.291%2043.3805%2017.6156%2043.9366%2017.3384C44.4927%2017.0613%2045.1682%2017.2874%2045.4453%2017.8435L46.7835%2020.5285Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Crect%20x%3D%2224%22%20y%3D%2294.5%22%20width%3D%2272%22%20height%3D%2263%22%20fill%3D%22%23DCDCDC%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",Wt="data:image/svg+xml,%3Csvg%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_5082_126538%29%22%3E%3Cmask%20id%3D%22mask0_5082_126538%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22120%22%20height%3D%22120%22%3E%3Cpath%20d%3D%22M120%2060C120%2068.9108%20118.054%2077.3757%20114.559%2084.9811C105.089%20105.649%2084.2189%20120%2060%20120C35.7811%20120%2014.9108%20105.649%205.44054%2084.9811C1.94595%2077.3757%200%2068.9108%200%2060C0%2026.8622%2026.8622%200%2060%200C93.1378%200%20120%2026.8622%20120%2060Z%22%20fill%3D%22%23F4F7FC%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_5082_126538%29%22%3E%3Cpath%20d%3D%22M2.625%2084L22.5%2079.875L39%2086.25L24%2094.5L2.625%2084Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Cpath%20d%3D%22M117.375%2084L97.5%2079.875L81%2086.25L96%2094.5L117.375%2084Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M39%2086.25H81L96%2094.5H24L39%2086.25Z%22%20fill%3D%22%23858585%22%2F%3E%3Cpath%20d%3D%22M45.0804%2050.5793C51.8396%2046.6769%2060.4825%2048.9927%2064.3849%2055.7519C68.2873%2062.5111%2065.9714%2071.154%2059.2123%2075.0564L51.2636%2079.6455L49.1302%2089.2054C48.8672%2090.3839%2047.2935%2090.625%2046.6897%2089.5793L43.0182%2083.22C37.4847%2083.994%2031.782%2081.4235%2028.8166%2076.2873C24.9142%2069.5281%2027.23%2060.8852%2033.9892%2056.9828L45.0804%2050.5793Z%22%20fill%3D%22%23383838%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2054.8672%2058.7012%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2047.2178%2063.1191%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Ccircle%20cx%3D%222.2081%22%20cy%3D%222.2081%22%20r%3D%222.2081%22%20transform%3D%22matrix%28-0.866025%200.5%200.5%200.866025%2039.5693%2067.5312%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Cpath%20d%3D%22M68.732%2023.6854C58.7161%2021.0017%2048.4209%2026.9456%2045.7372%2036.9615C43.0534%2046.9774%2048.9973%2057.2726%2059.0132%2059.9563L70.7933%2063.1128L76.8183%2074.647C77.561%2076.0689%2079.6634%2075.8372%2080.0786%2074.2876L82.6037%2064.864C89.9703%2063.9541%2096.4041%2058.6946%2098.4433%2051.0841C101.127%2041.0681%2095.1832%2030.773%2085.1673%2028.0892L68.732%2023.6854Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Ccircle%20cx%3D%2261.0383%22%20cy%3D%2241.0617%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2061.0383%2041.0617%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Ccircle%20cx%3D%2272.3732%22%20cy%3D%2244.0968%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2072.3732%2044.0968%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Ccircle%20cx%3D%2283.7082%22%20cy%3D%2247.1379%22%20r%3D%222.93362%22%20transform%3D%22rotate%2815%2083.7082%2047.1379%29%22%20fill%3D%22%231A1A1A%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M41.6949%2032.7834C42.2991%2032.6386%2042.6716%2032.0314%2042.5268%2031.4272C42.382%2030.823%2041.7748%2030.4505%2041.1706%2030.5953L38.2532%2031.2944C37.6489%2031.4392%2037.2765%2032.0464%2037.4213%2032.6506C37.5661%2033.2548%2038.1733%2033.6273%2038.7775%2033.4825L41.6949%2032.7834ZM52.5119%2019.0915C52.5107%2019.7128%2052.006%2020.2155%2051.3847%2020.2143C50.7634%2020.2131%2050.2607%2019.7084%2050.2619%2019.0871L50.2678%2016.0871C50.269%2015.4658%2050.7736%2014.9631%2051.395%2014.9643C52.0163%2014.9655%2052.519%2015.4702%2052.5178%2016.0915L52.5119%2019.0915ZM43.1167%2026.035C42.9756%2026.6401%2042.3706%2027.0162%2041.7656%2026.8751L38.844%2026.1938C38.2389%2026.0526%2037.8627%2025.4477%2038.0038%2024.8427C38.1449%2024.2376%2038.7499%2023.8614%2039.3549%2024.0025L42.2766%2024.6839C42.8816%2024.825%2043.2578%2025.4299%2043.1167%2026.035ZM46.7833%2020.528C47.0604%2021.0841%2046.8343%2021.7595%2046.2782%2022.0367C45.7221%2022.3138%2045.0467%2022.0877%2044.7695%2021.5316L43.4313%2018.8466C43.1542%2018.2905%2043.3803%2017.6151%2043.9364%2017.3379C44.4925%2017.0608%2045.1679%2017.2869%2045.4451%2017.843L46.7833%2020.528Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Crect%20x%3D%2224%22%20y%3D%2294.5%22%20width%3D%2272%22%20height%3D%2263%22%20fill%3D%22%234C4C4C%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_5082_126538%22%3E%3Crect%20width%3D%22120%22%20height%3D%22120%22%20rx%3D%2216%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";const Jt=Object.freeze({v1_create:"v1/create",extension_document:"extension_document",document:"document",extensions:"extensions",metadata:"metadata",injected:"@injected",post:"POST"}),Zt=Object.freeze({v1_create:"v1/create",extension_whiteboard:"extension_whiteboard",whiteboard:"whiteboard",extensions:"extensions",metadata:"metadata",injected:"@injected",post:"POST"}),$t=Object.freeze({polls:"polls",post:"POST",v2_create:"v2/create",v2_vote:"v2/vote",extension_poll:"extension_poll",injected:"@injected"}),Qt=Object.freeze({sticker:"extension_sticker",default_stickers:"defaultStickers",custom_stickers:"customStickers",stickers:"stickers",data:"data",custom_data:"customData",sticker_url:"sticker_url",sticker_name:"sticker_name",get:"GET",v1_fetch:"v1/fetch"}),Xt=e=>{const{id:n,leadingView:o=null,headerView:i=null,replyView:s=null,contentView:c=null,bottomView:l=null,threadView:u=null,footerView:d=null,statusInfoView:p=null,includeBottomViewHeight:h=!1,options:m=[],alignment:g=t.JxA.right,topMenuSize:f=2,type:_,category:b,setRef:v,toggleOptionsVisibility:y}=e,E={[pt.MessageTypes.text+"_"+pt.MessageCategory.message]:"cometchat-message-bubble__text-message",[pt.MessageTypes.audio+"_"+pt.MessageCategory.message]:"cometchat-message-bubble__audio-message",[pt.MessageTypes.delete+"_"+pt.MessageCategory.action]:"cometchat-message-bubble__delete-message",[pt.MessageTypes.file+"_"+pt.MessageCategory.message]:"cometchat-message-bubble__file-message",[pt.MessageTypes.groupMember+"_"+pt.MessageCategory.action]:"cometchat-message-bubble__group-message",[pt.MessageTypes.image+"_"+pt.MessageCategory.message]:"cometchat-message-bubble__image-message",[pt.MessageTypes.video+"_"+pt.MessageCategory.message]:"cometchat-message-bubble__video-message",[Jt.extension_document+"_"+pt.MessageCategory.custom]:"cometchat-message-bubble__document-message",[Zt.extension_whiteboard+"_"+pt.MessageCategory.custom]:"cometchat-message-bubble__whiteboard-message",[$t.extension_poll+"_"+pt.MessageCategory.custom]:"cometchat-message-bubble__poll-message",[Qt.sticker+"_"+pt.MessageCategory.custom]:"cometchat-message-bubble__sticker-message",[pt.MessageTypes.audio+"_"+pt.MessageCategory.call]:"cometchat-message-bubble__audio-call",[pt.MessageTypes.video+"_"+pt.MessageCategory.call]:"cometchat-message-bubble__video-call",[pt.calls.meeting+"_"+pt.MessageCategory.custom]:"cometchat-message-bubble__meeting-message",[pt.MessageTypes.card+"_"+pt.MessageCategory.interactive]:"cometchat-message-bubble__card-message",[pt.MessageTypes.customInteractive+"_"+pt.MessageCategory.interactive]:"cometchat-message-bubble__custom-interactive-message",[pt.MessageTypes.scheduler+"_"+pt.MessageCategory.interactive]:"cometchat-message-bubble__scheduler-message",[pt.MessageTypes.form+"_"+pt.MessageCategory.interactive]:"cometchat-message-bubble__form-message"},C=a.useRef(null),S=a.useRef(null),w=a.useRef(null),k=a.useRef(0);var x=null;const T=a.useRef(null),A=Y(),R=()=>A?.iframeWindow||window;a.useEffect(()=>{C&&C.current&&v&&v(C)},[C,v]);const I=a.useCallback(()=>{T.current||(T.current=new IntersectionObserver(e=>{for(const t of e)t.isIntersecting||D()},{threshold:.1}),T.current.observe(C.current))},[]),O=a.useCallback(()=>{S.current&&!w.current&&(w.current=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect.height;k.current!=e&&(k.current>e&&D(),k.current=e)}}),w.current.observe(S.current))},[]),[N,M]=a.useState(!1);a.useEffect(()=>(pt.MessageTypes.text&&pt.MessageCategory.message&&O(),()=>{x&&clearTimeout(x),w.current&&w.current.disconnect()}),[]);const D=()=>{x=setTimeout(()=>{M(!1),T.current&&C.current&&(T.current.unobserve(C.current),T.current=null)},150)},L=()=>{x&&clearTimeout(x),M(!0),I()},P=e=>{M(!1),m.forEach(t=>{t instanceof Gt&&t.id===e?.id&&n&&t.onClick?.(parseInt(String(n)))})};a.useEffect(()=>{const e=()=>{M(!1)};return N&&R().addEventListener("overlayclick",e),()=>{R().removeEventListener("overlayclick",e)}},[N]);const j=()=>U()?F():e.alignment===t.JxA.left?t.W.right:t.W.left,U=()=>R().innerWidth<=768,F=()=>{const e=C.current;if(e){const n=e.getBoundingClientRect(),r=n.top<R().innerHeight/2,a=n.bottom>R().innerHeight/2;return r?t.W.bottom:a?t.W.top:t.W.bottom}return t.W.bottom};return r.jsx("div",{className:"cometchat",style:{width:"100%",height:"fit-content"},children:r.jsxs("div",{className:"cometchat-message-bubble__wrapper",ref:C,children:[(()=>{if(o&&g===t.JxA.left)return r.jsx("div",{className:"cometchat-message-bubble__leading-view",children:o})})(),r.jsxs("div",{className:`cometchat-message-bubble ${(()=>{let e="cometchat-message-bubble-outgoing";return g==t.JxA.left?e="cometchat-message-bubble-incoming":g==t.JxA.center&&(e="cometchat-message-bubble-action"),e})()}`,id:String(n),children:[(()=>{if(i)return r.jsx("div",{className:"cometchat-message-bubble__header-view",children:i})})(),r.jsx("div",{children:r.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",background:"inherit"},onMouseLeave:D,children:[m&&m.length>0?(()=>{const e=N&&y?{opacity:1,pointerEvents:"auto"}:{opacity:0,pointerEvents:"none"};var t="fit-content";S.current&&(t=`${S.current.clientHeight}px`);let n={height:t};return r.jsx("div",{className:"cometchat-message-bubble__options",style:{transition:N?"opacity 0.2s ease-in-out":"opacity 0s ease-in-out",...e,...N&&(d||!h&&l||u)&&n},children:r.jsx(qt,{disableBackgroundInteraction:!0,useParentContainer:!0,topMenuSize:f,data:m,onOptionClicked:P,placement:j()},N?"hovered":"not-hovered")})})():null,r.jsxs("div",{className:"cometchat-message-bubble__body-wrapper",children:[r.jsxs("div",{onMouseEnter:L,onClick:()=>{N||L()},ref:S,className:`cometchat-message-bubble__body ${(()=>{let e="";return e=E[_+"_"+b]?E[_+"_"+b]:_+"_"+b,_||(e=""),e})()}`,children:[s?r.jsxs("div",{className:"cometchat-message-bubble__body-reply-view",children:[" ",s]}):null,c?r.jsxs("div",{className:"cometchat-message-bubble__body-content-view",children:[" ",c]}):null,p?r.jsxs("div",{className:"cometchat-message-bubble__body-status-info-view",children:[" ",p]}):null]}),l?r.jsxs("div",{className:"cometchat-message-bubble__body-bottom-view",children:[" ",l]}):null,d?r.jsxs("div",{className:"cometchat-message-bubble__body-footer-view",children:[" ",d]}):null,u?r.jsxs("div",{className:"cometchat-message-bubble__body-thread-view",children:[" ",u]}):null]})]})})]})]})})},en=({message:e})=>{const t=a.useRef(null),[n,o]=a.useState(0);return a.useEffect(()=>{const e=t.current?.closest(".cometchat-message-bubble__body-bottom-view")?.parentNode;if(!e)return;const n=e.querySelector(".cometchat-message-bubble__body-content-view");if(!n)return;const r=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect.width;o(t=>t!==e?e:t)}});return r.observe(n),o(n.offsetWidth),()=>r.disconnect()},[]),r.jsxs("div",{ref:t,className:"cometchat-moderation-status",style:{width:n>=240?`calc(${n}px + var(--cometchat-padding-1) * 2)`:"240px"},children:[r.jsx("div",{className:"cometchat-moderation-status__icon"}),r.jsx("p",{className:"cometchat-moderation-status__message",children:e||V("moderation_block_message")})]})};class tn{getContentView(e,t,n,r){let a;const o={};return o[`${t.category}_${t.type}`]=t,o[`${e?.getCategory()}_${e?.getType()}`]&&o[`${e?.getCategory()}_${e?.getType()}`]?.contentView?(a=o[`${e?.getCategory()}_${e?.getType()}`]?.contentView(e,n,r),"string"==typeof a?{html:a}:a):null}getStatusInfoView(e,t,n,r,a=!1){let o;const i={};return i[`${t.category}_${t.type}`]=t,i[`${e?.getCategory()}_${e?.getType()}`]&&i[`${e?.getCategory()}_${e?.getType()}`]?.statusInfoView?(o=i[`${e?.getCategory()}_${e?.getType()}`]?.statusInfoView(e,n,a,r),"string"==typeof o?{html:o}:o):null}getModeratedMessageBottomView(){return r.jsx(en,{})}getPermissionDeniedMessageBottomView(){return r.jsx(en,{message:V("file_type_not_allowed")})}getBubbleWrapper(e,t){let n;const r={};return r[`${t.category}_${t.type}`]=t,r&&r[`${e?.getCategory()}_${e?.getType()}`]&&r[`${e?.getCategory()}_${e?.getType()}`].bubbleView?(n=r[`${e?.getCategory()}_${e?.getType()}`].bubbleView(e),n):(n=null,n)}getMessageBubble(e,t,n,a,o,i,s){return this.getBubbleWrapper(e,t)?this.getBubbleWrapper(e,t):r.jsx(Xt,{bottomView:null,headerView:null,options:[],footerView:null,leadingView:null,statusInfoView:this.getStatusInfoView(e,t,n,a,o),contentView:this.getContentView(e,t,n,i),replyView:s??null,threadView:null,alignment:n,id:e?.getId()||e?.getMuid()})}getUserStatusVisible(e){let t=!1;return e instanceof(o.CometChat.User||o.CometChat.GroupMember)&&(e.getBlockedByMe()||e.getHasBlockedMe())&&(t=!0),t}getActionMessage(e){let t="";if(!1===e.hasOwnProperty("actionBy")||!1===e.hasOwnProperty("actionOn"))return t;if(e.getAction()!==pt.groupMemberAction.JOINED&&e.getAction()!==pt.groupMemberAction.LEFT&&(!1===e.getActionBy().hasOwnProperty("name")||!1===e.getActionOn().hasOwnProperty("name")))return t;if(e.getAction()===pt.groupMemberAction.SCOPE_CHANGE){if(!e.hasOwnProperty("data")||!e.getData().hasOwnProperty("extras"))return t;if(!e.getData().extras.hasOwnProperty("scope"))return t;if(!1===e.getData().extras.scope.hasOwnProperty("new"))return t}if(e.getAction()===pt.groupMemberAction.SCOPE_CHANGE&&!1===e.getData().extras.hasOwnProperty("scope"))return t;if(e.getAction()===pt.groupMemberAction.SCOPE_CHANGE&&!1===e.getData().extras.scope.hasOwnProperty("new"))return t;const n=e.getActionBy(),r=e.getActionOn(),a=n.name,o=e.getAction()!==pt.groupMemberAction.JOINED&&e.getAction()!==pt.groupMemberAction.LEFT?r.name:"";switch(e.getAction()){case pt.groupMemberAction.ADDED:t=`${a} ${V("message_list_action_added")} ${o}`;break;case pt.groupMemberAction.JOINED:t=`${a} ${V("message_list_action_joined")}`;break;case pt.groupMemberAction.LEFT:t=`${a} ${V("message_list_action_left")}`;break;case pt.groupMemberAction.KICKED:t=`${a} ${V("message_list_action_kicked")} ${o}`;break;case pt.groupMemberAction.BANNED:t=`${a} ${V("message_list_action_banned")} ${o}`;break;case pt.groupMemberAction.UNBANNED:t=`${a} ${V("message_list_action_unbanned")} ${o}`;break;case pt.groupMemberAction.SCOPE_CHANGE:{const n=e.data.extras.scope.new;t=`${a} ${V("message_list_action_made")} ${o} ${n}`;break}}return t}}var nn="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8321%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8321%29%22%3E%3Cpath%20d%3D%22M11.9995%2013.0538L6.92652%2018.127C6.78802%2018.2653%206.61394%2018.3362%206.40427%2018.3395C6.19477%2018.3427%206.01752%2018.2718%205.87252%2018.127C5.72769%2017.982%205.65527%2017.8063%205.65527%2017.6C5.65527%2017.3937%205.72769%2017.218%205.87252%2017.073L10.9458%2012L5.87252%206.92701C5.73419%206.78851%205.66336%206.61443%205.66002%206.40476C5.65686%206.19526%205.72769%206.01801%205.87252%205.87301C6.01752%205.72818%206.19319%205.65576%206.39952%205.65576C6.60586%205.65576%206.78152%205.72818%206.92652%205.87301L11.9995%2010.9463L17.0725%205.87301C17.211%205.73468%2017.3851%205.66385%2017.5948%205.66051C17.8043%205.65735%2017.9815%205.72818%2018.1265%205.87301C18.2714%206.01801%2018.3438%206.19368%2018.3438%206.40001C18.3438%206.60635%2018.2714%206.78201%2018.1265%206.92701L13.0533%2012L18.1265%2017.073C18.2649%2017.2115%2018.3357%2017.3856%2018.339%2017.5953C18.3422%2017.8048%2018.2714%2017.982%2018.1265%2018.127C17.9815%2018.2718%2017.8059%2018.3443%2017.5995%2018.3443C17.3932%2018.3443%2017.2175%2018.2718%2017.0725%2018.127L11.9995%2013.0538Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";const rn=e=>{const{text:t,hoverText:n,iconURL:a,disabled:o,isLoading:i=!1,onClick:s=()=>{}}=e;return r.jsx("div",{className:"cometchat",children:r.jsx("button",{onMouseUp:e=>e?.stopPropagation(),onMouseDown:e=>e?.stopPropagation(),className:"cometchat-button",title:n,onClick:e=>s(e),disabled:o||i,children:i?r.jsx("img",{src:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M12%2022C10.6333%2022%209.34167%2021.7375%208.125%2021.2125C6.90833%2020.6875%205.84583%2019.9708%204.9375%2019.0625C4.02917%2018.1542%203.3125%2017.0917%202.7875%2015.875C2.2625%2014.6583%202%2013.3667%202%2012C2%2010.6167%202.2625%209.32083%202.7875%208.1125C3.3125%206.90417%204.02917%205.84583%204.9375%204.9375C5.84583%204.02917%206.90833%203.3125%208.125%202.7875C9.34167%202.2625%2010.6333%202%2012%202C12.2833%202%2012.5208%202.09583%2012.7125%202.2875C12.9042%202.47917%2013%202.71667%2013%203C13%203.28333%2012.9042%203.52083%2012.7125%203.7125C12.5208%203.90417%2012.2833%204%2012%204C9.78333%204%207.89583%204.77917%206.3375%206.3375C4.77917%207.89583%204%209.78333%204%2012C4%2014.2167%204.77917%2016.1042%206.3375%2017.6625C7.89583%2019.2208%209.78333%2020%2012%2020C14.2167%2020%2016.1042%2019.2208%2017.6625%2017.6625C19.2208%2016.1042%2020%2014.2167%2020%2012C20%2011.7167%2020.0958%2011.4792%2020.2875%2011.2875C20.4792%2011.0958%2020.7167%2011%2021%2011C21.2833%2011%2021.5208%2011.0958%2021.7125%2011.2875C21.9042%2011.4792%2022%2011.7167%2022%2012C22%2013.3667%2021.7375%2014.6583%2021.2125%2015.875C20.6875%2017.0917%2019.9708%2018.1542%2019.0625%2019.0625C18.1542%2019.9708%2017.0958%2020.6875%2015.8875%2021.2125C14.6792%2021.7375%2013.3833%2022%2012%2022Z%22%20fill%3D%22%23F9F8FD%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",alt:"Loading...",className:"cometchat-button__loading-view"}):r.jsxs(r.Fragment,{children:[r.jsx("div",{style:a?{WebkitMask:`url(${a}) center center no-repeat`}:void 0,className:a?"cometchat-button__icon-default cometchat-button__icon":"cometchat-button__icon"}),t&&r.jsx("label",{className:"cometchat-button__text",children:t})]})})})};function an(e,n){let r=e;const{type:a}=n;switch(a){case"setSearchText":r={...e,searchText:n.searchText};break;case"appendUsers":let a=[];n.removeOldUsers?(e.disableLoadingState||(e.userList=[]),a=n.users,e.disableLoadingState||(r={...e,userList:a})):n.usersManager&&[0].includes(n.usersManager?.getCurrentPage())&&!n.users.length?!n.users.length&&n.onEmpty&&(setTimeout(()=>{n.onEmpty()}),r={...e,fetchState:t.DGz.empty}):0!==n.users.length&&(r={...e,userList:1==n.usersManager?.getCurrentPage()?[...n.users]:[...e.userList,...n.users]});break;case"setUserList":r={...e,userList:n.userList};break;case"setFetchState":r={...e,fetchState:n.fetchState};break;case"updateUser":{const{userList:t}=e,{user:a}=n,o=a.getUid(),i=t.findIndex(e=>e.getUid()===o);i>-1&&(r={...e,userList:t.map((e,t)=>t===i?(!a.getHasBlockedMe()&&e.getHasBlockedMe()&&a.setHasBlockedMe(!0),!a.getBlockedByMe()&&e.getBlockedByMe()&&a.setBlockedByMe(!0),a):e)});break}case"setIsFirstReload":r={...e,isFirstReload:n.isFirstReload}}return r}function on(e){const{hideSearch:n=!1,itemView:i=null,showSectionHeader:s=!0,sectionHeaderKey:l="getName",loadingView:d,hideError:p=!1,errorView:h,emptyView:m,subtitleView:g=null,hideUserStatus:f=!1,headerView:_,options:b=null,selectionMode:v=t.QcU.none,onSelect:y,usersRequestBuilder:E=null,searchRequestBuilder:C=null,onItemClick:S,onError:w,activeUser:k=null,searchKeyword:x="",onEmpty:T,disableLoadingState:A=!1,leadingView:R,titleView:I,trailingView:O,showScrollbar:N=!1,showSelectedUsersPreview:M=!1}=e,[D,L]=a.useState([]),P=a.useRef(new Map),j=a.useRef(null),U=a.useRef(null),F=a.useRef(null),B=a.useRef(null),[G,H]=a.useReducer(an,{searchText:"",userList:[],fetchState:t.DGz.loading,isFirstReload:!1,disableLoadingState:A}),z=a.useCallback((e,t,n)=>{if(L(e),t&&t.length>0&&t.forEach(e=>{P.current.set(e.getUid(),e)}),n&&n.length>0)n.forEach(e=>{P.current.delete(e.getUid())});else if((!t||0===t.length)&&P.current.size>e.length){const t=new Set(e),n=[];P.current.forEach((e,r)=>{t.has(r)||n.push(r)}),n.forEach(e=>{P.current.delete(e)})}},[]),Y=a.useCallback((e,t)=>{if(t<0||t>=G.userList.length)return j.current=null,void(U.current=null);j.current=t,U.current=e.getUid()},[G.userList]),q=a.useCallback(()=>{if(null===j.current||null===U.current)return null;const e=j.current;if(e<0||e>=G.userList.length){const e=G.userList.findIndex(e=>e.getUid()===U.current);return-1!==e?(j.current=e,e):(j.current=null,U.current=null,null)}const t=G.userList[e];if(t&&t.getUid()===U.current)return e;{const e=G.userList.findIndex(e=>e.getUid()===U.current);return-1!==e?(j.current=e,e):(j.current=null,U.current=null,null)}},[G.userList]),Q=a.useCallback((e,t)=>{const n=q();if(null===n)return Y(e,t),void(D.includes(e.getUid())?(y?.(e,!1),z(D.filter(t=>t!==e.getUid()),void 0,[e])):(y?.(e,!0),z([...D,e.getUid()],[e])));const r=new Set(D);if(r.has(e.getUid())){const e=G.userList.slice(t).filter(e=>r.has(e.getUid()));e.forEach(e=>{y?.(e,!1)});const n=D.filter(e=>{const n=G.userList.findIndex(t=>t.getUid()===e);return-1!==n&&n<t});z(n,void 0,e)}else{const e=Math.min(n,t),a=Math.max(n,t),o=G.userList.slice(e,a+1),i=o.map(e=>e.getUid()),s=[];o.forEach(e=>{r.has(e.getUid())||(y?.(e,!0),s.push(e))});const c=new Set([...D,...i]),l=Array.from(c);z(l,s)}},[G.userList,D,y,z,q,Y]),X=a.useCallback((e,n)=>{const r=G.userList.findIndex(t=>t.getUid()===e.getUid()),a=!0===n?.shiftKey;v===t.QcU.multiple?(a&&null!==q()?Q(e,r):(Y(e,r),D.includes(e.getUid())?(y?.(e,!1),z(D.filter(t=>t!==e.getUid()),void 0,[e])):(y?.(e,!0),z([...D,e.getUid()],[e]))),S?.(e)):(S?.(e),D.includes(e.getUid())?z(D.filter(t=>t!==e.getUid()),void 0,[e]):z([...D,e.getUid()],[e]))},[G.userList,D,v,y,S,z,Q,q,Y]),ee=a.useRef(V("user_title")),te=a.useRef(V("user_search_placeholder")),ne=u(w),re=a.useRef(null),ae=a.useRef(""),oe=a.useRef(!1),ie=a.useRef(!1),se=a.useRef("");let ce=a.useRef(!0);G.searchText&&G.searchText!==se.current&&(se.current=G.searchText),G.isFirstReload&&(oe.current=!0,G.isFirstReload=!1);const le=a.useCallback(async e=>{const n=re.current;if(!n)return;let r=ie.current||A&&!ce?t.DGz.loaded:t.DGz.loading;H({type:"setFetchState",fetchState:r});try{const r=await n.fetchNext();if(e!==ae.current)return;let a=!!ie.current;H({type:"appendUsers",users:r,removeOldUsers:a,usersManager:n,onEmpty:T}),oe.current&&($.attachConnestionListener(()=>{const e=null===E?(new o.CometChat.UsersRequestBuilder).setLimit(30):E;re.current=new $({searchText:se.current,usersRequestBuilder:e,searchRequestBuilder:C,usersSearchText:se}),ie.current=!0}),oe.current=!1),ie.current?ie.current=!1:H({type:"setFetchState",fetchState:t.DGz.loaded})}catch(n){e===ae.current&&G.userList?.length<=0&&H({type:"setFetchState",fetchState:t.DGz.error}),ne(n,"fetchNextAndAppendUsers")}ce.current=!1},[ne,H]),ue=a.useCallback(e=>{try{const t=e.trim();(0===e.length||t.length>0)&&(se.current="",H({type:"setSearchText",searchText:t}))}catch(e){ne(e,"onSearch")}},[H]),de=a.useCallback(e=>{H({type:"updateUser",user:e})},[H]),pe=a.useCallback(e=>{try{if(O)return O(e);if(v!==t.QcU.single&&v!==t.QcU.multiple)return null;let n;return n=v===t.QcU.single?r.jsx(Z,{name:pt.radioNames.users,id:e.getUid(),onRadioButtonChanged:t=>y?.(e,t.checked)}):r.jsx(c,{checked:!!D.includes(e.getUid()),onCheckBoxValueChanged:t=>{const n=G.userList.findIndex(t=>t.getUid()===e.getUid());!0===t?.shiftKey&&null!==q()?Q(e,n):(Y(e,n),y?.(e,t.checked),t.checked?z([...D,e.getUid()],[e]):z(D.filter(t=>t!==e.getUid()),void 0,[e]))}},e.getUid()),r.jsx(r.Fragment,{children:n})}catch(e){return ne(e,"getDefaultListItemTailView"),null}},[O,v,y,D,G.userList,Q,z,q,Y,ne]);function he(e){try{let t;return(t=b?.(e))?.length?r.jsx(qt,{data:t,onOptionClicked:e=>e.onClick?.()}):null}catch(e){return ne(e,"getDefaultListItemMenuView"),null}}const me=a.useCallback(()=>{const e=[];for(const t of D){const n=P.current.get(t);n&&e.push(n)}return e},[D]);a.useEffect(()=>{let e=null,n=null;const r=()=>{n&&clearTimeout(n),n=setTimeout(()=>{requestAnimationFrame(()=>{(()=>{if(!B.current)return;const e=B.current.querySelector(".cometchat-list__body");if(e)if(M&&v===t.QcU.multiple)if(me().length>0&&F.current){const t=F.current.offsetHeight;e.style.paddingBottom=`${t}px`}else e.style.paddingBottom="0px";else e.style.paddingBottom="0px"})()})},0)};return r(),F.current&&(e=new ResizeObserver(()=>{r()}),e.observe(F.current)),()=>{e&&e.disconnect(),n&&clearTimeout(n)}},[D,M,v,me]);const ge=a.useCallback(()=>{if(!M||v!==t.QcU.multiple)return null;const e=me();return 0===e.length?null:r.jsx("div",{ref:F,className:"cometchat-users__selected-preview "+(N?"":"cometchat-users__selected-preview-hide-scrollbar"),children:r.jsx("div",{className:"cometchat-users__selected-preview-container "+(N?"":"cometchat-users__selected-preview-container-hide-scrollbar"),children:e.map(e=>{const t=e.getName(),n=t?.trim()??"",a=n.length>0?n.split(/\s+/)[0]:t&&t.length>0?t:"Unknown User";return r.jsxs("div",{className:"cometchat-users__selected-preview-chip",children:[r.jsx(W,{image:e.getAvatar(),name:e.getName()}),r.jsx("span",{className:"cometchat-users__selected-preview-chip-name",children:a}),r.jsx("div",{className:"cometchat-users__selected-preview-chip-close-button",children:r.jsx(rn,{iconURL:nn,onClick:()=>(e=>{y?.(e,!1),z(D.filter(t=>t!==e.getUid()),void 0,[e])})(e)})})]},e.getUid())})})})},[M,v,me,y,D,z,N]);return function(e){const{usersManagerRef:t,fetchNextAndAppendUsers:n,searchText:r,usersRequestBuilder:i,searchRequestBuilder:s,dispatch:c,updateUser:l,fetchNextIdRef:u,searchKeyword:d,disableLoadingState:p,usersSearchText:h,hideUserStatus:m,errorHandler:g}=e;a.useEffect(()=>{try{return i?.searchKeyword?h.current=i?.searchKeyword:s?.searchKeyword&&(h.current=s?.searchKeyword),()=>{i?.setSearchKeyword("")}}catch(e){g(e,"useEffect")}},[]),a.useEffect(()=>{try{c({type:"setIsFirstReload",isFirstReload:!0}),h.current=d,t.current=new $({searchText:r,usersRequestBuilder:i,searchRequestBuilder:s,usersSearchText:h}),p||c({type:"setUserList",userList:[]}),n(u.current="initialFetch_"+String(Date.now()))}catch(e){g(e,"useEffect")}},[r,i,s,n,c,u,t,p,d]),a.useEffect(()=>{try{if(!m){const e="UsersList_"+String(Date.now()),t=new o.CometChat.UserListener({onUserOnline:l,onUserOffline:l});return o.CometChat.addUserListener(e,t),()=>o.CometChat.removeUserListener(e)}}catch(e){g(e,"useEffect")}},[l]),a.useEffect(()=>{try{const e=ut.ccUserBlocked.subscribe(l),t=ut.ccUserUnblocked.subscribe(l);return()=>{e.unsubscribe(),t.unsubscribe()}}catch(e){g(e,"useEffect")}},[l]),a.useEffect(()=>{c({type:"setSearchText",searchText:d})},[d,c])}({usersManagerRef:re,fetchNextAndAppendUsers:le,searchText:G.searchText,usersRequestBuilder:E,searchRequestBuilder:C,dispatch:H,updateUser:de,fetchNextIdRef:ae,searchKeyword:x,disableLoadingState:A,usersSearchText:se,hideUserStatus:f,errorHandler:ne}),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%",overflow:"hidden"},children:r.jsxs("div",{ref:B,className:"cometchat-users "+(N?"":"cometchat-users-hide-scrollbar"),children:[r.jsx(K,{showScrollbar:N,title:ee.current,hideSearch:G.fetchState===t.DGz.error||n,searchPlaceholderText:te.current,searchText:G.searchText,onSearch:ue,list:G.userList,itemView:i||function(e){try{const t=e.getStatus(),n=k?.getUid()===e.getUid();let a=(new tn).getUserStatusVisible(e)||f;return r.jsx("div",{className:`cometchat-users__list-item ${a?"":`cometchat-users__list-item-${t}`} ${n?"cometchat-users__list-item-active":""}`,children:r.jsx(J,{stopEventPropagation:!0,id:e.getUid(),avatarURL:e.getAvatar(),avatarName:e.getName(),title:e.getName(),titleView:I?.(e),leadingView:R?.(e),subtitleView:g?.(e),trailingView:pe(e),menuView:he(e),onListItemClicked:t=>X(e,t)})})}catch(e){return ne(e,"getListItem"),r.jsx(r.Fragment,{})}},onScrolledToBottom:()=>le(ae.current="onScrolledToBottom_"+String(Date.now())),showSectionHeader:s,sectionHeaderKey:l,listItemKey:"getUid",state:G.fetchState!==t.DGz.loaded||0!==G.userList.length||T?G.fetchState:t.DGz.empty,loadingView:(()=>{try{return d||r.jsx("div",{className:"cometchat-users__shimmer",children:[...Array(15)].map((e,t)=>r.jsxs("div",{className:"cometchat-users__shimmer-item",children:[r.jsx("div",{className:"cometchat-users__shimmer-item-avatar"}),r.jsx("div",{className:"cometchat-users__shimmer-item-title"})]},t))})}catch(e){ne(e,"getLoadingView")}})(),hideError:p,emptyView:(()=>{try{const e="dark"==Et();return m||r.jsxs("div",{className:"cometchat-users__empty-state-view",children:[r.jsx("div",{className:"cometchat-users__empty-state-view-icon",children:r.jsx("img",{src:e?"data:image/svg+xml,%3Csvg%20width%3D%22220%22%20height%3D%22140%22%20viewBox%3D%220%200%20220%20140%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3851_1193113%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2230%22%20y%3D%22-10%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Crect%20x%3D%2230%22%20y%3D%22-10%22%20width%3D%22160%22%20height%3D%22160%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3851_1193113%29%22%3E%3Cpath%20d%3D%22M110%2067.9489C103.564%2067.9489%2098.0667%2065.6689%2093.5067%2061.1089C88.9467%2056.55%2086.6667%2051.0522%2086.6667%2044.6156C86.6667%2038.18%2088.9467%2032.6822%2093.5067%2028.1222C98.0667%2023.5622%20103.564%2021.2822%20110%2021.2822C116.436%2021.2822%20121.933%2023.5622%20126.493%2028.1222C131.053%2032.6822%20133.333%2038.18%20133.333%2044.6156C133.333%2051.0522%20131.053%2056.55%20126.493%2061.1089C121.933%2065.6689%20116.436%2067.9489%20110%2067.9489ZM60%20108.591V103.897C60%20100.633%2060.8867%2097.6094%2062.66%2094.8272C64.4333%2092.045%2066.8033%2089.9061%2069.77%2088.4106C76.3589%2085.1806%2083.0061%2082.7578%2089.7117%2081.1422C96.4172%2079.5267%20103.18%2078.7189%20110%2078.7189C116.82%2078.7189%20123.583%2079.5267%20130.288%2081.1422C136.994%2082.7578%20143.641%2085.1806%20150.23%2088.4106C153.197%2089.9061%20155.567%2092.045%20157.34%2094.8272C159.113%2097.6094%20160%20100.633%20160%20103.897V108.591C160%20111.402%20159.015%20113.793%20157.045%20115.764C155.075%20117.734%20152.684%20118.719%20149.872%20118.719H70.1283C67.3161%20118.719%2064.925%20117.734%2062.955%20115.764C60.985%20113.793%2060%20111.402%2060%20108.591Z%22%20fill%3D%22%23383838%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3Csvg%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3851_1193115%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%22-20%22%20y%3D%22-20%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Crect%20x%3D%22-20%22%20y%3D%22-20%22%20width%3D%22160%22%20height%3D%22160%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3851_1193115%29%22%3E%3Cpath%20d%3D%22M60%2057.9489C53.5644%2057.9489%2048.0667%2055.6689%2043.5067%2051.1089C38.9467%2046.55%2036.6667%2041.0522%2036.6667%2034.6156C36.6667%2028.18%2038.9467%2022.6822%2043.5067%2018.1222C48.0667%2013.5622%2053.5644%2011.2822%2060%2011.2822C66.4356%2011.2822%2071.9333%2013.5622%2076.4933%2018.1222C81.0533%2022.6822%2083.3333%2028.18%2083.3333%2034.6156C83.3333%2041.0522%2081.0533%2046.55%2076.4933%2051.1089C71.9333%2055.6689%2066.4356%2057.9489%2060%2057.9489ZM10%2098.5906V93.8972C10%2090.6328%2010.8867%2087.6094%2012.66%2084.8272C14.4333%2082.045%2016.8033%2079.9061%2019.77%2078.4106C26.3589%2075.1806%2033.0061%2072.7578%2039.7117%2071.1422C46.4172%2069.5267%2053.18%2068.7189%2060%2068.7189C66.82%2068.7189%2073.5828%2069.5267%2080.2883%2071.1422C86.9939%2072.7578%2093.6411%2075.1806%20100.23%2078.4106C103.197%2079.9061%20105.567%2082.045%20107.34%2084.8272C109.113%2087.6094%20110%2090.6328%20110%2093.8972V98.5906C110%20101.402%20109.015%20103.793%20107.045%20105.764C105.075%20107.734%20102.684%20108.719%2099.8717%20108.719H20.1283C17.3161%20108.719%2014.925%20107.734%2012.955%20105.764C10.985%20103.793%2010%20101.402%2010%2098.5906Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",alt:""})}),r.jsxs("div",{className:"cometchat-users__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-users__empty-state-view-body-title",children:V("user_empty_title")}),r.jsx("div",{className:"cometchat-users__empty-state-view-body-description",children:V("user_empty_subtitle")})]})]})}catch(e){ne(e,"getEmptyView")}})(),errorView:(()=>{try{const e="dark"==Et();return h||r.jsxs("div",{className:"cometchat-users__error-state-view",children:[r.jsx("div",{className:"cometchat-users__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-users__error-state-view-body",children:[r.jsx("div",{className:"cometchat-users__error-state-view-body-title",children:V("user_error_title")}),r.jsx("div",{className:"cometchat-users__error-state-view-body-description",children:V("user_error_subtitle")})]})]})}catch(e){ne(e,"getErrorView")}})(),headerView:_}),ge()]})})}class sn{constructor(e){const{searchText:t,groupMemberRequestBuilder:n,searchRequestBuilder:r,groupGuid:a,groupMembersSearchText:i}=e;let s=n||new o.CometChat.GroupMembersRequestBuilder(a).setLimit(30);t&&r?(s=r,s.setSearchKeyword(t)):t&&!r&&n?(s=n,s.setSearchKeyword(t)):!t&&n&&r?(s=n,s.setSearchKeyword(i.current)):t||!n||r?t||n||!r?s.setSearchKeyword(t):s.setSearchKeyword(i.current):(s=n,s.setSearchKeyword(i.current)),this.groupMembersRequest=s.build()}fetchNext(){return this.groupMembersRequest.fetchNext()}getCurrentPage(){return this.groupMembersRequest.pagination.current_page}static attachUserListener(e){const t="GroupMembers_User_"+String(Date.now());return o.CometChat.addUserListener(t,new o.CometChat.UserListener({onUserOnline:e,onUserOffline:e})),()=>o.CometChat.removeUserListener(t)}static createParticipantGroupMember(e,t){const n=new o.CometChat.GroupMember(e.getUid(),pt.groupMemberScope.participant);return n.setName(e.getName()),n.setGuid(t.getGuid()),n.setUid(e.getUid()),n.setAvatar(e?.getAvatar()),n.setStatus(e.getStatus()),n}static attachGroupListener(e,t){const n="GroupMembers_Group_"+String(Date.now());return o.CometChat.addGroupListener(n,new o.CometChat.GroupListener({onGroupMemberScopeChanged:(n,r,a,o,i)=>{i.getGuid()===e&&t({type:"updateGroupMemberScopeIfPresent",groupMemberUid:r.getUid(),newScope:a})},onGroupMemberKicked:(n,r,a,o)=>{o.getGuid()===e&&t({type:"removeGroupMemberIfPresent",groupMemberUid:r.getUid()})},onGroupMemberBanned:(n,r,a,o)=>{o.getGuid()===e&&t({type:"removeGroupMemberIfPresent",groupMemberUid:r.getUid()})},onMemberAddedToGroup:(n,r,a,o)=>{o.getGuid()===e&&t({type:"appendGroupMember",groupMember:sn.createParticipantGroupMember(r,o)})},onGroupMemberLeft:(n,r,a)=>{a.getGuid()===e&&t({type:"removeGroupMemberIfPresent",groupMemberUid:r.getUid()})},onGroupMemberJoined:(n,r,a)=>{a.getGuid()===e&&t({type:"appendGroupMember",groupMember:sn.createParticipantGroupMember(r,a)})}})),()=>o.CometChat.removeGroupListener(n)}}class cn{static publishEvent(e,t){e.next(t)}}cn.ccGroupCreated=new Ie,cn.ccGroupDeleted=new Ie,cn.ccGroupMemberJoined=new Ie,cn.ccGroupLeft=new Ie,cn.ccGroupMemberAdded=new Ie,cn.ccGroupMemberScopeChanged=new Ie,cn.ccGroupMemberKicked=new Ie,cn.ccGroupMemberBanned=new Ie,cn.ccGroupMemberUnbanned=new Ie,cn.ccOwnershipChanged=new Ie;class ln{static getViewMemberOptions(e,t,n="",r){let a=[];if(t.getOwner()==e.getUid())a=pt.groupMemberScope.owner;else{let o=t.getOwner()==n?pt.groupMemberScope.owner:t.getScope()??pt.groupMemberScope.participant,i=!r?.hideKickMemberOption&&un[o+e.getScope()][pt.GroupMemberOptions.kick],s=!r?.hideBanMemberOption&&un[o+e.getScope()][pt.GroupMemberOptions.kick],c=!r?.hideScopeChangeOption&&un[o+e.getScope()][pt.GroupMemberOptions.kick];i&&a.push(new zt({id:pt.GroupMemberOptions.kick,title:V("members_remove")})),s&&a.push(new zt({id:pt.GroupMemberOptions.ban,title:V("members_block")})),c&&a.push(new zt({id:pt.GroupMemberOptions.changeScope,title:V("members_change_role")})),i||s||c||(a=e.getScope())}return a}static getBannedMemberOptions(e,t){if(un[e.getScope()+t.getScope()][pt.GroupMemberOptions.unban])return[new zt({id:pt.GroupMemberOptions.unban})]}static allowScopeChange(e,t){let n=un[e.getScope()+t.getScope()][pt.GroupMemberOptions.changeScope];if(n?.length>0&&n.includes(t.getScope())){let e=n.indexOf(t.getScope());n.splice(e,1),n.unshift(t.getScope())}return n}}const un={[pt.groupMemberScope.participant+pt.groupMemberScope.participant]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!1,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.participant+pt.groupMemberScope.moderator]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!1,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.participant+pt.groupMemberScope.admin]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!1,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.participant+pt.groupMemberScope.owner]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!1,[pt.GroupMemberOptions.changeScope]:[],[pt.GroupOptions.addMembers]:!1,[pt.GroupOptions.delete]:!1,[pt.GroupOptions.leave]:!0,[pt.GroupOptions.bannedMembers]:!1,[pt.GroupOptions.viewMembers]:!0},[pt.groupMemberScope.moderator+pt.groupMemberScope.participant]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.moderator]},[pt.groupMemberScope.moderator+pt.groupMemberScope.moderator]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.moderator+pt.groupMemberScope.admin]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.moderator+pt.groupMemberScope.owner]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.admin+pt.groupMemberScope.participant]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]},[pt.groupMemberScope.admin+pt.groupMemberScope.moderator]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]},[pt.groupMemberScope.admin+pt.groupMemberScope.admin]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]},[pt.groupMemberScope.admin+pt.groupMemberScope.owner]:{[pt.GroupMemberOptions.kick]:!1,[pt.GroupMemberOptions.ban]:!1,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[]},[pt.groupMemberScope.owner+pt.groupMemberScope.participant]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]},[pt.groupMemberScope.owner+pt.groupMemberScope.moderator]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]},[pt.groupMemberScope.owner+pt.groupMemberScope.admin]:{[pt.GroupMemberOptions.kick]:!0,[pt.GroupMemberOptions.ban]:!0,[pt.GroupMemberOptions.unban]:!0,[pt.GroupMemberOptions.changeScope]:[pt.groupMemberScope.participant,pt.groupMemberScope.admin,pt.groupMemberScope.moderator]}},dn=e=>{const{title:t=V("change_scope_title"),buttonText:n=V("change_scope_confirm_yes"),options:o=[],defaultSelection:i="",onScopeChanged:s,onCloseClick:c=()=>{}}=e,[l,u]=a.useState(!1),[d,p]=a.useState(!1),{selectedValue:h,selectionChanged:m}=(({defaultSelection:e=""})=>{const[t,n]=a.useState(e);return a.useEffect(()=>{n(e)},[e]),{selectedValue:t,selectionChanged:a.useCallback(({id:e=""})=>{n(e)},[])}})({defaultSelection:i});return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-change-scope",children:[r.jsx("div",{className:"cometchat-change-scope__icon-container",children:r.jsx("div",{className:"cometchat-change-scope__icon"})}),r.jsxs("div",{className:"cometchat-change-scope__text",children:[r.jsx("div",{className:"cometchat-change-scope__title",children:r.jsx("label",{title:t,children:t})}),r.jsx("div",{className:"cometchat-change-scope__description",children:V("change_scope_subtitle")})]}),r.jsx("div",{className:"cometchat-change-scope__list",children:o.map((e,t)=>r.jsxs("div",{className:"cometchat-change-scope__list-item",children:[r.jsx("div",{className:"cometchat-change-scope__list-item-label",children:V(`member_scope_${e?.toLowerCase()}`)}),r.jsx(Z,{name:pt.radioNames.changeScope,id:e,checked:e===i,onRadioButtonChanged:m})]},t))}),d?r.jsx("div",{className:"cometchat-change-scope__error-view",children:V("change_scope_error")}):null,r.jsxs("div",{className:"cometchat-change-scope__button-container",children:[r.jsx("div",{className:"cometchat-change-scope__cancel-button",children:r.jsx(rn,{text:V("change_scope_confirm_no"),onClick:c})}),r.jsx("div",{className:"cometchat-change-scope__submit-button "+(i==h?"cometchat-change-scope__submit-button-disabled":""),children:r.jsx(rn,{isLoading:i!==h&&l,disabled:i===h||l,text:n,onClick:()=>{p(!1),u(!0),s&&s(h).then(()=>{u(!1),p(!1),c&&c()}).catch(e=>{p(!0),u(!1)})}})})]})]})})};var pn="data:image/svg+xml,%3Csvg%20width%3D%22220%22%20height%3D%22150%22%20viewBox%3D%220%200%20220%20150%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3851_1193136%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2235%22%20y%3D%220%22%20width%3D%22150%22%20height%3D%22150%22%3E%3Crect%20x%3D%2235%22%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3851_1193136%29%22%3E%3Cpath%20d%3D%22M46.2305%20106.779C46.2305%20103.558%2047.0617%20100.683%2048.7242%2098.1553C50.3867%2095.6271%2052.607%2093.6605%2055.3852%2092.2553C61.3247%2089.3501%2067.2971%2087.11%2073.3023%2085.535C79.3086%2083.961%2085.9091%2083.174%2093.1039%2083.174C100.3%2083.174%20106.9%2083.961%20112.905%2085.535C118.912%2087.11%20124.885%2089.3501%20130.824%2092.2553C133.602%2093.6605%20135.823%2095.6271%20137.485%2098.1553C139.148%20100.683%20139.979%20103.558%20139.979%20106.779V111.179C139.979%20113.694%20139.055%20115.906%20137.209%20117.813C135.362%20119.72%20133.12%20120.674%20130.484%20120.674H55.7242C53.0888%20120.674%2050.8477%20119.751%2049.0008%20117.904C47.1539%20116.056%2046.2305%20113.814%2046.2305%20111.179V106.779ZM150.063%20120.674C150.849%20119.24%20151.448%20117.713%20151.86%20116.094C152.273%20114.476%20152.479%20112.837%20152.479%20111.179V106.01C152.479%20101.908%20151.475%2097.998%20149.466%2094.2803C147.457%2090.5636%20144.607%2087.3745%20140.916%2084.7131C145.107%2085.3381%20149.086%2086.3053%20152.852%2087.6147C156.618%2088.9251%20160.212%2090.4735%20163.634%2092.26C166.863%2093.9829%20169.357%2096.0136%20171.115%2098.3521C172.873%20100.69%20173.752%20103.242%20173.752%20106.01V111.179C173.752%20113.814%20172.829%20116.056%20170.982%20117.904C169.135%20119.751%20166.894%20120.674%20164.259%20120.674H150.063ZM93.1039%2073.0771C87.0883%2073.0771%2081.9388%2070.9355%2077.6555%2066.6521C73.3721%2062.3678%2071.2305%2057.2178%2071.2305%2051.2021C71.2305%2045.1865%2073.3721%2040.037%2077.6555%2035.7537C81.9388%2031.4693%2087.0883%2029.3271%2093.1039%2029.3271C99.1195%2029.3271%20104.27%2031.4693%20108.554%2035.7537C112.837%2040.037%20114.979%2045.1865%20114.979%2051.2021C114.979%2057.2178%20112.837%2062.3678%20108.554%2066.6521C104.27%2070.9355%2099.1195%2073.0771%2093.1039%2073.0771ZM147.07%2051.2021C147.07%2057.2178%20144.928%2062.3678%20140.645%2066.6521C136.361%2070.9355%20131.212%2073.0771%20125.196%2073.0771C124.491%2073.0771%20123.593%2072.9969%20122.504%2072.8365C121.413%2072.6761%20120.516%2072.5001%20119.812%2072.3084C122.276%2069.3449%20124.171%2066.0574%20125.495%2062.4459C126.817%2058.8344%20127.479%2055.0844%20127.479%2051.1959C127.479%2047.3063%20126.804%2043.5704%20125.454%2039.9881C124.104%2036.4068%20122.223%2033.11%20119.812%2030.0975C120.709%2029.7766%20121.606%2029.5683%20122.504%2029.4725C123.401%2029.3756%20124.298%2029.3271%20125.196%2029.3271C131.212%2029.3271%20136.361%2031.4693%20140.645%2035.7537C144.928%2040.037%20147.07%2045.1865%20147.07%2051.2021Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",hn="data:image/svg+xml,%3Csvg%20width%3D%22220%22%20height%3D%22150%22%20viewBox%3D%220%200%20220%20150%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3851_1193136%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2235%22%20y%3D%220%22%20width%3D%22150%22%20height%3D%22150%22%3E%3Crect%20x%3D%2235%22%20width%3D%22150%22%20height%3D%22150%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3851_1193136%29%22%3E%3Cpath%20d%3D%22M46.2305%20106.779C46.2305%20103.558%2047.0617%20100.683%2048.7242%2098.1553C50.3867%2095.6271%2052.607%2093.6605%2055.3852%2092.2553C61.3247%2089.3501%2067.2971%2087.11%2073.3023%2085.535C79.3086%2083.961%2085.9091%2083.174%2093.1039%2083.174C100.3%2083.174%20106.9%2083.961%20112.905%2085.535C118.912%2087.11%20124.885%2089.3501%20130.824%2092.2553C133.602%2093.6605%20135.823%2095.6271%20137.485%2098.1553C139.148%20100.683%20139.979%20103.558%20139.979%20106.779V111.179C139.979%20113.694%20139.055%20115.906%20137.209%20117.813C135.362%20119.72%20133.12%20120.674%20130.484%20120.674H55.7242C53.0888%20120.674%2050.8477%20119.751%2049.0008%20117.904C47.1539%20116.056%2046.2305%20113.814%2046.2305%20111.179V106.779ZM150.063%20120.674C150.849%20119.24%20151.448%20117.713%20151.86%20116.094C152.273%20114.476%20152.479%20112.837%20152.479%20111.179V106.01C152.479%20101.908%20151.475%2097.998%20149.466%2094.2803C147.457%2090.5636%20144.607%2087.3745%20140.916%2084.7131C145.107%2085.3381%20149.086%2086.3053%20152.852%2087.6146C156.618%2088.9251%20160.212%2090.4735%20163.634%2092.26C166.863%2093.9829%20169.357%2096.0136%20171.115%2098.3522C172.873%20100.69%20173.752%20103.242%20173.752%20106.01V111.179C173.752%20113.814%20172.829%20116.056%20170.982%20117.904C169.135%20119.751%20166.894%20120.674%20164.259%20120.674H150.063ZM93.1039%2073.0771C87.0883%2073.0771%2081.9388%2070.9355%2077.6555%2066.6521C73.3721%2062.3678%2071.2305%2057.2178%2071.2305%2051.2021C71.2305%2045.1865%2073.3721%2040.037%2077.6555%2035.7537C81.9388%2031.4693%2087.0883%2029.3271%2093.1039%2029.3271C99.1195%2029.3271%20104.27%2031.4693%20108.554%2035.7537C112.837%2040.037%20114.979%2045.1865%20114.979%2051.2021C114.979%2057.2178%20112.837%2062.3678%20108.554%2066.6521C104.27%2070.9355%2099.1195%2073.0771%2093.1039%2073.0771ZM147.07%2051.2021C147.07%2057.2178%20144.928%2062.3678%20140.645%2066.6521C136.361%2070.9355%20131.212%2073.0771%20125.196%2073.0771C124.491%2073.0771%20123.593%2072.9969%20122.504%2072.8365C121.413%2072.6761%20120.516%2072.5001%20119.812%2072.3084C122.276%2069.3449%20124.171%2066.0574%20125.495%2062.4459C126.817%2058.8344%20127.479%2055.0844%20127.479%2051.1959C127.479%2047.3063%20126.804%2043.5704%20125.454%2039.9881C124.104%2036.4068%20122.223%2033.11%20119.812%2030.0975C120.709%2029.7766%20121.606%2029.5683%20122.504%2029.4725C123.401%2029.3756%20124.298%2029.3271%20125.196%2029.3271C131.212%2029.3271%20136.361%2031.4693%20140.645%2035.7537C144.928%2040.037%20147.07%2045.1865%20147.07%2051.2021Z%22%20fill%3D%22%23383838%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";function mn(e,n){let r=e;const{type:a}=n;switch(a){case"appendGroupMembers":{const{groupMembers:a,groupMembersManager:o,onEmpty:i,disableLoadingState:s,hasScrolled:c}=n;if(o&&[0].includes(o?.getCurrentPage())&&!a.length)i&&setTimeout(()=>{i()}),r={...e,groupMemberList:[],fetchState:t.DGz.empty};else if(0!==a.length){const t=new Set(e.groupMemberList.map(e=>e.getUid())),n=s?a:a.filter(e=>!t.has(e.getUid()));r={...e,groupMemberList:s&&!c?[...n]:[...e.groupMemberList,...n]}}break}case"setSearchText":r={...e,searchText:n.searchText};break;case"setFetchState":r={...e,fetchState:n.fetchState};break;case"setGroupMemberList":r={...e,groupMemberList:n.groupMemberList};break;case"removeGroupMemberIfPresent":{const t=n.groupMemberUid,a=e.groupMemberList.findIndex(e=>e.getUid()===t);a>-1&&(r={...e,groupMemberList:e.groupMemberList.filter((e,t)=>t!==a)});break}case"setGroupMemberToChangeScopeOf":r={...e,groupMemberToChangeScopeOf:n.groupMember};break;case"replaceGroupMemberIfPresent":{const{updatedGroupMember:t}=n,a=t.getUid(),o=e.groupMemberList.findIndex(e=>e.getUid()===a);o>-1&&(r={...e,groupMemberList:e.groupMemberList.map((e,n)=>n!==o?e:t)});break}case"updateGroupMemberStatusIfPresent":{const{user:t}=n,{groupMemberList:a}=e,o=t.getUid(),i=a.findIndex(e=>e.getUid()===o);i>-1&&(r={...e,groupMemberList:a.map((e,n)=>(n===i&&e.setStatus(t.getStatus()),e))});break}case"updateGroupMemberScopeIfPresent":{const{groupMemberUid:t,newScope:a}=n,{groupMemberList:o}=e,i=o.findIndex(e=>e.getUid()===t);i>-1&&(r={...e,groupMemberList:o.map((e,t)=>(t===i&&e.setScope(a),e))});break}case"appendGroupMember":r={...e,groupMemberList:[...e.groupMemberList,n.groupMember]}}return r}function gn(e){const{headerView:n,hideSearch:i=!1,groupMemberRequestBuilder:s=null,searchRequestBuilder:d=null,group:p,onError:h,loadingView:m,errorView:g,emptyView:f,hideError:_=!1,hideUserStatus:b=!1,subtitleView:v=null,itemView:y=null,options:E=null,trailingView:C=null,selectionMode:S=t.QcU.none,onItemClick:w=null,onSelect:k=null,searchKeyword:x="",onEmpty:T,disableLoadingState:A=!1,hideBanMemberOption:R=!1,hideKickMemberOption:I=!1,hideScopeChangeOption:O=!1,titleView:N,leadingView:M,showScrollbar:D=!1,observeScrollFromViewport:L=!1}=e,[P,j]=a.useReducer(mn,{groupMemberList:[],fetchState:t.DGz.loading,searchText:"",groupMemberToChangeScopeOf:null,disableLoadingState:A}),U=a.useRef(null),F=a.useRef(null),B=a.useRef(""),G=l(p),H=u(h),z=a.useRef(""),Y=a.useRef(V("member_search_placeholder")),q=a.useCallback(e=>{try{const t=e.trim();(0===e.length||t.length>0)&&(z.current="",j({type:"setSearchText",searchText:t}))}catch(e){H(e,"onSearchTextChange")}},[j]),W=a.useCallback(async(e,n)=>{const r=U.current;if(r){A||j({type:"setFetchState",fetchState:t.DGz.loading});try{const a=await r.fetchNext();if(e!==B.current)return;j({type:"appendGroupMembers",groupMembers:a,groupMembersManager:r,onEmpty:T,disableLoadingState:A,hasScrolled:n}),j({type:"setFetchState",fetchState:t.DGz.loaded})}catch(e){j({type:"setFetchState",fetchState:t.DGz.error}),H(e,"fetchNextAndAppendGroupMembers")}}},[A,j,H,T]),$=a.useCallback((e,t,n,r)=>{try{const a=new o.CometChat.Action(n.getGuid(),pt.MessageTypes.groupMember,pt.MessageReceiverType.group,pt.MessageCategory.action);return a.setAction(t),a.setActionBy(ht.clone(r)),a.setSender(ht.clone(r)),a.setMessage(`${r.getUid()} ${t} ${e.getUid()}`),a.setActionFor(ht.clone(n)),a.setActionOn(ht.clone(e)),a.setReceiver(ht.clone(n)),a.setConversationId("group_"+n.getGuid()),a.setMuid(ht.ID()),a.setSentAt(ht.getUnixTimestamp()),a.setReceiverType(pt.MessageReceiverType.group),a.setData({extras:{scope:{new:e.getScope()}}}),a}catch(e){H(e,"createActionMessage")}},[]),{groupMemberToChangeScopeOf:Q}=P,X=a.useCallback(e=>new Promise(async(t,n)=>{const r=F.current;if(!Q||!r)return n();try{const n=e,a=G.current;await o.CometChat.updateGroupMemberScope(a.getGuid(),Q.getUid(),n);const i=ht.clone(Q);return i.setScope(n),j({type:"replaceGroupMemberIfPresent",updatedGroupMember:i}),cn.ccGroupMemberScopeChanged.next({scopeChangedFrom:Q.getScope(),scopeChangedTo:i.getScope(),message:$(i,pt.groupMemberAction.SCOPE_CHANGE,a,r),group:ht.clone(a),updatedUser:ht.clone(i)}),t()}catch(e){n(),H(e,"updateGroupMemberScope")}finally{j({type:"setGroupMemberToChangeScopeOf",groupMember:null})}}),[H,j,$,Q,G]);function ee(e,t){try{if(e===pt.GroupMemberOptions.ban)return(async e=>{const t=F.current;if(t)try{const n=G.current;await o.CometChat.banGroupMember(n.getGuid(),e.getUid()),j({type:"removeGroupMemberIfPresent",groupMemberUid:e.getUid()});const r=ht.clone(n);r.setMembersCount(r.getMembersCount()-1),cn.ccGroupMemberBanned.next({kickedBy:ht.clone(t),kickedFrom:r,kickedUser:ht.clone(e),message:$(e,pt.groupMemberAction.BANNED,r,t)})}catch(e){H(e,"banGroupMember")}})(t);if(e===pt.GroupMemberOptions.kick)return(async e=>{const t=F.current;if(t)try{const n=G.current;await o.CometChat.kickGroupMember(n.getGuid(),e.getUid()),j({type:"removeGroupMemberIfPresent",groupMemberUid:e.getUid()});const r=ht.clone(n);r.setMembersCount(r.getMembersCount()-1),cn.ccGroupMemberKicked.next({kickedBy:ht.clone(t),kickedFrom:ht.clone(r),kickedUser:ht.clone(e),message:$(e,pt.groupMemberAction.KICKED,r,t)})}catch(e){H(e,"kickGroupMember")}})(t);if(e===pt.GroupMemberOptions.changeScope)return j({type:"setGroupMemberToChangeScopeOf",groupMember:t})}catch(e){H(e,"handleActionOnGroupMember")}}function te(e){try{let n,a=ln.getViewMemberOptions(e,p,F.current?.getUid(),{hideBanMemberOption:R,hideKickMemberOption:I,hideScopeChangeOption:O});return"string"==typeof a?null:null===C&&(n=E?.(p,e))?.length?r.jsx(qt,{placement:t.W.left,data:n,onOptionClicked:t=>{const{id:n,onClick:r}=t;r?r():"string"==typeof n&&ee(n,e)}}):r.jsx(r.Fragment,{children:r.jsx(qt,{placement:t.W.left,topMenuSize:1,data:a,onOptionClicked:t=>{const{id:n,onClick:r}=t;r?r():"string"==typeof n&&ee(n,e)}})})}catch(e){return H(e,"getDefaultListItemMenuView"),null}}function ne(e){try{return S===t.QcU.single?r.jsx(Z,{name:pt.radioNames.groupMembers,id:e.getUid(),onRadioButtonChanged:t=>k?.(e,t.checked)}):S===t.QcU.multiple?r.jsx(c,{onCheckBoxValueChanged:t=>k?.(e,t.checked)}):null}catch(e){return H(e,"getSelectionInput"),null}}function re(e,t){try{return"string"==typeof e&&"participant"!==e?r.jsx("div",{className:`cometchat-group-members__trailing-view-options cometchat-group-members__trailing-view-options-${e}`,children:V(`member_scope_${e.toLowerCase()}`)}):r.jsx("div",{className:`cometchat-group-members__trailing-view-options cometchat-group-members__trailing-view-options-${t?.getScope()}`,children:t?.getScope()!==pt.groupMemberScope.participant&&V(`member_scope_${t?.getScope().toLowerCase()}`)})}catch(e){return H(e,"getDefaultTailOptionsView"),r.jsx(r.Fragment,{})}}function ae(e){try{return null!==C?null:r.jsx("div",{className:"cometchat-group-members__trailing-view",children:re(ln.getViewMemberOptions(e,p,F.current?.getUid()),e)})}catch(e){return H(e,"getDefaultTailView"),null}}function oe(e){try{return r.jsxs("div",{children:[C?.(e),ne(e),ae(e)]})}catch(e){return H(e,"getDefaultListItemTailView"),r.jsx(r.Fragment,{})}}function ie(){j({type:"setGroupMemberToChangeScopeOf",groupMember:null})}return function(e){const{groupMemberRequestBuilder:t,searchRequestBuilder:n,searchText:r,groupMembersManagerRef:o,groupGuid:i,fetchNextAndAppendGroupMembers:s,fetchNextIdRef:c,dispatch:l,loggedInUserRef:u,errorHandler:d,updateGroupMemberScope:p,searchKeyword:h,disableLoadingState:m,groupMembersSearchText:g,hideUserStatus:f}=e;a.useEffect(()=>{try{return t?.searchKeyword?g.current=t?.searchKeyword:n?.searchKeyword&&(g.current=n?.searchKeyword),()=>{t?.setSearchKeyword("")}}catch(e){d(e,"useEffect")}},[]),a.useEffect(()=>{(async()=>{try{u.current=dt.getLoggedInUser()}catch(e){d(e,"useEffect")}})()},[d,u]),a.useEffect(()=>{try{o.current=new sn({searchText:r,groupMemberRequestBuilder:t,searchRequestBuilder:n,groupGuid:i,groupMembersSearchText:g}),m||l({type:"setGroupMemberList",groupMemberList:[]}),s(c.current="initialFetchNext_"+String(Date.now()))}catch(e){d(e,"useEffect")}},[t,n,r,i,s,l,c,o]),a.useEffect(()=>{try{if(!f)return sn.attachUserListener(e=>l({type:"updateGroupMemberStatusIfPresent",user:e}))}catch(e){d(e,"useEffect")}},[l,f]),a.useEffect(()=>sn.attachGroupListener(i,l),[i,l]),a.useEffect(()=>{try{const e=cn.ccGroupMemberKicked.subscribe(e=>{const{kickedUser:t}=e;l({type:"removeGroupMemberIfPresent",groupMemberUid:t.getUid()})}),t=cn.ccGroupMemberBanned.subscribe(e=>{const{kickedUser:t}=e;l({type:"removeGroupMemberIfPresent",groupMemberUid:t.getUid()})}),n=cn.ccGroupMemberScopeChanged.subscribe(e=>{const{updatedUser:t,scopeChangedTo:n}=e;l({type:"updateGroupMemberScopeIfPresent",groupMemberUid:t.getUid(),newScope:n})}),r=cn.ccGroupMemberAdded.subscribe(e=>{const{usersAdded:t,userAddedIn:n}=e;let r=o.current;l({type:"appendGroupMembers",groupMembersManager:r,groupMembers:t.map(e=>sn.createParticipantGroupMember(e,n))})});return()=>{e.unsubscribe(),t.unsubscribe(),n.unsubscribe(),r.unsubscribe()}}catch(e){d(e,"useEffect")}},[l]),a.useEffect(()=>{l({type:"setSearchText",searchText:h})},[h,l])}({groupMemberRequestBuilder:s,searchRequestBuilder:d,searchText:P.searchText,groupMembersManagerRef:U,groupGuid:p.getGuid(),fetchNextAndAppendGroupMembers:W,fetchNextIdRef:B,dispatch:j,loggedInUserRef:F,errorHandler:H,updateGroupMemberScope:X,searchKeyword:x,disableLoadingState:A,groupMembersSearchText:z,hideUserStatus:b}),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsxs("div",{className:"cometchat-group-members "+(D?"":"cometchat-group-members-hide-scrollbar"),children:[r.jsx(K,{showScrollbar:D,searchPlaceholderText:Y.current,searchText:P.searchText,onSearch:q,hideSearch:i,list:P.groupMemberList,listItemKey:"getUid",itemView:null!==y?y:function(e){try{const t=e.getStatus(),n=e.getHasBlockedMe();return r.jsx("div",{className:"cometchat-group-members__list-item "+(b||n?"":`cometchat-group-members__list-item-${t}`),children:r.jsx(J,{id:e.getUid(),title:e.getName(),leadingView:M?.(e),titleView:N?.(e),avatarURL:e.getAvatar(),avatarName:e.getName(),subtitleView:v?.(e),trailingView:oe(e),menuView:C?null:te(e),onListItemClicked:t=>w?.(e)})})}catch(e){return H(e,"getDefaultItemView"),r.jsx(r.Fragment,{})}},showSectionHeader:!1,onScrolledToBottom:()=>W(B.current="onScrolledToBottom_"+String(Date.now()),!0),state:P.fetchState===t.DGz.loaded&&0===P.groupMemberList.length?t.DGz.empty:P.fetchState,loadingView:(()=>{try{return m||r.jsx("div",{className:"cometchat-group-members__shimmer",children:[...Array(15)].map((e,t)=>r.jsxs("div",{className:"cometchat-group-members__shimmer-item",children:[r.jsx("div",{className:"cometchat-group-members__shimmer-item-avatar"}),r.jsx("div",{className:"cometchat-group-members__shimmer-item-title"})]},t))})}catch(e){H(e,"getLoadingView")}})(),emptyView:(()=>{try{const e="dark"==Et();return f||r.jsxs("div",{className:"cometchat-group-members__empty-state-view",children:[r.jsx("div",{className:"cometchat-group-members__empty-state-view-icon",children:r.jsx("img",{src:e?hn:pn,alt:""})}),r.jsxs("div",{className:"cometchat-group-members__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-group-members__empty-state-view-body-title",children:V("member_empty_title")}),r.jsx("div",{className:"cometchat-group-members__empty-state-view-body-description",children:V("member_empty_subtitle")})]})]})}catch(e){H(e,"getEmptyView")}})(),errorView:(()=>{try{const e="dark"==Et();return g||r.jsxs("div",{className:"cometchat-group-members__error-state-view",children:[r.jsx("div",{className:"cometchat-group-members__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-group-members__error-state-view-body",children:[r.jsx("div",{className:"cometchat-group-members__error-state-view-body-title",children:V("member_error_title")}),r.jsx("div",{className:"cometchat-group-members__error-state-view-body-description",children:V("member_error_subtitle")})]})]})}catch(e){H(e,"getErrorView")}})(),hideError:_,headerView:n,observeScrollFromViewport:L}),function(){try{let e;const{groupMemberToChangeScopeOf:t}=P;return null!==t&&(e=ln.allowScopeChange(p,t)).length>0?r.jsx("div",{className:"cometchat-group-members__backdrop",children:r.jsx(dn,{options:e,defaultSelection:t.getScope(),onScopeChanged:X,onCloseClick:ie})}):null}catch(e){return H(e,"getGroupMemberScopeChangeModal"),null}}()]})})}function fn(e){const{userMemberListType:n=t.Okh.users,onItemClick:o,itemView:i,searchKeyword:s,group:c,subtitleView:l,usersRequestBuilder:u,onEmpty:d,groupMemberRequestBuilder:p,onError:h,showScrollbar:m=!1,disableMentions:g=!1,disableMentionAll:f=!1,mentionAllLabel:_="all"}=e,b=a.useMemo(()=>!(s&&s.trim().length>0&&!_.toLowerCase().startsWith(s.trim().toLowerCase()))&&!f&&n===t.Okh.groupmembers&&c,[s,_,f,n,c]),v=a.useCallback(()=>{if(!b)return d?.()},[d,b]);return r.jsxs(r.Fragment,{children:[n===t.Okh.users&&!g&&r.jsx(on,{showScrollbar:m,hideSearch:!0,showSectionHeader:!1,onItemClick:o,searchKeyword:s,itemView:i,usersRequestBuilder:u,subtitleView:l,onEmpty:v,onError:h,disableLoadingState:!0}),n===t.Okh.groupmembers&&c&&r.jsxs(r.Fragment,{children:[b&&r.jsx("div",{className:"cometchat-special-mentions-list",children:r.jsxs("div",{className:"cometchat-special-mentions-list__item",onClick:()=>o?.(null),children:[r.jsx(W,{name:c.getName(),image:c.getIcon()}),r.jsxs("span",{className:"cometchat-special-mentions-list__item-name",children:["@",V(`message_composer_mention_${_}`)||_," ",r.jsx("span",{className:"cometchat-special-mentions-list__item-name-subtext",children:V("message_composer_mention_notify_everyone_label")})]})]})}),!g&&r.jsx(gn,{showScrollbar:m,group:c,hideSearch:!0,groupMemberRequestBuilder:p,onItemClick:o,searchKeyword:s,itemView:i,subtitleView:l,onEmpty:v,trailingView:e=>r.jsx(r.Fragment,{}),onError:h,disableLoadingState:!0,emptyView:r.jsx(r.Fragment,{}),observeScrollFromViewport:!0})]})]})}class _n{static getDefaultOptions(){return[new zt({id:pt.ConversationOptions.delete,title:V("conversation_delete_icon_hover"),onClick:null})]}static getLastConversationMessage(e,t,n){let r=e?.getLastMessage();n&&(this.additionalParams=n);let a="";return r?r?.getDeletedAt()?a=V("conversation_message_deleted"):r?.getCategory()!=pt.MessageCategory.message||r?.getDeletedAt()?r?.getCategory()==pt.MessageCategory.action?a=this.getLastMessageAction(e):r?.getCategory()==pt.MessageCategory.call?a=this.getLastMessageCall(e):r?.getCategory()==pt.MessageCategory.custom?a=this.getLastMessageCustom(e):r?.getCategory()==pt.MessageCategory.interactive&&(a=V("message_type_not_supported")):a=this.getLastMessage(e):a=V("conversation_start"),a}static getLastMessage(e){let t,n=e.getLastMessage();switch(n?.getType()){case pt.MessageTypes.text:if(this.additionalParams){const e=n?.getText()||"",r=ht.convertFormattingHtmlToMarkdown(e);t=ht.sanitizeText(r)}else t=n.getText()||"";break;case pt.MessageTypes.image:t=V("conversation_subtitle_image");break;case pt.MessageTypes.file:t=V("conversation_subtitle_file");break;case pt.MessageTypes.video:t=V("conversation_subtitle_video");break;case pt.MessageTypes.audio:t=V("conversation_subtitle_audio");break;default:t=n.getType()}return t}static getLastMessageCustom(e){let t=e.getLastMessage();return t.getConversationText()||t.getType()}static getLastMessageAction(e){let t=e?.getLastMessage(),n="";if(!1===t.hasOwnProperty("actionBy")||!1===t.hasOwnProperty("actionOn"))return n;if(t.getAction()!==pt.groupMemberAction.JOINED&&t.getAction()!==pt.groupMemberAction.LEFT&&(!1===t.getActionBy().hasOwnProperty("name")||!1===t.getActionOn().hasOwnProperty("name")))return n;if(t.getAction()===pt.groupMemberAction.SCOPE_CHANGE){if(!t.hasOwnProperty("data")||!t.getData().hasOwnProperty("extras"))return n;if(!t.getData().extras.hasOwnProperty("scope"))return n;if(!1===t.getData().extras.scope.hasOwnProperty("new"))return n}if(t.getAction()===pt.groupMemberAction.SCOPE_CHANGE&&!1===t.getData().extras.hasOwnProperty("scope"))return n;if(t.getAction()===pt.groupMemberAction.SCOPE_CHANGE&&!1===t.getData().extras.scope.hasOwnProperty("new"))return n;const r=t.getActionBy(),a=t.getActionOn(),o=r.name,i=t.getAction()!==pt.groupMemberAction.JOINED&&t.getAction()!==pt.groupMemberAction.LEFT?a.name:"";switch(t.getAction()){case pt.groupMemberAction.ADDED:n=`${o} ${V("conversation_subtitle_added")} ${i}`;break;case pt.groupMemberAction.JOINED:n=`${o} ${V("conversation_subtitle_joined")}`;break;case pt.groupMemberAction.LEFT:n=`${o} ${V("conversation_subtitle_left")}`;break;case pt.groupMemberAction.KICKED:n=`${o} ${V("conversation_subtitle_kicked")} ${i}`;break;case pt.groupMemberAction.BANNED:n=`${o} ${V("conversation_subtitle_banned")} ${i}`;break;case pt.groupMemberAction.UNBANNED:n=`${o} ${V("conversation_subtitle_unbanned")} ${i}`;break;case pt.groupMemberAction.SCOPE_CHANGE:{const e=t.data.extras.scope.new;n=`${o} ${V("conversation_subtitle_made")} ${i} ${V(`member_scope_${e}`)}`;break}}return n}static getLastMessageCall(e){let t=e?.getLastMessage();return"audio"===t?.getType()?V("conversation_subtitle_voice_call"):"video"===t?.getType()?V("conversation_subtitle_video_call"):t?.getType()}}class bn{}bn.TextFormatter=Object.freeze({KEY_UP_DEBOUNCE_TIME:300}),bn.MentionsTextFormatter=Object.freeze({MENTIONS_LIMIT:10,MENTIONS_HOVER_TIMEOUT:500});class vn{constructor(){this.startTracking=!0,this.regexPatterns=[/(@\w+)/g],this.regexToReplaceFormatting=[/<span class="hash"[^>]*>([^<]*)<span class="hash-margin-space">[^<]*<\/span><\/span> /g],this.cssClassMapping=["custom-class"],this.trackCharacter="#",this.classes=[],this.loggedInUser=dt.getLoggedInUser(),this.textStyle={formattedTextColor:"rgb(51, 153, 255)",formattedTextFont:""},this.formatTextOnKeyUp=e=>{if(e);else{const e=this.getPrecedingText(this.currentCaretPosition,this.currentRange);if(e){let t=this.onRegexMatch(e);this.addAtCaretPosition(t,this.currentCaretPosition,this.currentRange)}}},this.debouncedFormatTextOnKeyUp=this.debounce(this.formatTextOnKeyUp,bn.TextFormatter.KEY_UP_DEBOUNCE_TIME)}setCaretPositionAndRange(e,t){this.currentCaretPosition=e,this.currentRange=t?.cloneRange()}setClasses(e){this.classes=e}setRegexPatterns(e){this.regexPatterns=e}getRegexPatterns(){return this.regexPatterns}setRegexToReplaceFormatting(e){this.regexToReplaceFormatting=e}setTrackingCharacter(e){this.trackCharacter=e}setInputElementReference(e){this.inputElementReference=e}setReRender(e){this.reRender=e}getKeyUpCallBack(){return this.keyUpCallBack}setKeyUpCallBack(e){this.keyUpCallBack=e}getKeyDownCallBack(){return this.keyDownCallBack}setKeyDownCallBack(e){this.keyDownCallBack=e}getLoggedInUser(){return this.loggedInUser}setLoggedInUser(e){this.loggedInUser=e}setCssClassMapping(e){this.cssClassMapping=e}setStyle(e){this.textStyle=e}getStyle(){return this.textStyle}setId(e){this.id=e}getId(){return this.id}cleanup(){}getFormattedText(e,t){return this.onRegexMatch(e)}getFormattedTextForEntity(e){}setMessage(e){this.messageObject=e}getMessage(){return this.messageObject}setMessageBubbleAlignment(e){this.messageBubbleAlignment=e}getMessageBubbleAlignment(){return this.messageBubbleAlignment}setComposerConfig(e,t,n){this.user=e,this.group=t,this.composerId=n}getComposerConfig(){return{user:this.user,group:this.group,composerId:this.composerId}}getPrecedingText(e,t){if(this.inputElementReference&&t){const e=t.cloneRange();for(;e.startOffset>0&&e.startContainer.textContent?.charAt(e.startOffset-1)!==this.trackCharacter;)if(e.setStart(e.startContainer,e.startOffset-1),"#text"!==e.startContainer.nodeName)return null;const n=e.startOffset>1?e.startContainer.textContent?.charAt(e.startOffset-2):"";if(n&&" "!==n&&"\n"!==n)return null;if(e.startOffset>0&&"#text"===e.startContainer.nodeName)return e.setStart(e.startContainer,e.startOffset-1),e.toString()}return null}checkPreviousCharacterUsingRange(e=" ",t){if(this.inputElementReference&&t){const n=t.cloneRange();return 1===n.startOffset||!(n.startOffset>0&&n.startContainer.textContent?.charAt(n.startOffset-2)!==e)}return!1}onRegexMatch(e,t){let n=e??"";for(let t=0;t<this.regexPatterns.length;t++){let r=this.regexPatterns[t];e&&(n=e.replace(r,(e,t)=>{const n=document.createElement("span");return n.classList.add(this.cssClassMapping[0]),n.setAttribute("contentEditable","false"),n.style.color=this.textStyle?.formattedTextColor??"green",n.style.font=this.textStyle?.formattedTextFont,n.textContent=e,n.insertAdjacentText("beforeend","​"),n.outerHTML+" "}))}return n}debounce(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{clearTimeout(n),e(...r)},t)}}onKeyUp(e){e.key==this.trackCharacter&&(this.startTracking=!0),this.startTracking&&" "==e.key&&this.debouncedFormatTextOnKeyUp()}onKeyDown(e){}addAtCaretPosition(e,t,n){if(this.inputElementReference&&n){const r=t;let a=n;for(a.collapse(!0),a.setStart(a.startContainer,a.startOffset-1);a.startOffset>0&&a.startContainer.textContent?.charAt(a.startOffset-1)!==this.trackCharacter;){if(" "==a.startContainer.textContent?.charAt(a.startOffset-1))return;a.setStart(a.startContainer,a.startOffset-1)}if(a.startOffset>0){a.setStart(a.startContainer,a.startOffset-1),a.deleteContents();const t=document.createElement("div");t.innerHTML=e;const n=document.createDocumentFragment();Array.from(t.childNodes).forEach(e=>{e instanceof Element&&e.classList.contains(this.cssClassMapping[0])&&this.registerEventListeners(e,e.classList),n.appendChild(e)}),a.insertNode(n),a.collapse(!1),r?.removeAllRanges(),r?.addRange(a)}}this.inputElementReference?.focus()}getOriginalText(e){if(!e)return"";for(let t=0;t<this.regexToReplaceFormatting.length;t++){let n=this.regexToReplaceFormatting[t];e&&(e=e.replace(n,"$1"))}return e}stopTracking(){}reset(){}formatMessageForSending(e){return e}registerEventListeners(e,t){return e}}class yn{}yn.ccHidePanel=new Ie,yn.ccShowPanel=new Ie,yn.ccShowModal=new Ie,yn.ccHideModal=new Ie,yn.ccShowDialog=new Ie,yn.ccHideDialog=new Ie,yn.ccActiveChatChanged=new Ie,yn.ccShowOngoingCall=new Ie,yn.ccOpenChat=new Ie,yn.ccComposeMessage=new Ie,yn.ccMouseEvent=new Ie,yn.ccShowMentionsCountWarning=new Ie,yn.ccActivePopover=new Ie;class En extends vn{constructor(){super(),this.cometChatUserGroupMembers=[],this.mentionedChannels=[],this.mentionsCssClassMapping={},this.visibleIn=t.uFX.both,this.invalidCharactersRegexForSearch=/^@(?! )[a-zA-Z0-9. ]*$/,this.mentionsCount=0,this.mentionsMap={},this.warningDisplayed=!1,this.allowMultipleSpaces=!0,this.mouseOverEventDispatched=!1,this.regexPatterns=[/@(\w[\w\s]*)?(\b\s\w[\w\s]*)*/g],this.trackCharacter="@",this.loggedInUser=dt.getLoggedInUser()}observeChange(e){if(e){this.observer=new MutationObserver(t=>{if(this.inputElementReference&&""===this.inputElementReference?.textContent?.trim())return this.reset(),this.mentionsMap={},void(this.cssClassMapping=[]);t.forEach(n=>{n.removedNodes.forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){let r=n;if("span"===r.tagName.toLowerCase()&&r.classList.contains("cometchat-mentions")){let n=Array.from(r.classList).find(e=>e.startsWith("mentions-"));if(n){let r=!1;for(const e of t){for(const t of Array.from(e.addedNodes))if(t.nodeType===Node.ELEMENT_NODE){const e=t;if("PRE"===e.tagName&&e.hasAttribute("data-mentions")){r=!0;break}}if(r)break}if(r)return;e.querySelectorAll(`.${n}`).length||delete this.mentionsMap[n],this.mentionsCount=Object.keys(this.mentionsMap).length,this.mentionsCount<bn.MentionsTextFormatter.MENTIONS_LIMIT&&(yn.ccShowMentionsCountWarning.next({showWarning:!1,id:this.getId()}),this.warningDisplayed=!1)}}}})})});let t={childList:!0,subtree:!0};this.observer.observe(e,t)}}getMentionsCount(){return this.mentionsCount}setMentionsCount(e){this.mentionsCount=e}setInvalidCharactersRegexForSearch(e){this.invalidCharactersRegexForSearch=e}setCaretPositionAndRange(e,t){this.currentCaretPosition=e,this.currentRange=t?.cloneRange()}setInputElementReference(e){this.inputElementReference=e,this.observer||this.observeChange(e)}setRegexPattern(e){this.regexPatterns=e}getCometChatUserGroupMembers(){return this.cometChatUserGroupMembers}setCometChatUserGroupMembers(e){this.cometChatUserGroupMembers=[...e,...this.cometChatUserGroupMembers]}resetCometChatUserGroupMembers(){this.cometChatUserGroupMembers=[]}getCometChatMentionedChannels(){return this.mentionedChannels}setCometChatMentionedChannels(e){this.mentionedChannels=[...e,...this.mentionedChannels]}resetCometChatMentionedChannels(){this.mentionedChannels=[]}setKeyUpCallBack(e){this.keyUpCallBack=this.debounce(e,bn.TextFormatter.KEY_UP_DEBOUNCE_TIME)}setKeyDownCallBack(e){this.keyDownCallBack=this.debounce(e,bn.TextFormatter.KEY_UP_DEBOUNCE_TIME)}getAllowMultipleSpaces(){return this.allowMultipleSpaces}setAllowMultipleSpaces(e){this.allowMultipleSpaces=e}cleanup(){this.observer&&this.observer.disconnect()}formatMessageForSending(e){return this.resetCometChatUserGroupMembers(),e}reset(){this.mentionsCount=0,this.stopTracking(),this.warningDisplayed&&yn.ccShowMentionsCountWarning.next({showWarning:!1,id:this.getId()}),this.warningDisplayed=!1}stopTracking(){this.keyUpCallBack&&this.keyUpCallBack("")}getFormattedText(e,n={mentionsTargetElement:t.rnx.textinput}){if(n.mentionsTargetElement==t.rnx.conversation);else if(n.mentionsTargetElement==t.rnx.textbubble){let t=[];if(this.messageObject.getType()===pt.MessageTypes.text&&!this.messageObject.getDeletedAt()){const e=/<@all:(.*?)>/g,n=this.messageObject.getText();t=Array.from(n.matchAll(e)).map(e=>e[1]),this.setCometChatMentionedChannels(t)}if(this.messageObject&&this.messageObject.getMentionedUsers()){let e=this.messageObject.getMentionedUsers();e&&e.length&&this.setCometChatUserGroupMembers(e)}else if(!t.length)return e}return this.addMentionsSpan(e)}getFormattedTextForEntity(e){const t=this.getPrecedingText(this.currentCaretPosition,this.currentRange);if(t){let n=this.onRegexMatch(t,e);this.addAtCaretPosition(n,this.currentCaretPosition,this.currentRange)}this.stopTracking()}addMentionsSpan(e){const n=[...this.cometChatUserGroupMembers,...this.mentionedChannels];if(n){this.warningDisplayed=!1;const r=/(<pre><code>[\s\S]*?<\/code><\/pre>|<code>[\s\S]*?<\/code>)/g;for(let a=0;a<n.length;a++){const o=n[a],i="string"==typeof o,s=i?o:o.getUid(),c=i?V(`message_composer_mention_${o}`)||o:o.getName(),l=new RegExp(`<${i?"@all":"@uid"}:${s}>`,"g"),u=document.createElement("span");for(let e=0;e<this.classes.length;e++)u.classList.add(this.classes[e]);u.classList.add("mentions-"+s),u.setAttribute("contentEditable","false"),i||(this.mentionsCssClassMapping["mentions-"+s]=o),u.classList.add("cometchat-mentions"),i||o.getUid()===this.loggedInUser.getUid()?u.classList.add("cometchat-mentions-you"):u.classList.add("cometchat-mentions-other"),this.messageBubbleAlignment===t.JxA.left?u.classList.add("cometchat-mentions-incoming"):this.messageBubbleAlignment===t.JxA.right&&u.classList.add("cometchat-mentions-outgoing");const d=document.createElement("span");d.textContent=this.trackCharacter+c,d.classList.add("cometchat-text"),u.appendChild(d);const p=this.trackCharacter+c,h=e.split(r);let m=0;e=h.map(e=>e.startsWith("<code>")||e.startsWith("<pre><code>")?e.replace(l,p):e.replace(l,e=>(m++,u.outerHTML))).join(""),m&&(this.mentionsMap["mentions-"+s]=`<${i?"@all":"@uid"}:${s}>`,this.mentionsCount=Object.keys(this.mentionsMap).length,this.mentionsCount>=bn.MentionsTextFormatter.MENTIONS_LIMIT&&!this.warningDisplayed&&(yn.ccShowMentionsCountWarning.next({showWarning:!0,id:this.getId()}),this.warningDisplayed=!0))}}return e}registerEventListeners(e,n){let r=Array.from(n);for(let n=0;n<r.length;n++)r[n]in this.mentionsCssClassMapping&&(e.addEventListener("click",e=>{clearTimeout(this.timeoutID),yn.ccMouseEvent.next({body:{CometChatUserGroupMembersObject:this.mentionsCssClassMapping[r[n]],message:this.messageObject??null,id:this.getId()},event:e,source:t.j7v.mentions})}),e.addEventListener("mouseover",e=>{this.timeoutID=setTimeout(()=>{this.mouseOverEventDispatched=!0,yn.ccMouseEvent.next({body:{CometChatUserGroupMembersObject:this.mentionsCssClassMapping[r[n]],message:this.messageObject??null,id:this.getId()},event:e,source:t.j7v.mentions})},bn.MentionsTextFormatter.MENTIONS_HOVER_TIMEOUT)}),e.addEventListener("mouseout",e=>{clearTimeout(this.timeoutID),this.mouseOverEventDispatched&&(yn.ccMouseEvent.next({body:{CometChatUserGroupMembersObject:this.mentionsCssClassMapping[r[n]],message:this.messageObject??null,id:this.getId()},event:e,source:t.j7v.mentions}),this.mouseOverEventDispatched=!1)}));return e}replaceMentionsSpanWithUid(e){return e?(Object.keys(this.mentionsMap).forEach(t=>{const n=this.mentionsMap[t],r=new RegExp(`<span[^>]*class="[^"]*\\b${t}\\b[^"]*"[^>]*>.*?</span></span>`,"g");e=e.replace(r,n)}),e):""}onKeyDown(e){setTimeout(e=>{if("Backspace"===e.key)return;if("Escape"===e.key)return this.mentionsCount=0,this.stopTracking(),void(this.keyDownCallBack&&this.keyDownCallBack(""));let n="";if(n=this.validateText(this.getPrecedingText(this.currentCaretPosition,this.currentRange)),this.mentionsCount>=bn.MentionsTextFormatter.MENTIONS_LIMIT)return void(this.warningDisplayed||(yn.ccShowMentionsCountWarning.next({showWarning:!0,id:this.getId()}),this.warningDisplayed=!0));if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key))return null;const r=this.getComposerConfig(),a=this.getVisibleIn();(a===t.uFX.both||a===t.uFX.usersConversationOnly&&r.user||a===t.uFX.groupConversationOnly&&r.group)&&this.keyDownCallBack(n)},0,e)}validateText(e){if(e&&e.length){if(!this.invalidCharactersRegexForSearch.test(e))return null;if(!this.allowMultipleSpaces&&/(\s.*\s)/.test(e))return null}return e}onKeyUp(e){if("Escape"===e.key)return this.mentionsCount=0,this.stopTracking(),void(this.keyDownCallBack&&this.keyDownCallBack(""));let n="";if(n=this.validateText(this.getPrecedingText(this.currentCaretPosition,this.currentRange)),"Backspace"==e.key&&this.inputElementReference&&""===this.inputElementReference?.textContent?.trim())return this.reset(),this.mentionsMap={},void(this.cssClassMapping=[]);if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)&&n?.includes(" ")&&n?.includes(" "))return null;if(this.mentionsCount>=bn.MentionsTextFormatter.MENTIONS_LIMIT)return;const r=this.getComposerConfig(),a=this.getVisibleIn();(a===t.uFX.both||a===t.uFX.usersConversationOnly&&r.user||a===t.uFX.groupConversationOnly&&r.group)&&this.keyDownCallBack(n)}addAtCaretPosition(e,t,n){if(this.inputElementReference&&t){const r=t;let a=n;for(a.collapse(!0);a.startOffset>0&&"@"!==a.startContainer.textContent?.charAt(a.startOffset-1);)a.setStart(a.startContainer,a.startOffset-1);if(a.startOffset>0){a.setStart(a.startContainer,a.startOffset-1),a.deleteContents();const t=document.createElement("div");t.innerHTML=e;const n=document.createDocumentFragment();Array.from(t.childNodes).forEach(e=>{e instanceof HTMLElement&&e.classList.contains("mentions")&&this.registerEventListeners(e,e.classList),n.appendChild(e)}),a.insertNode(n),a.collapse(!1),r?.removeAllRanges(),r?.addRange(a),this.inputElementReference.focus()}}this.inputElementReference.focus()}onRegexMatch(e,n){let r=e;this.warningDisplayed=!1;for(let a=0;a<this.regexPatterns.length;a++){let o=this.regexPatterns[a];const i="string"==typeof n;e&&(!i&&n.getName()&&n.getUid()||i)&&(r=e.replace(o,(e,r)=>{const o=this.mentionsMap[r],s=document.createElement("span");for(let e=0;e<this.classes.length;e++)s.classList.add(this.classes[e]);s.classList.add("mentions-"+(i?n:n.getUid())),s.classList.add("cometchat-mentions"),s.setAttribute("contentEditable","false"),i||this.cometChatUserGroupMembers[a].getUid()===this.loggedInUser.getUid()?s.classList.add("cometchat-mentions-you"):s.classList.add("cometchat-mentions-other"),this.messageBubbleAlignment===t.JxA.left?s.classList.add("cometchat-mentions-incoming"):this.messageBubbleAlignment===t.JxA.right&&s.classList.add("cometchat-mentions-outgoing");const c=document.createElement("span");return c.classList.add("cometchat-text"),o?c.textContent=r:i?(c.textContent="@"+(V(`message_composer_mention_${n}`)||n),this.mentionsMap["mentions-"+n]=`<@all:${n}>`):(c.textContent="@"+n.getName(),this.mentionsMap["mentions-"+n.getUid()]=`<@uid:${n.getUid()}>`,this.mentionsCssClassMapping["mentions-"+n.getUid()]=n),this.mentionsCount=Object.keys(this.mentionsMap).length,this.mentionsCount>=bn.MentionsTextFormatter.MENTIONS_LIMIT&&!this.warningDisplayed&&(yn.ccShowMentionsCountWarning.next({showWarning:!0,id:this.getId()}),this.warningDisplayed=!0),s.appendChild(c),s.outerHTML+" "}))}return r}getOriginalText(e){return this.replaceMentionsSpanWithUid(e)}setVisibleIn(e){this.visibleIn=e}getVisibleIn(){return this.visibleIn}}class Cn extends vn{constructor(e){super(),this.setRegexPatterns(e)}onKeyUp(e){if(" "!==e.key&&"Enter"!==e.key)return;const t=this.inputElementReference?.ownerDocument,n=t?.getSelection();if(!n||0===n.rangeCount)return;const r=n.getRangeAt(0),a=r.startContainer;if(a.nodeType!==Node.TEXT_NODE)return;let o=a.parentNode;for(;o&&o!==this.inputElementReference;){if(o.nodeType===Node.ELEMENT_NODE){const e=o.tagName.toLowerCase();if("code"===e||"pre"===e)return}o=o.parentNode}const i=a.textContent||"",s=r.startOffset,c=i.substring(0,s),l=c.lastIndexOf(" "),u=l>=0?c.substring(l+1).trim():c.trim();if(u)for(const e of this.regexPatterns){e.lastIndex=0;const t=e.exec(u+" ");if(t&&t[1]){const e=t[1],r=document.createElement("span");r.classList.add(this.cssClassMapping[0]||"cometchat-url-class"),r.classList.add("cometchat-url"),r.setAttribute("contentEditable","false"),r.textContent=e,r.dataset.captureGroup=e,r.style.cursor="pointer";const o=l+1,c=s-1,u=i.substring(0,o),d=i.substring(c),p=a.parentNode;if(!p)return;const h=document.createTextNode(u),m=document.createTextNode(d);p.insertBefore(h,a),p.insertBefore(r,a),p.insertBefore(m,a),p.removeChild(a);const g=document.createRange();return g.setStart(m,1),g.collapse(!0),n.removeAllRanges(),void n.addRange(g)}}}onRegexMatch(e){if(!e)return e??"";const t=document.createElement("div");t.innerHTML=e;const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),r=[];let a;for(;a=n.nextNode();)r.push(a);for(const e of r){let n=e.parentNode,r=!1;for(;n&&n!==t;){if(n.nodeType===Node.ELEMENT_NODE&&"a"===n.tagName.toLowerCase()){r=!0;break}n=n.parentNode}if(r)continue;const a=e.textContent||"";if(a.trim())for(const t of this.regexPatterns){const n=new RegExp(t.source,t.flags.replace("g","")+"g");let r;const o=[];let i=0;for(;null!==(r=n.exec(a));){const e=r[1]||r[0];r.index>i&&o.push(a.slice(i,r.index));const t=document.createElement("span");if(t.classList.add(this.cssClassMapping[0]),t.classList.add("cometchat-url"),t.setAttribute("contentEditable","false"),t.textContent=e,t.dataset.captureGroup=e,t.style.cursor="pointer",o.push(t),i=r.index+r[0].length,0===r[0].length)break}if(o.length>0){i<a.length&&o.push(a.slice(i));const t=document.createDocumentFragment();for(const e of o)"string"==typeof e?t.appendChild(document.createTextNode(e)):t.appendChild(e);e.parentNode?.replaceChild(t,e);break}}}return t.innerHTML}registerEventListeners(e,t){for(let n=0;n<t.length;n++)this.cssClassMapping.includes(t[n])&&e.addEventListener("click",()=>{let t=e.dataset.captureGroup;t&&!/^https?:\/\//i.test(t)&&(t=`https://${t}`),t&&window.open(t,"_blank")});return e}formatComposerContent(e){}getOriginalText(e){if(!e)return"";if(!e.includes("cometchat-url")&&!e.includes("<a"))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelectorAll("span.cometchat-url");for(let e=0;e<n.length;e++){const t=n[e],r=t.dataset.captureGroup||(t.textContent||"").replace(/\u200B/g,""),a=document.createTextNode(r);t.parentNode?.replaceChild(a,t)}const r=t.querySelectorAll("a");for(let e=0;e<r.length;e++){const t=r[e],n=t.href||t.textContent||"",a=document.createTextNode(n);t.parentNode?.replaceChild(a,t)}return t.innerHTML}}const Sn=[{people:{id:"people",name:"emoji_smiley_people",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Smileys%20%26%2338%3B%20People%22%20clip-path%3D%22url%28%23clip0_3328_49518%29%22%3E%3Cpath%20id%3D%22fill%22%20d%3D%22M9.00013%2017.5333C7.3124%2017.5333%205.66257%2017.0329%204.25927%2016.0952C2.85597%2015.1576%201.76223%2013.8248%201.11636%2012.2656C0.470494%2010.7063%200.301506%208.99055%200.630766%207.33524C0.960027%205.67994%201.77275%204.15944%202.96616%202.96603C4.15956%201.77263%205.68006%200.959905%207.33536%200.630644C8.99067%200.301384%2010.7064%200.470372%2012.2657%201.11624C13.825%201.76211%2015.1577%202.85585%2016.0953%204.25915C17.033%205.66245%2017.5335%207.31228%2017.5335%209.00001C17.5309%2011.2624%2016.6311%2013.4314%2015.0313%2015.0312C13.4315%2016.6309%2011.2625%2017.5308%209.00013%2017.5333ZM9.0108%201.53335C7.53403%201.53335%206.09043%201.97126%204.86254%202.79171C3.63466%203.61215%202.67763%204.77829%202.1125%206.14264C1.54737%207.507%201.3995%209.00829%201.6876%2010.4567C1.97571%2011.9051%202.68684%2013.2355%203.73107%2014.2797C4.7753%2015.324%206.10573%2016.0351%207.55413%2016.3232C9.00252%2016.6113%2010.5038%2016.4634%2011.8682%2015.8983C13.2325%2015.3332%2014.3987%2014.3762%2015.2191%2013.1483C16.0396%2011.9204%2016.4775%2010.4768%2016.4775%209.00001C16.4752%207.02042%2015.6878%205.12256%2014.288%203.72278C12.8883%202.32299%2010.9904%201.5356%209.0108%201.53335ZM9.0108%2015.5344C7.59683%2015.5327%206.24126%2014.9703%205.24144%2013.9704C4.24161%2012.9706%203.67916%2011.615%203.67747%2010.2011C3.67747%2010.0667%203.77347%2010.0037%203.97827%2010.0037C4.39353%2010.0421%204.80424%2010.1196%205.20493%2010.2352H5.21453C6.4534%2010.5699%207.7279%2010.7551%209.0108%2010.7867C10.2933%2010.755%2011.5675%2010.5699%2012.806%2010.2352H12.8156L12.838%2010.2299C13.2315%2010.117%2013.6347%2010.0413%2014.0423%2010.0037C14.2471%2010.0037%2014.3431%2010.0667%2014.3431%2010.2011C14.3411%2011.6154%2013.7781%2012.9712%2012.7776%2013.9709C11.7771%2014.9706%2010.4209%2015.5325%209.00653%2015.5333L9.0108%2015.5344ZM4.9084%2011.1099C4.78893%2011.1099%204.73347%2011.1493%204.73347%2011.2347C4.73347%2012.9979%207.05347%2013.368%209.00013%2013.368C9.88427%2013.3922%2010.7674%2013.2909%2011.6231%2013.0672C12.7143%2012.7333%2013.2668%2012.1147%2013.2668%2011.24C13.2668%2011.1547%2013.2113%2011.1152%2013.0919%2011.1152C12.8243%2011.1434%2012.5602%2011.1984%2012.3036%2011.2795C11.2295%2011.5912%2010.1184%2011.7573%209.00013%2011.7733C7.88077%2011.7575%206.76861%2011.5914%205.69347%2011.2795C5.43811%2011.1968%205.1751%2011.14%204.9084%2011.1099ZM11.9335%207.93335C11.4919%207.93335%2011.1335%207.45548%2011.1335%206.86668C11.1335%206.27788%2011.4919%205.80001%2011.9335%205.80001C12.3751%205.80001%2012.7345%206.27894%2012.7345%206.86668C12.7345%207.45441%2012.374%207.93335%2011.9335%207.93335ZM6.60013%207.93335C6.15853%207.93335%205.80013%207.45548%205.80013%206.86668C5.80013%206.27788%206.15853%205.80001%206.598%205.80001C7.03747%205.80001%207.39693%206.27894%207.39693%206.86668C7.39693%207.45441%207.03853%207.93335%206.598%207.93335H6.60013Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49518%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{grinning:{keywords:["face","smile","happy","joy",":D","grin"],char:"😀"},grimacing:{keywords:["face","grimace","teeth"],char:"😬"},grin:{keywords:["face","happy","smile","joy","kawaii"],char:"😁"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣"},partying:{keywords:["face","celebration","woohoo"],char:"🥳"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆"},innocent:{keywords:["face","angel","heaven","halo"],char:"😇"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊"},slightly_smiling_face:{keywords:["face","smile"],char:"🙂"},upside_down_face:{keywords:["face","flipped","silly","smile"],char:"🙃"},relaxed:{keywords:["face","blush","massage","happiness"],char:"☺️"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],char:"😌"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍"},smiling_face_with_three_hearts:{keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],char:"😙"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜"},zany:{keywords:["face","goofy","crazy"],char:"🤪"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨"},monocle:{keywords:["face","stuffy","wealthy"],char:"🧐"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛"},money_mouth_face:{keywords:["face","rich","dollar","money"],char:"🤑"},nerd_face:{keywords:["face","nerdy","geek","dork"],char:"🤓"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],char:"🤩"},clown_face:{keywords:["face"],char:"🤡"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],char:"🤠"},hugs:{keywords:["face","smile","hug"],char:"🤗"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏"},no_mouth:{keywords:["face","hellokitty"],char:"😶"},neutral_face:{keywords:["indifference","meh",":|","neutral"],char:"😐"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒"},roll_eyes:{keywords:["face","eyeroll","frustrated"],char:"🙄"},thinking:{keywords:["face","hmmm","think","consider"],char:"🤔"},lying_face:{keywords:["face","lie","pinocchio"],char:"🤥"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],char:"🤭"},shushing:{keywords:["face","quiet","shhh"],char:"🤫"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬"},exploding_head:{keywords:["face","shocked","mind","blown"],char:"🤯"},flushed:{keywords:["face","blush","shy","flattered"],char:"😳"},disappointed:{keywords:["face","sad","upset","depressed",":("],char:"😞"},worried:{keywords:["face","concern","nervous",":("],char:"😟"},angry:{keywords:["mad","face","annoyed","frustrated"],char:"😠"},rage:{keywords:["angry","mad","hate","despise"],char:"😡"},pensive:{keywords:["face","sad","depressed","upset"],char:"😔"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],char:"🙁"},frowning_face:{keywords:["face","sad","upset","frown"],char:"☹️"},persevere:{keywords:["face","sick","no","upset","oops"],char:"😣"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],char:"😖"},tired_face:{keywords:["sick","whine","upset","frustrated"],char:"😫"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩"},pleading:{keywords:["face","begging","mercy"],char:"🥺"},triumph:{keywords:["face","gas","phew","proud","pride"],char:"😤"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮"},scream:{keywords:["face","munch","scared","omg"],char:"😱"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨"},cold_sweat:{keywords:["face","nervous","sweat"],char:"😰"},hushed:{keywords:["face","woo","shh"],char:"😯"},frowning:{keywords:["face","aw","what"],char:"😦"},anguished:{keywords:["face","stunned","nervous"],char:"😧"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],char:"😢"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],char:"😥"},drooling_face:{keywords:["face"],char:"🤤"},sleepy:{keywords:["face","tired","rest","nap"],char:"😪"},sweat:{keywords:["face","hot","sad","tired","exercise"],char:"😓"},hot:{keywords:["face","feverish","heat","red","sweating"],char:"🥵"},cold:{keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],char:"😭"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],char:"😵"},astonished:{keywords:["face","xox","surprised","poisoned"],char:"😲"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],char:"🤐"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧"},vomiting:{keywords:["face","sick"],char:"🤮"},mask:{keywords:["face","sick","ill","disease"],char:"😷"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],char:"🤕"},woozy:{keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],char:"😴"},zzz:{keywords:["sleepy","tired","dream"],char:"💤"},poop:{keywords:["hankey","shitface","fail","turd","shit"],char:"💩"},smiling_imp:{keywords:["devil","horns"],char:"😈"},imp:{keywords:["devil","angry","horns"],char:"👿"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺"},skull:{keywords:["dead","skeleton","creepy","death"],char:"💀"},ghost:{keywords:["halloween","spooky","scary"],char:"👻"},alien:{keywords:["UFO","paul","weird","outer_space"],char:"👽"},robot:{keywords:["computer","machine","bot"],char:"🤖"},smiley_cat:{keywords:["animal","cats","happy","smile"],char:"😺"},smile_cat:{keywords:["animal","cats","smile"],char:"😸"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],char:"😹"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻"},smirk_cat:{keywords:["animal","cats","smirk"],char:"😼"},kissing_cat:{keywords:["animal","cats","kiss"],char:"😽"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],char:"🙀"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿"},pouting_cat:{keywords:["animal","cats"],char:"😾"},palms_up:{keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0},clap:{keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0},call_me_hand:{keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0},fist:{keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0},fist_left:{keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0},fist_right:{keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0},raised_back_of_hand:{keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0},open_hands:{keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0},pray:{keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0},foot:{keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0},leg:{keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0},handshake:{keywords:["agreement","shake"],char:"🤝"},point_up:{keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0},point_up_2:{keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0},point_down:{keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0},point_left:{keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0},point_right:{keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0},fu:{keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0},love_you:{keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0},crossed_fingers:{keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0},selfie:{keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0},lips:{keywords:["mouth","kiss"],char:"👄"},tooth:{keywords:["teeth","dentist"],char:"🦷"},tongue:{keywords:["mouth","playful"],char:"👅"},ear:{keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0},nose:{keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0},eye:{keywords:["face","look","see","watch","stare"],char:"👁"},eyes:{keywords:["look","watch","stalk","peek","see"],char:"👀"},brain:{keywords:["smart","intelligent"],char:"🧠"},bust_in_silhouette:{keywords:["user","person","human"],char:"👤"},busts_in_silhouette:{keywords:["user","person","human","group","team"],char:"👥"},speaking_head:{keywords:["user","person","human","sing","say","talk"],char:"🗣"},baby:{keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0},child:{keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0},boy:{keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0},girl:{keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0},adult:{keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0},woman:{keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0},blonde_woman:{keywords:["woman","female","girl","blonde","person"],char:"👱‍♀️",fitzpatrick_scale:!0},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0},bearded_person:{keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0},older_adult:{keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0},older_man:{keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],char:"👳‍♀️",fitzpatrick_scale:!0},man_with_turban:{keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮‍♀️",fitzpatrick_scale:!0},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷‍♀️",fitzpatrick_scale:!0},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],char:"💂‍♀️",fitzpatrick_scale:!0},guardsman:{keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0},female_detective:{keywords:["human","spy","detective","female","woman"],char:"🕵️‍♀️",fitzpatrick_scale:!0},male_detective:{keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩‍⚕️",fitzpatrick_scale:!0},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨‍⚕️",fitzpatrick_scale:!0},woman_farmer:{keywords:["rancher","gardener","woman","human"],char:"👩‍🌾",fitzpatrick_scale:!0},man_farmer:{keywords:["rancher","gardener","man","human"],char:"👨‍🌾",fitzpatrick_scale:!0},woman_cook:{keywords:["chef","woman","human"],char:"👩‍🍳",fitzpatrick_scale:!0},man_cook:{keywords:["chef","man","human"],char:"👨‍🍳",fitzpatrick_scale:!0},woman_student:{keywords:["graduate","woman","human"],char:"👩‍🎓",fitzpatrick_scale:!0},man_student:{keywords:["graduate","man","human"],char:"👨‍🎓",fitzpatrick_scale:!0},woman_singer:{keywords:["rockstar","entertainer","woman","human"],char:"👩‍🎤",fitzpatrick_scale:!0},man_singer:{keywords:["rockstar","entertainer","man","human"],char:"👨‍🎤",fitzpatrick_scale:!0},woman_teacher:{keywords:["instructor","professor","woman","human"],char:"👩‍🏫",fitzpatrick_scale:!0},man_teacher:{keywords:["instructor","professor","man","human"],char:"👨‍🏫",fitzpatrick_scale:!0},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],char:"👩‍🏭",fitzpatrick_scale:!0},man_factory_worker:{keywords:["assembly","industrial","man","human"],char:"👨‍🏭",fitzpatrick_scale:!0},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩‍💻",fitzpatrick_scale:!0},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨‍💻",fitzpatrick_scale:!0},woman_office_worker:{keywords:["business","manager","woman","human"],char:"👩‍💼",fitzpatrick_scale:!0},man_office_worker:{keywords:["business","manager","man","human"],char:"👨‍💼",fitzpatrick_scale:!0},woman_mechanic:{keywords:["plumber","woman","human","wrench"],char:"👩‍🔧",fitzpatrick_scale:!0},man_mechanic:{keywords:["plumber","man","human","wrench"],char:"👨‍🔧",fitzpatrick_scale:!0},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩‍🔬",fitzpatrick_scale:!0},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨‍🔬",fitzpatrick_scale:!0},woman_artist:{keywords:["painter","woman","human"],char:"👩‍🎨",fitzpatrick_scale:!0},man_artist:{keywords:["painter","man","human"],char:"👨‍🎨",fitzpatrick_scale:!0},woman_firefighter:{keywords:["fireman","woman","human"],char:"👩‍🚒",fitzpatrick_scale:!0},man_firefighter:{keywords:["fireman","man","human"],char:"👨‍🚒",fitzpatrick_scale:!0},woman_pilot:{keywords:["aviator","plane","woman","human"],char:"👩‍✈️",fitzpatrick_scale:!0},man_pilot:{keywords:["aviator","plane","man","human"],char:"👨‍✈️",fitzpatrick_scale:!0},woman_astronaut:{keywords:["space","rocket","woman","human"],char:"👩‍🚀",fitzpatrick_scale:!0},man_astronaut:{keywords:["space","rocket","man","human"],char:"👨‍🚀",fitzpatrick_scale:!0},woman_judge:{keywords:["justice","court","woman","human"],char:"👩‍⚖️",fitzpatrick_scale:!0},man_judge:{keywords:["justice","court","man","human"],char:"👨‍⚖️",fitzpatrick_scale:!0},woman_superhero:{keywords:["woman","female","good","heroine","superpowers"],char:"🦸‍♀️",fitzpatrick_scale:!0},man_superhero:{keywords:["man","male","good","hero","superpowers"],char:"🦸‍♂️",fitzpatrick_scale:!0},woman_supervillain:{keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹‍♀️",fitzpatrick_scale:!0},man_supervillain:{keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹‍♂️",fitzpatrick_scale:!0},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0},santa:{keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0},sorceress:{keywords:["woman","female","mage","witch"],char:"🧙‍♀️",fitzpatrick_scale:!0},wizard:{keywords:["man","male","mage","sorcerer"],char:"🧙‍♂️",fitzpatrick_scale:!0},woman_elf:{keywords:["woman","female"],char:"🧝‍♀️",fitzpatrick_scale:!0},man_elf:{keywords:["man","male"],char:"🧝‍♂️",fitzpatrick_scale:!0},woman_vampire:{keywords:["woman","female"],char:"🧛‍♀️",fitzpatrick_scale:!0},man_vampire:{keywords:["man","male","dracula"],char:"🧛‍♂️",fitzpatrick_scale:!0},woman_zombie:{keywords:["woman","female","undead","walking dead"],char:"🧟‍♀️"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],char:"🧟‍♂️"},woman_genie:{keywords:["woman","female"],char:"🧞‍♀️"},man_genie:{keywords:["man","male"],char:"🧞‍♂️"},mermaid:{keywords:["woman","female","merwoman","ariel"],char:"🧜‍♀️",fitzpatrick_scale:!0},merman:{keywords:["man","male","triton"],char:"🧜‍♂️",fitzpatrick_scale:!0},woman_fairy:{keywords:["woman","female"],char:"🧚‍♀️",fitzpatrick_scale:!0},man_fairy:{keywords:["man","male"],char:"🧚‍♂️",fitzpatrick_scale:!0},angel:{keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0},pregnant_woman:{keywords:["baby"],char:"🤰",fitzpatrick_scale:!0},breastfeeding:{keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0},prince:{keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0},running_woman:{keywords:["woman","walking","exercise","race","running","female"],char:"🏃‍♀️",fitzpatrick_scale:!0},running_man:{keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0},walking_woman:{keywords:["human","feet","steps","woman","female"],char:"🚶‍♀️",fitzpatrick_scale:!0},walking_man:{keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0},dancer:{keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0},man_dancing:{keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0},dancing_women:{keywords:["female","bunny","women","girls"],char:"👯"},dancing_men:{keywords:["male","bunny","men","boys"],char:"👯‍♂️"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭"},bowing_woman:{keywords:["woman","female","girl"],char:"🙇‍♀️",fitzpatrick_scale:!0},bowing_man:{keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0},man_facepalming:{keywords:["man","male","boy","disbelief"],char:"🤦‍♂️",fitzpatrick_scale:!0},woman_facepalming:{keywords:["woman","female","girl","disbelief"],char:"🤦‍♀️",fitzpatrick_scale:!0},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷‍♂️",fitzpatrick_scale:!0},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0},tipping_hand_man:{keywords:["male","boy","man","human","information"],char:"💁‍♂️",fitzpatrick_scale:!0},no_good_woman:{keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0},no_good_man:{keywords:["male","boy","man","nope"],char:"🙅‍♂️",fitzpatrick_scale:!0},ok_woman:{keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0},ok_man:{keywords:["men","boy","male","blue","human","man"],char:"🙆‍♂️",fitzpatrick_scale:!0},raising_hand_woman:{keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0},raising_hand_man:{keywords:["male","boy","man"],char:"🙋‍♂️",fitzpatrick_scale:!0},pouting_woman:{keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0},pouting_man:{keywords:["male","boy","man"],char:"🙎‍♂️",fitzpatrick_scale:!0},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍‍♂️",fitzpatrick_scale:!0},haircut_woman:{keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0},haircut_man:{keywords:["male","boy","man"],char:"💇‍♂️",fitzpatrick_scale:!0},massage_woman:{keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0},massage_man:{keywords:["male","boy","man","head"],char:"💆‍♂️",fitzpatrick_scale:!0},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],char:"🧖‍♀️",fitzpatrick_scale:!0},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],char:"🧖‍♂️",fitzpatrick_scale:!0},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩‍❤️‍👩"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨‍❤️‍👨"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"💏"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👩‍❤️‍💋‍👩"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👨‍❤️‍💋‍👨"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],char:"👨‍👩‍👧"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👦"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👦‍👦"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👧"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👦"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦‍👦"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👧"},family_man_man_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦"},family_man_man_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👦"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦‍👦"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👧"},family_woman_boy:{keywords:["home","parent","people","human","child"],char:"👩‍👦"},family_woman_girl:{keywords:["home","parent","people","human","child"],char:"👩‍👧"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👦"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👦‍👦"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👧"},family_man_boy:{keywords:["home","parent","people","human","child"],char:"👨‍👦"},family_man_girl:{keywords:["home","parent","people","human","child"],char:"👨‍👧"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👦"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👦‍👦"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👧"},yarn:{keywords:["ball","crochet","knit"],char:"🧶"},thread:{keywords:["needle","sewing","spool","string"],char:"🧵"},coat:{keywords:["jacket"],char:"🧥"},labcoat:{keywords:["doctor","experiment","scientist","chemist"],char:"🥼"},womans_clothes:{keywords:["fashion","shopping_bags","female"],char:"👚"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],char:"👕"},jeans:{keywords:["fashion","shopping"],char:"👖"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔"},dress:{keywords:["clothes","fashion","shopping"],char:"👗"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙"},kimono:{keywords:["dress","fashion","women","female","japanese"],char:"👘"},lipstick:{keywords:["female","girl","fashion","woman"],char:"💄"},kiss:{keywords:["face","lips","love","like","affection","valentines"],char:"💋"},footprints:{keywords:["feet","tracking","walking","beach"],char:"👣"},flat_shoe:{keywords:["ballet","slip-on","slipper"],char:"🥿"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠"},sandal:{keywords:["shoes","fashion","flip flops"],char:"👡"},boot:{keywords:["shoes","fashion"],char:"👢"},mans_shoe:{keywords:["fashion","male"],char:"👞"},athletic_shoe:{keywords:["shoes","sports","sneakers"],char:"👟"},hiking_boot:{keywords:["backpacking","camping","hiking"],char:"🥾"},socks:{keywords:["stockings","clothes"],char:"🧦"},gloves:{keywords:["hands","winter","clothes"],char:"🧤"},scarf:{keywords:["neck","winter","clothes"],char:"🧣"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],char:"👒"},tophat:{keywords:["magic","gentleman","classy","circus"],char:"🎩"},billed_hat:{keywords:["cap","baseball"],char:"🧢"},rescue_worker_helmet:{keywords:["construction","build"],char:"⛑"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓"},crown:{keywords:["king","kod","leader","royalty","lord"],char:"👑"},school_satchel:{keywords:["student","education","bag","backpack"],char:"🎒"},luggage:{keywords:["packing","travel"],char:"🧳"},pouch:{keywords:["bag","accessories","shopping"],char:"👝"},purse:{keywords:["fashion","accessories","money","sales","shopping"],char:"👛"},handbag:{keywords:["fashion","accessory","accessories","shopping"],char:"👜"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],char:"💼"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓"},dark_sunglasses:{keywords:["face","cool","accessories"],char:"🕶"},goggles:{keywords:["eyes","protection","safety"],char:"🥽"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍"},closed_umbrella:{keywords:["weather","rain","drizzle"],char:"🌂"}}}},{animals_and_nature:{id:"animals_and_nature",name:"emoji_animals_nature",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Animals%20%26%2338%3B%20Nature%22%20clip-path%3D%22url%28%23clip0_3328_49521%29%22%3E%3Cpath%20id%3D%22fill%22%20d%3D%22M5.35563%2015.784H4.81091C3.82269%2015.7256%202.88004%2015.3497%202.12418%2014.7125C1.36833%2014.0753%200.839965%2013.2111%200.618257%2012.2494C0.435588%2011.3631%200.497586%2010.444%200.797644%209.59005C1.0977%208.7361%201.62458%207.97928%202.32213%207.40025C1.67695%206.64328%201.21799%205.74663%200.981763%204.78168C0.831913%204.21736%200.831175%203.62397%200.979621%203.05928C1.12807%202.49458%201.42064%201.97781%201.82887%201.55924C2.13208%201.22507%202.50035%200.955897%202.91125%200.76811C3.32216%200.580322%203.7671%200.477846%204.21901%200.466919L4.27369%200.466919C5.52289%200.554195%206.69927%201.08511%207.58921%201.96324L7.675%202.0402C8.19809%201.90903%208.73547%201.84297%209.27485%201.84354C9.69419%201.84261%2010.1126%201.8827%2010.5241%201.96324C11.4128%201.08462%2012.5887%200.553572%2013.8374%200.466919L13.8943%200.466919C14.3463%200.477411%2014.7913%200.579692%2015.2023%200.767508C15.6133%200.955323%2015.9815%201.22473%2016.2844%201.55924C16.6935%201.97877%2016.9865%202.49688%2017.1348%203.06297C17.2831%203.62907%2017.2816%204.22382%2017.1304%204.78916C16.8941%205.75512%2016.4331%206.65213%2015.7847%207.40773C16.4792%207.98705%2017.0034%208.74287%2017.3019%209.59508C17.6004%2010.4473%2017.6619%2011.3641%2017.48%2012.2483C17.2565%2013.211%2016.7262%2014.0757%2015.9684%2014.7129C15.2107%2015.35%2014.2663%2015.7254%2013.2766%2015.7829H12.733C12.2868%2016.326%2011.726%2016.7645%2011.0905%2017.0671C10.455%2017.3697%209.76038%2017.529%209.05611%2017.5336C8.34899%2017.5264%207.65186%2017.3662%207.01295%2017.0642C6.37403%2016.7621%205.80856%2016.3253%205.35563%2015.784ZM3.63997%207.46224L3.53274%207.78288L3.26467%207.99023C3.1821%208.06184%201.03431%209.78262%201.65087%2011.9576C1.80299%2012.7018%202.19706%2013.3752%202.77203%2013.8735C3.34701%2014.3719%204.0708%2014.6673%204.83128%2014.7141H5.79634C5.93854%2014.7141%206.07491%2014.7704%206.17546%2014.8706C6.276%2014.9708%206.33249%2015.1067%206.33249%2015.2485C6.33296%2015.2517%206.33296%2015.2549%206.33249%2015.2581C6.3329%2015.2599%206.3329%2015.2617%206.33249%2015.2634V15.2688C6.68508%2015.6382%207.10781%2015.934%207.57611%2016.1392C8.04441%2016.3443%208.54895%2016.4546%209.0604%2016.4637C9.58014%2016.4548%2010.0925%2016.3395%2010.5657%2016.125C11.0388%2015.9104%2011.4626%2015.6011%2011.8108%2015.2164C11.8198%2015.0809%2011.8802%2014.9539%2011.9798%2014.8611C12.0794%2014.7684%2012.2107%2014.717%2012.347%2014.7173H13.2799C14.0381%2014.6678%2014.7589%2014.3706%2015.3307%2013.8718C15.9024%2013.3729%2016.2934%2012.7002%2016.4431%2011.9576C17.0586%209.78155%2014.9087%208.05864%2014.8164%207.98703L14.5151%207.75189L14.4261%207.37781C14.3832%207.19504%2013.341%202.90807%209.26842%202.90807C5.13474%202.90807%203.70323%207.27627%203.64426%207.46224H3.63997ZM2.61057%202.29564C1.23161%203.7396%202.3618%205.65703%202.91081%206.41481C3.63233%204.72639%204.90752%203.33213%206.52765%202.46024C5.89539%201.92091%205.10682%201.597%204.27691%201.53572H4.23724C3.92829%201.54434%203.62443%201.61626%203.34458%201.74699C3.06473%201.87773%202.81487%202.06449%202.61057%202.29564ZM11.7379%202.34374C13.3866%203.17993%2014.6427%204.62449%2015.2389%206.36992C15.7751%205.62176%2016.871%203.72357%2015.5102%202.29564C15.3049%202.06345%2015.0537%201.87608%2014.7723%201.7453C14.4909%201.61453%2014.1854%201.54317%2013.875%201.53572H13.8374C13.0692%201.58171%2012.3342%201.86401%2011.7336%202.34374H11.7379ZM9.05718%2015.0753C8.86061%2015.2504%208.60557%2015.3461%208.34196%2015.3436C8.05954%2015.35%207.78602%2015.245%207.58082%2015.0514C7.37562%2014.8579%207.25533%2014.5915%207.24608%2014.3101L7.96023%2014.278C7.96189%2014.3263%207.97308%2014.3738%207.99317%2014.4178C8.01326%2014.4617%208.04185%2014.5013%208.0773%2014.5343C8.11275%2014.5673%208.15438%2014.5929%208.19979%2014.6098C8.2452%2014.6267%208.29351%2014.6346%208.34196%2014.6329C8.38773%2014.6357%208.43358%2014.6289%208.47659%2014.6131C8.5196%2014.5973%208.55884%2014.5727%208.5918%2014.5409C8.65487%2014.4694%208.68989%2014.3775%208.69046%2014.2823V13.5021C8.3921%2013.3649%208.12838%2013.1629%207.91869%2012.9108C7.709%2012.6587%207.55868%2012.3629%207.47877%2012.0453C7.47774%2011.9681%207.49233%2011.8915%207.52169%2011.8201C7.55104%2011.7486%207.59455%2011.6838%207.64961%2011.6296C7.70467%2011.5753%207.77015%2011.5326%207.84213%2011.5042C7.91411%2011.4757%207.99111%2011.462%208.06853%2011.4638H10.0297C10.1072%2011.462%2010.1842%2011.4757%2010.2561%2011.5042C10.3281%2011.5326%2010.3936%2011.5753%2010.4487%2011.6296C10.5037%2011.6838%2010.5472%2011.7486%2010.5766%2011.8201C10.6059%2011.8915%2010.6205%2011.9681%2010.6195%2012.0453C10.5398%2012.3608%2010.3905%2012.6547%2010.1826%2012.9056C9.97468%2013.1565%209.71331%2013.358%209.41747%2013.4956V14.2801C9.41803%2014.3754%209.45306%2014.4672%209.51612%2014.5388C9.54908%2014.5706%209.58832%2014.5951%209.63133%2014.611C9.67435%2014.6268%209.7202%2014.6335%209.76596%2014.6307C9.81444%2014.6326%209.86282%2014.6248%209.90829%2014.608C9.95377%2014.5911%209.99545%2014.5655%2010.0309%2014.5325C10.0664%2014.4995%2010.095%2014.4599%2010.115%2014.4158C10.1351%2014.3718%2010.1462%2014.3242%2010.1477%2014.2759L10.8618%2014.3079C10.8526%2014.5894%2010.7323%2014.8558%2010.5271%2015.0493C10.3219%2015.2428%2010.0484%2015.3478%209.76596%2015.3415C9.5029%2015.3449%209.2481%2015.2499%209.05182%2015.0753H9.05718ZM11.5427%209.32303C11.5427%208.73198%2011.8644%208.25423%2012.258%208.25423C12.6515%208.25423%2012.9732%208.73305%2012.9732%209.32303C12.9732%209.91301%2012.6515%2010.3918%2012.258%2010.3918C11.8644%2010.3918%2011.5427%209.91301%2011.5427%209.32303ZM5.10901%209.32303C5.10901%208.73198%205.43069%208.25423%205.82422%208.25423C6.21775%208.25423%206.53944%208.73305%206.53944%209.32303C6.53944%209.91301%206.21775%2010.3918%205.82422%2010.3918C5.43069%2010.3918%205.10793%209.91301%205.10793%209.32303H5.10901Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49521%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶"},cat:{keywords:["animal","meow","nature","pet","kitten"],char:"🐱"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭"},hamster:{keywords:["animal","nature"],char:"🐹"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰"},fox_face:{keywords:["animal","nature","face"],char:"🦊"},bear:{keywords:["animal","nature","wild"],char:"🐻"},panda_face:{keywords:["animal","nature","panda"],char:"🐼"},koala:{keywords:["animal","nature"],char:"🐨"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯"},lion:{keywords:["animal","nature"],char:"🦁"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮"},pig:{keywords:["animal","oink","nature"],char:"🐷"},pig_nose:{keywords:["animal","oink"],char:"🐽"},frog:{keywords:["animal","nature","croak","toad"],char:"🐸"},squid:{keywords:["animal","nature","ocean","sea"],char:"🦑"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙"},shrimp:{keywords:["animal","ocean","nature","seafood"],char:"🦐"},monkey_face:{keywords:["animal","nature","circus"],char:"🐵"},gorilla:{keywords:["animal","nature","circus"],char:"🦍"},see_no_evil:{keywords:["monkey","animal","nature","haha"],char:"🙈"},hear_no_evil:{keywords:["animal","monkey","nature"],char:"🙉"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],char:"🙊"},monkey:{keywords:["animal","nature","banana","circus"],char:"🐒"},chicken:{keywords:["animal","cluck","nature","bird"],char:"🐔"},penguin:{keywords:["animal","nature"],char:"🐧"},bird:{keywords:["animal","nature","fly","tweet","spring"],char:"🐦"},baby_chick:{keywords:["animal","chicken","bird"],char:"🐤"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣"},hatched_chick:{keywords:["animal","chicken","baby","bird"],char:"🐥"},duck:{keywords:["animal","nature","bird","mallard"],char:"🦆"},eagle:{keywords:["animal","nature","bird"],char:"🦅"},owl:{keywords:["animal","nature","bird","hoot"],char:"🦉"},bat:{keywords:["animal","nature","blind","vampire"],char:"🦇"},wolf:{keywords:["animal","nature","wild"],char:"🐺"},boar:{keywords:["animal","nature"],char:"🐗"},horse:{keywords:["animal","brown","nature"],char:"🐴"},unicorn:{keywords:["animal","nature","mystical"],char:"🦄"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝"},bug:{keywords:["animal","insect","nature","worm"],char:"🐛"},butterfly:{keywords:["animal","insect","nature","caterpillar"],char:"🦋"},snail:{keywords:["slow","animal","shell"],char:"🐌"},beetle:{keywords:["animal","insect","nature","ladybug"],char:"🐞"},ant:{keywords:["animal","insect","nature","bug"],char:"🐜"},grasshopper:{keywords:["animal","cricket","chirp"],char:"🦗"},spider:{keywords:["animal","arachnid"],char:"🕷"},scorpion:{keywords:["animal","arachnid"],char:"🦂"},crab:{keywords:["animal","crustacean"],char:"🦀"},snake:{keywords:["animal","evil","nature","hiss","python"],char:"🐍"},lizard:{keywords:["animal","nature","reptile"],char:"🦎"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕"},turtle:{keywords:["animal","slow","nature","tortoise"],char:"🐢"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],char:"🐠"},fish:{keywords:["animal","food","nature"],char:"🐟"},blowfish:{keywords:["animal","nature","food","sea","ocean"],char:"🐡"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈"},whale:{keywords:["animal","nature","sea","ocean"],char:"🐳"},whale2:{keywords:["animal","nature","sea","ocean"],char:"🐋"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊"},leopard:{keywords:["animal","nature"],char:"🐆"},zebra:{keywords:["animal","nature","stripes","safari"],char:"🦓"},tiger2:{keywords:["animal","nature","roar"],char:"🐅"},water_buffalo:{keywords:["animal","nature","ox","cow"],char:"🐃"},ox:{keywords:["animal","cow","beef"],char:"🐂"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄"},deer:{keywords:["animal","nature","horns","venison"],char:"🦌"},dromedary_camel:{keywords:["animal","hot","desert","hump"],char:"🐪"},camel:{keywords:["animal","nature","hot","desert","hump"],char:"🐫"},giraffe:{keywords:["animal","nature","spots","safari"],char:"🦒"},elephant:{keywords:["animal","nature","nose","th","circus"],char:"🐘"},rhinoceros:{keywords:["animal","nature","horn"],char:"🦏"},goat:{keywords:["animal","nature"],char:"🐐"},ram:{keywords:["animal","sheep","nature"],char:"🐏"},sheep:{keywords:["animal","nature","wool","shipit"],char:"🐑"},racehorse:{keywords:["animal","gamble","luck"],char:"🐎"},pig2:{keywords:["animal","nature"],char:"🐖"},rat:{keywords:["animal","mouse","rodent"],char:"🐀"},mouse2:{keywords:["animal","nature","rodent"],char:"🐁"},rooster:{keywords:["animal","nature","chicken"],char:"🐓"},turkey:{keywords:["animal","bird"],char:"🦃"},dove:{keywords:["animal","bird"],char:"🕊"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕"},poodle:{keywords:["dog","animal","101","nature","pet"],char:"🐩"},cat2:{keywords:["animal","meow","pet","cats"],char:"🐈"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],char:"🐇"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"🐿"},hedgehog:{keywords:["animal","nature","spiny"],char:"🦔"},raccoon:{keywords:["animal","nature"],char:"🦝"},llama:{keywords:["animal","nature","alpaca"],char:"🦙"},hippopotamus:{keywords:["animal","nature"],char:"🦛"},kangaroo:{keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘"},badger:{keywords:["animal","nature","honey"],char:"🦡"},swan:{keywords:["animal","nature","bird"],char:"🦢"},peacock:{keywords:["animal","nature","peahen","bird"],char:"🦚"},parrot:{keywords:["animal","nature","bird","pirate","talk"],char:"🦜"},lobster:{keywords:["animal","nature","bisque","claws","seafood"],char:"🦞"},mosquito:{keywords:["animal","nature","insect","malaria"],char:"🦟"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾"},dragon:{keywords:["animal","myth","nature","chinese","green"],char:"🐉"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],char:"🐲"},cactus:{keywords:["vegetable","plant","nature"],char:"🌵"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],char:"🎄"},evergreen_tree:{keywords:["plant","nature"],char:"🌲"},deciduous_tree:{keywords:["plant","nature"],char:"🌳"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴"},seedling:{keywords:["plant","nature","grass","lawn","spring"],char:"🌱"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],char:"☘"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍"},tanabata_tree:{keywords:["plant","nature","branch","summer"],char:"🎋"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],char:"🍂"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],char:"🍁"},ear_of_rice:{keywords:["nature","plant"],char:"🌾"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],char:"🌺"},sunflower:{keywords:["nature","plant","fall"],char:"🌻"},rose:{keywords:["flowers","valentines","love","spring"],char:"🌹"},wilted_flower:{keywords:["plant","nature","flower"],char:"🥀"},tulip:{keywords:["flowers","plant","nature","summer","spring"],char:"🌷"},blossom:{keywords:["nature","flowers","yellow"],char:"🌼"},cherry_blossom:{keywords:["nature","plant","spring","flower"],char:"🌸"},bouquet:{keywords:["flowers","nature","spring"],char:"💐"},mushroom:{keywords:["plant","vegetable"],char:"🍄"},chestnut:{keywords:["food","squirrel"],char:"🌰"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃"},shell:{keywords:["nature","sea","beach"],char:"🐚"},spider_web:{keywords:["animal","insect","arachnid","silk"],char:"🕸"},earth_americas:{keywords:["globe","world","USA","international"],char:"🌎"},earth_africa:{keywords:["globe","world","international"],char:"🌍"},earth_asia:{keywords:["globe","world","east","international"],char:"🌏"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜"},sun_with_face:{keywords:["nature","morning","sky"],char:"🌞"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],char:"🌙"},star:{keywords:["night","yellow"],char:"⭐"},star2:{keywords:["night","sparkle","awesome","good","magic"],char:"🌟"},dizzy:{keywords:["star","sparkle","shoot","magic"],char:"💫"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨"},comet:{keywords:["space"],char:"☄"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️"},sun_behind_small_cloud:{keywords:["weather"],char:"🌤"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅"},sun_behind_large_cloud:{keywords:["weather"],char:"🌥"},sun_behind_rain_cloud:{keywords:["weather"],char:"🌦"},cloud:{keywords:["weather","sky"],char:"☁️"},cloud_with_rain:{keywords:["weather"],char:"🌧"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],char:"⛈"},cloud_with_lightning:{keywords:["weather","thunder"],char:"🌩"},zap:{keywords:["thunder","weather","lightning bolt","fast"],char:"⚡"},fire:{keywords:["hot","cook","flame"],char:"🔥"},boom:{keywords:["bomb","explode","explosion","collision","blown"],char:"💥"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️"},cloud_with_snow:{keywords:["weather"],char:"🌨"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃"},wind_face:{keywords:["gust","air"],char:"🌬"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨"},tornado:{keywords:["weather","cyclone","twister"],char:"🌪"},fog:{keywords:["weather"],char:"🌫"},open_umbrella:{keywords:["weather","spring"],char:"☂"},umbrella:{keywords:["rainy","weather","spring"],char:"☔"},droplet:{keywords:["water","drip","faucet","spring"],char:"💧"},sweat_drops:{keywords:["water","drip","oops"],char:"💦"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊"}}}},{food_and_drink:{id:"food_and_drink",name:"emoji_food_drinks",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Food%20%26%2338%3B%20Drink%22%20clip-path%3D%22url%28%23clip0_3328_49524%29%22%3E%3Cpath%20id%3D%22fill%22%20d%3D%22M8.59612%2017.5333C8.32892%2017.5333%208.06813%2017.5333%207.81376%2017.5333L1.82845%2017.5173L0.466797%204.35774H6.72892L7.60107%200.850015C7.62915%200.740852%207.69261%200.644046%207.78155%200.5747C7.87049%200.505355%207.9799%200.467371%208.09272%200.466675C8.13716%200.467681%208.18131%200.474136%208.22418%200.485895L8.28831%200.506183L11.748%201.68824L11.421%202.64926L8.45076%201.63485L7.77314%204.35774H9.37635L9.05571%207.59852C9.48323%207.5761%209.91823%207.56542%2010.3308%207.56542C11.9913%207.51468%2013.6491%207.731%2015.2409%208.2061C16.5929%208.67913%2017.278%209.38068%2017.278%2010.2798C17.2821%2010.3619%2017.2672%2010.4438%2017.2343%2010.5192C17.2015%2010.5946%2017.1517%2010.6614%2017.0888%2010.7144L17.0792%2010.725C17.0086%2010.7996%2016.9452%2010.8808%2016.89%2010.9674L16.9146%2010.9792C16.9403%2010.9899%2016.9627%2011.0005%2016.9649%2011.0219C16.9809%2011.2088%2016.377%2011.4287%2016.3717%2011.4309L17.5335%2012.1025V12.1089C17.3905%2012.2581%2017.225%2012.3838%2017.0429%2012.4816C17.2079%2012.6066%2017.3385%2012.7715%2017.4224%2012.9606C17.5063%2013.1498%2017.5408%2013.3571%2017.5228%2013.5633C17.5213%2013.8283%2017.4458%2014.0877%2017.305%2014.3123C17.1642%2014.537%2016.9635%2014.718%2016.7254%2014.835C17.0658%2015.3128%2017.2751%2015.8712%2017.3325%2016.4549C17.3325%2017.0005%2015.7721%2017.5227%2015.4333%2017.5227H13.9423H10.2645H8.59612V17.5333ZM5.47628%2015.0219C5.33022%2015.0282%205.18935%2015.0778%205.07155%2015.1643C4.95375%2015.2508%204.86435%2015.3703%204.81469%2015.5077C4.7599%2015.6163%204.73886%2015.7388%204.75429%2015.8595C4.76971%2015.9801%204.8209%2016.0934%204.90127%2016.1847C5.19296%2016.3951%205.54919%2016.4967%205.90808%2016.4719C5.9829%2016.4719%206.04168%2016.4719%206.09085%2016.4655H15.0603C15.3396%2016.4499%2015.6044%2016.3365%2015.8084%2016.1452C15.8888%2016.0736%2015.9445%2015.9785%2015.9675%2015.8734C15.9905%2015.7683%2015.9797%2015.6586%2015.9367%2015.56C15.8639%2015.4055%2015.7492%2015.2744%2015.6056%2015.1818C15.462%2015.0891%2015.2953%2015.0385%2015.1244%2015.0358H10.6707H10.5916H7.95484H5.47628V15.0219ZM1.5869%205.42554L2.68563%2016.4645H3.33333C3.41527%2015.8859%203.64741%2015.3388%204.00668%2014.8777C3.36539%2014.4762%203.10567%2014.1303%203.10567%2013.6722C3.09359%2013.426%203.13852%2013.1805%203.23695%2012.9545C3.33539%2012.7286%203.48468%2012.5283%203.67321%2012.3695C3.28416%2012.236%203.1495%2012.0278%203.1527%2011.89C3.1527%2011.7832%203.235%2011.6999%203.37181%2011.6594C3.44096%2011.6375%203.51304%2011.6264%203.58557%2011.6263C3.63445%2011.6265%203.68317%2011.6318%203.73093%2011.6423H3.74589C3.77812%2011.6502%203.81106%2011.6548%203.84422%2011.6562C3.92224%2011.6562%203.98851%2011.6124%204.07401%2011.5035L3.98103%2011.4127L3.93827%2011.3711C3.54923%2010.992%203.3344%2010.7838%203.3344%2010.2808C3.3344%208.90764%205.01135%207.98186%208.05638%207.67433L8.30541%205.42341H1.5869V5.42554ZM4.30808%2012.1933L10.365%2014.284L16.6816%2012.1933H4.30808ZM10.3329%208.60012C8.55123%208.60012%205.41643%208.929%204.58169%209.811C4.51566%209.87404%204.46364%209.95026%204.42902%2010.0347C4.3944%2010.1191%204.37796%2010.2099%204.38076%2010.3011C4.40213%2010.646%205.55644%2011.0486%205.79158%2011.1244H14.8764C14.932%2011.1041%2016.252%2010.6311%2016.2659%2010.3001C16.2657%2010.2079%2016.2467%2010.1168%2016.2099%2010.0323C16.1732%209.94785%2016.1194%209.87179%2016.0521%209.80887C15.2377%208.97491%2012.2183%208.60012%2010.3329%208.60012Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49524%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{green_apple:{keywords:["fruit","nature"],char:"🍏"},apple:{keywords:["fruit","mac","school"],char:"🍎"},pear:{keywords:["fruit","nature","food"],char:"🍐"},tangerine:{keywords:["food","fruit","nature","orange"],char:"🍊"},lemon:{keywords:["fruit","nature"],char:"🍋"},banana:{keywords:["fruit","food","monkey"],char:"🍌"},watermelon:{keywords:["fruit","food","picnic","summer"],char:"🍉"},grapes:{keywords:["fruit","food","wine"],char:"🍇"},strawberry:{keywords:["fruit","food","nature"],char:"🍓"},melon:{keywords:["fruit","nature","food"],char:"🍈"},cherries:{keywords:["food","fruit"],char:"🍒"},peach:{keywords:["fruit","nature","food"],char:"🍑"},pineapple:{keywords:["fruit","nature","food"],char:"🍍"},coconut:{keywords:["fruit","nature","food","palm"],char:"🥥"},kiwi_fruit:{keywords:["fruit","food"],char:"🥝"},mango:{keywords:["fruit","food","tropical"],char:"🥭"},avocado:{keywords:["fruit","food"],char:"🥑"},broccoli:{keywords:["fruit","food","vegetable"],char:"🥦"},tomato:{keywords:["fruit","vegetable","nature","food"],char:"🍅"},eggplant:{keywords:["vegetable","nature","food","aubergine"],char:"🍆"},cucumber:{keywords:["fruit","food","pickle"],char:"🥒"},carrot:{keywords:["vegetable","food","orange"],char:"🥕"},hot_pepper:{keywords:["food","spicy","chilli","chili"],char:"🌶"},potato:{keywords:["food","tuber","vegatable","starch"],char:"🥔"},corn:{keywords:["food","vegetable","plant"],char:"🌽"},leafy_greens:{keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬"},sweet_potato:{keywords:["food","nature"],char:"🍠"},peanuts:{keywords:["food","nut"],char:"🥜"},honey_pot:{keywords:["bees","sweet","kitchen"],char:"🍯"},croissant:{keywords:["food","bread","french"],char:"🥐"},bread:{keywords:["food","wheat","breakfast","toast"],char:"🍞"},baguette_bread:{keywords:["food","bread","french"],char:"🥖"},bagel:{keywords:["food","bread","bakery","schmear"],char:"🥯"},pretzel:{keywords:["food","bread","twisted"],char:"🥨"},cheese:{keywords:["food","chadder"],char:"🧀"},egg:{keywords:["food","chicken","breakfast"],char:"🥚"},bacon:{keywords:["food","breakfast","pork","pig","meat"],char:"🥓"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗"},meat_on_bone:{keywords:["good","food","drumstick"],char:"🍖"},bone:{keywords:["skeleton"],char:"🦴"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],char:"🍤"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],char:"🍳"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔"},fries:{keywords:["chips","snack","fast food"],char:"🍟"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],char:"🥙"},hotdog:{keywords:["food","frankfurter"],char:"🌭"},pizza:{keywords:["food","party"],char:"🍕"},sandwich:{keywords:["food","lunch","bread"],char:"🥪"},canned_food:{keywords:["food","soup"],char:"🥫"},spaghetti:{keywords:["food","italian","noodle"],char:"🍝"},taco:{keywords:["food","mexican"],char:"🌮"},burrito:{keywords:["food","mexican"],char:"🌯"},green_salad:{keywords:["food","healthy","lettuce"],char:"🥗"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],char:"🥘"},ramen:{keywords:["food","japanese","noodle","chopsticks"],char:"🍜"},stew:{keywords:["food","meat","soup"],char:"🍲"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥"},fortune_cookie:{keywords:["food","prophecy"],char:"🥠"},sushi:{keywords:["food","fish","japanese","rice"],char:"🍣"},bento:{keywords:["food","japanese","box"],char:"🍱"},curry:{keywords:["food","spicy","hot","indian"],char:"🍛"},rice_ball:{keywords:["food","japanese"],char:"🍙"},rice:{keywords:["food","china","asian"],char:"🍚"},rice_cracker:{keywords:["food","japanese"],char:"🍘"},oden:{keywords:["food","japanese"],char:"🍢"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡"},shaved_ice:{keywords:["hot","dessert","summer"],char:"🍧"},ice_cream:{keywords:["food","hot","dessert"],char:"🍨"},icecream:{keywords:["food","hot","dessert","summer"],char:"🍦"},pie:{keywords:["food","dessert","pastry"],char:"🥧"},cake:{keywords:["food","dessert"],char:"🍰"},cupcake:{keywords:["food","dessert","bakery","sweet"],char:"🧁"},moon_cake:{keywords:["food","autumn"],char:"🥮"},birthday:{keywords:["food","dessert","cake"],char:"🎂"},custard:{keywords:["dessert","food"],char:"🍮"},candy:{keywords:["snack","dessert","sweet","lolly"],char:"🍬"},lollipop:{keywords:["food","snack","candy","sweet"],char:"🍭"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],char:"🍫"},popcorn:{keywords:["food","movie theater","films","snack"],char:"🍿"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],char:"🥟"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],char:"🍩"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪"},milk_glass:{keywords:["beverage","drink","cow"],char:"🥛"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹"},champagne:{keywords:["drink","wine","bottle","celebration"],char:"🍾"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶"},tea:{keywords:["drink","bowl","breakfast","green","british"],char:"🍵"},cup_with_straw:{keywords:["drink","soda"],char:"🥤"},coffee:{keywords:["beverage","caffeine","latte","espresso"],char:"☕"},baby_bottle:{keywords:["food","container","milk"],char:"🍼"},salt:{keywords:["condiment","shaker"],char:"🧂"},spoon:{keywords:["cutlery","kitchen","tableware"],char:"🥄"},fork_and_knife:{keywords:["cutlery","kitchen"],char:"🍴"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣"},takeout_box:{keywords:["food","leftovers"],char:"🥡"},chopsticks:{keywords:["food"],char:"🥢"}}}},{activity:{id:"activity",name:"emoji_activity",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Activity%22%20clip-path%3D%22url%28%23clip0_3328_49527%29%22%3E%3Cpath%20id%3D%22fill%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9.00013%2017.5333C7.3124%2017.5333%205.66257%2017.0329%204.25927%2016.0952C2.85597%2015.1576%201.76223%2013.8248%201.11636%2012.2656C0.470494%2010.7063%200.301506%208.99055%200.630766%207.33524C0.960027%205.67994%201.77275%204.15944%202.96616%202.96603C4.15956%201.77263%205.68006%200.959905%207.33536%200.630644C8.99067%200.301384%2010.7064%200.470372%2012.2657%201.11624C13.825%201.76211%2015.1577%202.85585%2016.0953%204.25915C17.033%205.66244%2017.5335%207.31228%2017.5335%209.00001C17.5309%2011.2624%2016.6311%2013.4314%2015.0313%2015.0312C13.4315%2016.6309%2011.2625%2017.5308%209.00013%2017.5333ZM5.96558%2015.9091V15.7175H7.64122L9.74058%2016.5168C9.49369%2016.5388%209.24584%2016.5481%208.99799%2016.5447C7.95385%2016.5473%206.92078%2016.3308%205.96558%2015.9091ZM11.0182%2016.2055L7.90658%2015.0712V13.524L10.4232%2012.1705L12.4948%2012.9483L12.4509%2015.1044L11.0182%2016.2055ZM10.0584%208.89087L10.0637%2011.6076L7.5599%2012.9558L4.94907%2011.5038L4.93623%208.60411L7.07625%207.21523L10.0584%208.89087ZM10.465%208.34837L7.485%206.68023L7.31487%204.40432L10.3098%202.84745L12.5033%204.23526V7.30084L10.465%208.34837ZM14.5428%209.31673L13.1742%207.14782V4.48992L14.5171%203.84791C15.5612%204.9578%2016.2523%206.30892%2016.4806%207.81551L16.2816%208.85449L14.5428%209.31673ZM14.9248%209.92343L16.3586%209.5928L16.503%209.87528C16.3786%2010.9282%2016.0349%2011.9433%2015.494%2012.8553C15.0323%2013.6249%2014.4399%2014.3082%2013.7435%2014.8744L13.1668%2014.7278V12.5995L14.9248%209.92343ZM9.00013%201.44788C9.34909%201.44761%209.69766%201.4712%2010.0434%201.5185V2.2215L7.18433%203.71202L4.97261%203.70881L4.69655%202.79716C5.95804%201.91523%207.46093%201.44403%209.00013%201.44788ZM4.1134%203.24871L4.34773%203.95598L2.98025%206.14629L1.81715%206.66525C2.25214%205.33609%203.04697%204.15348%204.1134%203.24871ZM1.58389%207.56299L3.08191%206.8953L4.26748%208.55489L4.28139%2011.6162L4.28567%2011.6151L3.17179%2012.8381L2.55546%2012.9387C1.57206%2011.3309%201.2255%209.41335%201.58389%207.56299ZM2.9642%2013.539L3.68111%2013.4234L5.31609%2015.296L5.3086%2015.5902C4.39348%2015.0763%203.59514%2014.3778%202.9642%2013.539Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49527%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{soccer:{keywords:["sports","football"],char:"⚽"},basketball:{keywords:["sports","balls","NBA"],char:"🏀"},football:{keywords:["sports","balls","NFL"],char:"🏈"},baseball:{keywords:["sports","balls"],char:"⚾"},softball:{keywords:["sports","balls"],char:"🥎"},tennis:{keywords:["sports","balls","green"],char:"🎾"},volleyball:{keywords:["sports","balls"],char:"🏐"},rugby_football:{keywords:["sports","team"],char:"🏉"},flying_disc:{keywords:["sports","frisbee","ultimate"],char:"🥏"},"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱"},golf:{keywords:["sports","business","flag","hole","summer"],char:"⛳"},golfing_woman:{keywords:["sports","business","woman","female"],char:"🏌️‍♀️"},golfing_man:{keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0},ping_pong:{keywords:["sports","pingpong"],char:"🏓"},badminton:{keywords:["sports"],char:"🏸"},goal_net:{keywords:["sports"],char:"🥅"},ice_hockey:{keywords:["sports"],char:"🏒"},field_hockey:{keywords:["sports"],char:"🏑"},lacrosse:{keywords:["sports","ball","stick"],char:"🥍"},cricket:{keywords:["sports"],char:"🏏"},ski:{keywords:["sports","winter","cold","snow"],char:"🎿"},skier:{keywords:["sports","winter","snow"],char:"⛷"},snowboarder:{keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0},person_fencing:{keywords:["sports","fencing","sword"],char:"🤺"},women_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♀️"},men_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♂️"},woman_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♀️",fitzpatrick_scale:!0},man_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♂️",fitzpatrick_scale:!0},woman_playing_handball:{keywords:["sports"],char:"🤾‍♀️",fitzpatrick_scale:!0},man_playing_handball:{keywords:["sports"],char:"🤾‍♂️",fitzpatrick_scale:!0},ice_skate:{keywords:["sports"],char:"⛸"},curling_stone:{keywords:["sports"],char:"🥌"},skateboard:{keywords:["board"],char:"🛹"},sled:{keywords:["sleigh","luge","toboggan"],char:"🛷"},bow_and_arrow:{keywords:["sports"],char:"🏹"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],char:"🎣"},boxing_glove:{keywords:["sports","fighting"],char:"🥊"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],char:"🥋"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],char:"🚣‍♀️",fitzpatrick_scale:!0},rowing_man:{keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],char:"🧗‍♀️",fitzpatrick_scale:!0},climbing_man:{keywords:["sports","hobby","man","male","rock"],char:"🧗‍♂️",fitzpatrick_scale:!0},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊‍♀️",fitzpatrick_scale:!0},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0},woman_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♀️",fitzpatrick_scale:!0},man_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♂️",fitzpatrick_scale:!0},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♀️",fitzpatrick_scale:!0},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♂️",fitzpatrick_scale:!0},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄‍♀️",fitzpatrick_scale:!0},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0},bath:{keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0},basketball_woman:{keywords:["sports","human","woman","female"],char:"⛹️‍♀️",fitzpatrick_scale:!0},basketball_man:{keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],char:"🏋️‍♀️",fitzpatrick_scale:!0},weight_lifting_man:{keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴‍♀️",fitzpatrick_scale:!0},biking_man:{keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵‍♀️",fitzpatrick_scale:!0},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆"},running_shirt_with_sash:{keywords:["play","pageant"],char:"🎽"},medal_sports:{keywords:["award","winning"],char:"🏅"},medal_military:{keywords:["award","winning","army"],char:"🎖"},"1st_place_medal":{keywords:["award","winning","first"],char:"🥇"},"2nd_place_medal":{keywords:["award","second"],char:"🥈"},"3rd_place_medal":{keywords:["award","third"],char:"🥉"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],char:"🎗"},rosette:{keywords:["flower","decoration","military"],char:"🏵"},ticket:{keywords:["event","concert","pass"],char:"🎫"},tickets:{keywords:["sports","concert","entrance"],char:"🎟"},performing_arts:{keywords:["acting","theater","drama"],char:"🎭"},art:{keywords:["design","paint","draw","colors"],char:"🎨"},circus_tent:{keywords:["festival","carnival","party"],char:"🎪"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♀️",fitzpatrick_scale:!0},man_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♂️",fitzpatrick_scale:!0},microphone:{keywords:["sound","music","PA","sing","talkshow"],char:"🎤"},headphones:{keywords:["music","score","gadgets"],char:"🎧"},musical_score:{keywords:["treble","clef","compose"],char:"🎼"},musical_keyboard:{keywords:["piano","instrument","compose"],char:"🎹"},drum:{keywords:["music","instrument","drumsticks","snare"],char:"🥁"},saxophone:{keywords:["music","instrument","jazz","blues"],char:"🎷"},trumpet:{keywords:["music","brass"],char:"🎺"},guitar:{keywords:["music","instrument"],char:"🎸"},violin:{keywords:["music","instrument","orchestra","symphony"],char:"🎻"},clapper:{keywords:["movie","film","record"],char:"🎬"},video_game:{keywords:["play","console","PS4","controller"],char:"🎮"},space_invader:{keywords:["game","arcade","play"],char:"👾"},dart:{keywords:["game","play","bar","target","bullseye"],char:"🎯"},game_die:{keywords:["dice","random","tabletop","play","luck"],char:"🎲"},chess_pawn:{keywords:["expendable"],char:"♟"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰"},jigsaw:{keywords:["interlocking","puzzle","piece"],char:"🧩"},bowling:{keywords:["sports","fun","play"],char:"🎳"}}}},{travel_and_places:{id:"travel_and_places",name:"emoji_travel_places",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Travel%20%26%2338%3B%20Places%22%20clip-path%3D%22url%28%23clip0_3328_49530%29%22%3E%3Cpath%20id%3D%22fill%22%20d%3D%22M5.80013%2017.5323H3.6668V16.1094C3.47847%2016.1091%203.29794%2016.0342%203.16478%2015.9011C3.03162%2015.7679%202.95668%2015.5874%202.9564%2015.3991V12.5555C2.9564%2012.367%203.03121%2012.1862%203.1644%2012.0528C3.2976%2011.9195%203.47829%2011.8444%203.6668%2011.8441H4.73346V10.7775C4.76122%209.91752%205.12312%209.10224%205.74233%208.50478C6.36153%207.90732%207.18926%207.57475%208.04973%207.5777H9.9516C10.8119%207.57503%2011.6393%207.90772%2012.2583%208.50515C12.8773%209.10258%2013.2391%209.91771%2013.2668%2010.7775V11.8441H14.3335C14.5221%2011.8444%2014.7029%2011.9194%2014.8362%2012.0528C14.9696%2012.1861%2015.0446%2012.3669%2015.0449%2012.5555V15.3991C15.0446%2015.5876%2014.9696%2015.7683%2014.8362%2015.9014C14.7028%2016.0346%2014.522%2016.1094%2014.3335%2016.1094V17.5323H12.2001V16.1094H5.80013V17.5323ZM3.6668%2014.6887V15.3884H14.3335V14.6887H11.6668V14.677C11.6665%2014.5827%2011.6289%2014.4924%2011.5621%2014.4258C11.4953%2014.3592%2011.4048%2014.3218%2011.3105%2014.3218H6.68866C6.59446%2014.3218%206.50411%2014.3592%206.4375%2014.4258C6.37089%2014.4924%206.33346%2014.5828%206.33346%2014.677V14.6887H3.6668ZM13.0897%2012.6334C12.9316%2012.6336%2012.777%2012.6807%2012.6456%2012.7687C12.5141%2012.8567%2012.4118%2012.9818%2012.3514%2013.1279C12.291%2013.2741%2012.2753%2013.4349%2012.3063%2013.59C12.3373%2013.7452%2012.4136%2013.8876%2012.5255%2013.9994C12.6374%2014.1111%2012.78%2014.1872%2012.9351%2014.218C13.0903%2014.2488%2013.2511%2014.2329%2013.3972%2014.1723C13.5433%2014.1117%2013.6682%2014.0092%2013.756%2013.8776C13.8439%2013.7461%2013.8908%2013.5915%2013.8908%2013.4333C13.8905%2013.2211%2013.806%2013.0176%2013.6558%2012.8676C13.5056%2012.7176%2013.302%2012.6334%2013.0897%2012.6334ZM4.89026%2012.6334C4.73204%2012.6334%204.57737%2012.6803%204.44581%2012.7682C4.31425%2012.8561%204.21171%2012.981%204.15116%2013.1272C4.09061%2013.2734%204.07477%2013.4342%204.10564%2013.5894C4.1365%2013.7446%204.2127%2013.8871%204.32458%2013.999C4.43646%2014.1109%204.57901%2014.187%204.73419%2014.2179C4.88938%2014.2488%205.05023%2014.2329%205.19641%2014.1724C5.34259%2014.1118%205.46753%2014.0093%205.55544%2013.8778C5.64334%2013.7462%205.69026%2013.5915%205.69026%2013.4333C5.68998%2013.2211%205.60546%2013.0176%205.45526%2012.8676C5.30506%2012.7176%205.10147%2012.6334%204.8892%2012.6334H4.89026ZM9.00013%208.6443C5.80013%208.6443%205.80013%2010.1983%205.80013%2011.8441H12.2001V11.8324C12.2835%2011.0742%2012.1446%2010.3082%2011.8001%209.6277C11.3468%208.95681%2010.4593%208.6443%209.00013%208.6443ZM1.53346%2016.4561H0.466797V6.85668H4.02946L4.02306%200.466675H11.4897V4.72241H17.5335V16.455H16.4668V5.79967H11.4887V6.86628H10.422V1.53327H5.08866L5.08013%207.93288H1.53346V16.455V16.4561ZM15.4001%2010.0565H14.3335V8.98988H15.4001V10.0565ZM3.6668%2010.0565H2.60013V8.98988H3.6668V10.0565ZM15.4001%207.92328H14.3335V6.85668H15.4001V7.92328ZM9.35533%205.79967H8.28866V4.73308H9.35533V5.79967ZM7.222%205.79967H6.15533V4.73308H7.222V5.79967ZM9.35533%203.66648H8.28866V2.59987H9.35533V3.66648ZM7.222%203.66648H6.15533V2.58921L7.222%202.59987V3.66648Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49530%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{red_car:{keywords:["red","transportation","vehicle"],char:"🚗"},taxi:{keywords:["uber","vehicle","cars","transportation"],char:"🚕"},blue_car:{keywords:["transportation","vehicle"],char:"🚙"},bus:{keywords:["car","vehicle","transportation"],char:"🚌"},trolleybus:{keywords:["bart","transportation","vehicle"],char:"🚎"},racing_car:{keywords:["sports","race","fast","formula","f1"],char:"🏎"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓"},ambulance:{keywords:["health","911","hospital"],char:"🚑"},fire_engine:{keywords:["transportation","cars","vehicle"],char:"🚒"},minibus:{keywords:["vehicle","car","transportation"],char:"🚐"},truck:{keywords:["cars","transportation"],char:"🚚"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],char:"🚛"},tractor:{keywords:["vehicle","car","farming","agriculture"],char:"🚜"},kick_scooter:{keywords:["vehicle","kick","razor"],char:"🛴"},motorcycle:{keywords:["race","sports","fast"],char:"🏍"},bike:{keywords:["sports","bicycle","exercise","hipster"],char:"🚲"},motor_scooter:{keywords:["vehicle","vespa","sasha"],char:"🛵"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],char:"🚔"},oncoming_bus:{keywords:["vehicle","transportation"],char:"🚍"},oncoming_automobile:{keywords:["car","vehicle","transportation"],char:"🚘"},oncoming_taxi:{keywords:["vehicle","cars","uber"],char:"🚖"},aerial_tramway:{keywords:["transportation","vehicle","ski"],char:"🚡"},mountain_cableway:{keywords:["transportation","vehicle","ski"],char:"🚠"},suspension_railway:{keywords:["vehicle","transportation"],char:"🚟"},railway_car:{keywords:["transportation","vehicle"],char:"🚃"},train:{keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋"},monorail:{keywords:["transportation","vehicle"],char:"🚝"},bullettrain_side:{keywords:["transportation","vehicle"],char:"🚄"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅"},light_rail:{keywords:["transportation","vehicle"],char:"🚈"},mountain_railway:{keywords:["transportation","vehicle"],char:"🚞"},steam_locomotive:{keywords:["transportation","vehicle","train"],char:"🚂"},train2:{keywords:["transportation","vehicle"],char:"🚆"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇"},tram:{keywords:["transportation","vehicle"],char:"🚊"},station:{keywords:["transportation","vehicle","public"],char:"🚉"},flying_saucer:{keywords:["transportation","vehicle","ufo"],char:"🛸"},helicopter:{keywords:["transportation","vehicle","fly"],char:"🚁"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],char:"🛩"},airplane:{keywords:["vehicle","transportation","flight","fly"],char:"✈️"},flight_departure:{keywords:["airport","flight","landing"],char:"🛫"},flight_arrival:{keywords:["airport","flight","boarding"],char:"🛬"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],char:"⛵"},motor_boat:{keywords:["ship"],char:"🛥"},speedboat:{keywords:["ship","transportation","vehicle","summer"],char:"🚤"},ferry:{keywords:["boat","ship","yacht"],char:"⛴"},passenger_ship:{keywords:["yacht","cruise","ferry"],char:"🛳"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺"},canoe:{keywords:["boat","paddle","water","ship"],char:"🛶"},anchor:{keywords:["ship","ferry","sea","boat"],char:"⚓"},construction:{keywords:["wip","progress","caution","warning"],char:"🚧"},fuelpump:{keywords:["gas station","petroleum"],char:"⛽"},busstop:{keywords:["transportation","wait"],char:"🚏"},vertical_traffic_light:{keywords:["transportation","driving"],char:"🚦"},traffic_light:{keywords:["transportation","signal"],char:"🚥"},checkered_flag:{keywords:["contest","finishline","race","gokart"],char:"🏁"},ship:{keywords:["transportation","titanic","deploy"],char:"🚢"},ferris_wheel:{keywords:["photo","carnival","londoneye"],char:"🎡"},roller_coaster:{keywords:["carnival","playground","photo","fun"],char:"🎢"},carousel_horse:{keywords:["photo","carnival"],char:"🎠"},building_construction:{keywords:["wip","working","progress"],char:"🏗"},foggy:{keywords:["photo","mountain"],char:"🌁"},tokyo_tower:{keywords:["photo","japanese"],char:"🗼"},factory:{keywords:["building","industry","pollution","smoke"],char:"🏭"},fountain:{keywords:["photo","summer","water","fresh"],char:"⛲"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],char:"🎑"},mountain:{keywords:["photo","nature","environment"],char:"⛰"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],char:"🏔"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],char:"🗻"},volcano:{keywords:["photo","nature","disaster"],char:"🌋"},japan:{keywords:["nation","country","japanese","asia"],char:"🗾"},camping:{keywords:["photo","outdoors","tent"],char:"🏕"},tent:{keywords:["photo","camping","outdoors"],char:"⛺"},national_park:{keywords:["photo","environment","nature"],char:"🏞"},motorway:{keywords:["road","cupertino","interstate","highway"],char:"🛣"},railway_track:{keywords:["train","transportation"],char:"🛤"},sunrise:{keywords:["morning","view","vacation","photo"],char:"🌅"},sunrise_over_mountains:{keywords:["view","vacation","photo"],char:"🌄"},desert:{keywords:["photo","warm","saharah"],char:"🏜"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],char:"🏖"},desert_island:{keywords:["photo","tropical","mojito"],char:"🏝"},city_sunrise:{keywords:["photo","good morning","dawn"],char:"🌇"},city_sunset:{keywords:["photo","evening","sky","buildings"],char:"🌆"},cityscape:{keywords:["photo","night life","urban"],char:"🏙"},night_with_stars:{keywords:["evening","city","downtown"],char:"🌃"},bridge_at_night:{keywords:["photo","sanfrancisco"],char:"🌉"},milky_way:{keywords:["photo","space","stars"],char:"🌌"},stars:{keywords:["night","photo"],char:"🌠"},sparkler:{keywords:["stars","night","shine"],char:"🎇"},fireworks:{keywords:["photo","festival","carnival","congratulations"],char:"🎆"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈"},houses:{keywords:["buildings","photo"],char:"🏘"},european_castle:{keywords:["building","royalty","history"],char:"🏰"},japanese_castle:{keywords:["photo","building"],char:"🏯"},stadium:{keywords:["photo","place","sports","concert","venue"],char:"🏟"},statue_of_liberty:{keywords:["american","newyork"],char:"🗽"},house:{keywords:["building","home"],char:"🏠"},house_with_garden:{keywords:["home","plant","nature"],char:"🏡"},derelict_house:{keywords:["abandon","evict","broken","building"],char:"🏚"},office:{keywords:["building","bureau","work"],char:"🏢"},department_store:{keywords:["building","shopping","mall"],char:"🏬"},post_office:{keywords:["building","envelope","communication"],char:"🏣"},european_post_office:{keywords:["building","email"],char:"🏤"},hospital:{keywords:["building","health","surgery","doctor"],char:"🏥"},bank:{keywords:["building","money","sales","cash","business","enterprise"],char:"🏦"},hotel:{keywords:["building","accomodation","checkin"],char:"🏨"},convenience_store:{keywords:["building","shopping","groceries"],char:"🏪"},school:{keywords:["building","student","education","learn","teach"],char:"🏫"},love_hotel:{keywords:["like","affection","dating"],char:"🏩"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒"},classical_building:{keywords:["art","culture","history"],char:"🏛"},church:{keywords:["building","religion","christ"],char:"⛪"},mosque:{keywords:["islam","worship","minaret"],char:"🕌"},synagogue:{keywords:["judaism","worship","temple","jewish"],char:"🕍"},kaaba:{keywords:["mecca","mosque","islam"],char:"🕋"},shinto_shrine:{keywords:["temple","japan","kyoto"],char:"⛩"}}}},{objects:{id:"objects",name:"emoji_objects",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Objects%22%20clip-path%3D%22url%28%23clip0_3328_49533%29%22%3E%3Cpath%20id%3D%22fill%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.74304%2017.0747C6.89479%2017.2458%207.10264%2017.3571%207.32917%2017.3886C7.88313%2017.4776%208.44283%2017.526%209.00384%2017.5336C9.56452%2017.5256%2010.1239%2017.4768%2010.6774%2017.3875C10.904%2017.356%2011.1118%2017.2447%2011.2636%2017.0736C11.4153%2016.9025%2011.501%2016.6828%2011.5052%2016.4542V14.371L11.6118%2013.444C11.7625%2012.2244%2012.3613%2011.1043%2013.2918%2010.3016C13.8709%209.78174%2014.3283%209.14077%2014.6318%208.42421C14.9352%207.70765%2015.0772%206.93308%2015.0476%206.15549C14.9974%204.60074%2014.3333%203.1292%2013.2005%202.06304C12.0678%200.996885%2010.5588%200.422973%209.00384%200.466953C7.44817%200.421824%205.93806%200.995222%204.8044%202.0615C3.67074%203.12778%203.006%204.59997%202.95584%206.15549C2.92679%206.93341%203.06943%207.70819%203.37361%208.42477C3.67779%209.14135%204.13605%209.78214%204.71584%2010.3016C5.646%2011.1045%206.24442%2012.2245%206.39477%2013.444L6.50144%2014.372V16.4552C6.50562%2016.6839%206.59129%2016.9036%206.74304%2017.0747ZM4.3443%207.9801C4.10468%207.40281%203.99483%206.77992%204.02251%206.15549C4.07278%204.88293%204.62516%203.68212%205.55875%202.8159C6.49234%201.94968%207.73109%201.48861%209.00384%201.53362C10.2813%201.49475%2011.5221%201.96332%2012.455%202.83683C13.3879%203.71035%2013.9369%204.91774%2013.982%206.19495C14.0054%206.81667%2013.8918%207.43593%2013.6492%208.00885C13.4066%208.58177%2013.041%209.09431%2012.5782%209.51015C11.4664%2010.4717%2010.7476%2011.8091%2010.559%2013.267H7.44757C7.25391%2011.8025%206.52839%2010.4604%205.40917%209.49629C4.94744%209.07499%204.58391%208.5574%204.3443%207.9801ZM8.64544%2010.1587V12.5555H9.35584V10.1587L10.2497%209.33415C10.3063%209.3481%2010.3643%209.35526%2010.4225%209.35549C10.563%209.35549%2010.7003%209.31385%2010.8171%209.23584C10.9339%209.15782%2011.0249%209.04694%2011.0787%208.91719C11.1325%208.78744%2011.1467%208.64466%2011.1193%208.50689C11.092%208.36911%2011.0245%208.24253%2010.9252%208.14313C10.826%208.04374%2010.6995%207.976%2010.5618%207.94847C10.424%207.92094%2010.2812%207.93485%2010.1514%207.98846C10.0216%208.04206%209.91054%208.13295%209.83235%208.24963C9.75416%208.36632%209.71232%208.50356%209.71211%208.64402C9.71205%208.69899%209.71849%208.75377%209.73131%208.80722L9.00064%209.48135L8.26997%208.80722C8.28279%208.75377%208.28924%208.69899%208.28917%208.64402C8.28896%208.50338%208.24701%208.36597%208.16863%208.24919C8.09025%208.13242%207.97897%208.04154%207.8489%207.98806C7.71882%207.93458%207.5758%207.92092%207.43795%207.9488C7.3001%207.97668%207.17363%208.04484%207.07456%208.14466C6.97549%208.24448%206.90827%208.37147%206.88143%208.50952C6.85459%208.64757%206.86933%208.79049%206.92379%208.92016C6.97824%209.04983%207.06996%209.16042%207.18732%209.23792C7.30468%209.31541%207.4424%209.35633%207.58304%209.35549C7.64128%209.35526%207.69929%209.3481%207.75584%209.33415L8.64544%2010.1587ZM8.98997%2016.467C8.51378%2016.4593%208.03868%2016.4187%207.56811%2016.3454V15.7555H9.00384V15.044H7.56811V14.372L7.57131%2014.3336H10.4353V16.3464C9.95694%2016.4204%209.47398%2016.4606%208.98997%2016.467Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49533%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{watch:{keywords:["time","accessories"],char:"⌚"},iphone:{keywords:["technology","apple","gadgets","dial"],char:"📱"},calling:{keywords:["iphone","incoming"],char:"📲"},computer:{keywords:["technology","laptop","screen","display","monitor"],char:"💻"},keyboard:{keywords:["technology","computer","type","input","text"],char:"⌨"},desktop_computer:{keywords:["technology","computing","screen"],char:"🖥"},printer:{keywords:["paper","ink"],char:"🖨"},computer_mouse:{keywords:["click"],char:"🖱"},trackball:{keywords:["technology","trackpad"],char:"🖲"},joystick:{keywords:["game","play"],char:"🕹"},clamp:{keywords:["tool"],char:"🗜"},minidisc:{keywords:["technology","record","emojis","disk","90s"],char:"💽"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],char:"💾"},cd:{keywords:["technology","dvd","disk","disc","90s"],char:"💿"},dvd:{keywords:["cd","disk","disc"],char:"📀"},vhs:{keywords:["record","video","oldschool","90s","80s"],char:"📼"},camera:{keywords:["gadgets","photography"],char:"📷"},camera_flash:{keywords:["photography","gadgets"],char:"📸"},video_camera:{keywords:["film","record"],char:"📹"},movie_camera:{keywords:["film","record"],char:"🎥"},film_projector:{keywords:["video","tape","record","movie"],char:"📽"},film_strip:{keywords:["movie"],char:"🎞"},telephone_receiver:{keywords:["technology","communication","dial"],char:"📞"},phone:{keywords:["technology","communication","dial","telephone"],char:"☎️"},pager:{keywords:["bbcall","oldschool","90s"],char:"📟"},fax:{keywords:["communication","technology"],char:"📠"},tv:{keywords:["technology","program","oldschool","show","television"],char:"📺"},radio:{keywords:["communication","music","podcast","program"],char:"📻"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],char:"🎙"},level_slider:{keywords:["scale"],char:"🎚"},control_knobs:{keywords:["dial"],char:"🎛"},compass:{keywords:["magnetic","navigation","orienteering"],char:"🧭"},stopwatch:{keywords:["time","deadline"],char:"⏱"},timer_clock:{keywords:["alarm"],char:"⏲"},alarm_clock:{keywords:["time","wake"],char:"⏰"},mantelpiece_clock:{keywords:["time"],char:"🕰"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],char:"⏳"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛"},satellite:{keywords:["communication","future","radio","space"],char:"📡"},battery:{keywords:["power","energy","sustain"],char:"🔋"},electric_plug:{keywords:["charger","power"],char:"🔌"},bulb:{keywords:["light","electricity","idea"],char:"💡"},flashlight:{keywords:["dark","camping","sight","night"],char:"🔦"},candle:{keywords:["fire","wax"],char:"🕯"},fire_extinguisher:{keywords:["quench"],char:"🧯"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑"},oil_drum:{keywords:["barrell"],char:"🛢"},money_with_wings:{keywords:["dollar","bills","payment","sale"],char:"💸"},dollar:{keywords:["money","sales","bill","currency"],char:"💵"},yen:{keywords:["money","sales","japanese","dollar","currency"],char:"💴"},euro:{keywords:["money","sales","dollar","currency"],char:"💶"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷"},moneybag:{keywords:["dollar","payment","coins","sale"],char:"💰"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳"},gem:{keywords:["blue","ruby","diamond","jewelry"],char:"💎"},balance_scale:{keywords:["law","fairness","weight"],char:"⚖"},toolbox:{keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧"},hammer:{keywords:["tools","build","create"],char:"🔨"},hammer_and_pick:{keywords:["tools","build","create"],char:"⚒"},hammer_and_wrench:{keywords:["tools","build","create"],char:"🛠"},pick:{keywords:["tools","dig"],char:"⛏"},nut_and_bolt:{keywords:["handy","tools","fix"],char:"🔩"},gear:{keywords:["cog"],char:"⚙"},brick:{keywords:["bricks"],char:"🧱"},chains:{keywords:["lock","arrest"],char:"⛓"},magnet:{keywords:["attraction","magnetic"],char:"🧲"},gun:{keywords:["violence","weapon","pistol","revolver"],char:"🔫"},bomb:{keywords:["boom","explode","explosion","terrorism"],char:"💣"},firecracker:{keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪"},dagger:{keywords:["weapon"],char:"🗡"},crossed_swords:{keywords:["weapon"],char:"⚔"},shield:{keywords:["protection","security"],char:"🛡"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],char:"⚱"},amphora:{keywords:["vase","jar"],char:"🏺"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮"},prayer_beads:{keywords:["dhikr","religious"],char:"📿"},nazar_amulet:{keywords:["bead","charm"],char:"🧿"},barber:{keywords:["hair","salon","style"],char:"💈"},alembic:{keywords:["distilling","science","experiment","chemistry"],char:"⚗"},telescope:{keywords:["stars","space","zoom","science","astronomy"],char:"🔭"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬"},hole:{keywords:["embarrassing"],char:"🕳"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉"},dna:{keywords:["biologist","genetics","life"],char:"🧬"},microbe:{keywords:["amoeba","bacteria","germs"],char:"🦠"},petri_dish:{keywords:["bacteria","biology","culture","lab"],char:"🧫"},test_tube:{keywords:["chemistry","experiment","lab","science"],char:"🧪"},thermometer:{keywords:["weather","temperature","hot","cold"],char:"🌡"},broom:{keywords:["cleaning","sweeping","witch"],char:"🧹"},basket:{keywords:["laundry"],char:"🧺"},toilet_paper:{keywords:["roll"],char:"🧻"},label:{keywords:["sale","tag"],char:"🏷"},bookmark:{keywords:["favorite","label","save"],char:"🔖"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽"},shower:{keywords:["clean","water","bathroom"],char:"🚿"},bathtub:{keywords:["clean","shower","bathroom"],char:"🛁"},soap:{keywords:["bar","bathing","cleaning","lather"],char:"🧼"},sponge:{keywords:["absorbing","cleaning","porous"],char:"🧽"},lotion_bottle:{keywords:["moisturizer","sunscreen"],char:"🧴"},key:{keywords:["lock","door","password"],char:"🔑"},old_key:{keywords:["lock","door","password"],char:"🗝"},couch_and_lamp:{keywords:["read","chill"],char:"🛋"},sleeping_bed:{keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0},bed:{keywords:["sleep","rest"],char:"🛏"},door:{keywords:["house","entry","exit"],char:"🚪"},bellhop_bell:{keywords:["service"],char:"🛎"},teddy_bear:{keywords:["plush","stuffed"],char:"🧸"},framed_picture:{keywords:["photography"],char:"🖼"},world_map:{keywords:["location","direction"],char:"🗺"},parasol_on_ground:{keywords:["weather","summer"],char:"⛱"},moyai:{keywords:["rock","easter island","moai"],char:"🗿"},shopping:{keywords:["mall","buy","purchase"],char:"🛍"},shopping_cart:{keywords:["trolley"],char:"🛒"},balloon:{keywords:["party","celebration","birthday","circus"],char:"🎈"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏"},ribbon:{keywords:["decoration","pink","girl","bowtie"],char:"🎀"},gift:{keywords:["present","birthday","christmas","xmas"],char:"🎁"},confetti_ball:{keywords:["festival","party","birthday","circus"],char:"🎊"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉"},dolls:{keywords:["japanese","toy","kimono"],char:"🎎"},wind_chime:{keywords:["nature","ding","spring","bell"],char:"🎐"},crossed_flags:{keywords:["japanese","nation","country","border"],char:"🎌"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],char:"🏮"},red_envelope:{keywords:["gift"],char:"🧧"},email:{keywords:["letter","postal","inbox","communication"],char:"✉️"},envelope_with_arrow:{keywords:["email","communication"],char:"📩"},incoming_envelope:{keywords:["email","inbox"],char:"📨"},"e-mail":{keywords:["communication","inbox"],char:"📧"},love_letter:{keywords:["email","like","affection","envelope","valentines"],char:"💌"},postbox:{keywords:["email","letter","envelope"],char:"📮"},mailbox_closed:{keywords:["email","communication","inbox"],char:"📪"},mailbox:{keywords:["email","inbox","communication"],char:"📫"},mailbox_with_mail:{keywords:["email","inbox","communication"],char:"📬"},mailbox_with_no_mail:{keywords:["email","inbox"],char:"📭"},package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦"},postal_horn:{keywords:["instrument","music"],char:"📯"},inbox_tray:{keywords:["email","documents"],char:"📥"},outbox_tray:{keywords:["inbox","email"],char:"📤"},scroll:{keywords:["documents","ancient","history","paper"],char:"📜"},page_with_curl:{keywords:["documents","office","paper"],char:"📃"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],char:"📑"},receipt:{keywords:["accounting","expenses"],char:"🧾"},bar_chart:{keywords:["graph","presentation","stats"],char:"📊"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉"},page_facing_up:{keywords:["documents","office","paper","information"],char:"📄"},date:{keywords:["calendar","schedule"],char:"📅"},calendar:{keywords:["schedule","date","planning"],char:"📆"},spiral_calendar:{keywords:["date","schedule","planning"],char:"🗓"},card_index:{keywords:["business","stationery"],char:"📇"},card_file_box:{keywords:["business","stationery"],char:"🗃"},ballot_box:{keywords:["election","vote"],char:"🗳"},file_cabinet:{keywords:["filing","organizing"],char:"🗄"},clipboard:{keywords:["stationery","documents"],char:"📋"},spiral_notepad:{keywords:["memo","stationery"],char:"🗒"},file_folder:{keywords:["documents","business","office"],char:"📁"},open_file_folder:{keywords:["documents","load"],char:"📂"},card_index_dividers:{keywords:["organizing","business","stationery"],char:"🗂"},newspaper_roll:{keywords:["press","headline"],char:"🗞"},newspaper:{keywords:["press","headline"],char:"📰"},notebook:{keywords:["stationery","record","notes","paper","study"],char:"📓"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],char:"📕"},green_book:{keywords:["read","library","knowledge","study"],char:"📗"},blue_book:{keywords:["read","library","knowledge","learn","study"],char:"📘"},orange_book:{keywords:["read","library","knowledge","textbook","study"],char:"📙"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],char:"📔"},ledger:{keywords:["notes","paper"],char:"📒"},books:{keywords:["literature","library","study"],char:"📚"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖"},safety_pin:{keywords:["diaper"],char:"🧷"},link:{keywords:["rings","url"],char:"🔗"},paperclip:{keywords:["documents","stationery"],char:"📎"},paperclips:{keywords:["documents","stationery"],char:"🖇"},scissors:{keywords:["stationery","cut"],char:"✂️"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],char:"📐"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏"},abacus:{keywords:["calculation"],char:"🧮"},pushpin:{keywords:["stationery","mark","here"],char:"📌"},round_pushpin:{keywords:["stationery","location","map","here"],char:"📍"},triangular_flag_on_post:{keywords:["mark","milestone","place"],char:"🚩"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳"},black_flag:{keywords:["pirate"],char:"🏴"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️‍🌈"},closed_lock_with_key:{keywords:["security","privacy"],char:"🔐"},lock:{keywords:["security","password","padlock"],char:"🔒"},unlock:{keywords:["privacy","security"],char:"🔓"},lock_with_ink_pen:{keywords:["security","secret"],char:"🔏"},pen:{keywords:["stationery","writing","write"],char:"🖊"},fountain_pen:{keywords:["stationery","writing","write"],char:"🖋"},black_nib:{keywords:["pen","stationery","writing","write"],char:"✒️"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],char:"✏️"},crayon:{keywords:["drawing","creativity"],char:"🖍"},paintbrush:{keywords:["drawing","creativity","art"],char:"🖌"},mag:{keywords:["search","zoom","find","detective"],char:"🔍"},mag_right:{keywords:["search","zoom","find","detective"],char:"🔎"}}}},{symbols:{id:"symbols",name:"emoji_symbols",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Symbols%22%20clip-path%3D%22url%28%23clip0_3328_49536%29%22%3E%3Cg%20id%3D%22fill%22%3E%3Cpath%20d%3D%22M10.0149%2017.5333L12.9947%2013.6424L15.7282%2010.0204H17.0373L14.0142%2013.7678L11.3628%2017.5014L10.0149%2017.5333ZM4.113%2017.511C3.80341%2017.5447%203.48991%2017.5164%203.19227%2017.4281C2.89463%2017.3398%202.61933%2017.1934%202.38374%2016.998C2.14815%2016.8026%201.95738%2016.5625%201.82349%2016.2929C1.68959%2016.0233%201.61547%2015.73%201.6058%2015.4316C1.61838%2015.007%201.75996%2014.5952%202.01317%2014.2466C2.26639%2013.898%202.62024%2013.6278%203.03135%2013.4691C3.12651%2013.4148%203.22464%2013.3655%203.32534%2013.3213C2.80895%2012.9041%202.48164%2012.3111%202.41232%2011.6672C2.42021%2011.4348%202.47697%2011.2064%202.57922%2010.9956C2.68147%2010.7848%202.82709%2010.5959%203.00735%2010.4404C3.18761%2010.2848%203.3988%2010.1657%203.62825%2010.0903C3.8577%2010.0148%204.10069%209.98456%204.34264%2010.0013C4.58508%209.98485%204.82847%2010.0155%205.05822%2010.0915C5.28797%2010.1674%205.49933%2010.2871%205.67962%2010.4433C5.8599%2010.5995%206.0054%2010.789%206.10736%2011.0004C6.20932%2011.2118%206.26565%2011.4407%206.27297%2011.6735C6.27297%2012.5878%205.52525%2013.0981%204.71983%2013.5138L6.30292%2015.2689C6.57258%2014.7114%206.69852%2014.1%206.67013%2013.4861V13.2108H7.63862V13.518C7.68679%2014.3762%207.47694%2015.2296%207.034%2015.977L8.49395%2017.4579H7.12387L6.38391%2016.6648C5.75845%2017.2006%204.95187%2017.5005%204.113%2017.511ZM3.87892%2013.9411C3.80016%2013.9762%203.73027%2014.0113%203.64484%2014.057C2.96035%2014.4153%202.65527%2014.815%202.65527%2015.3529C2.65527%2016.4043%203.71141%2016.5223%204.16514%2016.5223H4.26166C4.81483%2016.5233%205.34732%2016.3209%205.74934%2015.9568L3.87892%2013.9411ZM4.35041%2010.7795C4.22231%2010.7795%204.09554%2010.8044%203.97783%2010.8528C3.86012%2010.9013%203.75392%2010.9721%203.6657%2011.0612C3.57748%2011.1502%203.50909%2011.2555%203.46469%2011.3706C3.42029%2011.4858%203.40081%2011.6084%203.40744%2011.7309C3.40744%2012.102%203.59825%2012.4081%204.16292%2012.9471C4.87848%2012.5952%205.29338%2012.2816%205.29338%2011.7256C5.29923%2011.6035%205.27918%2011.4814%205.23443%2011.3669C5.18968%2011.2524%205.12116%2011.1478%205.03303%2011.0593C4.94489%2010.9709%204.83896%2010.9005%204.72163%2010.8524C4.60431%2010.8043%204.47802%2010.7795%204.35041%2010.7795ZM15.6805%2017.477C14.7664%2017.477%2014.1518%2016.7541%2014.1518%2015.6793V15.5315C14.1221%2015.3166%2014.1391%2015.0982%2014.2018%2014.8899C14.2644%2014.6817%2014.3714%2014.4881%2014.5159%2014.3213C14.6604%2014.1546%2014.8394%2014.0183%2015.0415%2013.921C15.2437%2013.8238%2015.4646%2013.7676%2015.6905%2013.7562C16.6113%2013.7562%2017.2303%2014.4716%2017.2303%2015.5379V15.6857C17.2597%2015.9019%2017.2421%2016.1216%2017.1788%2016.331C17.1154%2016.5405%2017.0076%2016.7351%2016.8621%2016.9028C16.7166%2017.0704%2016.5366%2017.2075%2016.3333%2017.3054C16.13%2017.4033%2015.9077%2017.4599%2015.6805%2017.4717V17.477ZM15.6961%2014.5811C15.2645%2014.5811%2015.0071%2014.9553%2015.0071%2015.5826V15.6251C15.0071%2016.2629%2015.2689%2016.651%2015.6905%2016.651C16.1121%2016.651%2016.3739%2016.2619%2016.3739%2015.6346V15.5921C16.375%2014.9532%2016.1221%2014.5758%2015.6972%2014.5758L15.6961%2014.5811ZM11.2419%2013.7466C10.3278%2013.7466%209.71316%2013.0237%209.71316%2011.9489V11.8022C9.68329%2011.587%209.70025%2011.3682%209.76296%2011.1596C9.82567%2010.951%209.93277%2010.7571%2010.0775%2010.5901C10.2223%2010.4232%2010.4016%2010.2867%2010.604%2010.1894C10.8065%2010.0921%2011.0279%2010.036%2011.2541%2010.0247C12.1749%2010.0247%2012.7939%2010.7401%2012.7939%2011.8064V11.9489C12.8241%2012.1657%2012.8071%2012.3861%2012.7441%2012.5963C12.6811%2012.8065%2012.5733%2013.0019%2012.4277%2013.1702C12.282%2013.3386%2012.1015%2013.4762%2011.8977%2013.5745C11.6938%2013.6728%2011.4709%2013.7295%2011.243%2013.7413L11.2419%2013.7466ZM11.2585%2010.855C10.8292%2010.855%2010.5729%2011.2281%2010.5729%2011.8543V11.8947C10.5729%2012.524%2010.8336%2012.9152%2011.2541%2012.9152C11.6746%2012.9152%2011.9353%2012.5272%2011.9353%2011.9042V11.8617C11.9353%2011.226%2011.6823%2010.8496%2011.2596%2010.8496L11.2585%2010.855ZM11.6224%208.73939C11.3804%208.77098%2011.1341%208.73%2010.9174%208.62207C10.7007%208.51414%2010.5242%208.34455%2010.4121%208.13661C10.3211%207.93853%2010.2719%207.72517%2010.2673%207.5088C10.2627%207.29243%2010.3028%207.07733%2010.3853%206.87586C10.4678%206.6744%2010.591%206.49056%2010.7479%206.33491C10.9048%206.17927%2011.0923%206.0549%2011.2996%205.96895C11.6177%205.81543%2011.9708%205.74051%2012.3269%205.75101C12.5753%205.75109%2012.823%205.77676%2013.0657%205.82756L13.0979%200.46741C13.5886%200.457868%2014.0764%200.541333%2014.5333%200.71301C14.9902%200.884687%2015.4072%201.14119%2015.7604%201.46779C16.0979%201.81622%2016.3572%202.22738%2016.5221%202.67578C16.687%203.12419%2016.754%203.60027%2016.7189%204.07451C16.5406%204.97838%2016.0559%205.80054%2015.3399%206.41332C15.1025%206.19539%2015.2712%205.90516%2015.4842%205.53839C15.7753%205.12094%2015.9298%204.62974%2015.9279%204.12766C15.8388%203.65202%2015.6375%203.20218%2015.3393%202.8125C15.0411%202.42281%2014.6539%202.10359%2014.2073%201.87921V6.45691C14.2104%206.78607%2014.1331%207.11136%2013.9815%207.40673C13.8299%207.70211%2013.6082%207.95935%2013.3342%208.15787C12.8437%208.52157%2012.2436%208.72367%2011.6235%208.73407L11.6224%208.73939ZM9.00981%202.23109H1.24414V1.16799H9.00981V2.23109Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3Cpath%20d%3D%22M5.68167%208.60969H4.57229V4.35729H1.24414V3.29419H9.00981V4.35729H5.68167V8.60969Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3328_49536%22%3E%3Crect%20width%3D%2217.0667%22%20height%3D%2217.0667%22%20fill%3D%22white%22%20transform%3D%22translate%280.466797%200.466675%29%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",emojis:{heart:{keywords:["love","like","valentines"],char:"❤️"},orange_heart:{keywords:["love","like","affection","valentines"],char:"🧡"},yellow_heart:{keywords:["love","like","affection","valentines"],char:"💛"},green_heart:{keywords:["love","like","affection","valentines"],char:"💚"},blue_heart:{keywords:["love","like","affection","valentines"],char:"💙"},purple_heart:{keywords:["love","like","affection","valentines"],char:"💜"},black_heart:{keywords:["evil"],char:"🖤"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],char:"💔"},heavy_heart_exclamation:{keywords:["decoration","love"],char:"❣"},two_hearts:{keywords:["love","like","affection","valentines","heart"],char:"💕"},revolving_hearts:{keywords:["love","like","affection","valentines"],char:"💞"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],char:"💓"},heartpulse:{keywords:["like","love","affection","valentines","pink"],char:"💗"},sparkling_heart:{keywords:["love","like","affection","valentines"],char:"💖"},cupid:{keywords:["love","like","heart","affection","valentines"],char:"💘"},gift_heart:{keywords:["love","valentines"],char:"💝"},heart_decoration:{keywords:["purple-square","love","like"],char:"💟"},peace_symbol:{keywords:["hippie"],char:"☮"},latin_cross:{keywords:["christianity"],char:"✝"},star_and_crescent:{keywords:["islam"],char:"☪"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸"},star_of_david:{keywords:["judaism"],char:"✡"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],char:"🔯"},menorah:{keywords:["hanukkah","candles","jewish"],char:"🕎"},yin_yang:{keywords:["balance"],char:"☯"},orthodox_cross:{keywords:["suppedaneum","religion"],char:"☦"},place_of_worship:{keywords:["religion","church","temple","prayer"],char:"🛐"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],char:"⛎"},aries:{keywords:["sign","purple-square","zodiac","astrology"],char:"♈"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],char:"♉"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],char:"♊"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],char:"♋"},leo:{keywords:["sign","purple-square","zodiac","astrology"],char:"♌"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],char:"♍"},libra:{keywords:["sign","purple-square","zodiac","astrology"],char:"♎"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],char:"♐"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],char:"♑"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],char:"♒"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],char:"♓"},id:{keywords:["purple-square","words"],char:"🆔"},atom_symbol:{keywords:["science","physics","chemistry"],char:"⚛"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹"},radioactive:{keywords:["nuclear","danger"],char:"☢"},biohazard:{keywords:["danger"],char:"☣"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],char:"📴"},vibration_mode:{keywords:["orange-square","phone"],char:"📳"},u6709:{keywords:["orange-square","chinese","have","kanji"],char:"🈶"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],char:"🈸"},u55b6:{keywords:["japanese","opening hours","orange-square"],char:"🈺"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],char:"✴️"},vs:{keywords:["words","orange-square"],char:"🆚"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑"},white_flower:{keywords:["japanese","spring"],char:"💮"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],char:"🉐"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲"},a:{keywords:["red-square","alphabet","letter"],char:"🅰️"},b:{keywords:["red-square","alphabet","letter"],char:"🅱️"},ab:{keywords:["red-square","alphabet"],char:"🆎"},cl:{keywords:["alphabet","words","red-square"],char:"🆑"},o2:{keywords:["alphabet","red-square","letter"],char:"🅾️"},sos:{keywords:["help","red-square","words","emergency","911"],char:"🆘"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔"},name_badge:{keywords:["fire","forbid"],char:"📛"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫"},x:{keywords:["no","delete","remove","cancel","red"],char:"❌"},o:{keywords:["circle","round"],char:"⭕"},stop_sign:{keywords:["stop"],char:"🛑"},anger:{keywords:["angry","mad"],char:"💢"},hotsprings:{keywords:["bath","warm","relax"],char:"♨️"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],char:"🚷"},do_not_litter:{keywords:["trash","bin","garbage","circle"],char:"🚯"},no_bicycles:{keywords:["cyclist","prohibited","circle"],char:"🚳"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱"},underage:{keywords:["18","drink","pub","night","minor","circle"],char:"🔞"},no_mobile_phones:{keywords:["iphone","mute","circle"],char:"📵"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],char:"❕"},question:{keywords:["doubt","confused"],char:"❓"},grey_question:{keywords:["doubts","gray","huh","confused"],char:"❔"},bangbang:{keywords:["exclamation","surprise"],char:"‼️"},interrobang:{keywords:["wat","punctuation","surprise"],char:"⁉️"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯"},low_brightness:{keywords:["sun","afternoon","warm","summer"],char:"🔅"},high_brightness:{keywords:["sun","light"],char:"🔆"},trident:{keywords:["weapon","spear"],char:"🔱"},fleur_de_lis:{keywords:["decorative","scout"],char:"⚜"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸"},beginner:{keywords:["badge","shield"],char:"🔰"},recycle:{keywords:["arrow","environment","garbage","trash"],char:"♻️"},u6307:{keywords:["chinese","point","green-square","kanji"],char:"🈯"},chart:{keywords:["green-square","graph","presentation","stats"],char:"💹"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],char:"✳️"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],char:"❎"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],char:"💠"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀"},loop:{keywords:["tape","cassette"],char:"➿"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐"},m:{keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧"},sa:{keywords:["japanese","blue-square","katakana"],char:"🈂️"},passport_control:{keywords:["custom","blue-square"],char:"🛂"},customs:{keywords:["passport","border","blue-square"],char:"🛃"},baggage_claim:{keywords:["blue-square","airport","transport"],char:"🛄"},left_luggage:{keywords:["blue-square","travel"],char:"🛅"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],char:"♿"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],char:"🚭"},wc:{keywords:["toilet","restroom","blue-square"],char:"🚾"},parking:{keywords:["cars","blue-square","alphabet","letter"],char:"🅿️"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺"},baby_symbol:{keywords:["orange-square","child"],char:"🚼"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],char:"🚮"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁"},ng:{keywords:["blue-square","words","shape","icon"],char:"🆖"},ok:{keywords:["good","agree","yes","blue-square"],char:"🆗"},up:{keywords:["blue-square","above","high"],char:"🆙"},cool:{keywords:["words","blue-square"],char:"🆒"},new:{keywords:["blue-square","words","start"],char:"🆕"},free:{keywords:["blue-square","words"],char:"🆓"},zero:{keywords:["0","numbers","blue-square","null"],char:"0️⃣"},one:{keywords:["blue-square","numbers","1"],char:"1️⃣"},two:{keywords:["numbers","2","prime","blue-square"],char:"2️⃣"},three:{keywords:["3","numbers","prime","blue-square"],char:"3️⃣"},four:{keywords:["4","numbers","blue-square"],char:"4️⃣"},five:{keywords:["5","numbers","blue-square","prime"],char:"5️⃣"},six:{keywords:["6","numbers","blue-square"],char:"6️⃣"},seven:{keywords:["7","numbers","blue-square","prime"],char:"7️⃣"},eight:{keywords:["8","blue-square","numbers"],char:"8️⃣"},nine:{keywords:["blue-square","numbers","9"],char:"9️⃣"},keycap_ten:{keywords:["numbers","10","blue-square"],char:"🔟"},asterisk:{keywords:["star","keycap"],char:"*⃣"},1234:{keywords:["numbers","blue-square"],char:"🔢"},eject_button:{keywords:["blue-square"],char:"⏏️"},arrow_forward:{keywords:["blue-square","right","direction","play"],char:"▶️"},pause_button:{keywords:["pause","blue-square"],char:"⏸"},next_track_button:{keywords:["forward","next","blue-square"],char:"⏭"},stop_button:{keywords:["blue-square"],char:"⏹"},record_button:{keywords:["blue-square"],char:"⏺"},play_or_pause_button:{keywords:["blue-square","play","pause"],char:"⏯"},previous_track_button:{keywords:["backward"],char:"⏮"},fast_forward:{keywords:["blue-square","play","speed","continue"],char:"⏩"},rewind:{keywords:["play","blue-square"],char:"⏪"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],char:"🔀"},repeat:{keywords:["loop","record"],char:"🔁"},repeat_one:{keywords:["blue-square","loop"],char:"🔂"},arrow_backward:{keywords:["blue-square","left","direction"],char:"◀️"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼"},arrow_down_small:{keywords:["blue-square","direction","bottom"],char:"🔽"},arrow_double_up:{keywords:["blue-square","direction","top"],char:"⏫"},arrow_double_down:{keywords:["blue-square","direction","bottom"],char:"⏬"},arrow_right:{keywords:["blue-square","next"],char:"➡️"},arrow_left:{keywords:["blue-square","previous","back"],char:"⬅️"},arrow_up:{keywords:["blue-square","continue","top","direction"],char:"⬆️"},arrow_down:{keywords:["blue-square","direction","bottom"],char:"⬇️"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],char:"↘️"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],char:"↙️"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],char:"↕️"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],char:"↔️"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],char:"🔄"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],char:"↪️"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],char:"↩️"},arrow_heading_up:{keywords:["blue-square","direction","top"],char:"⤴️"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],char:"⤵️"},hash:{keywords:["symbol","blue-square","twitter"],char:"#️⃣"},information_source:{keywords:["blue-square","alphabet","letter"],char:"ℹ️"},abc:{keywords:["blue-square","alphabet"],char:"🔤"},abcd:{keywords:["blue-square","alphabet"],char:"🔡"},capital_abcd:{keywords:["alphabet","words","blue-square"],char:"🔠"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣"},musical_note:{keywords:["score","tone","sound"],char:"🎵"},notes:{keywords:["music","score"],char:"🎶"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],char:"➰"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],char:"✔️"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],char:"🔃"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],char:"➕"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],char:"➖"},heavy_division_sign:{keywords:["divide","math","calculation"],char:"➗"},heavy_multiplication_x:{keywords:["math","calculation"],char:"✖️"},infinity:{keywords:["forever"],char:"♾"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],char:"💲"},currency_exchange:{keywords:["money","sales","dollar","travel"],char:"💱"},copyright:{keywords:["ip","license","circle","law","legal"],char:"©️"},registered:{keywords:["alphabet","circle"],char:"®️"},tm:{keywords:["trademark","brand","law","legal"],char:"™️"},end:{keywords:["words","arrow"],char:"🔚"},back:{keywords:["arrow","words","return"],char:"🔙"},on:{keywords:["arrow","words"],char:"🔛"},top:{keywords:["words","blue-square"],char:"🔝"},soon:{keywords:["arrow","words"],char:"🔜"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️"},radio_button:{keywords:["input","old","music","circle"],char:"🔘"},white_circle:{keywords:["shape","round"],char:"⚪"},black_circle:{keywords:["shape","button","round"],char:"⚫"},red_circle:{keywords:["shape","error","danger"],char:"🔴"},large_blue_circle:{keywords:["shape","icon","button"],char:"🔵"},small_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔸"},small_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔹"},large_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔶"},large_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔷"},small_red_triangle:{keywords:["shape","direction","up","top"],char:"🔺"},black_small_square:{keywords:["shape","icon"],char:"▪️"},white_small_square:{keywords:["shape","icon"],char:"▫️"},black_large_square:{keywords:["shape","icon","button"],char:"⬛"},white_large_square:{keywords:["shape","icon","stone","button"],char:"⬜"},small_red_triangle_down:{keywords:["shape","direction","bottom"],char:"🔻"},black_medium_square:{keywords:["shape","button","icon"],char:"◼️"},white_medium_square:{keywords:["shape","stone","icon"],char:"◻️"},black_medium_small_square:{keywords:["icon","shape","button"],char:"◾"},white_medium_small_square:{keywords:["shape","stone","icon","button"],char:"◽"},black_square_button:{keywords:["shape","input","frame"],char:"🔲"},white_square_button:{keywords:["shape","input"],char:"🔳"},speaker:{keywords:["sound","volume","silence","broadcast"],char:"🔈"},sound:{keywords:["volume","speaker","broadcast"],char:"🔉"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊"},mute:{keywords:["sound","volume","silence","quiet"],char:"🔇"},mega:{keywords:["sound","speaker","volume"],char:"📣"},loudspeaker:{keywords:["volume","sound"],char:"📢"},bell:{keywords:["sound","notification","christmas","xmas","chime"],char:"🔔"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],char:"🔕"},black_joker:{keywords:["poker","cards","game","play","magic"],char:"🃏"},mahjong:{keywords:["game","play","chinese","kanji"],char:"🀄"},spades:{keywords:["poker","cards","suits","magic"],char:"♠️"},clubs:{keywords:["poker","cards","magic","suits"],char:"♣️"},hearts:{keywords:["poker","cards","magic","suits"],char:"♥️"},diamonds:{keywords:["poker","cards","magic","suits"],char:"♦️"},flower_playing_cards:{keywords:["game","sunset","red"],char:"🎴"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],char:"💭"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],char:"🗯"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],char:"💬"},left_speech_bubble:{keywords:["words","message","talk","chatting"],char:"🗨"},clock1:{keywords:["time","late","early","schedule"],char:"🕐"},clock2:{keywords:["time","late","early","schedule"],char:"🕑"},clock3:{keywords:["time","late","early","schedule"],char:"🕒"},clock4:{keywords:["time","late","early","schedule"],char:"🕓"},clock5:{keywords:["time","late","early","schedule"],char:"🕔"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕"},clock7:{keywords:["time","late","early","schedule"],char:"🕖"},clock8:{keywords:["time","late","early","schedule"],char:"🕗"},clock9:{keywords:["time","late","early","schedule"],char:"🕘"},clock10:{keywords:["time","late","early","schedule"],char:"🕙"},clock11:{keywords:["time","late","early","schedule"],char:"🕚"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛"},clock130:{keywords:["time","late","early","schedule"],char:"🕜"},clock230:{keywords:["time","late","early","schedule"],char:"🕝"},clock330:{keywords:["time","late","early","schedule"],char:"🕞"},clock430:{keywords:["time","late","early","schedule"],char:"🕟"},clock530:{keywords:["time","late","early","schedule"],char:"🕠"},clock630:{keywords:["time","late","early","schedule"],char:"🕡"},clock730:{keywords:["time","late","early","schedule"],char:"🕢"},clock830:{keywords:["time","late","early","schedule"],char:"🕣"},clock930:{keywords:["time","late","early","schedule"],char:"🕤"},clock1030:{keywords:["time","late","early","schedule"],char:"🕥"},clock1130:{keywords:["time","late","early","schedule"],char:"🕦"},clock1230:{keywords:["time","late","early","schedule"],char:"🕧"}}}},{flags:{id:"flags",name:"emoji_flags",symbol:"data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Icon%20%2F%20Flags%22%3E%3Cpath%20id%3D%22fill%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.66823%2016.4665H2.60156V1.84649H3.66823C3.97077%202.19859%204.35392%202.48523%204.78651%202.66505C5.21911%202.84488%205.68895%202.92222%206.15783%202.89078C7.00741%202.83955%207.83264%202.59266%208.56636%202.17022C9.36704%201.78282%2010.2424%201.56572%2011.1349%201.5332C12.008%201.54124%2012.8645%201.76733%2013.6234%202.19006L14.3349%202.64955V3.69384V9.96061V11.0091L13.6234%2010.5496C12.8649%2010.1253%2012.0084%209.89737%2011.1349%209.88752C10.3627%209.96438%209.61318%2010.1875%208.92796%2010.5444C8.06273%2010.9566%207.11664%2011.1807%206.15463%2011.2012C5.26056%2011.2741%204.37166%2011.0112%203.66823%2010.4661V16.4613V16.4665ZM4.78757%209.97183C4.3553%209.79196%203.97198%209.51561%203.66823%209.16487V3.25419C4.399%203.73959%205.27792%203.96447%206.15783%203.89121C7.11883%203.87072%208.06389%203.64662%208.92796%203.23435C9.61285%202.87667%2010.3626%202.65354%2011.1349%202.57749C11.8885%202.5984%2012.6237%202.81072%2013.2682%203.19362L13.2704%209.32151C12.6022%209.01544%2011.8726%208.85097%2011.1349%208.84323C10.2422%208.87448%209.36658%209.09164%208.56636%209.48024C7.83276%209.90294%207.00747%2010.1498%206.15783%2010.2008C5.68909%2010.2301%205.21984%2010.1517%204.78757%209.97183Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",emojis:{afghanistan:{keywords:["af","flag","nation","country","banner"],char:"🇦🇫"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽"},albania:{keywords:["al","flag","nation","country","banner"],char:"🇦🇱"},algeria:{keywords:["dz","flag","nation","country","banner"],char:"🇩🇿"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸"},andorra:{keywords:["ad","flag","nation","country","banner"],char:"🇦🇩"},angola:{keywords:["ao","flag","nation","country","banner"],char:"🇦🇴"},anguilla:{keywords:["ai","flag","nation","country","banner"],char:"🇦🇮"},antarctica:{keywords:["aq","flag","nation","country","banner"],char:"🇦🇶"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬"},argentina:{keywords:["ar","flag","nation","country","banner"],char:"🇦🇷"},armenia:{keywords:["am","flag","nation","country","banner"],char:"🇦🇲"},aruba:{keywords:["aw","flag","nation","country","banner"],char:"🇦🇼"},australia:{keywords:["au","flag","nation","country","banner"],char:"🇦🇺"},austria:{keywords:["at","flag","nation","country","banner"],char:"🇦🇹"},azerbaijan:{keywords:["az","flag","nation","country","banner"],char:"🇦🇿"},bahamas:{keywords:["bs","flag","nation","country","banner"],char:"🇧🇸"},bahrain:{keywords:["bh","flag","nation","country","banner"],char:"🇧🇭"},bangladesh:{keywords:["bd","flag","nation","country","banner"],char:"🇧🇩"},barbados:{keywords:["bb","flag","nation","country","banner"],char:"🇧🇧"},belarus:{keywords:["by","flag","nation","country","banner"],char:"🇧🇾"},belgium:{keywords:["be","flag","nation","country","banner"],char:"🇧🇪"},belize:{keywords:["bz","flag","nation","country","banner"],char:"🇧🇿"},benin:{keywords:["bj","flag","nation","country","banner"],char:"🇧🇯"},bermuda:{keywords:["bm","flag","nation","country","banner"],char:"🇧🇲"},bhutan:{keywords:["bt","flag","nation","country","banner"],char:"🇧🇹"},bolivia:{keywords:["bo","flag","nation","country","banner"],char:"🇧🇴"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦"},botswana:{keywords:["bw","flag","nation","country","banner"],char:"🇧🇼"},brazil:{keywords:["br","flag","nation","country","banner"],char:"🇧🇷"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳"},bulgaria:{keywords:["bg","flag","nation","country","banner"],char:"🇧🇬"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫"},burundi:{keywords:["bi","flag","nation","country","banner"],char:"🇧🇮"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻"},cambodia:{keywords:["kh","flag","nation","country","banner"],char:"🇰🇭"},cameroon:{keywords:["cm","flag","nation","country","banner"],char:"🇨🇲"},canada:{keywords:["ca","flag","nation","country","banner"],char:"🇨🇦"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫"},chad:{keywords:["td","flag","nation","country","banner"],char:"🇹🇩"},chile:{keywords:["flag","nation","country","banner"],char:"🇨🇱"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨"},colombia:{keywords:["co","flag","nation","country","banner"],char:"🇨🇴"},comoros:{keywords:["km","flag","nation","country","banner"],char:"🇰🇲"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],char:"🇨🇬"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷"},croatia:{keywords:["hr","flag","nation","country","banner"],char:"🇭🇷"},cuba:{keywords:["cu","flag","nation","country","banner"],char:"🇨🇺"},curacao:{keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼"},cyprus:{keywords:["cy","flag","nation","country","banner"],char:"🇨🇾"},czech_republic:{keywords:["cz","flag","nation","country","banner"],char:"🇨🇿"},denmark:{keywords:["dk","flag","nation","country","banner"],char:"🇩🇰"},djibouti:{keywords:["dj","flag","nation","country","banner"],char:"🇩🇯"},dominica:{keywords:["dm","flag","nation","country","banner"],char:"🇩🇲"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴"},ecuador:{keywords:["ec","flag","nation","country","banner"],char:"🇪🇨"},egypt:{keywords:["eg","flag","nation","country","banner"],char:"🇪🇬"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶"},eritrea:{keywords:["er","flag","nation","country","banner"],char:"🇪🇷"},estonia:{keywords:["ee","flag","nation","country","banner"],char:"🇪🇪"},ethiopia:{keywords:["et","flag","nation","country","banner"],char:"🇪🇹"},eu:{keywords:["european","union","flag","banner"],char:"🇪🇺"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴"},fiji:{keywords:["fj","flag","nation","country","banner"],char:"🇫🇯"},finland:{keywords:["fi","flag","nation","country","banner"],char:"🇫🇮"},fr:{keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫"},gabon:{keywords:["ga","flag","nation","country","banner"],char:"🇬🇦"},gambia:{keywords:["gm","flag","nation","country","banner"],char:"🇬🇲"},georgia:{keywords:["ge","flag","nation","country","banner"],char:"🇬🇪"},de:{keywords:["german","nation","flag","country","banner"],char:"🇩🇪"},ghana:{keywords:["gh","flag","nation","country","banner"],char:"🇬🇭"},gibraltar:{keywords:["gi","flag","nation","country","banner"],char:"🇬🇮"},greece:{keywords:["gr","flag","nation","country","banner"],char:"🇬🇷"},greenland:{keywords:["gl","flag","nation","country","banner"],char:"🇬🇱"},grenada:{keywords:["gd","flag","nation","country","banner"],char:"🇬🇩"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],char:"🇬🇵"},guam:{keywords:["gu","flag","nation","country","banner"],char:"🇬🇺"},guatemala:{keywords:["gt","flag","nation","country","banner"],char:"🇬🇹"},guernsey:{keywords:["gg","flag","nation","country","banner"],char:"🇬🇬"},guinea:{keywords:["gn","flag","nation","country","banner"],char:"🇬🇳"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼"},guyana:{keywords:["gy","flag","nation","country","banner"],char:"🇬🇾"},haiti:{keywords:["ht","flag","nation","country","banner"],char:"🇭🇹"},honduras:{keywords:["hn","flag","nation","country","banner"],char:"🇭🇳"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰"},hungary:{keywords:["hu","flag","nation","country","banner"],char:"🇭🇺"},iceland:{keywords:["is","flag","nation","country","banner"],char:"🇮🇸"},india:{keywords:["in","flag","nation","country","banner"],char:"🇮🇳"},indonesia:{keywords:["flag","nation","country","banner"],char:"🇮🇩"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷"},iraq:{keywords:["iq","flag","nation","country","banner"],char:"🇮🇶"},ireland:{keywords:["ie","flag","nation","country","banner"],char:"🇮🇪"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲"},israel:{keywords:["il","flag","nation","country","banner"],char:"🇮🇱"},it:{keywords:["italy","flag","nation","country","banner"],char:"🇮🇹"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮"},jamaica:{keywords:["jm","flag","nation","country","banner"],char:"🇯🇲"},jp:{keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵"},jersey:{keywords:["je","flag","nation","country","banner"],char:"🇯🇪"},jordan:{keywords:["jo","flag","nation","country","banner"],char:"🇯🇴"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],char:"🇰🇿"},kenya:{keywords:["ke","flag","nation","country","banner"],char:"🇰🇪"},kiribati:{keywords:["ki","flag","nation","country","banner"],char:"🇰🇮"},kosovo:{keywords:["xk","flag","nation","country","banner"],char:"🇽🇰"},kuwait:{keywords:["kw","flag","nation","country","banner"],char:"🇰🇼"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],char:"🇰🇬"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦"},latvia:{keywords:["lv","flag","nation","country","banner"],char:"🇱🇻"},lebanon:{keywords:["lb","flag","nation","country","banner"],char:"🇱🇧"},lesotho:{keywords:["ls","flag","nation","country","banner"],char:"🇱🇸"},liberia:{keywords:["lr","flag","nation","country","banner"],char:"🇱🇷"},libya:{keywords:["ly","flag","nation","country","banner"],char:"🇱🇾"},liechtenstein:{keywords:["li","flag","nation","country","banner"],char:"🇱🇮"},lithuania:{keywords:["lt","flag","nation","country","banner"],char:"🇱🇹"},luxembourg:{keywords:["lu","flag","nation","country","banner"],char:"🇱🇺"},macau:{keywords:["macao","flag","nation","country","banner"],char:"🇲🇴"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰"},madagascar:{keywords:["mg","flag","nation","country","banner"],char:"🇲🇬"},malawi:{keywords:["mw","flag","nation","country","banner"],char:"🇲🇼"},malaysia:{keywords:["my","flag","nation","country","banner"],char:"🇲🇾"},maldives:{keywords:["mv","flag","nation","country","banner"],char:"🇲🇻"},mali:{keywords:["ml","flag","nation","country","banner"],char:"🇲🇱"},malta:{keywords:["mt","flag","nation","country","banner"],char:"🇲🇹"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭"},martinique:{keywords:["mq","flag","nation","country","banner"],char:"🇲🇶"},mauritania:{keywords:["mr","flag","nation","country","banner"],char:"🇲🇷"},mauritius:{keywords:["mu","flag","nation","country","banner"],char:"🇲🇺"},mayotte:{keywords:["yt","flag","nation","country","banner"],char:"🇾🇹"},mexico:{keywords:["mx","flag","nation","country","banner"],char:"🇲🇽"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩"},monaco:{keywords:["mc","flag","nation","country","banner"],char:"🇲🇨"},mongolia:{keywords:["mn","flag","nation","country","banner"],char:"🇲🇳"},montenegro:{keywords:["me","flag","nation","country","banner"],char:"🇲🇪"},montserrat:{keywords:["ms","flag","nation","country","banner"],char:"🇲🇸"},morocco:{keywords:["ma","flag","nation","country","banner"],char:"🇲🇦"},mozambique:{keywords:["mz","flag","nation","country","banner"],char:"🇲🇿"},myanmar:{keywords:["mm","flag","nation","country","banner"],char:"🇲🇲"},namibia:{keywords:["na","flag","nation","country","banner"],char:"🇳🇦"},nauru:{keywords:["nr","flag","nation","country","banner"],char:"🇳🇷"},nepal:{keywords:["np","flag","nation","country","banner"],char:"🇳🇵"},netherlands:{keywords:["nl","flag","nation","country","banner"],char:"🇳🇱"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿"},nicaragua:{keywords:["ni","flag","nation","country","banner"],char:"🇳🇮"},niger:{keywords:["ne","flag","nation","country","banner"],char:"🇳🇪"},nigeria:{keywords:["flag","nation","country","banner"],char:"🇳🇬"},niue:{keywords:["nu","flag","nation","country","banner"],char:"🇳🇺"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵"},norway:{keywords:["no","flag","nation","country","banner"],char:"🇳🇴"},oman:{keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲"},pakistan:{keywords:["pk","flag","nation","country","banner"],char:"🇵🇰"},palau:{keywords:["pw","flag","nation","country","banner"],char:"🇵🇼"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸"},panama:{keywords:["pa","flag","nation","country","banner"],char:"🇵🇦"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬"},paraguay:{keywords:["py","flag","nation","country","banner"],char:"🇵🇾"},peru:{keywords:["pe","flag","nation","country","banner"],char:"🇵🇪"},philippines:{keywords:["ph","flag","nation","country","banner"],char:"🇵🇭"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳"},poland:{keywords:["pl","flag","nation","country","banner"],char:"🇵🇱"},portugal:{keywords:["pt","flag","nation","country","banner"],char:"🇵🇹"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷"},qatar:{keywords:["qa","flag","nation","country","banner"],char:"🇶🇦"},reunion:{keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪"},romania:{keywords:["ro","flag","nation","country","banner"],char:"🇷🇴"},ru:{keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺"},rwanda:{keywords:["rw","flag","nation","country","banner"],char:"🇷🇼"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨"},samoa:{keywords:["ws","flag","nation","country","banner"],char:"🇼🇸"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹"},saudi_arabia:{keywords:["flag","nation","country","banner"],char:"🇸🇦"},senegal:{keywords:["sn","flag","nation","country","banner"],char:"🇸🇳"},serbia:{keywords:["rs","flag","nation","country","banner"],char:"🇷🇸"},seychelles:{keywords:["sc","flag","nation","country","banner"],char:"🇸🇨"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱"},singapore:{keywords:["sg","flag","nation","country","banner"],char:"🇸🇬"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽"},slovakia:{keywords:["sk","flag","nation","country","banner"],char:"🇸🇰"},slovenia:{keywords:["si","flag","nation","country","banner"],char:"🇸🇮"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧"},somalia:{keywords:["so","flag","nation","country","banner"],char:"🇸🇴"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸"},kr:{keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸"},es:{keywords:["spain","flag","nation","country","banner"],char:"🇪🇸"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰"},sudan:{keywords:["sd","flag","nation","country","banner"],char:"🇸🇩"},suriname:{keywords:["sr","flag","nation","country","banner"],char:"🇸🇷"},swaziland:{keywords:["sz","flag","nation","country","banner"],char:"🇸🇿"},sweden:{keywords:["se","flag","nation","country","banner"],char:"🇸🇪"},switzerland:{keywords:["ch","flag","nation","country","banner"],char:"🇨🇭"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾"},taiwan:{keywords:["tw","flag","nation","country","banner"],char:"🇹🇼"},tajikistan:{keywords:["tj","flag","nation","country","banner"],char:"🇹🇯"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿"},thailand:{keywords:["th","flag","nation","country","banner"],char:"🇹🇭"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱"},togo:{keywords:["tg","flag","nation","country","banner"],char:"🇹🇬"},tokelau:{keywords:["tk","flag","nation","country","banner"],char:"🇹🇰"},tonga:{keywords:["to","flag","nation","country","banner"],char:"🇹🇴"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹"},tunisia:{keywords:["tn","flag","nation","country","banner"],char:"🇹🇳"},tr:{keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷"},turkmenistan:{keywords:["flag","nation","country","banner"],char:"🇹🇲"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨"},tuvalu:{keywords:["flag","nation","country","banner"],char:"🇹🇻"},uganda:{keywords:["ug","flag","nation","country","banner"],char:"🇺🇬"},ukraine:{keywords:["ua","flag","nation","country","banner"],char:"🇺🇦"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧"},england:{keywords:["flag","english"],char:"🏴󠁧󠁢󠁥󠁮󠁧󠁿"},scotland:{keywords:["flag","scottish"],char:"🏴󠁧󠁢󠁳󠁣󠁴󠁿"},wales:{keywords:["flag","welsh"],char:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},us:{keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮"},uruguay:{keywords:["uy","flag","nation","country","banner"],char:"🇺🇾"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],char:"🇺🇿"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"🇻🇺"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭"},yemen:{keywords:["ye","flag","nation","country","banner"],char:"🇾🇪"},zambia:{keywords:["zm","flag","nation","country","banner"],char:"🇿🇲"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],char:"🇿🇼"},united_nations:{keywords:["un","flag","banner"],char:"🇺🇳"},pirate_flag:{keywords:["skull","crossbones","flag","banner"],char:"🏴‍☠️"}}}}],wn=new Map,kn=new Map;for(const e of Sn)for(const t of Object.values(e)){const e=t.emojis;for(const[t,n]of Object.entries(e)){const e=`:${t}:`;wn.set(n.char,e),kn.set(e,n.char)}}const xn=function(){const e=Array.from(wn.keys());e.sort((e,t)=>t.length-e.length);const t=e.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return new RegExp(t.join("|"),"gu")}();function Tn(e){return e?(xn.lastIndex=0,e.replace(xn,e=>wn.get(e)??e)):e}function An(e){return e.replace(/:[a-zA-Z0-9_+-]+:/g,e=>kn.get(e)??e)}function Rn(e,t=0){let n="";for(let r=0;r<e.childNodes.length;r++)n+=In(e.childNodes[r],t);return n}function In(e,t=0){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){const n=e,r=n.tagName.toUpperCase(),a=Rn(n,t);switch(r){case"B":case"STRONG":return`**${a}**`;case"I":case"EM":return`_${a}_`;case"U":return`<u>${a}</u>`;case"S":case"STRIKE":case"DEL":return`~~${a}~~`;case"PRE":{const e=n.querySelector("code")||n;let t="";for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(r.nodeType===Node.TEXT_NODE)t+=r.textContent||"";else if(r.nodeType===Node.ELEMENT_NODE){const e=r;e.classList.contains("cometchat-mentions")?t+=e.outerHTML:t+=e.textContent||""}}return`\`\`\`${Tn(t)}\`\`\``}case"CODE":return"PRE"===n.parentElement?.tagName?a:`\`${Tn(n.textContent||"")}\``;case"BLOCKQUOTE":{const e=a.split("\n");for(;e.length>0&&""===e[e.length-1].trim();)e.pop();return e.map(e=>`> ${e}`).join("\n")}case"A":{const e=n.getAttribute("href")||"";return`[${a||e}](${e})`}case"OL":{let e=1,r="";const a="    ".repeat(t);let o="";for(let i=0;i<n.childNodes.length;i++){const s=n.childNodes[i];if(s.nodeType===Node.ELEMENT_NODE&&"LI"===s.tagName){let n="",o="";for(let e=0;e<s.childNodes.length;e++){const r=s.childNodes[e];if(r.nodeType===Node.ELEMENT_NODE){const e=r.tagName.toUpperCase();"OL"===e||"UL"===e?o+=In(r,t+1):n+=In(r,t)}else n+=r.textContent||""}n.replace(/\n/g,"").trim()&&(r+=`${a}${e}. ${n}\n`,e++),o&&(r+=o)}else{const e=In(s,t);e.trim()&&(o+=e)}}return o.trim()&&(r=r?r.replace(/\n$/,"")+o+"\n":`${a}${e}. ${o}\n`),r}case"UL":{let e="";const r="    ".repeat(t);let a="";for(let o=0;o<n.childNodes.length;o++){const i=n.childNodes[o];if(i.nodeType===Node.ELEMENT_NODE&&"LI"===i.tagName){let n="",a="";for(let e=0;e<i.childNodes.length;e++){const r=i.childNodes[e];if(r.nodeType===Node.ELEMENT_NODE){const e=r.tagName.toUpperCase();"OL"===e||"UL"===e?a+=In(r,t+1):n+=In(r,t)}else n+=r.textContent||""}n.replace(/\n/g,"").trim()&&(e+=`${r}• ${n}\n`),a&&(e+=a)}else{const e=In(i,t);e.trim()&&(a+=e)}}return a.trim()&&(e=e?e.replace(/\n$/,"")+a+"\n":`${r}• ${a}\n`),e}case"LI":default:return a;case"BR":return"\n";case"P":case"DIV":return a+"\n";case"SPAN":{const e=n.className||"";return e.includes("cometchat-mentions")?n.outerHTML:e.includes("cometchat-rich-text-code-inline")?`\`${a}\``:e.includes("cometchat-rich-text-code-block")?`\`\`\`${a}\`\`\``:a}}}return""}class On extends vn{constructor(){super(),this.setId("rich-text-formatter")}getFormattedText(e,t){return e||e}getOriginalText(e){return e?this.containsHtmlTags(e)?function(e){const t=function(e){if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,Rn(t).trim()}(e),n=function(e){return e.replace(/\n{3,}/g,"\n\n").replace(/^\s+|\s+$/g,"")}(t);return function(e){if(!e)return e;const t=["*","_","~","`","[","]","(",")","#","+","-",".","!","|","{","}"];let n="",r=0;for(;r<e.length;){const a=e[r];if("\\"===a){let a=0,o=r;for(;o<e.length&&"\\"===e[o];)a++,o++;const i=o<e.length?e[o]:"";if(t.includes(i)){const e=Math.floor(a/2);n+="\\".repeat(e),a%2==1?(n+=i,r=o+1):r=o}else n+="\\".repeat(a),r=o}else n+=a,r++}return n}(n)}(e):e:""}containsHtmlTags(e){return/<(b|strong|i|em|u|s|strike|del|code|pre|blockquote|a|ol|ul|li|br|div|p|span)[^>]*>/i.test(e)}registerEventListeners(e,t){return e}}class Nn extends vn{constructor(){super(),this.setId("markdown-formatter")}getFormattedText(e,n){if(!e)return e;if(n?.mentionsTargetElement===t.rnx.conversation)return this.stripMarkdownForConversation(e);let r=e;return r=this.formatCodeBlocks(r),r=this.formatOutsideCodeBlocks(r,e=>this.formatBlockquotes(e)),r=this.formatInlineCode(r),r=this.formatOutsideCode(r,e=>this.formatBold(e)),r=this.formatOutsideCode(r,e=>this.formatUnderline(e)),r=this.formatOutsideCode(r,e=>this.formatItalic(e)),r=this.formatOutsideCode(r,e=>this.formatStrikethrough(e)),r=this.formatOutsideCode(r,e=>this.formatLinks(e)),r=this.formatOutsideCode(r,e=>this.formatOrderedLists(e)),r=this.formatOutsideCode(r,e=>this.formatUnorderedLists(e)),r}getOriginalText(e){return e??""}formatCodeBlocks(e){return e.replace(/```([\s\S]*?)```/g,"<pre><code>$1</code></pre>")}formatOutsideCodeBlocks(e,t){return e.split(/(<pre><code>[\s\S]*?<\/code><\/pre>)/g).map(e=>e.startsWith("<pre><code>")?e:t(e)).join("")}formatOutsideCode(e,t){return e.split(/(<pre><code>[\s\S]*?<\/code><\/pre>|<code>[\s\S]*?<\/code>|<@uid:[^>]+>|<@all:[^>]+>)/g).map(e=>e.startsWith("<code>")||e.startsWith("<pre><code>")||e.startsWith("<@uid:")||e.startsWith("<@all:")?e:t(e)).join("")}formatInlineCode(e){return e.replace(/`([^`]+)`/g,"<code>$1</code>")}formatBold(e){return e.replace(/\*\*([^*]+)\*\*/g,"<b>$1</b>")}formatItalic(e){return e.replace(/_([^_]+)_/g,"<i>$1</i>")}formatUnderline(e){let t=e.replace(/__([^_]+)__/g,"<u>$1</u>");return t=t.replace(/\+\+([^+]+)\+\+/g,"<u>$1</u>"),t}formatStrikethrough(e){return e.replace(/~~([^~]+)~~/g,"<s>$1</s>")}formatLinks(e){return e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}formatBlockquotes(e){const t=e.split("\n"),n=[];let r=[];const a=()=>{if(0===r.length)return;let e=r.join("\n");e=this.formatOrderedLists(e),e=this.formatUnorderedLists(e),n.push("<blockquote>"+e+"</blockquote>"),r=[]};for(const e of t)/^>\s?/.test(e)||/^&gt;\s?/.test(e)?r.push(e.replace(/^(?:&gt;|>)\s?/,"")):(a(),n.push(e));return a(),n.join("\n")}formatOrderedLists(e){const t=e.split("\n"),n=[],r=[],a=[],o=e=>0===e?"decimal":1===e?"lower-alpha":"lower-roman",i=e=>{for(;r.length>e;)r.pop(),n.push("</ol></li>"),a.push(!0)};for(const e of t){const t=e.match(/^( *)(\d+)\.\s+(.+)$/);if(t){const e=t[1].length,s=t[3],c=Math.floor(e/4);if(0===r.length&&(n.push(`<ol style="list-style-type: ${o(0)}; font-family: var(--cometchat-font-family); padding-left: var(--cometchat-padding-5);">`),a.push(!0),r.push(0)),c>r.length-1){const e=n[n.length-1];for(e&&e.endsWith("</li>")&&(n[n.length-1]=e.slice(0,-5));r.length-1<c;){const e=r.length;n.push(`<ol style="list-style-type: ${o(e)}; font-family: var(--cometchat-font-family); padding-left: var(--cometchat-padding-5);">`),a.push(!0),r.push(e)}}else c<r.length-1&&i(c+1);n.push(`<li>${s}</li>`),a.push(!0)}else r.length>0&&(i(0),n.push("</ol>"),a.push(!0),r.length=0),n.push(e),a.push(!1)}r.length>0&&(i(0),n.push("</ol>"),a.push(!0));let s="";for(let e=0;e<n.length;e++)!(e>0)||a[e]&&a[e-1]||(s+="\n"),s+=n[e];return s}formatUnorderedLists(e){const t=e.split("\n"),n=[],r=[],a=[],o=e=>0===e?"disc":1===e?"circle":"square",i=e=>{for(;r.length>e;)r.pop(),n.push("</ul></li>"),a.push(!0)};for(const e of t){const t=e.match(/^( *)[•\-]\s+(.+)$/);if(t){const e=t[1].length,s=t[2],c=Math.floor(e/4);if(0===r.length&&(n.push(`<ul style="list-style-type: ${o(0)}; font-family: var(--cometchat-font-family); padding-left: var(--cometchat-padding-5);">`),a.push(!0),r.push(0)),c>r.length-1){const e=n[n.length-1];for(e&&e.endsWith("</li>")&&(n[n.length-1]=e.slice(0,-5));r.length-1<c;){const e=r.length;n.push(`<ul style="list-style-type: ${o(e)}; font-family: var(--cometchat-font-family); padding-left: var(--cometchat-padding-5);">`),a.push(!0),r.push(e)}}else c<r.length-1&&i(c+1);n.push(`<li>${s}</li>`),a.push(!0)}else r.length>0&&(i(0),n.push("</ul>"),a.push(!0),r.length=0),n.push(e),a.push(!1)}r.length>0&&(i(0),n.push("</ul>"),a.push(!0));let s="";for(let e=0;e<n.length;e++)!(e>0)||a[e]&&a[e-1]||(s+="\n"),s+=n[e];return s}registerEventListeners(e,t){return e}stripMarkdownForConversation(e){let t=e;t=t.replace(/\u200B/g,""),t=t.replace(/```([\s\S]*?)```/g,"$1"),t=t.replace(/`([\s\S]+?)`/g,"<code>$1</code>");const n=t.split("\n").map(e=>{let t=e;return t=t.replace(/\*\*([^*]+)\*\*/g,"<b>$1</b>"),t=t.replace(/__([^_]+)__/g,"<u>$1</u>"),t=t.replace(/\+\+([^+]+)\+\+/g,"<u>$1</u>"),t=t.replace(/_([^_]+)_/g,"<i>$1</i>"),t=t.replace(/~~([^~]+)~~/g,"<s>$1</s>"),t=t.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),t=t.replace(/^(?:&gt;|>)\s?/,""),t});return n.join("\n")}}const Mn=({url:e="",ccCloseClicked:t,message:n,imageSentAtDateTimeFormat:o})=>{const[i,s]=a.useState(),[c,l]=a.useState(!0),[u,d]=a.useState(0);a.useEffect(()=>{p(e).then(t=>{const n=new Image;n.src=e,n.onload=()=>{l(!1),s(n.src)}}).catch(()=>{s(e)})},[e,URL]);const p=(e,t=0)=>new Promise((n,r)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onprogress=e=>{if(e.lengthComputable){const t=e.loaded/e.total*100;d(t)}},a.onload=()=>{4===a.readyState&&(200===a.status?n(a.response):403===a.status&&t<5?setTimeout(()=>{p(e,t+1).then(n).catch(r)},800):r(a.statusText))},a.onerror=()=>r(new Error("There was a network error.")),a.ontimeout=()=>r(new Error("There was a timeout error.")),a.send()}),h=a.useCallback(()=>r.jsx("div",{className:"cometchat-fullscreen-viewer__body-download-progress",children:r.jsxs("svg",{children:[r.jsx("circle",{cx:"50",cy:"50",r:"40",className:"cometchat-fullscreen-viewer__body-download-progress-background"}),r.jsx("circle",{className:"cometchat-fullscreen-viewer__body-download-progress-foreground",cx:"50",cy:"50",r:"40",style:{strokeDasharray:u/1.13+" 113"}})]})}),[c,u]);return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-fullscreen-viewer",children:[r.jsx("div",{className:"cometchat-fullscreen-viewer__header",children:r.jsx("div",{className:"cometchat-fullscreen-viewer__header-item",children:r.jsx(J,{avatarName:n?.getSender()?.getName(),avatarURL:n?.getSender()?.getAvatar(),title:n?.getSender()?.getName(),subtitleView:`${G.formatDate(n?.getSentAt(),{yesterday:` DD/M/YYYY [${V("full_screen_viewer_at")}] hh:mm A`,otherDays:` DD/M/YYYY [${V("full_screen_viewer_at")}] hh:mm A`,today:` DD/M/YYYY [${V("full_screen_viewer_at")}] hh:mm A`,...kt(G.calendarObject),...kt(o)})}`})})}),r.jsx("div",{className:"cometchat-fullscreen-viewer__body",children:c?h():r.jsx("img",{src:i,className:"cometchat-fullscreen-viewer__body-image",alt:V("message_list_full_screen_viewer")})}),r.jsx("button",{className:"cometchat-fullscreen-viewer__close-button",onClick:e=>{e.stopPropagation(),t&&t()}})]})})};var Dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOgAAADoCAYAAADlqah4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVrSURBVHgB7d2PbRNnGMfx90wJGBRIJAagE5QRyAQwSjegbFA2aSegI2SDZgAggWBMDLZ7T9RIITT8LbnfwecjmfiwQVaUb573zsld186Yz+d31+v1vf52v9+83YBvbbduk8nk4XQ63Tv9QHdypw9yq4/zQf/x1wYMouu634+Ojh5ub28fHG/XHxXnq1evHvd37zRgaLuLxWKnIp3UVk3OJk5IcefKlSvVZOv6OG+vVqu/GxCl3yfdmfRxPmhAnOVyeb+WuJa2EKg/YHSvm81m6wZEmjQglkAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAhmEAh2E+NQc1ms/bmzZuWaGNjo127dq0xnK7/Alk3LtxyuWz7+/uxcZ64dOlSu3XrVptMLLaG4LM+kMPDw/g4S30jef78eWMYAh3AarVq8/m8jcXr16+PXzMXzz7oANbrd/cqavl448aNlqSm5unXefY1czEEGqDrujadTluSWoLX8pZhWeJCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIFCMIH+ABaLhbMjjJRAv3N1wq+nT5+2J0+eiHSEBPodqyBfvHhxfL/OyndwcNAYF4GOSE3DCu5TT4FZk/P01Kyl7kmwjINAR6JCqwlYl4r4lBNJV4j/taStf1+hMg4CHYGamDUNT85NW5O0QjtPPfahx+uSE/ZHx0GgI/Dy5cv3gqq/e/v27XvPrefVOW0/xP7oeAg03HnTsCJ79uzZO/ujZyfth9gfHQeBBvvYNKzHa5KeOG+/8zwVfi2XyeXSD6E+dRpWZHWJwC+9IFMdcLp8+fLx/0EeEzTU50zDmqKnJ+nnsD+aTaDfga+9NKCL8+ayxA21tbV1fOPH5lsnBBMoBBMoBBMoBHOQKEC91/kl72F+S197ZJj/h0AH0HXdO9tjeC/y7GvmYljiDqDed7x69Wobi+l06r3SgfisD+TmzZuj+PG6+jHAzc3NxjC62Wz28V994Jupfc+jo6OWqOK8fv16YzgChWCWuBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBBMoBCsAt1rQKLdyXq9/rMBiXa7w8PDu5PJ5HEDovRd/jzZ3Nz8a7VaPWpAjH5l+2g6ne51tbG/v7+1sbFRU/ROAwbVdd1uH+dO//Hg+Cju9vb2wWKx2DFJYVj/Ts7jOGu7O/uE+Xx+e7lc/tY/4ZdmosJF2KuDtf3tj9rlPP3AP3qRpmGnexD3AAAAAElFTkSuQmCC";const Ln=e=>{const{src:t="",placeholderImage:n=Dn,onImageClicked:o=()=>{},isSentByMe:i=!0,disableLoadingState:s=!1}=e,{image:c,updateImage:l}=(({src:e="",placeholderImage:t=""})=>{const[n,r]=a.useState(t),[o,i]=a.useState(),s=(e,t=0)=>new Promise((n,r)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=()=>{if(4===a.readyState)if(200===a.status)clearTimeout(o),n(a.response);else if(403===a.status&&t<5){const a=setTimeout(()=>{s(e,t+1).then(e=>n(e)).catch(e=>r(e))},800);i(a)}else r(a.statusText)},a.onerror=e=>r(new Error("There was a network error.")),a.ontimeout=e=>r(new Error("There was a timeout error.")),a.send()});return{image:n,updateImage:()=>{s(e).then(t=>{let n=new Image;n.src=e,n.onload=()=>{r(n.src)}}).catch(n=>{r(e||t)})}}})({src:t,placeholderImage:n});return a.useEffect(()=>{s||l()},[s]),r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-image-bubble "+(i?"cometchat-image-bubble-outgoing":"cometchat-image-bubble-incoming"),onClick:()=>o({src:t}),children:r.jsx("img",{className:"cometchat-image-bubble__body",src:s?t:c})})})},Pn=e=>{const{text:n="",textFormatters:o=[],isSentByMe:i=!0}=e,[s,c]=a.useState(n),[l,u]=a.useState(!1),[d,p]=a.useState(!1),h=a.useRef(null),{appendTextInHtml:m}=(e=>{const{textFormatters:t}=e,n=a.useCallback((e,n)=>{try{const r=Lt(n,t);e.textContent="",e.appendChild(r)}catch(t){console.error("Error in appendTextInHtml:",t),e.textContent=n}},[t]);return{appendTextInHtml:n}})({textFormatters:o});return a.useEffect(()=>{u(!1)},[n]),a.useEffect(()=>{c(n)},[n,o,c]),a.useEffect(()=>{if(h.current){const e=ht.convertFormattingHtmlToMarkdown(n);let r=ht.sanitizeText(e);if(o&&o.length)for(let e=0;e<o.length;e++){const n=o[e].getFormattedText(r,{mentionsTargetElement:t.rnx.textbubble});"string"==typeof n&&(r=n)}m(h.current,r),c(r)}},[n,o,m]),a.useEffect(()=>{h.current&&requestAnimationFrame(()=>{if(h.current){const e=8,t=h.current.scrollHeight-h.current.clientHeight>e;p(t)}})},[s]),r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-text-bubble  "+(i?"cometchat-text-bubble-outgoing":"cometchat-text-bubble-incoming"),children:r.jsxs("div",{className:"cometchat-text-bubble__body",children:[r.jsx("div",{ref:h,className:`cometchat-text-bubble__body-text ${(e=>{const t=e.trim();return/^(\p{Emoji_Presentation}|\p{Emoji}\uFE0F)$/u.test(t)?"cometchat-text-bubble__body-text-emoji":""})(n)} ${l?"cometchat-text-bubble__body-text--expanded":""}`,style:{WebkitLineClamp:l?"unset":4}}),d&&!l&&r.jsx("span",{className:"cometchat-text-bubble__read-more",onClick:()=>{u(!0),xt()},children:V("text_message_read_more")}),l&&d&&r.jsx("span",{className:"cometchat-text-bubble__read-less",onClick:()=>{u(!1),xt()},children:V("text_message_show_less")})]})})})},jn=e=>{const{isSentByMe:t=!1,text:n=V("message_deleted")}=e;return r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-delete-bubble "+(t?"cometchat-delete-bubble-outgoing":"cometchat-delete-bubble-incoming"),children:r.jsxs("div",{className:"cometchat-delete-bubble__body",children:[r.jsx("div",{className:"cometchat-delete-bubble__icon"}),r.jsx("label",{className:"cometchat-delete-bubble__text",children:n})]})})})},Un=e=>{const{src:t="",autoPlay:n=!1,loop:o=!1,muted:i=!1,isSentByMe:s=!0}=e,{posterImage:c,updateImage:l}=(({src:e=""})=>{const[t,n]=a.useState("");return{posterImage:t,updateImage:()=>{try{n("");const t=new Image;t.onload=()=>{n(t.src)},t.onerror=()=>{n("")},t.src=e}catch(e){console.error(e)}}}})({src:t}),u=a.useRef(null);a.useEffect(()=>(u.current&&u.current.addEventListener("fullscreenchange",d),l(),()=>{u.current&&u.current.removeEventListener("fullscreenchange",d)}),[]);const d=()=>{const e=u.current;e&&(document.fullscreenElement?e.style.objectFit="contain":(e.style.display="none",requestAnimationFrame(()=>{e.style.display="block"}),e.style.objectFit="cover"))};return r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-video-bubble "+(s?"cometchat-video-bubble-outgoing":"cometchat-video-bubble-incoming"),children:r.jsx("video",{controls:!0,onPlay:()=>{mt.video&&mt.video===u.current||ft();const e=u.current;mt.video=e,e&&e&&!document.fullscreenElement&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen())},ref:u,loop:o,muted:i,autoPlay:n,className:"cometchat-video-bubble__body",poster:c,children:r.jsx("source",{src:t})})})})};class Fn{constructor(){this.listeners={}}on(e,t,n){if(this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t),n?.once){const n=()=>{this.un(e,n),this.un(e,t)};return this.on(e,n),n}return()=>this.un(e,t)}un(e,t){this.listeners[e]?.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach(e=>e(...t))}}function Bn(e,t){const n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(const[e,r]of Object.entries(t))if("children"===e)for(const[e,r]of Object.entries(t))"string"==typeof r?n.appendChild(document.createTextNode(r)):n.appendChild(Bn(e,r));else"style"===e?Object.assign(n.style,r):"textContent"===e?n.textContent=r:n.setAttribute(e,r.toString());return n}function Gn(e,t,n){const r=Bn(e,t||{});return n?.appendChild(r),r}var Vn=Object.freeze({__proto__:null,createElement:Gn,default:Gn});class Hn extends Fn{constructor(e){super(),this.isExternalMedia=!1,e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),null!=e.playbackRate&&this.onMediaEvent("canplay",()=>{null!=e.playbackRate&&(this.media.playbackRate=e.playbackRate)},{once:!0})}onMediaEvent(e,t,n){return this.media.addEventListener(e,t,n),()=>this.media.removeEventListener(e,t,n)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const e=this.getSrc();e.startsWith("blob:")&&URL.revokeObjectURL(e)}canPlayType(e){return""!==this.media.canPlayType(e)}setSrc(e,t){const n=this.getSrc();if(e&&n===e)return;this.revokeSrc();const r=t instanceof Blob&&(this.canPlayType(t.type)||!e)?URL.createObjectURL(t):e;try{this.media.src=r}catch(t){this.media.src=e}}destroy(){this.media.pause(),this.isExternalMedia||(this.media.remove(),this.revokeSrc(),this.media.src="",this.media.load())}setMediaElement(e){this.media=e}async play(){return this.media.play()}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=e}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(e,t){null!=t&&(this.media.preservesPitch=t),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}}class zn extends Fn{constructor(e,t,n,r){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.iframeDocument=document,this.iframeWindow=window,this.subscriptions=[],this.options=e,this.iframeDocument=n||document,this.iframeWindow=r||window;const a=this.parentFromOptionsContainer(e.container);this.parent=a;const[o,i]=this.initHtml();a.appendChild(o),this.container=o,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),t&&i.appendChild(t),this.initEvents()}parentFromOptionsContainer(e){let t;if("string"==typeof e?t=this.iframeDocument.querySelector(e):(e instanceof HTMLElement||this.iframeWindow&&e instanceof this.iframeWindow?.HTMLElement)&&(t=e),!t)throw new Error("Container not found");return t}initEvents(){const e=e=>{const t=this.wrapper.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;return[n/t.width,r/t.height]};if(this.wrapper.addEventListener("click",t=>{const[n,r]=e(t);this.emit("click",n,r)}),this.wrapper.addEventListener("dblclick",t=>{const[n,r]=e(t);this.emit("dblclick",n,r)}),!0!==this.options.dragToSeek&&"object"!=typeof this.options.dragToSeek||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:e,scrollWidth:t,clientWidth:n}=this.scrollContainer,r=e/t,a=(e+n)/t;this.emit("scroll",r,a,e,e+n)}),"function"==typeof ResizeObserver){const e=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{e().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const e=this.parent.clientWidth;e===this.lastContainerWidth&&"auto"!==this.options.height||(this.lastContainerWidth=e,this.reRender())}initDrag(){this.subscriptions.push(function(e,t,n,r,a=3,o=0,i=100){if(!e)return()=>{};const s=matchMedia("(pointer: coarse)").matches;let c=()=>{};const l=l=>{if(l.button!==o)return;l.preventDefault(),l.stopPropagation();let u=l.clientX,d=l.clientY,p=!1;const h=Date.now(),m=r=>{if(r.preventDefault(),r.stopPropagation(),s&&Date.now()-h<i)return;const o=r.clientX,c=r.clientY,l=o-u,m=c-d;if(p||Math.abs(l)>a||Math.abs(m)>a){const r=e.getBoundingClientRect(),{left:a,top:i}=r;p||(n?.(u-a,d-i),p=!0),t(l,m,o-a,c-i),u=o,d=c}},g=t=>{if(p){const n=t.clientX,a=t.clientY,o=e.getBoundingClientRect(),{left:i,top:s}=o;r?.(n-i,a-s)}c()},f=e=>{e.relatedTarget&&e.relatedTarget!==document.documentElement||g(e)},_=e=>{p&&(e.stopPropagation(),e.preventDefault())},b=e=>{p&&e.preventDefault()};document.addEventListener("pointermove",m),document.addEventListener("pointerup",g),document.addEventListener("pointerout",f),document.addEventListener("pointercancel",f),document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("click",_,{capture:!0}),c=()=>{document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",g),document.removeEventListener("pointerout",f),document.removeEventListener("pointercancel",f),document.removeEventListener("touchmove",b),setTimeout(()=>{document.removeEventListener("click",_,{capture:!0})},10)}};return e.addEventListener("pointerdown",l),()=>{c(),e.removeEventListener("pointerdown",l)}}(this.wrapper,(e,t,n)=>{this.emit("drag",Math.max(0,Math.min(1,n/this.wrapper.getBoundingClientRect().width)))},e=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,e/this.wrapper.getBoundingClientRect().width)))},e=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,e/this.wrapper.getBoundingClientRect().width)))}))}getHeight(e,t){const n=this.audioData?.numberOfChannels||1;if(null==e)return 128;if(!isNaN(Number(e)))return Number(e);if("auto"===e){const e=this.parent.clientHeight||128;return t?.every(e=>!e.overlay)?e/n:e}return 128}initHtml(){const e=this.iframeDocument.createElement("div"),t=e.attachShadow({mode:"open"}),n=this.options.cspNonce&&"string"==typeof this.options.cspNonce?this.options.cspNonce.replace(/"/g,""):"";return t.innerHTML=`\n      <style${n?` nonce="${n}"`:""}>\n        :host {\n          user-select: none;\n          min-width: 1px;\n        }\n        :host audio {\n          display: block;\n          width: 100%;\n        }\n        :host .scroll {\n          overflow-x: auto;\n          overflow-y: hidden;\n          width: 100%;\n          position: relative;\n        }\n        :host .noScrollbar {\n          scrollbar-color: transparent;\n          scrollbar-width: none;\n        }\n        :host .noScrollbar::-webkit-scrollbar {\n          display: none;\n          -webkit-appearance: none;\n        }\n        :host .wrapper {\n          position: relative;\n          overflow: visible;\n          z-index: 2;\n        }\n        :host .canvases {\n          min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;\n        }\n        :host .canvases > div {\n          position: relative;\n        }\n        :host canvas {\n          display: block;\n          position: absolute;\n          top: 0;\n          image-rendering: pixelated;\n        }\n        :host .progress {\n          pointer-events: none;\n          position: absolute;\n          z-index: 2;\n          top: 0;\n          left: 0;\n          width: 0;\n          height: 100%;\n          overflow: hidden;\n        }\n        :host .progress > div {\n          position: relative;\n        }\n        :host .cursor {\n          pointer-events: none;\n          position: absolute;\n          z-index: 5;\n          top: 0;\n          left: 0;\n          height: 100%;\n          border-radius: 2px;\n        }\n      </style>\n\n      <div class="scroll" part="scroll">\n        <div class="wrapper" part="wrapper">\n          <div class="canvases" part="canvases"></div>\n          <div class="progress" part="progress"></div>\n          <div class="cursor" part="cursor"></div>\n        </div>\n      </div>\n    `,[e,t]}setOptions(e){if(this.iframeWindow=e.iframeWindow||window,this.iframeDocument=e.iframeDocument||document,this.options.container!==e.container){const t=this.parentFromOptionsContainer(e.container);t.appendChild(this.container),this.parent=t}!0!==e.dragToSeek&&"object"!=typeof this.options.dragToSeek||this.initDrag(),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(e){this.scrollContainer.scrollLeft=e}setScrollPercentage(e){const{scrollWidth:t}=this.scrollContainer,n=t*e;this.setScroll(n)}destroy(){this.subscriptions.forEach(e=>e()),this.container.remove(),this.resizeObserver?.disconnect(),this.unsubscribeOnScroll?.()}createDelay(e=10){let t,n;const r=()=>{t&&clearTimeout(t),n&&n()};return this.timeouts.push(r),()=>new Promise((a,o)=>{r(),n=o,t=setTimeout(()=>{t=void 0,n=void 0,a()},e)})}convertColorValues(e){if(!Array.isArray(e))return e||"";if(e.length<2)return e[0]||"";const t=this.iframeDocument.createElement("canvas"),n=t.getContext("2d"),r=t.height*(this.iframeWindow.devicePixelRatio||1),a=n.createLinearGradient(0,0,0,r),o=1/(e.length-1);return e.forEach((e,t)=>{const n=t*o;a.addColorStop(n,e)}),a}getPixelRatio(){return Math.max(1,this.iframeWindow.devicePixelRatio||1)}renderBarWaveform(e,t,n,r){const a=e[0],o=e[1]||e[0],i=a.length,{width:s,height:c}=n.canvas,l=c/2,u=this.getPixelRatio(),d=t.barWidth?t.barWidth*u:1,p=t.barGap?t.barGap*u:t.barWidth?d/2:0,h=t.barRadius||0,m=s/(d+p)/i,g=h&&"roundRect"in n?"roundRect":"rect";n.beginPath();let f=0,_=0,b=0;for(let e=0;e<=i;e++){const i=Math.round(e*m);if(i>f){const e=Math.round(_*l*r),a=e+Math.round(b*l*r)||1;let o=l-e;"top"===t.barAlign?o=0:"bottom"===t.barAlign&&(o=c-a),n[g](f*(d+p),o,d,a,h),f=i,_=0,b=0}const s=Math.abs(a[e]||0),u=Math.abs(o[e]||0);s>_&&(_=s),u>b&&(b=u)}n.fill(),n.closePath()}renderLineWaveform(e,t,n,r){const a=t=>{const a=e[t]||e[0],o=a.length,{height:i}=n.canvas,s=i/2,c=n.canvas.width/o;n.moveTo(0,s);let l=0,u=0;for(let e=0;e<=o;e++){const o=Math.round(e*c);if(o>l){const e=s+(Math.round(u*s*r)||1)*(0===t?-1:1);n.lineTo(l,e),l=o,u=0}const i=Math.abs(a[e]||0);i>u&&(u=i)}n.lineTo(l,s)};n.beginPath(),a(0),a(1),n.fill(),n.closePath()}renderWaveform(e,t,n){if(n.fillStyle=this.convertColorValues(t.waveColor),t.renderFunction)return void t.renderFunction(e,n);let r=t.barHeight||1;if(t.normalize){const t=Array.from(e[0]).reduce((e,t)=>Math.max(e,Math.abs(t)),0);r=t?1/t:1}t.barWidth||t.barGap||t.barAlign?this.renderBarWaveform(e,t,n,r):this.renderLineWaveform(e,t,n,r)}renderSingleCanvas(e,t,n,r,a,o,i){const s=this.getPixelRatio(),c=this.iframeDocument.createElement("canvas");c.width=Math.round(n*s),c.height=Math.round(r*s),c.style.width=`${n}px`,c.style.height=`${r}px`,c.style.left=`${Math.round(a)}px`,o.appendChild(c);const l=c.getContext("2d");if(this.renderWaveform(e,t,l),c.width>0&&c.height>0){const e=c.cloneNode(),n=e.getContext("2d");n.drawImage(c,0,0),n.globalCompositeOperation="source-in",n.fillStyle=this.convertColorValues(t.progressColor),n.fillRect(0,0,c.width,c.height),i.appendChild(e)}}renderMultiCanvas(e,t,n,r,a,o){const i=this.getPixelRatio(),{clientWidth:s}=this.scrollContainer,c=n/i;let l=Math.min(zn.MAX_CANVAS_WIDTH,s,c),u={};if(t.barWidth||t.barGap){const e=t.barWidth||.5,n=e+(t.barGap||e/2);l%n!=0&&(l=Math.floor(l/n)*n)}const d=n=>{if(n<0||n>=p)return;if(u[n])return;u[n]=!0;const i=n*l,s=Math.min(c-i,l);if(s<=0)return;const d=e.map(e=>{const t=Math.floor(i/c*e.length),n=Math.floor((i+s)/c*e.length);return e.slice(t,n)});this.renderSingleCanvas(d,t,s,r,i,a,o)},p=Math.ceil(c/l);if(!this.isScrollable){for(let e=0;e<p;e++)d(e);return}const h=this.scrollContainer.scrollLeft/c,m=Math.floor(h*p);d(m-1),d(m),d(m+1),p>1&&(this.unsubscribeOnScroll=this.on("scroll",()=>{const{scrollLeft:e}=this.scrollContainer,t=Math.floor(e/c*p);Object.keys(u).length>zn.MAX_NODES&&(a.innerHTML="",o.innerHTML="",u={}),d(t-1),d(t),d(t+1)}))}renderChannel(e,{overlay:t,...n},r,a){const o=this.iframeDocument.createElement("div"),i=this.getHeight(n.height,n.splitChannels);o.style.height=`${i}px`,t&&a>0&&(o.style.marginTop=`-${i}px`),this.canvasWrapper.style.minHeight=`${i}px`,this.canvasWrapper.appendChild(o);const s=o.cloneNode();this.progressWrapper.appendChild(s),this.renderMultiCanvas(e,n,r,i,o,s)}async render(e){this.timeouts.forEach(e=>e()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",null!=this.options.width&&(this.scrollContainer.style.width="number"==typeof this.options.width?`${this.options.width}px`:this.options.width);const t=this.getPixelRatio(),n=this.scrollContainer.clientWidth,r=Math.ceil(e.duration*(this.options.minPxPerSec||0));this.isScrollable=r>n;const a=this.options.fillParent&&!this.isScrollable,o=(a?n:r)*t;if(this.wrapper.style.width=a?"100%":`${r}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit("render"),this.options.splitChannels)for(let t=0;t<e.numberOfChannels;t++){const n={...this.options,...this.options.splitChannels?.[t]};this.renderChannel([e.getChannelData(t)],n,o,t)}else{const t=[e.getChannelData(0)];e.numberOfChannels>1&&t.push(e.getChannelData(1)),this.renderChannel(t,this.options,o,0)}Promise.resolve().then(()=>this.emit("rendered"))}reRender(){if(this.unsubscribeOnScroll?.(),delete this.unsubscribeOnScroll,!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,{right:t}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const{right:e}=this.progressWrapper.getBoundingClientRect();let n=e-t;n*=2,n=n<0?Math.floor(n):Math.ceil(n),n/=2,this.scrollContainer.scrollLeft+=n}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,t=!1){const{scrollLeft:n,scrollWidth:r,clientWidth:a}=this.scrollContainer,o=e*r,i=n,s=n+a,c=a/2;if(this.isDragging){const e=30;o+e>s?this.scrollContainer.scrollLeft+=e:o-e<i&&(this.scrollContainer.scrollLeft-=e)}else{(o<i||o>s)&&(this.scrollContainer.scrollLeft=o-(this.options.autoCenter?c:0));const e=o-n-c;t&&this.options.autoCenter&&e>0&&(this.scrollContainer.scrollLeft+=Math.min(e,10))}{const e=this.scrollContainer.scrollLeft,t=e/r,n=(e+a)/r;this.emit("scroll",t,n,e,e+a)}}renderProgress(e,t){if(isNaN(e))return;const n=100*e;this.canvasWrapper.style.clipPath=`polygon(${n}% 0, 100% 0, 100% 100%, ${n}% 100%)`,this.progressWrapper.style.width=`${n}%`,this.cursor.style.left=`${n}%`,this.cursor.style.transform=`translateX(-${100===Math.round(n)?this.options.cursorWidth:0}px)`,this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(e,t)}async exportImage(e,t,n){const r=this.canvasWrapper.querySelectorAll("canvas");if(!r.length)throw new Error("No waveform data");if("dataURL"===n){const n=Array.from(r).map(n=>n.toDataURL(e,t));return Promise.resolve(n)}return Promise.all(Array.from(r).map(n=>new Promise((r,a)=>{n.toBlob(e=>{e?r(e):a(new Error("Could not export image"))},e,t)})))}}zn.MAX_CANVAS_WIDTH=8e3,zn.MAX_NODES=10;class Yn extends Fn{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class qn extends Fn{constructor(e=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=e,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}async load(){}get src(){return this.currentSrc}set src(e){if(this.currentSrc=e,this._duration=void 0,!e)return this.buffer=null,void this.emit("emptied");fetch(e).then(t=>{if(t.status>=400)throw new Error(`Failed to fetch ${e}: ${t.status} (${t.statusText})`);return t.arrayBuffer()}).then(t=>this.currentSrc!==e?null:this.audioContext.decodeAudioData(t)).then(t=>{this.currentSrc===e&&(this.buffer=t,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode?.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playedDuration*this._playbackRate;e>=this.duration&&(e=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){this.paused=!0,this.bufferNode?.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}async play(){this.paused&&(this._play(),this.emit("play"))}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(e){const t=e-this.currentTime;this.bufferNode?.stop(this.audioContext.currentTime+t),this.bufferNode?.addEventListener("ended",()=>{this.bufferNode=null,this.pause()},{once:!0})}async setSinkId(e){return this.audioContext.setSinkId(e)}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(e){const t=!this.paused;t&&this._pause(),this.playedDuration=e/this._playbackRate,t&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){return this._duration??(this.buffer?.duration||0)}set duration(e){this._duration=e}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit("volumechange")}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){const e=[];if(!this.buffer)return e;const t=this.buffer.numberOfChannels;for(let n=0;n<t;n++)e.push(this.buffer.getChannelData(n));return e}}const Kn={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class Wn extends Hn{static create(e){return new Wn(e)}constructor(e){const t=e.media||("WebAudio"===e.backend?new qn:void 0);super({media:t,mediaControls:e.mediaControls,autoplay:e.autoplay,playbackRate:e.audioRate}),this.plugins=[],this.decodedData=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},Kn,e),this.timer=new Yn;const n=t?void 0:this.getMediaElement();this.renderer=new zn(this.options,n,this.options.iframeDocument,this.options.iframeWindow),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:e,duration:t}=this.options;(r||e&&t)&&this.load(r,e,t).catch(()=>null)})}updateProgress(e=this.getCurrentTime()){return this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),e}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const e=this.updateProgress();this.emit("timeupdate",e),this.emit("audioprocess",e)}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const e=this.updateProgress();this.emit("timeupdate",e)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop()}),this.onMediaEvent("emptied",()=>{this.timer.stop()}),this.onMediaEvent("ended",()=>{this.emit("finish")}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",e=>{this.emit("error",e.error)}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(e,t)=>{this.options.interact&&(this.seekTo(e),this.emit("interaction",e*this.getDuration()),this.emit("click",e,t))}),this.renderer.on("dblclick",(e,t)=>{this.emit("dblclick",e,t)}),this.renderer.on("scroll",(e,t,n,r)=>{const a=this.getDuration();this.emit("scroll",e*a,t*a,n,r)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",e=>{this.emit("dragstart",e)}),this.renderer.on("dragend",e=>{this.emit("dragend",e)}));{let e;this.subscriptions.push(this.renderer.on("drag",t=>{if(!this.options.interact)return;let n;this.renderer.renderProgress(t),clearTimeout(e),this.isPlaying()?n=0:!0===this.options.dragToSeek?n=200:"object"==typeof this.options.dragToSeek&&void 0!==this.options.dragToSeek&&(n=this.options.dragToSeek.debounceTime),e=setTimeout(()=>{this.seekTo(t)},n),this.emit("interaction",t*this.getDuration()),this.emit("drag",t)}))}}initPlugins(){this.options.plugins?.length&&this.options.plugins.forEach(e=>{this.registerPlugin(e)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(e=>e()),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),null!=e.mediaControls&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){return e._init(this),this.plugins.push(e),this.subscriptions.push(e.once("destroy",()=>{this.plugins=this.plugins.filter(t=>t!==e)})),e}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(e){return this.renderer.setScroll(e)}setScrollTime(e){const t=e/this.getDuration();this.renderer.setScrollPercentage(t)}getActivePlugins(){return this.plugins}async loadAudio(e,t,n,r){if(this.emit("load",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,!t&&!n){const n=this.options.fetchParams||{};window.AbortController&&!n.signal&&(this.abortController=new AbortController,n.signal=this.abortController?.signal);const r=e=>this.emit("loading",e);t=await async function(e,t,n){const r=await fetch(e,n);if(r.status>=400)throw new Error(`Failed to fetch ${e}: ${r.status} (${r.statusText})`);return async function(e,t){if(!e.body||!e.headers)return;const n=e.body.getReader(),r=Number(e.headers.get("Content-Length"))||0;let a=0;const o=async()=>{let e;try{e=await n.read()}catch{return}e.done||((async e=>{a+=e?.length||0;const n=Math.round(a/r*100);t(n)})(e.value),await o())};o()}(r.clone(),t),r.blob()}(e,r,n)}this.setSrc(e,t);const a=await new Promise(e=>{const t=r||this.getDuration();t?e(t):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>e(this.getDuration()),{once:!0}))});if(!e&&!t){const e=this.getMediaElement();e instanceof qn&&(e.duration=a)}if(n)this.decodedData=function(e,t){return"number"==typeof e[0]&&(e=[e]),function(e){const t=e[0];if(t.some(e=>e>1||e<-1)){const n=t.length;let r=0;for(let e=0;e<n;e++){const n=Math.abs(t[e]);n>r&&(r=n)}for(const t of e)for(let e=0;e<n;e++)t[e]/=r}}(e),{duration:t,length:e[0].length,sampleRate:e[0].length/t,numberOfChannels:e.length,getChannelData:t=>e?.[t],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}(n,a||0);else if(t){const e=await t.arrayBuffer();this.decodedData=await async function(e,t){const n=new AudioContext({sampleRate:t});return n.decodeAudioData(e).finally(()=>n.close())}(e,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())}async load(e,t,n){try{return await this.loadAudio(e,void 0,t,n)}catch(e){throw this.emit("error",e),e}}async loadBlob(e,t,n){try{return await this.loadAudio("",e,t,n)}catch(e){throw this.emit("error",e),e}}zoom(e){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(e),this.emit("zoom",e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:t=8e3,precision:n=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(e,this.decodedData.numberOfChannels),a=[];for(let e=0;e<r;e++){const r=this.decodedData.getChannelData(e),o=[],i=r.length/t;for(let e=0;e<t;e++){const t=r.slice(Math.floor(e*i),Math.ceil((e+1)*i));let a=0;for(let e=0;e<t.length;e++){const n=t[e];Math.abs(n)>Math.abs(a)&&(a=n)}o.push(Math.round(a*n)/n)}a.push(o)}return a}getDuration(){let e=super.getDuration()||0;return 0!==e&&e!==1/0||!this.decodedData||(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}setTime(e){super.setTime(e),this.updateProgress(e),this.emit("timeupdate",e)}seekTo(e){const t=this.getDuration()*e;this.setTime(t)}async playPause(){return this.isPlaying()?this.pause():this.play()}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load("",[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}async exportImage(e="image/png",t=1,n="dataURL"){return this.renderer.exportImage(e,t,n)}destroy(){this.emit("destroy"),this.abortController?.abort(),this.plugins.forEach(e=>e.destroy()),this.subscriptions.forEach(e=>e()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}Wn.BasePlugin=class extends Fn{constructor(e){super(),this.subscriptions=[],this.options=e}onInit(){}_init(e){this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e())}},Wn.dom=Vn;const Jn=e=>{const{src:t="",isSentByMe:n=!0}=e,o=a.useRef(null),i=a.useRef(!1),s=a.useRef(null),[c,l]=a.useState(null),[u,d]=a.useState(!1),[p,h]=a.useState(0),[m,g]=a.useState(!1),[f,_]=a.useState(!1),[b,v]=a.useState(0),[y,E]=a.useState(0),C=Y(),S=()=>C?.iframeDocument||document,w=a.useCallback(()=>{if(_(!0),o.current){const e=S().documentElement,r=n?getComputedStyle(e).getPropertyValue("--cometchat-static-white").trim():getComputedStyle(e).getPropertyValue("--cometchat-primary-color").trim(),a=n?getComputedStyle(e).getPropertyValue("--cometchat-neutral-color-500").trim():getComputedStyle(e).getPropertyValue("--cometchat-extended-primary-color-300").trim(),s=getComputedStyle(e).getPropertyValue("--cometchat-radius-max").trim().replace("px",""),c=Wn.create({container:o.current,height:16,normalize:!1,waveColor:a,progressColor:r,cursorWidth:0,barWidth:2,barGap:3,barRadius:Number(s),barHeight:1.2,minPxPerSec:26,fillParent:!0,mediaControls:!1,interact:!0,dragToSeek:!0,hideScrollbar:!0,audioRate:1,autoScroll:!0,autoCenter:!0,sampleRate:17e3,width:140,iframeDocument:S(),iframeWindow:C?.iframeWindow||window});return c.load(t),l(c),c.on("ready",()=>{E(c.getDuration()),_(!1)}),c.on("audioprocess",()=>{v(c.getCurrentTime())}),c.on("dragend",()=>{v(c.getCurrentTime())}),c.on("finish",()=>{c.stop(),c.seekTo(0),d(!1),i.current=!1}),()=>{o.current=null,gt.instance=null,i.current&&ft(!1)}}},[t,n]);a.useEffect(()=>w(),[w]);const k=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n<10?"0":""}${n}`},x=()=>{if(c){ft(!1),gt.instance&&gt.instance!==c&&(gt.instance.pause(),gt.setIsPlaying&&(gt.setIsPlaying(!1),i.current=!1)),c.playPause();const e=c.isPlaying();d(e),i.current=e,gt.instance=e?c:null,gt.setIsPlaying=e?d:null}},T=()=>{s.current&&(s.current.abort(),g(!1),h(0))},A=a.useCallback(()=>r.jsxs("div",{className:"cometchat-audio-bubble__tail-view-download-progress",children:[r.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",className:"cometchat-audio-bubble__tail-view-download-progress-background"}),r.jsx("circle",{className:"cometchat-audio-bubble__tail-view-download-progress-foreground",cx:"12",cy:"12",r:"10",style:{strokeDasharray:1.13*p+" 113"}})]}),r.jsx("div",{className:"cometchat-audio-bubble__tail-view-download-stop",onClick:T})]}),[m,p]);return r.jsx("div",{className:"cometchat",style:{height:"fit-content",width:"fit-content"},children:r.jsxs("div",{className:"cometchat-audio-bubble "+(n?"cometchat-audio-bubble-outgoing":"cometchat-audio-bubble-incoming"),style:f?{cursor:"not-allowed"}:{},children:[r.jsxs("div",{children:[r.jsx("div",{className:"cometchat-audio-bubble__leading-view",style:f?{pointerEvents:"none"}:{},children:u?r.jsx("div",{className:"cometchat-audio-bubble__leading-view-pause",onClick:x}):r.jsx("div",{className:"cometchat-audio-bubble__leading-view-play",onClick:x})}),r.jsxs("div",{className:"cometchat-audio-bubble__body",children:[r.jsx("div",{className:"cometchat-audio-bubble__body-wave",ref:o}),r.jsxs("div",{className:"cometchat-audio-bubble__body-time",children:[k(b)," / ",k(y)]})]})]}),r.jsx("div",{className:"cometchat-audio-bubble__tail-view",style:f?{pointerEvents:"none"}:{},children:m?A():r.jsx("div",{className:"cometchat-audio-bubble__tail-view-download",onClick:async()=>{g(!0);try{s.current=new AbortController;const{signal:e}=s.current,n=await fetch(t,{signal:e});if(!n.body)throw new Error("ReadableStream not supported.");const r=n.body.getReader(),a=+n.headers.get("Content-Length");let o=0;const i=[];for(;;){const{done:e,value:t}=await r.read();if(e)break;i.push(t),o+=t.length,h(Math.floor(o/a*100))}g(!1);const c=new Blob(i,{type:"audio/mpeg"}),l=S().createElement("a"),u=t.split("/"),d=u[u.length-1];l.href=URL.createObjectURL(c),l.download=d,l.click(),URL.revokeObjectURL(l.href)}catch(e){"AbortError"===e.name?console.log("Download was aborted"):console.error("Download failed:",e),g(!1),h(0)}}})})]})})};var Zn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH6SURBVHgBxVfbasJAEJ3EeL8QURG8QB/EF5/6B/2E/mnbL9B3hf6B9s07jTdUUNM9SxMkTSCb3dgDQ5bdDedkZnZmQ8Rg2/YTsz6zb/sxeAMnuLXfwSczkx4Li9kzBLyxwat39Xw+0/F4JFEUi0VKJBJhtw8gwPbOWpZFk8mEbrcbiaLdblO1WiVd18Nst3x3LRaLSOTA9XrlHxDyfTOUzDhFxCJARERsAsKKUC5gt9uRiAiDYhAwn8/5Kbi3crlMnU4nfgFALpej7XZLh8OB1wTH/BCLAKBUKnFSFDQ8g+pCZAGmaXID4Pb1ev1nTz6f5+SXyyXQA5GSsNVqUbPZpOVyya1er1O32yWfokqZTIabshAgviAcDod0Op0omUzyTO/1enzNr38YhqFOAL5yOp3yBEPjATRNc9eC4OyRFoAv3Gw2lM1m3blGo8Hn0UMgKohMiQAglUq5Y+RDOp2m0WjEQyBCDkhVwkql4uYD4gwThZSAQqHA3Q7ce0UEUoVotVrRfr/nIYgKKQ8g3vBCFNc7kPIAcgA1AJUw5BVMrYDxeMxDAC9EhZQAVDc0HdGjdw/pC4kMuRIBsvAVIPBjoUSA5Z1E+8RFQhXQNYOOKv6M+uz54l3AlWo2m0mdcQdoULVazW/p499/TnWWxV8YMHunxwDEA3CC+wfREERCXNxfDQAAAABJRU5ErkJggg==";const $n=e=>{const{fileURL:t="",fileTypeIconURL:n,title:o,subtitle:i,isSentByMe:s=!0}=e,[c,l]=a.useState(0),[u,d]=a.useState(!1),p=a.useRef(null),h=()=>{p.current&&(p.current.abort(),d(!1),l(0))},m=a.useCallback(()=>r.jsxs("div",{className:"cometchat-file-bubble__tail-view-download-progress\n",children:[r.jsxs("svg",{children:[r.jsx("circle",{cx:"10",cy:"10",r:"8",className:"cometchat-file-bubble__tail-view-download-progress-background"}),r.jsx("circle",{className:"cometchat-file-bubble__tail-view-download-progress-foreground",cx:"10",cy:"10",r:"8",style:{strokeDasharray:1.13*c+" 113"}})]}),r.jsx("div",{className:"cometchat-file-bubble__tail-view-download-stop",onClick:h})]}),[u,c]);return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-file-bubble "+(s?"cometchat-file-bubble-outgoing":"cometchat-file-bubble-incoming"),children:[r.jsxs("div",{children:[r.jsx("img",{src:n??Zn,className:"cometchat-file-bubble__leading-view"}),r.jsxs("div",{className:"cometchat-file-bubble__body\n        ",children:[r.jsx("div",{className:"cometchat-file-bubble__body-name",children:o}),r.jsxs("div",{className:"cometchat-file-bubble__body-details",children:[" ",i," "]})]})]}),t?r.jsx("div",{className:"cometchat-file-bubble__tail-view",children:u?m():r.jsx("div",{className:"cometchat-file-bubble__tail-view-download",onClick:async()=>{const e=t;d(!0);try{p.current=new AbortController;const{signal:t}=p.current,n=await fetch(e,{signal:t});if(!n.body)throw new Error("ReadableStream not yet supported in this browser.");const r=n.body.getReader(),a=+n.headers.get("Content-Length");let i=0;const s=[];for(;;){const{done:e,value:t}=await r.read();if(e)break;s.push(t),i+=t.length,l(Math.floor(i/a*100))}d(!1);const c=new Blob(s),u=document.createElement("a");u.href=URL.createObjectURL(c),u.download=o??"File",u.click()}catch(e){"AbortError"===e.name||console.error("Download failed:",e),d(!1),l(0)}}})}):null]})})};var Qn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJHSURBVHgB1ZdNaxNBGMf/M7uTxHRTqx5K0EIR1HoSv4Dk4KWI4DfwI3jy4En0s4j0Vl8uHtQUvVVMD0HFolLEBg+NTRNtsuvujs/TFLTZFLOzL+I/DNl52fn/ZubZ2VmApLWep1SntK3z0TJ7srfYv1ijNIN81aF0kQGW6eJapLq7CbQ/IbaqF4DS9KStVxhAR4o3XgJPbgH+ALF16SawcBUolCdp3ZFji9fumZmzvF0awIvh/981I5GFYkBkAxADIjuACSHSB/jyCnEgbKQOsIrtz2/hOnOQUsASNEohUGy9R7l2IwcA0jH5Hd+2mugOQtgEoYhCKjW2bSYArONlm8xD9H8SBAFYBJIeAG80f8rr0c7ZArbWDxRPlyQURZkXgpYiTYDLt+Gu1xG6vb2sLFZgz56D1SaAZ3eA/XLWkYKEHehDw914CdzGfVit1xD08ynvqSlUri/BP3sFdnPpQFuOAZ3qEvCNNKU8ut/d0mPWasC1HEge8IjfISuQdB8Y6bVSRdDvIY6MZ0CdqUGcODnMFB3gdA3BVBX+h3qEKxOAwCEz5QwzFHTBu+foNx+jIn5A2pMTGAN4FITqa4OOVMM8P24lC3sbTxwZA5AXSrZAPLuojINQCIHk9oYA/ptHCAZdaGgkldES6Kd3UQg1hEo+A0YAigPASm7OyvZE9P8C0NstT4DOaOHO/CJ2+SWekriv9tzi2Dr+MqLNG7XITe1N7HxcRcFCYtmzCzh66vy4qof//OOUDqxigy8oPUA+YuMV9mTvX6exKJpgmkTmAAAAAElFTkSuQmCC",Xn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK7SURBVHgBzZdPTxNBGMafmd0thQoWo0SJiQjqAQSjJkSjiZoQTgb5BHoyxC/B1ZN+C08kolcvEKMSPYgtMRCkFQ0BMREahZb+m/F9t00jbUlmsC08yWQ3M7Pz/OZ98+7OAiStdRe1KWqbujGaZE/2FsWbWWphNFYJapcZYJJuRstHf2xofFvXsFXvGYnWFuPp0wxQ4fJ+XuHxsxzSWVjr0T2JoasuWpqMpidktd7nr9W+zFnJHd5AHsm00fSwRB2USptD1AXABqJuAKYQNQf4FNNWEC5qrMiSxuLXX+hsJ0fhQAhJzcHS92Y8HDlSfwBWKh/GwsoG8pk/ENL1m+cKGmkQAMsLHvONVS5VgqimugH4iwfaoKQHpbJ+Gv4LIBQsXLd37Pqk2wyhyEaKqusaV8HoTQdjd3cvMv7Axfh92plWpb6xERdDV9SueYKisFcKjAHm4hrXLzrklSn1dZ8COtpB7/1cqW+gW+Djwm+6K4PYw8oYIBpXlEeBjrAuGklEvqQRXUzj7EldBBJ0tsgjvqp9SxNZvYhmPlMUevkRuvYJvI2mMLcscaOfw6vQ0yl8KIfyXhcAjsKlHtcH4FBHY3nMLAj093BqNK71SR9KOgHjNS0joDBw3sOJthyUzmF9U2A7JegA4iHUlCU4hqLcC7PdWwNspYD4WqEiYis5KrFACWxsJICllSySGQ+m4bcGYHE1DA824d0/oWaA4cEg3kSS1OdZrWf9JmSz461ZRGJceoWdxtY0Xn3Ywcxcmuo9aLWeNUCMSuzpRJ7SHCKzAsA2pebJBJ3hdJAiYBfUfX0LpFN54pTS7BRa8RwOWIcTINSMhgIkyjvv9G/RQSKJWonXutW3WXWM/4ym6Hq7fGD1ZxKz8wk61tnVdTWdOx3Aha6j1YZeHvjPqaRP7DLfUHuBxoiNp9mTvf8CwVZ4KCLQmwsAAAAASUVORK5CYII=",er="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKoSURBVHgB1VdNaxNBGH5mN19tUpOe2sSKyaENRhSsvehJ68mqIHgSBYVK+gd68ST2Hm+l5F4/DtJWpFhE7AfBg2AECU1bEEOIsdha00bz0cSsM5OqTZrCziYb6bO8zDDvMs+z877v7AxAoSiKm9oste9KczDJOBk32em8p+ZAc5GidooJmKSdq9Xez9kNfMx8hSj6HB60yma1r88xAUr16ML6Eu5GniBXKkAU42f98FqOQKKPCqRqvjUeD2kiZyjRJ4VN3qqAQ5VMPUXoIkBEhG4C1IpouICJeBgiIgxoMKYSYYRiEZywOkEk+n0SoS2Bz3EUt7sv6C+AYd2wjVdry/iVyYPIEohBwkY+2zwBDPIhCycu5QtUhExXona0hXKgzWDBFWcvXJa9u7bL0s59FZO3mqiZqYByGOoWkC7m0GPrRODkDS5mN4K9d9BJbFCKlckmmQ0gZmM5H+oVwBBYnoZCOYbc/X/Hhjw0tqUSxhZneMyrwUIBQ4MEsKwe/vAQl+ly99k9/OdzvesMBhdGIdvoqhCx6TQlYXI7heCn17jnu8YJ2ZevFrd4zEWheSN6nHjD23Qug0exEKQWcfK6BJTjrqDN1IKb3vPCS/8HmkLASs7v6cfFmRF0tXfgwelbmP8WRTKfgig0rQArubHFF1gtbCH8M47nyXd8rLo0dREw3H2Jl1xw6SXfZBgCK9NIF7Lw7ypNXQT02JywSiYMzo9Cspr/xX2nNK2KES6jXWRKsRxY+fEF9yNPoVBiYpQrfKw0R6ITYAdMYpJVzymehJR434Q3ycLFoOuJ6OAK0FJO9QjYs3sM2I/Tg0QRjQI7lAxYj9X0sZvRLG3PVTsSm2t4m4jSX6n6jN4PXsdh+DrctVzP/vvlVCKExFiH2hSaA0Y8xzgZ92/T20sq3HZ/yAAAAABJRU5ErkJggg==",tr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMRSURBVHgBxVddSBRRFP5m9tfVQhLZqEzTJMkQwwQRIQt6kCiEtF4qeqkgo6B8KurBZ+mHIkoyzIcgsUzChDDcIMjC0MQty8RFDf9zU2TX/e3cu9vm/tU4u04fXGY4d+aeb875zrl3AILX682g0UljzqsMWphP5lvw3/TQSIaysNLYyQi00E156OzUzDxGx39EfTs1ZS2/Ts/OB9lzstYj0aCHRJgYAW+o9UO/BTfrX8LhcEV981bNUU7iyJnbEAQxYD9RWYLSohzo9VpIgFWMZG3r6P2rcwbL2Az6B0aQk2nE9uwNAbttyYlu+gC73QEJSFZDJmrvvYDb5UBz3QWehrNXGgORsNt9JHbtyPhnJGQT2L83HwaDDqa3n7CwsAivxw1B9SegUknIJlC2J49r4NDJaxDJsSiELyWFhGwCdx52wOm0oaa6Eja7C7V17dxuHviOooIsySRkE/g8NMGvudvSqGR/wuNxQRTV6P86hsHhERjXJUEQBXpC4NoYtozjWMXu+BG4er6cUrAGVZcewEVixLJiXnKK+DYyDZdziTsXRRU0msiuZBNITUniBCanrVBr9aSD4KW0ukTShQput5MiIQb1irgQqLrcwL/86f1qKsMFfxkKwYsTMcElUoV4wuZiJpCZboQhQQcz5Xxyas5fhuHLqdRa0oeb0hDnCFw8VcbLsOL0dbadUgo0UZ9lGhBoxJVA26te6HUicrM3kuh8rVkOZBNoN/Xx3DbdPQfzl1HU3GjlYlOMAFM1a71Nz7swMTVLWSANQEECv/GkvdsnwCg5XjUCxytKkJjga62LNgcam99ADmQTKMzLCJyKWCtueGwKa0arSoCh/lEHa/U4sK8QQb14BVi5apahu28YPeYxxALZEXjdNYDDB4uRZEjAu55B8FAoSaC57b1vFwRvhFCrJR1C40eA6g5qjeTjd1TEpIF4ICIBtsspScAaaiwuSOdH7niBrVWUnxZxjv0ZddK1NHRiYnIWH81DfCuNFVs2G7E1c1Okqdb//nMq0lHJwm5oPIMyYI5NzCfz/QsYRIzAPAyESAAAAABJRU5ErkJggg==";const nr=e=>{const{messageText:t}=e;return r.jsx(r.Fragment,{children:t?r.jsx("div",{className:"cometchat",style:{height:"fit-content",width:"inherit"},children:r.jsxs("div",{className:"cometchat-action-bubble",children:[r.jsx("div",{className:"cometchat-action-bubble__icon"}),r.jsx("span",{className:"cometchat-action-bubble__text",children:t})]})}):null})},rr=e=>{const{timestamp:t,calendarObject:n}=e,o=a.useCallback(()=>G.formatDate(t,n),[n,t]);return r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-date",children:o()})})};class ar{}function or(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}ar.getReceiptStatus=e=>(e instanceof o.CometChat.TextMessage||e instanceof o.CometChat.MediaMessage)&&e.getModerationStatus()===pt.moderationStatus.disapproved||e?.error||e?.metadata?.error?t.W4f.error:e?.getReadAt()?t.W4f.read:!e?.getReadAt()&&e?.getDeliveredAt()?t.W4f.delivered:e?.getSentAt()&&e?.getId()?t.W4f.sent:t.W4f.wait;const ir=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cr={};function lr(e,t){return((t||cr).jsx?sr:ir).test(e)}const ur=/[ \t\n\f\r]/g;function dr(e){return""===e.replace(ur,"")}class pr{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function hr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new pr(n,r,t)}function mr(e){return e.toLowerCase()}pr.prototype.normal={},pr.prototype.property={},pr.prototype.space=void 0;class gr{constructor(e,t){this.attribute=t,this.property=e}}gr.prototype.attribute="",gr.prototype.booleanish=!1,gr.prototype.boolean=!1,gr.prototype.commaOrSpaceSeparated=!1,gr.prototype.commaSeparated=!1,gr.prototype.defined=!1,gr.prototype.mustUseProperty=!1,gr.prototype.number=!1,gr.prototype.overloadedBoolean=!1,gr.prototype.property="",gr.prototype.spaceSeparated=!1,gr.prototype.space=void 0;let fr=0;const _r=wr(),br=wr(),vr=wr(),yr=wr(),Er=wr(),Cr=wr(),Sr=wr();function wr(){return 2**++fr}var kr=Object.freeze({__proto__:null,boolean:_r,booleanish:br,commaOrSpaceSeparated:Sr,commaSeparated:Cr,number:yr,overloadedBoolean:vr,spaceSeparated:Er});const xr=Object.keys(kr);class Tr extends gr{constructor(e,t,n,r){let a=-1;if(super(e,t),Ar(this,"space",r),"number"==typeof n)for(;++a<xr.length;){const e=xr[a];Ar(this,xr[a],(n&kr[e])===kr[e])}}}function Ar(e,t,n){n&&(e[t]=n)}function Rr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Tr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[mr(r)]=r,n[mr(o.attribute)]=r}return new pr(t,n,e.space)}Tr.prototype.defined=!0;const Ir=Rr({properties:{ariaActiveDescendant:null,ariaAtomic:br,ariaAutoComplete:null,ariaBusy:br,ariaChecked:br,ariaColCount:yr,ariaColIndex:yr,ariaColSpan:yr,ariaControls:Er,ariaCurrent:null,ariaDescribedBy:Er,ariaDetails:null,ariaDisabled:br,ariaDropEffect:Er,ariaErrorMessage:null,ariaExpanded:br,ariaFlowTo:Er,ariaGrabbed:br,ariaHasPopup:null,ariaHidden:br,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Er,ariaLevel:yr,ariaLive:null,ariaModal:br,ariaMultiLine:br,ariaMultiSelectable:br,ariaOrientation:null,ariaOwns:Er,ariaPlaceholder:null,ariaPosInSet:yr,ariaPressed:br,ariaReadOnly:br,ariaRelevant:null,ariaRequired:br,ariaRoleDescription:Er,ariaRowCount:yr,ariaRowIndex:yr,ariaRowSpan:yr,ariaSelected:br,ariaSetSize:yr,ariaSort:null,ariaValueMax:yr,ariaValueMin:yr,ariaValueNow:yr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Or(e,t){return t in e?e[t]:t}function Nr(e,t){return Or(e,t.toLowerCase())}const Mr=Rr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cr,acceptCharset:Er,accessKey:Er,action:null,allow:null,allowFullScreen:_r,allowPaymentRequest:_r,allowUserMedia:_r,alt:null,as:null,async:_r,autoCapitalize:null,autoComplete:Er,autoFocus:_r,autoPlay:_r,blocking:Er,capture:null,charSet:null,checked:_r,cite:null,className:Er,cols:yr,colSpan:null,content:null,contentEditable:br,controls:_r,controlsList:Er,coords:yr|Cr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_r,defer:_r,dir:null,dirName:null,disabled:_r,download:vr,draggable:br,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_r,formTarget:null,headers:Er,height:yr,hidden:vr,high:yr,href:null,hrefLang:null,htmlFor:Er,httpEquiv:Er,id:null,imageSizes:null,imageSrcSet:null,inert:_r,inputMode:null,integrity:null,is:null,isMap:_r,itemId:null,itemProp:Er,itemRef:Er,itemScope:_r,itemType:Er,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_r,low:yr,manifest:null,max:null,maxLength:yr,media:null,method:null,min:null,minLength:yr,multiple:_r,muted:_r,name:null,nonce:null,noModule:_r,noValidate:_r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_r,optimum:yr,pattern:null,ping:Er,placeholder:null,playsInline:_r,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_r,referrerPolicy:null,rel:Er,required:_r,reversed:_r,rows:yr,rowSpan:yr,sandbox:Er,scope:null,scoped:_r,seamless:_r,selected:_r,shadowRootClonable:_r,shadowRootDelegatesFocus:_r,shadowRootMode:null,shape:null,size:yr,sizes:null,slot:null,span:yr,spellCheck:br,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yr,step:null,style:null,tabIndex:yr,target:null,title:null,translate:null,type:null,typeMustMatch:_r,useMap:null,value:br,width:yr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Er,axis:null,background:null,bgColor:null,border:yr,borderColor:null,bottomMargin:yr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_r,declare:_r,event:null,face:null,frame:null,frameBorder:null,hSpace:yr,leftMargin:yr,link:null,longDesc:null,lowSrc:null,marginHeight:yr,marginWidth:yr,noResize:_r,noHref:_r,noShade:_r,noWrap:_r,object:null,profile:null,prompt:null,rev:null,rightMargin:yr,rules:null,scheme:null,scrolling:br,standby:null,summary:null,text:null,topMargin:yr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_r,disableRemotePlayback:_r,prefix:null,property:null,results:yr,security:null,unselectable:null},space:"html",transform:Nr}),Dr=Rr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sr,accentHeight:yr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yr,amplitude:yr,arabicForm:null,ascent:yr,attributeName:null,attributeType:null,azimuth:yr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yr,by:null,calcMode:null,capHeight:yr,className:Er,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:yr,diffuseConstant:yr,direction:null,display:null,dur:null,divisor:yr,dominantBaseline:null,download:_r,dx:null,dy:null,edgeMode:null,editable:null,elevation:yr,enableBackground:null,end:null,event:null,exponent:yr,externalResourcesRequired:null,fill:null,fillOpacity:yr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cr,g2:Cr,glyphName:Cr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yr,horizOriginX:yr,horizOriginY:yr,id:null,ideographic:yr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yr,k:yr,k1:yr,k2:yr,k3:yr,k4:yr,kernelMatrix:Sr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:yr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:yr,overlineThickness:yr,paintOrder:null,panose1:null,path:null,pathLength:yr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Er,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yr,pointsAtY:yr,pointsAtZ:yr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sr,rev:Sr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sr,requiredFeatures:Sr,requiredFonts:Sr,requiredFormats:Sr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:yr,specularExponent:yr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yr,strikethroughThickness:yr,string:null,stroke:null,strokeDashArray:Sr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yr,strokeOpacity:yr,strokeWidth:null,style:null,surfaceScale:yr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sr,tabIndex:yr,tableValues:null,target:null,targetX:yr,targetY:yr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yr,underlineThickness:yr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yr,values:null,vAlphabetic:yr,vMathematical:yr,vectorEffect:null,vHanging:yr,vIdeographic:yr,version:null,vertAdvY:yr,vertOriginX:yr,vertOriginY:yr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Or}),Lr=Rr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Pr=Rr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nr}),jr=Rr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Ur={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fr=/[A-Z]/g,Br=/-[a-z]/g,Gr=/^data[-\w.:]+$/i;function Vr(e,t){const n=mr(t);let r=t,a=gr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Gr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Br,zr);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Br.test(e)){let n=e.replace(Fr,Hr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=Tr}return new a(r,t)}function Hr(e){return"-"+e.toLowerCase()}function zr(e){return e.charAt(1).toUpperCase()}const Yr=hr([Ir,Mr,Lr,Pr,jr],"html"),qr=hr([Ir,Dr,Lr,Pr,jr],"svg");function Kr(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}var Wr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zr={},$r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qr=/\n/g,Xr=/^\s*/,ea=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ta=/^:\s*/,na=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ra=/^[;\s]*/,aa=/^\s+|\s+$/g,oa="";function ia(e){return e?e.replace(aa,oa):oa}var sa=Wr&&Wr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,ca.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var ca=sa(function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(Qr);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),l(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function c(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function l(){c(Xr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;oa!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,oa===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=c(ea);if(t){if(d(),!c(ta))return s("property missing ':'");var n=c(na),r=e({type:"declaration",property:ia(t[0].replace($r,oa)),value:n?ia(n[0].replace($r,oa)):oa});return c(ra),r}}return i.prototype.content=e,l(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}),la={};Object.defineProperty(la,"__esModule",{value:!0}),la.camelCase=void 0;var ua=/^--[a-zA-Z0-9_-]+$/,da=/-([a-z])/g,pa=/^[^-]+$/,ha=/^-(webkit|moz|ms|o|khtml)-/,ma=/^-(ms)-/,ga=function(e,t){return t.toUpperCase()},fa=function(e,t){return"".concat(t,"-")};la.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||pa.test(e)||ua.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(ma,fa):e.replace(ha,fa)).replace(da,ga))};var _a=(Wr&&Wr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Zr),ba=la;function va(e,t){var n={};return e&&"string"==typeof e?((0,_a.default)(e,function(e,r){e&&r&&(n[(0,ba.camelCase)(e,t)]=r)}),n):n}va.default=va;var ya=Jr(va);const Ea=Sa("end"),Ca=Sa("start");function Sa(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function wa(e){return e&&"object"==typeof e?"position"in e||"type"in e?xa(e.position):"start"in e||"end"in e?xa(e):"line"in e||"column"in e?ka(e):"":""}function ka(e){return Ta(e&&e.line)+":"+Ta(e&&e.column)}function xa(e){return ka(e&&e.start)+"-"+ka(e&&e.end)}function Ta(e){return e&&"number"==typeof e?e:1}class Aa extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=wa(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Aa.prototype.file="",Aa.prototype.name="",Aa.prototype.reason="",Aa.prototype.message="",Aa.prototype.stack="",Aa.prototype.column=void 0,Aa.prototype.line=void 0,Aa.prototype.ancestors=void 0,Aa.prototype.cause=void 0,Aa.prototype.fatal=void 0,Aa.prototype.place=void 0,Aa.prototype.ruleId=void 0,Aa.prototype.source=void 0;const Ra={}.hasOwnProperty,Ia=new Map,Oa=/[A-Z]/g,Na=new Set(["table","tbody","thead","tfoot","tr"]),Ma=new Set(["td","th"]),Da="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function La(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=qr,e.schema=a),e.ancestors.push(t);const o=Ba(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Ra.call(t.properties,a)){const o=Fa(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&Ma.has(t.tagName)?r=i:n[a]=i}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=Ua(e,t);return Na.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&dr(t.value):dr(t));var t})),Pa(e,i,o,t),ja(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ga(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=qr,e.schema=a),e.ancestors.push(t);const o=null===t.name?e.Fragment:Ba(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const a=t.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ga(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else Ga(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=Ua(e,t);return Pa(e,i,o,t),ja(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ga(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ja(r,Ua(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Pa(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ja(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ua(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Ia;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=La(e,o,i);void 0!==s&&n.push(s)}return n}function Fa(e,t,n){const r=Vr(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ya(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new Aa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Da+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ra.call(e,n)&&(t[Va(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Ur[r.property]||r.property:r.attribute,n]}}function Ba(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=lr(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=lr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ra.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ga(e)}function Ga(e,t){const n=new Aa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Da+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Va(e){let t=e.replace(Oa,Ha);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Ha(e){return"-"+e.toLowerCase()}const za={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ya={};function qa(e,t){const n=t||Ya;return Ka(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Ka(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Wa(e.children,t,n)}return Array.isArray(e)?Wa(e,t,n):""}function Wa(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Ka(e[a],t,n);return r.join("")}const Ja={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"Ĳ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",filig:"ﬁ",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Za={}.hasOwnProperty;function $a(e){return!!Za.call(Ja,e)&&Ja[e]}function Qa(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Xa(e,t){return e.length>0?(Qa(e,e.length,0,t),e):t}const eo={}.hasOwnProperty;function to(e){const t={};let n=-1;for(;++n<e.length;)no(t,e[n]);return t}function no(e,t){let n;for(n in t){const r=(eo.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){eo.call(r,o)||(r[o]=[]);const e=a[o];ro(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ro(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Qa(e,0,0,r)}function ao(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const io=vo(/[A-Za-z]/),so=vo(/[\dA-Za-z]/),co=vo(/[#-'*+\--9=?A-Z^-~]/);function lo(e){return null!==e&&(e<32||127===e)}const uo=vo(/\d/),po=vo(/[\dA-Fa-f]/),ho=vo(/[!-/:-@[-`{-~]/);function mo(e){return null!==e&&e<-2}function go(e){return null!==e&&(e<0||32===e)}function fo(e){return-2===e||-1===e||32===e}const _o=vo(/\p{P}|\p{S}/u),bo=vo(/\s/);function vo(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function yo(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&so(e.charCodeAt(n+1))&&so(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Eo(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return fo(r)?(e.enter(n),i(r)):t(r)};function i(r){return fo(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const Co={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Eo(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):mo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}},So={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(r)}return l(r)}function c(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}_(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return Qa(t.events,o+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return m(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(wo,u,d)(a)}function u(e){return r&&b(),_(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,m(e)}function p(n){return t.containerState={},e.attempt(wo,h,m)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function m(n){return null===n?(r&&b(),_(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),g(n))}function g(n){return null===n?(f(e.exit("chunkFlow"),!0),_(0),void e.consume(n)):mo(n)?(e.consume(n),f(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),g)}function f(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(a){s=t.events[c][1].end;break}a=!0}for(_(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Qa(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},wo={tokenize:function(e,t,n){return Eo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ko(e){return null===e||go(e)||bo(e)?1:_o(e)?2:void 0}function xo(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const To={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Ao(d,-s),Ao(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Xa(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Xa(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Xa(c,xo(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),c=Xa(c,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=Xa(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,Qa(e,n-1,u-n+3,c),u=n+c.length-l-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ko(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const c=e.exit("attentionSequence"),l=ko(s),u=!l||2===l&&a||n.includes(s),d=!a||2===a&&l||n.includes(r);return c._open=Boolean(42===o?u:u&&(a||!d)),c._close=Boolean(42===o?d:d&&(l||!u)),t(s)}}};function Ao(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ro={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return io(t)?(e.consume(t),o):64===t?n(t):c(t)}function o(e){return 43===e||45===e||46===e||so(e)?(r=1,i(e)):c(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||so(t))&&r++<32?(e.consume(t),i):(r=0,c(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||lo(r)?n(r):(e.consume(r),s)}function c(t){return 64===t?(e.consume(t),l):co(t)?(e.consume(t),c):n(t)}function l(e){return so(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,l):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||so(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},Io={partial:!0,tokenize:function(e,t,n){return function(t){return fo(t)?Eo(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||mo(e)?t(e):n(e)}}},Oo={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return fo(t)?Eo(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt(Oo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return fo(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},No={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return ho(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Mo={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=so,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=po,l):(e.enter("characterReferenceValue"),a=7,o=uo,l(t))}function l(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==so||$a(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),l):n(s)}}},Do={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Lo={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),fo(t)?Eo(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),l(t)):n(t)}function l(t){return t===o?(a++,e.consume(t),l):a>=s?(e.exit("codeFencedFenceSequence"),fo(t)?Eo(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||mo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===o?(s++,e.consume(t),c):s<3?n(t):(e.exit("codeFencedFenceSequence"),fo(t)?Eo(e,l,"whitespace")(t):l(t))}function l(n){return null===n||mo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Do,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||mo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):fo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Eo(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||mo(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||mo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return i>0&&fo(t)?Eo(e,f,"linePrefix",i+1)(t):f(t)}function f(t){return null===t||mo(t)?e.check(Do,h,b)(t):(e.enter("codeFlowValue"),_(t))}function _(t){return null===t||mo(t)?(e.exit("codeFlowValue"),f(t)):(e.consume(t),_)}function b(n){return e.exit("codeFenced"),t(n)}}},Po={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Eo(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):mo(t)?e.attempt(jo,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||mo(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},jo={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):mo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):Eo(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):mo(e)?a(e):n(e)}}},Uo={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}for(t=a-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,l(t)):mo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||mo(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),r++,l):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",c(n))}}};class Fo{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Bo(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Bo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Bo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Bo(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Bo(this.left,t.reverse())}}}function Bo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Go(e){const t={};let n,r,a,o,i,s,c,l=-1;const u=new Fo(e);for(;++l<u.length;){for(;l in t;)l=t[l];if(n=u.get(l),l&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(l-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Vo(u,l)),l=t[l],c=!0);else if(n[1]._container){for(a=l,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,l),i.unshift(n),u.splice(r,l-r+1,i))}}return Qa(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function Vo(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,c=[],l={};let u,d,p=-1,h=n,m=0,g=0;const f=[g];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(g=p+1,f.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):f.pop(),p=f.length;p--;){const t=s.slice(f[p],f[p+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)l[m+c[p][0]]=m+c[p][1],m+=c[p][1]-c[p][0]-1;return l}const Ho={resolve:function(e){return Go(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):mo(t)?e.check(zo,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},zo={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Eo(e,a,"linePrefix")};function a(a){if(null===a||mo(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function Yo(e,t,n,r,a,o,i,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||lo(t)?n(t):(e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||mo(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(a){return u||null!==a&&41!==a&&!go(a)?u<l&&40===a?(e.consume(a),u++,m):41===a?(e.consume(a),u--,m):null===a||32===a||40===a||lo(a)?n(a):(e.consume(a),92===a?g:m):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function qo(e,t,n,r,a,o){const i=this;let s,c=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),l};function l(d){return c>999||null===d||91===d||93===d&&!s||94===d&&!c&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):mo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||mo(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s||(s=!fo(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}function Ko(e,t,n,r,a,o){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s):n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),c(n))}function c(t){return t===i?(e.exit(o),s(i)):null===t?n(t):mo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Eo(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===i||null===t||mo(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===i||92===t?(e.consume(t),l):l(t)}}function Wo(e,t){let n;return function r(a){return mo(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):fo(a)?Eo(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Jo={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return qo.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=oo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return go(t)?Wo(e,s)(t):s(t)}function s(t){return Yo(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(Zo,l,l)(t)}function l(t){return fo(t)?Eo(e,u,"whitespace")(t):u(t)}function u(o){return null===o||mo(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},Zo={partial:!0,tokenize:function(e,t,n){return function(t){return go(t)?Wo(e,r)(t):n(t)};function r(t){return Ko(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return fo(t)?Eo(e,o,"whitespace")(t):o(t)}function o(e){return null===e||mo(e)?t(e):n(e)}}},$o={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return mo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Qo={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),a-2>o&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4),a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},Qa(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||go(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||mo(n)?(e.exit("atxHeading"),t(n)):fo(n)?Eo(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||go(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}},Xo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ei=["pre","script","style","textarea"],ti={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let a,o,i,s,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:D):io(s)?(e.consume(s),i=String.fromCharCode(s),m):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):io(o)?(e.consume(o),a=4,r.interrupt?t:D):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:D):n(a)}function p(a){return a==="CDATA[".charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:x:p):n(a)}function h(t){return io(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||go(s)){const c=47===s,l=i.toLowerCase();return c||o||!ei.includes(l)?Xo.includes(i.toLowerCase())?(a=6,c?(e.consume(s),g):r.interrupt?t(s):x(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?f(s):_(s)):(a=1,r.interrupt?t(s):x(s))}return 45===s||so(s)?(e.consume(s),i+=String.fromCharCode(s),m):n(s)}function g(a){return 62===a?(e.consume(a),r.interrupt?t:x):n(a)}function f(t){return fo(t)?(e.consume(t),f):w(t)}function _(t){return 47===t?(e.consume(t),w):58===t||95===t||io(t)?(e.consume(t),b):fo(t)?(e.consume(t),_):w(t)}function b(t){return 45===t||46===t||58===t||95===t||so(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),y):fo(t)?(e.consume(t),v):_(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,E):fo(t)?(e.consume(t),y):C(t)}function E(t){return t===c?(e.consume(t),c=null,S):null===t||mo(t)?n(t):(e.consume(t),E)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||go(t)?v(t):(e.consume(t),C)}function S(e){return 47===e||62===e||fo(e)?_(e):n(e)}function w(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||mo(t)?x(t):fo(t)?(e.consume(t),k):n(t)}function x(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),O):62===t&&4===a?(e.consume(t),L):63===t&&3===a?(e.consume(t),D):93===t&&5===a?(e.consume(t),M):!mo(t)||6!==a&&7!==a?null===t||mo(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),x):(e.exit("htmlFlowData"),e.check(ni,P,T)(t))}function T(t){return e.check(ri,A,P)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||mo(t)?T(t):(e.enter("htmlFlowData"),x(t))}function I(t){return 45===t?(e.consume(t),D):x(t)}function O(t){return 47===t?(e.consume(t),i="",N):x(t)}function N(t){if(62===t){const n=i.toLowerCase();return ei.includes(n)?(e.consume(t),L):x(t)}return io(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),N):x(t)}function M(t){return 93===t?(e.consume(t),D):x(t)}function D(t){return 62===t?(e.consume(t),L):45===t&&2===a?(e.consume(t),D):x(t)}function L(t){return null===t||mo(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),L)}function P(n){return e.exit("htmlFlow"),t(n)}}},ni={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Io,t,n)}}},ri={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return mo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ai={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),y):63===t?(e.consume(t),b):io(t)?(e.consume(t),S):n(t)}function c(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o=0,h):io(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):mo(t)?(i=u,N(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?O(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?m:h):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),g):mo(t)?(i=m,N(t)):(e.consume(t),m)}function g(t){return 93===t?(e.consume(t),f):m(t)}function f(t){return 62===t?O(t):93===t?(e.consume(t),f):m(t)}function _(t){return null===t||62===t?O(t):mo(t)?(i=_,N(t)):(e.consume(t),_)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):mo(t)?(i=b,N(t)):(e.consume(t),b)}function v(e){return 62===e?O(e):b(e)}function y(t){return io(t)?(e.consume(t),E):n(t)}function E(t){return 45===t||so(t)?(e.consume(t),E):C(t)}function C(t){return mo(t)?(i=C,N(t)):fo(t)?(e.consume(t),C):O(t)}function S(t){return 45===t||so(t)?(e.consume(t),S):47===t||62===t||go(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),O):58===t||95===t||io(t)?(e.consume(t),k):mo(t)?(i=w,N(t)):fo(t)?(e.consume(t),w):O(t)}function k(t){return 45===t||46===t||58===t||95===t||so(t)?(e.consume(t),k):x(t)}function x(t){return 61===t?(e.consume(t),T):mo(t)?(i=x,N(t)):fo(t)?(e.consume(t),x):w(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):mo(t)?(i=T,N(t)):fo(t)?(e.consume(t),T):(e.consume(t),R)}function A(t){return t===a?(e.consume(t),a=void 0,I):null===t?n(t):mo(t)?(i=A,N(t)):(e.consume(t),A)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||go(t)?w(t):(e.consume(t),R)}function I(e){return 47===e||62===e||go(e)?w(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return fo(t)?Eo(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),i(t)}}},oi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Qa(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Xa(o,e.slice(r+1,r+s+3)),o=Xa(o,[["enter",u,t]]),o=Xa(o,xo(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=Xa(o,[["exit",u,t],e[a-2],e[a-1],["exit",l,t]]),o=Xa(o,e.slice(a+1)),o=Xa(o,[["exit",c,t]]),Qa(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){return a?a._inactive?u(t):(o=r.parser.defined.includes(oo(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(ii,l,o?l:u)(t):91===t?e.attempt(si,l,o?c:u)(t):o?l(t):u(t)}function c(t){return e.attempt(ci,l,u)(t)}function l(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},ii={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return go(t)?Wo(e,a)(t):a(t)}function a(t){return 41===t?l(t):Yo(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return go(t)?Wo(e,s)(t):l(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ko(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function c(t){return go(t)?Wo(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},si={tokenize:function(e,t,n){const r=this;return function(t){return qo.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(oo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ci={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},li={name:"labelStartImage",resolveAll:oi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ui={name:"labelStartLink",resolveAll:oi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},di={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Eo(e,t,"linePrefix")}}},pi={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||mo(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),fo(t)?Eo(e,o,"whitespace")(t):o(t))}}},hi={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Io,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Eo(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!fo(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gi,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Eo(e,e.attempt(hi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:uo(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(pi,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return uo(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Io,r.interrupt?n:l,e.attempt(mi,d,u))}function l(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return fo(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},mi={partial:!0,tokenize:function(e,t,n){const r=this;return Eo(e,function(e){const a=r.events[r.events.length-1];return!fo(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},gi={partial:!0,tokenize:function(e,t,n){const r=this;return Eo(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},fi={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),fo(t)?Eo(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||mo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},_i={tokenize:function(e){const t=this,n=e.attempt(Io,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Eo(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ho,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},bi={resolveAll:Ci()},vi=Ei("string"),yi=Ei("text");function Ei(e){return{resolveAll:Ci("text"===e?Si:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return c(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Ci(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function Si(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,c=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const a={type:n===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const wi={42:hi,43:hi,45:hi,48:hi,49:hi,50:hi,51:hi,52:hi,53:hi,54:hi,55:hi,56:hi,57:hi,62:Oo},ki={91:Jo},xi={[-2]:Po,[-1]:Po,32:Po},Ti={35:Qo,42:pi,45:[fi,pi],60:ti,61:fi,95:pi,96:Lo,126:Lo},Ai={38:Mo,92:No},Ri={[-5]:di,[-4]:di,[-3]:di,33:li,38:Mo,42:To,60:[Ro,ai],91:ui,92:[$o,No],93:oi,95:To,96:Uo},Ii={null:[To,bi]};var Oi=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ki,disable:{null:[]},document:wi,flow:Ti,flowInitial:xi,insideSpan:Ii,string:Ai,text:Ri});const Ni=/[\0\t\n\r]/g,Mi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Di(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return ao(n.slice(t?2:1),t?16:10)}return $a(n)||e}const Li={}.hasOwnProperty;function Pi(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:a(g),blockQuote:a(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:a(m),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(m,o),codeText:a(function(){return{type:"inlineCode",value:""}},o),codeTextData:u,data:u,codeFlowValue:u,definition:a(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a(_,o),htmlFlowData:u,htmlText:a(_,o),htmlTextData:u,image:a(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:a(b),listItem:a(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:a(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:a(v),paragraph:a(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(g),strong:a(function(){return{type:"strong",children:[]}}),thematicBreak:a(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=ao(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=$a(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=ji(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=oo(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Mi,Di)}(t),n.identifier=oo(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=ji(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=oo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Ui(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:i,exit:c,buffer:o,resume:l,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];Li.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Bi).call(s,void 0,e[0])}for(a.position={start:ji(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ji(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)a=t.transforms[d](a)||a;return a};function r(e,t,n){let r,a,o,i,s=t-1,c=-1,l=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||c||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=l,n}function a(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ji(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+wa({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Bi).call(this,e,r[0])),n.position.end=ji(e.end)}function l(){return qa(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:ji(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ji(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function _(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!Go(e););return e}(function(e){const t={constructs:to([Oi,...(e||{}).extensions||[]]),content:n(Co),defined:[],document:n(So),flow:n(_i),lazy:{},string:n(vi),text:n(yi)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],s=[];const c={attempt:g(function(e,t){f(e,t.from)}),check:g(m),consume:function(e){mo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,_()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),l.events.push(["enter",n,l]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},interrupt:g(m,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,_()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return i=Xa(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==i[i.length-1]?[]:(f(t,0),l.events=xo(o,l.events,l),l.events)}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,o){let i,u,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return i=e,u=0,0===e.length?o:g(e[u])}function g(e){return function(n){return h=function(){const e=p(),t=l.previous,n=l.currentConstruct,a=l.events.length,o=Array.from(s);return{from:a,restore:function(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=a,s=o,_()}}}(),d=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,f,b)(n)}}function f(t){return e(d,h),a}function b(e){return h.restore(),++u<i.length?g(i[u]):o}}}function f(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Qa(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function _(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let c,l,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(Ni.lastIndex=u,c=Ni.exec(a),d=c&&void 0!==c.index?c.index:a.length,p=a.charCodeAt(d),!c){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function ji(e){return{line:e.line,column:e.column,offset:e.offset}}function Ui(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ui(e,r):Fi(e,r)}}function Fi(e,t){let n;for(n in t)if(Li.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Bi(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wa({start:t.start,end:t.end})+") is still open")}function Gi(e){const t=this;t.parser=function(n){return Pi(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Vi(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function Hi(e){const t=e.spread;return null==t?e.children.length>1:t}function zi(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(Yi(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(Yi(t.slice(a),a>0,!1)),o.join("")}function Yi(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const qi={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=yo(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Vi(e,t);const a={src:yo(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:yo(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Vi(e,t);const a={href:yo(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:yo(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Hi(n[r])}return t}(n):Hi(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const c=r[r.length-1];c&&(a||"element"!==c.type||"p"!==c.tagName)&&i.push({type:"text",value:"\n"});const l={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,l),e.applyData(t,l)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Ca(t.children[1]),i=Ea(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const c=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let l={type:"element",tagName:a,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:zi(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ki,yaml:Ki,definition:Ki,footnoteDefinition:Ki};function Ki(){}const Wi="object"==typeof self?self:globalThis,Ji=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Wi[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Wi[o](i),a)};return r})(new Map,e)(0),Zi="",{toString:$i}={},{keys:Qi}=Object,Xi=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=$i.call(e).slice(8,-1);switch(n){case"Array":return[1,Zi];case"Object":return[2,Zi];case"Date":return[3,Zi];case"RegExp":return[4,Zi];case"Map":return[5,Zi];case"Set":return[6,Zi];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},es=([e,t])=>0===e&&("function"===t||"symbol"===t),ts=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=Xi(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],c=a([i,n],r);for(const t of Qi(r))!e&&es(Xi(r[t]))||n.push([o(t),o(r[t])]);return c}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[n,a]of r)(e||!es(Xi(n))&&!es(Xi(a)))&&t.push([o(n),o(a)]);return n}case 6:{const t=[],n=a([i,t],r);for(const n of r)!e&&es(Xi(n))||t.push(o(n));return n}}const{message:c}=r;return a([i,{name:s,message:c}],r)};return o})(!(t||n),!!t,new Map,r)(e),r};var ns="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ji(ts(e,t)):structuredClone(e):(e,t)=>Ji(ts(e,t));function rs(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function as(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const os=function(e){if(null==e)return ss;if("function"==typeof e)return is(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=os(e[n]);return is(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return is(function(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0})}(e);if("string"==typeof e)return function(e){return is(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function is(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ss(){return!0}const cs=[],ls=!1;function us(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=os(a),i=r?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let l,u,d,p=cs;if((!t||o(a,s,c[c.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?cs:[e]}(n(a,c)),p[0]===ls))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=c.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(l=e(n,u,d)(),l[0]===ls)return l;u="number"==typeof l[1]?l[1]:u+i}}return p}}(e,void 0,[])()}function ds(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),us(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}const ps={}.hasOwnProperty,hs={};function ms(e,t){e.position&&(t.position=function(e){const t=Ca(e),n=Ea(e);if(t&&n)return{start:t,end:n}}(e))}function gs(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,ns(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function fs(e,t){const n=t.data||{},r=!("value"in t)||ps.call(n,"hProperties")||ps.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function _s(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function bs(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function vs(e,t){const n=function(e,t){const n=t||hs,r=new Map,a=new Map,o=new Map,i={...qi,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=bs(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=bs(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:gs,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(ps.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=ns(n);return r.children=s.all(e),r}return ns(e)}return(s.options.unknownHandler||fs)(s,e,t)},options:n,patch:ms,wrap:_s};return ds(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rs,r=e.options.footnoteBackLabel||as,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[c]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),l=yo(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(o,!0)};e.patch(a,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ns(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function ys(e,t){return e&&"run"in e?async function(n,r){const a=vs(n,{file:r,...t});await e.run(a,r)}:function(n,r){return vs(n,{file:r,...e||t})}}function Es(e){if(e)throw e}var Cs=Object.prototype.hasOwnProperty,Ss=Object.prototype.toString,ws=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,xs=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ss.call(e)},Ts=function(e){if(!e||"[object Object]"!==Ss.call(e))return!1;var t,n=Cs.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Cs.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Cs.call(e,t)},As=function(e,t){ws&&"__proto__"===t.name?ws(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Rs=function(e,t){if("__proto__"===t){if(!Cs.call(e,t))return;if(ks)return ks(e,t).value}return e[t]},Is=Jr(function e(){var t,n,r,a,o,i,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(n in t)r=Rs(s,n),s!==(a=Rs(t,n))&&(u&&a&&(Ts(a)||(o=xs(a)))?(o?(o=!1,i=r&&xs(r)?r:[]):i=r&&Ts(r)?r:{},As(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&As(s,{name:n,newValue:a}));return s});function Os(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Ns=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Ds(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));return r===a?a=i:a<0&&(a=e.length),e.slice(r,a)},Ms=function(...e){let t,n=-1;for(;++n<e.length;)Ds(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Ds(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(i===c-1||1===s);else if(i!==c-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=c,s=0;continue}}else if(a.length>0){a="",o=0,i=c,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,c):a=e.slice(i+1,c),o=c-i-1;i=c,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function Ds(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ls(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Ps=["history","path","basename","stem","extname","dirname"];class js{constructor(e){let t;t=e?Ls(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Ps.length;){const e=Ps[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Ps.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Ns(this.path):void 0}set basename(e){Fs(e,"basename"),Us(e,"basename"),this.path=Ms(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(Ds(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){Bs(this.basename,"dirname"),this.path=Ms(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){Ds(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}return o<0||r<0||0===i||1===i&&o===r-1&&o===a+1?"":e.slice(o,r)}(this.path):void 0}set extname(e){if(Us(e,"extname"),Bs(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ms(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Ls(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Ls(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Fs(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Ns(this.path,this.extname):void 0}set stem(e){Fs(e,"stem"),Us(e,"stem"),this.path=Ms(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Aa(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Us(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function Fs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Bs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Gs=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Vs={}.hasOwnProperty;class Hs extends Gs{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let c=-1;if(o)r(o);else{for(;++c<t.length;)null!==i[c]&&void 0!==i[c]||(i[c]=t[c]);t=i,s?function(e,t){let n;return function(...t){const o=e.length>t.length;let i;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(a,r):i instanceof Error?r(i):a(i))};function r(e,...r){n||(n=!0,t(e,...r))}function a(e){r(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new Hs;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Is(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ks("data",this.frozen),this.namespace[e]=t,this):Vs.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ks("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Zs(e),n=this.parser||this.Parser;return Ys("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ys("process",this.parser||this.Parser),qs("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=Zs(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ys("processSync",this.parser||this.Parser),qs("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Es(e),t=r}),Js("processSync","process",n),t}run(e,t,n){Ws(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=Zs(t);r.run(e,i,function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Es(e),n=t,r=!0}),Js("runSync","run",r),n}stringify(e,t){this.freeze();const n=Zs(t),r=this.compiler||this.Compiler;return qs("stringify",r),Ws(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ks("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=Is(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)a(e[t])}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];Os(i)&&Os(r)&&(r=Is(!0,i,r)),n[a]=[e,r,...o]}}}}const zs=(new Hs).freeze();function Ys(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function qs(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ks(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ws(e){if(!Os(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Js(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zs(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new js(e)}const $s=[],Qs={allowDangerousHtml:!0},Xs=/^(https?|ircs?|mailto|xmpp)$/i,ec=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tc(e){const t=function(e){const t=e.rehypePlugins||$s,n=e.remarkPlugins||$s,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qs}:Qs;return zs().use(Gi).use(n).use(ys,r).use(t)}(e),n=function(e){const t=e.children||"",n=new js;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,a=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,c=t.unwrapDisallowed,l=t.urlTransform||nc;for(const e of ec)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return ds(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return s?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in za)if(Object.hasOwn(za,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=za[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&a&&"number"==typeof t&&(o=!a(e,t,r)),o&&r&&"number"==typeof t)return c&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,a,o){const i=Array.isArray(a.children),s=Ca(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return function(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?qr:Yr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=La(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}(e,{Fragment:r.Fragment,components:o,ignoreInvalidStyle:!0,jsx:r.jsx,jsxs:r.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nc(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Xs.test(e.slice(0,t))?e:""}function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ac(e){return function(e){if(Array.isArray(e))return rc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rc(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oc(e){return oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(e)}function ic(e,t,n){return(t=function(e){var t=function(e){if("object"!=oc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(null,arguments)}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach(function(t){ic(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var uc={};function dc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return uc[r]||(uc[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),uc[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return lc(lc({},e),n[t])},t)}function pc(e){return e.join(" ")}function hc(e){var t=e.node,n=e.stylesheet,r=e.style,o=void 0===r?{}:r,i=e.useInlineStyles,s=e.key,c=t.properties,l=t.type,u=t.tagName,d=t.value;if("text"===l)return d;if(u){var p,h=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,a){return hc({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(n,i);if(i){var m=Object.keys(n).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),g=c.className&&c.className.includes("token")?["token"]:[],f=c.className&&g.concat(c.className.filter(function(e){return!m.includes(e)}));p=lc(lc({},c),{},{className:pc(f)||void 0,style:dc(c.className,Object.assign({},c.style,o),n)})}else p=lc(lc({},c),{},{className:pc(c.className)});var _=h(t.children);return a.createElement(u,sc({key:s},p),_)}}var mc=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gc(Object(n),!0).forEach(function(t){ic(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _c=/\n/g;function bc(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,o=void 0===r?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,s=void 0===i?{}:i,c=e.startingLineNumber;return a.createElement("code",{style:Object.assign({},n,o)},function(e){var t=e.startingLineNumber,n=e.style;return e.lines.map(function(e,r){var o=r+t;return a.createElement("span",{key:"line-".concat(r),className:"react-syntax-highlighter-line-number",style:"function"==typeof n?n(o):n},"".concat(o,"\n"))})}({lines:t.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:c}))}function vc(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function yc(e,t,n){var r,a={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof e?e(t):e;return fc(fc({},a),o)}function Ec(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=void 0===i?{}:i,c=e.className,l=void 0===c?[]:c,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,h=void 0!==p&&p?fc({},"function"==typeof s?s(n):s):{};if(h.className=h.className?[].concat(ac(h.className.trim().split(/\s+/)),ac(l)):l,n&&o){var m=yc(r,n,a);t.unshift(vc(n,m))}return d&u&&(h.style=fc({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];void 0===e.length&&(e=[e]);for(var r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(Ec({children:[a],className:ac(new Set(t))}));else if(a.children){var o,i=t.concat((null===(o=a.properties)||void 0===o?void 0:o.className)||[]);Cc(a.children,i).forEach(function(e){return n.push(e)})}}return n}function Sc(e,t,n,r,a,o,i,s,c){var l,u=Cc(e.value),d=[],p=-1,h=0;function m(e,o){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||l.length>0?function(e,o){return Ec({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:c,wrapLines:t})}(e,o,l):function(e,t){if(r&&t&&a){var n=yc(s,t,i);e.unshift(vc(t,n))}return e}(e,o)}for(var g=function(){var e=u[h],t=e.children[0].value;if(t.match(_c)){var n=t.split("\n");n.forEach(function(t,a){var i=r&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===a){var c=m(u.slice(p+1,h).concat(Ec({children:[s],className:e.properties.className})),i);d.push(c)}else if(a===n.length-1){var l=u[h+1]&&u[h+1].children&&u[h+1].children[0],g={type:"text",value:"".concat(t)};if(l){var f=Ec({children:[g],className:e.properties.className});u.splice(h+1,0,f)}else{var _=m([g],i,e.properties.className);d.push(_)}}else{var b=m([s],i,e.properties.className);d.push(b)}}),p=h}h++};h<u.length;)g();if(p!==u.length-1){var f=u.slice(p+1,u.length);if(f&&f.length){var _=m(f,r&&d.length+o);d.push(_)}}return t?d:(l=[]).concat.apply(l,d)}function wc(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return hc({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function kc(e){return e&&void 0!==e.highlightAuto}const xc=/[#.]/g;function Tc(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){xc.lastIndex=i;const e=xc.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),c=r?r.get(s):void 0;if(i.tagName=c||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))Ac(e,i.properties,t,n)}for(const e of o)Rc(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function Ac(e,t,n,r){const a=Vr(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?Kr(r):a.commaSeparated?or(r):a.commaOrSpaceSeparated?Kr(or(r).join(" ")):Ic(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(Ic(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function Rc(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Rc(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Rc(e,t.children):e.push(t)}}function Ic(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||mr(n)===mr(t)))return!0}return n}const Oc=Tc(Yr,"div");Tc(qr,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const Nc=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Mc={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Dc(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Lc(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Pc(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Dc(e)}const jc=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Uc(e,t){const n=t||{},r="string"==typeof n.additional?n.additional.charCodeAt(0):n.additional,a=[];let o,i,s=0,c=-1,l="";n.position&&("start"in n.position||"indent"in n.position?(i=n.position.indent,o=n.position.start):o=n.position);let u,d=(o?o.line:0)||1,p=(o?o.column:0)||1,h=m();for(s--;++s<=e.length;)if(10===u&&(p=(i?i[c]:0)||1),u=e.charCodeAt(s),38===u){const t=e.charCodeAt(s+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||r&&t===r){l+=String.fromCharCode(u),p++;continue}const o=s+1;let i,c=o,d=o;if(35===t){d=++c;const t=e.charCodeAt(d);88===t||120===t?(i="hexadecimal",d=++c):i="decimal"}else i="named";let _="",b="",v="";const y="named"===i?Pc:"decimal"===i?Dc:Lc;for(d--;++d<=e.length;){const t=e.charCodeAt(d);if(!y(t))break;v+=String.fromCharCode(t),"named"===i&&Nc.includes(v)&&(_=v,b=$a(v))}let E=59===e.charCodeAt(d);if(E){d++;const e="named"===i&&$a(v);e&&(_=v,b=e)}let C=1+d-o,S="";if(E||!1!==n.nonTerminated)if(v)if("named"===i){if(E&&!b)g(5,1);else if(_!==v&&(d=c+_.length,C=1+d-c,E=!1),!E){const t=_?1:3;if(n.attribute){const n=e.charCodeAt(d);61===n?(g(t,C),b=""):Pc(n)?b="":g(t,C)}else g(t,C)}S=b}else{E||g(2,C);let e=Number.parseInt(v,"hexadecimal"===i?16:10);if(Fc(e))g(7,C),S=String.fromCharCode(65533);else if(e in Mc)g(6,C),S=Mc[e];else{let t="";Bc(e)&&g(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),S=t+String.fromCharCode(e)}}else"named"!==i&&g(4,C);if(S){f(),h=m(),s=d-1,p+=d-o+1,a.push(S);const t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,S,{start:h,end:t},e.slice(o-1,d)),h=t}else v=e.slice(o-1,d),l+=v,p+=v.length,s=d-1}else 10===u&&(d++,c++,p=0),Number.isNaN(u)?f():(l+=String.fromCharCode(u),p++);return a.join("");function m(){return{line:d,column:p,offset:s+((o?o.offset:0)||0)}}function g(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,jc[e],r,e))}function f(){l&&(a.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:h,end:m()}),l="")}}function Fc(e){return e>=55296&&e<=57343||e>1114111}function Bc(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}var Gc=0,Vc={},Hc={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Gc}),e.__id},clone:function e(t,n){var r,a;switch(n=n||{},Hc.util.type(t)){case"Object":if(a=Hc.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return a=Hc.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r);default:return t}}},languages:{plain:Vc,plaintext:Vc,text:Vc,txt:Vc,extend:function(e,t){var n=Hc.util.clone(Hc.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r=r||Hc.languages)[e],o={};for(var i in a)if(a.hasOwnProperty(i)){if(i==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(i)||(o[i]=a[i])}var c=r[e];return r[e]=o,Hc.languages.DFS(Hc.languages,function(t,n){n===c&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a=a||{};var o=Hc.util.objId;for(var i in t)if(t.hasOwnProperty(i)){n.call(t,i,t[i],r||i);var s=t[i],c=Hc.util.type(s);"Object"!==c||a[o(s)]?"Array"!==c||a[o(s)]||(a[o(s)]=!0,e(s,n,i,a)):(a[o(s)]=!0,e(s,n,null,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Hc.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Hc.tokenize(r.code,r.grammar),Hc.hooks.run("after-tokenize",r),zc.stringify(Hc.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new Kc;return Wc(a,a.head,e),qc(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=Hc.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Hc.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:zc};function zc(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function Yc(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function qc(e,t,n,r,a,o){for(var i in n)if(n.hasOwnProperty(i)&&n[i]){var s=n[i];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(o&&o.cause==i+","+c)return;var l=s[c],u=l.inside,d=!!l.lookbehind,p=!!l.greedy,h=l.alias;if(p&&!l.pattern.global){var m=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+"g")}for(var g=l.pattern||l,f=r.next,_=a;f!==t.tail&&!(o&&_>=o.reach);_+=f.value.length,f=f.next){var b=f.value;if(t.length>e.length)return;if(!(b instanceof zc)){var v,y=1;if(p){if(!(v=Yc(g,_,e,d))||v.index>=e.length)break;var E=v.index,C=v.index+v[0].length,S=_;for(S+=f.value.length;E>=S;)S+=(f=f.next).value.length;if(_=S-=f.value.length,f.value instanceof zc)continue;for(var w=f;w!==t.tail&&(S<C||"string"==typeof w.value);w=w.next)y++,S+=w.value.length;y--,b=e.slice(_,S),v.index-=_}else if(!(v=Yc(g,0,b,d)))continue;E=v.index;var k=v[0],x=b.slice(0,E),T=b.slice(E+k.length),A=_+b.length;o&&A>o.reach&&(o.reach=A);var R=f.prev;if(x&&(R=Wc(t,R,x),_+=x.length),Jc(t,R,y),f=Wc(t,R,new zc(i,u?Hc.tokenize(k,u):k,h,k)),T&&Wc(t,f,T),y>1){var I={cause:i+","+c,reach:A};qc(e,t,n,f.prev,_,I),o&&I.reach>o.reach&&(o.reach=I.reach)}}}}}}function Kc(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Wc(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function Jc(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}const Zc=Hc;function $c(){}$c.prototype=Zc;const Qc=new $c;function Xc(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};a["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}function el(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}function tl(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}function nl(e){!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",a=RegExp(r+"-"+r),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(e)}function rl(e){e.register(tl),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}function al(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}function ol(e){!function(e){var t="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}(e)}function il(e){e.register(rl),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}function sl(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}function cl(e){!function(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}(e)}function ll(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}function ul(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}function dl(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}function pl(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}function hl(e){e.register(tl),e.register(pl),function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return t.source});function r(e){return RegExp(e.replace(/<CLASS-NAME>/g,function(){return n}),"i")}var a={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:r(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:a},{pattern:r(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:r(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}function ml(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}function gl(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}function fl(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}function _l(e){e.register(tl),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}function bl(e){e.register(_l),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}function vl(e){e.register(bl),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}function yl(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}function El(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}function Cl(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(e)}function Sl(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}function wl(e){e.register(Xc),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a=t[n];if("code"===a.type){var o=a.content[1],i=a.content[3];if(o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());i.alias?"string"==typeof i.alias?i.alias=[i.alias,c]:i.alias.push(c):i.alias=[c]}}else e(a.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r],i=/language-(.+)/.exec(o);if(i){n=i[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(t.content.value,s,n);else if(n&&"none"!==n&&e.plugins.autoloader){var c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}}),RegExp(e.languages.markup.tag.pattern.source,"gi"),e.languages.md=e.languages.markdown}(e)}function kl(e){!function(e){var t=function(t,n){return{pattern:RegExp(/\{!/.source+"(?:"+(n||t)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+t,inside:e.languages[t]},string:/[\s\S]+/}}};e.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":t("html"),"css-string":t("css"),"js-string":t("js"),"md-string":t("md"),"sql-string":t("sql"),"sh-string":t("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},e.languages.art=e.languages.arturo}(e)}function xl(e){!function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){for(var t={},r=0,a=(e=e.split(" ")).length;r<a;r++)t[e[r]]=n[e[r]];return t}t.inside.interpreted.inside.rest=r("macro inline replacement entity"),n["passthrough-block"].inside.rest=r("macro"),n["literal-block"].inside.rest=r("callout"),n.table.inside.rest=r("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=r("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=r("macro inline replacement entity"),e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))}),e.languages.adoc=e.languages.asciidoc}(e)}function Tl(e){e.register(tl),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=c(o),u=RegExp(c(a+" "+o+" "+i+" "+s)),d=c(o+" "+i+" "+s),p=c(a+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,f=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),_=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),b=/\[\s*(?:,\s*)*\]/.source,v=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[_,b]),y=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,m,b]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,_,b]),S={keyword:u,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[_]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,f]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[_]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,p,g]),inside:S}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,_]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,f,g,C,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(C),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=k+"|"+w,A=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),R=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[_,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,M=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,N]),L=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,N]);function j(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:j(D,M)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:j(P,L)}],char:{pattern:RegExp(w),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}function Al(e){e.register(Tl),e.register(Xc),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}function Rl(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}function Il(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}function Ol(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}function Nl(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}function Ml(e){!function(e){function t(e,t,n){return RegExp(function(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return t[+n]})}(e,t),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}function Dl(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}function Ll(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}function Pl(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}function jl(e){!function(e){var t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:t,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:t,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(e)}function Ul(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}function Fl(e){!function(e){e.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}}(e)}function Bl(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}function Gl(e){e.register(tl),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}function Vl(e){e.register(_l),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}function Hl(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}function zl(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}function Yl(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}function ql(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}function Kl(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}function Wl(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}function Jl(e){e.register(tl),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}function Zl(e){e.register(tl),e.register(bl),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}function $l(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}function Ql(e){e.register(_l),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}function Xl(e){e.register(bl),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}function eu(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}function tu(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}function nu(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}function ru(e){e.register(rl),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(e)}function au(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}function ou(e){!function(e){function t(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:t(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:t(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:t(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:t(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:t(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:t(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:t(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}(e)}function iu(e){!function(e){var t=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,n=/[^{}@#]+/.source,r=n+/\{[^}#@]*\}/.source,a=/(?:h|hours|hrs|m|min|minutes)/.source;e.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+r+"|"+t+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+n+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+n),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+r+"|"+t+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+n+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":{pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}}}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}}(e)}function su(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}function cu(e){e.register(tl),function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}function lu(e){e.register(cu),function(e){e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}function uu(e){e.register(el),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(e)}function du(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}function pu(e){!function(e){var t="(?:"+(/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source).replace(/<esc>/g,/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source)+")";e.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+t+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},e.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=e.languages.cue}(e)}function hu(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}function mu(e){e.register(tl),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}function gu(e){e.register(tl),function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}function fu(e){!function(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}(e)}function _u(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}function bu(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}function vu(e){!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach(function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(e)}function yu(e){e.register(Xc),function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var c=0;c<s.length&&!(a>=o.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof l?l:l.content,h=t(r,u),m=p.indexOf(h);if(m>-1){++a;var g=p.substring(0,m),f=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),_=p.substring(m+h.length),b=[];g&&b.push.apply(b,i([g])),b.push(f),_&&b.push.apply(b,i([_])),"string"==typeof l?s.splice.apply(s,[c,1].concat(b)):l.content=b}}else l.content&&i(l.content)}return s}(n.tokens)}}}})}(e)}function Eu(e){e.register(yu),function(e){e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"];e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"django",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"jinja2",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"jinja2")})}(e)}function Cu(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}function Su(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return t}),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return r}),o={pattern:RegExp(r),greedy:!0},i={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(/<OPT>/g,function(){return a}).replace(/<SP>/g,function(){return n}),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:i,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:i},e.languages.dockerfile=e.languages.docker}(e)}function wu(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(/<ID>/g,function(){return t}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}function ku(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}function xu(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}function Tu(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}function Au(e){e.register(rl),e.register(yu),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")}),e.languages.eta=e.languages.ejs}(e)}function Ru(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}function Iu(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}function Ou(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}function Nu(e){e.register(Ou),e.register(yu),function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")})}(e)}function Mu(e){e.register(yu),e.register(cu),function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})}(e)}function Du(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}function Lu(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}function Pu(e){e.register(tl),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}function ju(e){!function(e){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},n={number:/\\[^\s']|%\w/},r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:n.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},a=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(e){return new RegExp("(^|\\s)(?:"+e.map(a).join("|")+")(?=\\s|$)")},i={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(i).forEach(function(e){r[e].pattern=o(i[e])}),r.combinators.pattern=o(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"]),e.languages.factor=r}(e)}function Uu(e){!function(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}}(e)}function Fu(e){e.register(tl),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}function Bu(e){e.register(rl),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}function Gu(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}function Vu(e){e.register(yu),function(e){for(var t=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(/<expr>/g,function(){return t});t=t.replace(/<expr>/g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}(e)}function Hu(e){e.register(tl),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}function zu(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}function Yu(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}function qu(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}function Ku(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}function Wu(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}function Ju(e){!function(e){var t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}(e)}function Zu(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}function $u(e){e.register(_l),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}function Qu(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}function Xu(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}function ed(e){e.register(tl),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}function td(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}function nd(e){e.register(tl),function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.gradle=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.gradle}(e)}function rd(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(h(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),a.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&a.indexOf(l.content)>=0&&h(l,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0===--a)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})}function ad(e){e.register(tl),function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(e)}function od(e){e.register(el),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}function id(e){e.register(el),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}function sd(e){e.register(Xc),function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(/<MOD>/g,function(){return"(?:"+t+")"}).replace(/<PAR>/g,function(){return"(?:"+n+")"}),r||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")<MOD>+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),i=o.phrase.inside,s={inline:i.inline,link:i.link,image:i.image,footnote:i.footnote,acronym:i.acronym,mark:i.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=i.inline.inside;c.bold.inside=s,c.italic.inside=s,c.inserted.inside=s,c.deleted.inside=s,c.span.inside=s;var l=i.table.inside;l.inline=s.inline,l.link=s.link,l.image=s.image,l.footnote=s.footnote,l.acronym=s.acronym,l.mark=s.mark}(e)}function cd(e){e.register(cu),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,a=t.length;r<a;r++){var o=t[r];o="string"==typeof o?{filter:o,language:o}:o,e.languages[o.language]&&(n["filter-"+o.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",function(){return o.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[o.language,"language-"+o.language],inside:e.languages[o.language]}}})}e.languages.insertBefore("haml","filter",n)}(e)}function ld(e){e.register(yu),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}),e.languages.hbs=e.languages.handlebars,e.languages.mustache=e.languages.handlebars}(e)}function ud(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}function dd(e){e.register(tl),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}function pd(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}function hd(e){e.register(_l),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}function md(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}function gd(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}function fd(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}function _d(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}function bd(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}function vd(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}for(var s in a)if(a[s]){n=n||{};var c=o[s]?i(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}n&&e.languages.insertBefore("http","header",n)}(e)}function yd(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}function Ed(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}function Cd(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(/<SELF>/g,function(){return t(e,n-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:n,greedy:!0,inside:{escape:r}},o=t(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return n.source}),8),i={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:a},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}function Sd(e){e.register(ud),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}function wd(e){!function(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}(e)}function kd(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}function xd(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}function Td(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}function Ad(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}function Rd(e){e.register(tl),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}function Id(e){e.register(yu),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:a,punctuation:o};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(e)}function Od(e){!function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach(function(t){!function(t,n){var r="doc-comment",a=e.languages[t];if(a){var o=a[r];if(!o){var i={};i[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=(a=e.languages.insertBefore(t,"comment",i))[r]}if(o instanceof RegExp&&(o=a[r]={pattern:o}),Array.isArray(o))for(var s=0,c=o.length;s<c;s++)o[s]instanceof RegExp&&(o[s]={pattern:o[s]}),n(o[s]);else n(o)}}(t,function(e){e.inside||(e.inside={}),e.inside.rest=n})})}}),t.addSupport(["java","javascript","php"],t)}(e)}function Nd(e){e.register(Rd),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}function Md(e){e.register(Rd),e.register(Od),e.register(Xc),function(e){var t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return n});e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}(e)}function Dd(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}function Ld(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}function Pd(e){e.register(tl),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}function jd(e){!function(e){var t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return t})),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};r.interpolation.inside.content.inside=a}(e)}function Ud(e){e.register(rl),function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function l(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function u(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,u={},d=c(a.map(function(e){if("string"==typeof e)return e;for(var n,a=e.content;-1!==t.indexOf(n=s(i++,r)););return u[n]=a,n}).join(""),n,r),p=Object.keys(u);return i=0,function e(t){for(var n=0;n<t.length;n++){if(i>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var a=p[i],o="string"==typeof r?r:r.content,s=o.indexOf(a);if(-1!==s){++i;var c=o.substring(0,s),d=l(u[a]),h=o.substring(s+a.length),m=[];if(c&&m.push(c),m.push(d),h){var g=[h];e(g),m.push.apply(m,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(m)),n+=m.length-1):r.content=m}}else{var f=r.content;Array.isArray(f)?e(f):e([f])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",function(t){t.language in d&&function t(n){for(var r=0,a=n.length;r<a;r++){var o=n[r];if("string"!=typeof o){var i=o.content;if(Array.isArray(i))if("template-string"===o.type){var s=i[1];if(3===i.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),l=s.alias,d=Array.isArray(l)?l[0]:l,h=e.languages[d];if(!h)continue;i[1]=u(c,h,d)}}else t(i);else"string"!=typeof i&&t([i])}}}(t.tokens)})}(e)}function Fd(e){e.register(rl),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}function Bd(e){e.register(Od),e.register(rl),e.register(Fd),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(e)}function Gd(e){e.register(rl),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}function Vd(e){e.register(rl),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[a]={pattern:o});var i=o.inside||{};o.inside=i,i["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}function Hd(e){e.register(_d),function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(e)}function zd(e){e.register(_d),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}function Yd(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}function qd(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}function Kd(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}function Wd(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}function Jd(e){e.register(tl),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(e)}function Zd(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(/<nonId>/g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}function $d(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}function Qd(e){!function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(e)}function Xd(e){e.register(tl),e.register(yu),e.register(Id),function(e){e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}};var t=e.languages.extend("markup",{});e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",function(n){"latte"===n.language&&(e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")})}(e)}function ep(e){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,function(t){return"(?:"+e[t].trim()+")"});return e[t]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(e)}function tp(e){e.register(ep),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=0;n<5;n++)t=t.replace(/<expr>/g,function(){return t});t=t.replace(/<expr>/g,/[^\s\S]/.source);var r=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return t}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};r["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=r,e.languages.ly=r}(e)}function np(e){e.register(yu),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}function rp(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+r,o="(\\()",i="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+i),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+i),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},l={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+s+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:c},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(o+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:l},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:l},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:l},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=d,c.defun.inside.arguments=e.util.clone(d),c.defun.inside.arguments.inside.sublist=d,e.languages.lisp=c,e.languages.elisp=c,e.languages.emacs=c,e.languages["emacs-lisp"]=c}(e)}function ap(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}function op(e){!function(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}(e)}function ip(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}function sp(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}function cp(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}function lp(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}function up(e){!function(e){var t=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,n=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,t);e.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(n),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}}(e)}function dp(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}function pp(e){!function(e){var t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ \t]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ \t]*(?:(?!"+t.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}(e)}function hp(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}function mp(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}function gp(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}function fp(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}function _p(e){e.register(rl),function(e){var t=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(t=t.map(function(e){return e.replace("$","\\$")})).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(e)}function bp(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}function vp(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}function yp(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}function Ep(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}function Cp(e){!function(e){var t=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};function r(e){return"string"==typeof e?e:Array.isArray(e)?e.map(r).join(""):r(e.content)}e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",function(e){e.tokens.forEach(function(e){if("string"!=typeof e&&"generic-text"===e.type){var t=r(e);(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],a="[]{}".indexOf(r);if(-1!==a)if(a%2==0)t.push(a+1);else if(t.pop()!==a)return!1}return 0===t.length})(t)||(e.type="bad-line",e.content=t)}})})}(e)}function Sp(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}function wp(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}function kp(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}function xp(e){!function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(e)}function Tp(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}function Ap(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}function Rp(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}function Ip(e){e.register(_l),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}function Op(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}function Np(e){!function(e){var t=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;e.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:t}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:t}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}}(e)}function Mp(e){e.register(_l),function(e){e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}(e)}function Dp(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}function Lp(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}function Pp(e){var t;e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"],t=t.map(function(e){return e.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}function jp(e){e.register(Xc),function(e){var t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}(e)}function Up(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}function Fp(e){!function(e){var t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return t}),r=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,t){return e[t]=r[t],e},{});r["class-name"].forEach(function(e){e.inside=a})}(e)}function Bp(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}function Gp(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}function Vp(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}function Hp(e){!function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(e)}function zp(e){e.register(Od),e.register(Id),function(e){var t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}(e)}function Yp(e){e.register(Id),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}function qp(e){!function(e){var t=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,r=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+r+"-+|\\.+"+r+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,i=/[[?]?[ox]?/.source+"(?:"+a+o+"|"+/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source+a+"(?:"+o+")?)"+/[ox]?[\]?]?/.source;e.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:t}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+i+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:t,punctuation:/[:,;()[\]{}]|\.{3}/},e.languages["plant-uml"].arrow.inside.expression.inside=e.languages["plant-uml"],e.languages.plantuml=e.languages["plant-uml"]}(e)}function Kp(e){e.register(pl),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}function Wp(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}function Jp(e){!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(e)}function Zp(e){e.register(tl),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}function $p(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}function Qp(e){!function(e){var t=["on","ignoring","group_right","group_left","by","without"],n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t,["offset"]);e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}(e)}function Xp(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}function eh(e){e.register(tl),function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}function th(e){!function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(e)}function nh(e){e.register(yu),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}function rh(e){e.register(rl),e.register(Xc),function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},a=0,o=n.length;a<o;a++){var i=n[a];i="string"==typeof i?{filter:i,language:i}:i,e.languages[i.language]&&(r["filter-"+i.filter]={pattern:RegExp(t.replace("<filter_name>",function(){return i.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[i.language,"language-"+i.language],inside:e.languages[i.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}function ah(e){!function(e){e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}(e)}function oh(e){!function(e){e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var t=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(n){var r=n;if("string"!=typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var a={};a["inline-lang-"+r]={pattern:RegExp(t.replace("<lang>",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},a["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",a)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}(e)}function ih(e){e.register(tl),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}function sh(e){e.register(ud),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}function ch(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}function lh(e){e.register(tl),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}var r=RegExp("\\b(?:"+"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within".trim().replace(/ /g,"|")+")\\b"),a=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[/\b[A-Za-z_]\w*\b/.source]),o={keyword:r,punctuation:/[<>()?,.:[\]]/},i=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[i]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[a]),lookbehind:!0,inside:o},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[a]),lookbehind:!0,inside:o}],keyword:r,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var s=function(e){for(var t=0;t<2;t++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[i]));e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[s]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[s]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}function uh(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}function dh(e){e.register(rl),function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return t}).replace(/<comment>/g,function(){return n}),a=0;a<2;a++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}function ph(e){e.register(tl),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}function hh(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}function mh(e){e.register(ep),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}function gh(e){e.register(Tl),e.register(Xc),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var a=0;a<r;a++)e=e.replace(/<self>/g,function(){return"(?:"+e+")"});return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+t+")")}var a=r(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=r(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),i=r(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),s=r(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+s+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,l="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+"|[\"'][^\"'@]*(?:(?:"+/@(?![\w()])/.source+"|"+c+")[^\"'@]*)+[\"'])",u=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,l),d=/(?!\d)[^\s>\/=$<%]+/.source+u+/\s*\/?>/.source,p=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+u+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+d+"|"+r(/<\1/.source+u+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+d+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+d+")";e.languages.cshtml=e.languages.extend("markup",{});var h={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(p),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})},m={pattern:RegExp(/(^|[^@])/.source+c),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:h}};e.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+d),e.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+l),e.languages.insertBefore("inside","punctuation",{value:m},e.languages.cshtml.tag.inside["attr-value"]),e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[i,/(?:code|functions)\s*/.source+i,/(?:for|foreach|lock|switch|using|while)\s*/.source+a+/\s*/.source+i,/do\s*/.source+i+/\s*while\s*/.source+a+/(?:\s*;)?/.source,/try\s*/.source+i+/\s*catch\s*/.source+a+/\s*/.source+i+/\s*finally\s*/.source+i,/if\s*/.source+a+/\s*/.source+i+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+a+")?"+/\s*/.source+i+")*",/helper\s+\w+\s*/.source+a+/\s*/.source+i].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:h}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:h}},value:m,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}function fh(e){e.register(rl),e.register(Xc),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return a}),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var c=i(a);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=i(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=i(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(e)}function _h(e){e.register(fh),e.register(Fd),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}function bh(e){e.register(tl),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}function vh(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}function yh(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}function Eh(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}function Ch(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}function Sh(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}function wh(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}function kh(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var a={"section-header":{pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"}};for(var o in r)a[o]=r[o];return a.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},a.variable=n,a.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return e}),"im"),alias:"section",inside:a}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},i={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:r("Variables"),"test-cases":r("Test Cases",{"test-name":o,documentation:a,property:i}),keywords:r("Keywords",{"keyword-name":o,documentation:a,property:i}),tasks:r("Tasks",{"task-name":o,documentation:a,property:i}),comment:t},e.languages.robot=e.languages.robotframework}(e)}function xh(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}function Th(e){!function(e){var t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},i={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(t),greedy:!0},l=/[$%@.(){}\[\];,\\]/,u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},d={function:u,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},h={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},m={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},f=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return f}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return f}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:l,string:c}},b={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":m,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:b,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:b,"submit-statement":g,"global-statements":m,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:i,keyword:b,function:u,format:p,altformat:h,"global-statements":m,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:l}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":_,comment:s,function:u,format:p,altformat:h,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:c,step:i,keyword:b,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:l}}(e)}function Ah(e){e.register(el),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}function Rh(e){e.register(Cl),function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return t}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(e)}function Ih(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}function Oh(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}function Nh(e){e.register(yu),function(e){e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty;var t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return t.source}),"g");e.hooks.add("before-tokenize",function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")})}(e)}function Mh(e){!function(e){var t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return t.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}(e)}function Dh(e){e.register(tl),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}function Lh(e){!function(e){var t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}(e)}function Ph(e){e.register(yu),function(e){var t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")})}(e)}function jh(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}function Uh(e){e.register(jh),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}function Fh(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}function Bh(e){e.register(tl),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}function Gh(e){e.register(tl),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}function Vh(e){!function(e){var t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}(e)}function Hh(e){e.register(Rd),e.register(up),e.register(ch),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}function zh(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}function Yh(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}function qh(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}function Kh(e){!function(e){var t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(e)}function Wh(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,a),"class-feature":t("\\+",r,a),standard:t("",r,a)}}}}})}(e)}function Jh(e){e.register(Tl),e.register(Wh),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}function Zh(e){e.register(Pl),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}function $h(e){e.register(Wh),e.register(Zh),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}function Qh(e){e.register(Sl),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}function Xh(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}function em(e){e.register(tl),e.register(yu),function(e){e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}(e)}function tm(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}function nm(e){!function(e){e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}(e)}function rm(e){!function(e){var t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}(e)}function am(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}function om(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}function im(e){e.register(tl),function(e){var t={pattern:/[\s\S]+/,inside:null};e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}(e)}function sm(e){e.register(tl),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}function cm(e){e.register(Xc),function(e){e.languages.velocity=e.languages.extend("markup",{});var t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};t.variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}(e)}function lm(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}function um(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}function dm(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}function pm(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}function hm(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}function mm(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}function gm(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var a in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==a&&(r[a]=e.languages["web-idl"][a]);e.languages.webidl=e.languages["web-idl"]}(e)}function fm(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}function _m(e){e.register(Xc),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}function bm(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}function vm(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}function ym(e){e.register(Xc),function(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}(e)}function Em(e){e.register(Xc),function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",a)}(e)}function Cm(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}function Sm(e){e.register(Xc),function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var a=[],o=0;o<r.length;o++){var i=r[o],s=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?a.length>0&&a[a.length-1].tagName===t(i.content[0].content[1])&&a.pop():"/>"===i.content[i.content.length-1].content||a.push({tagName:t(i.content[0].content[1]),openedBraces:0}):!(a.length>0&&"punctuation"===i.type&&"{"===i.content)||r[o+1]&&"punctuation"===r[o+1].type&&"{"===r[o+1].content||r[o-1]&&"plain-text"===r[o-1].type&&"{"===r[o-1].content?a.length>0&&a[a.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?a[a.length-1].openedBraces--:"comment"!==i.type&&(s=!0):a[a.length-1].openedBraces++),(s||"string"==typeof i)&&a.length>0&&0===a[a.length-1].openedBraces){var c=t(i);o<r.length-1&&("string"==typeof r[o+1]||"plain-text"===r[o+1].type)&&(c+=t(r[o+1]),r.splice(o+1,1)),o>0&&("string"==typeof r[o-1]||"plain-text"===r[o-1].type)&&(c=t(r[o-1])+c,r.splice(o-1,1),o--),/^\s+$/.test(c)?r[o]=c:r[o]=new e.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&n(i.content)}};e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}(e)}function wm(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}function km(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,t(a))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,t(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,t(o)).replace(/<ALIGN>/g,t(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,t(o)).replace(/<ALIGN>/g,t(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(t){null===t.inside&&(t.inside=e.languages.zig)})}(e)}Qc.highlight=function(e,t){if("string"!=typeof e)throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&"object"==typeof t)n=t;else{if(r=t,"string"!=typeof r)throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(!Object.hasOwn(Qc.languages,r))throw new Error("Unknown language: `"+r+"` is not registered");n=Qc.languages[r]}return{type:"root",children:Zc.highlight.call(Qc,e,n,r)}},Qc.register=function(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Qc.languages,e.displayName)||e(Qc)},Qc.alias=function(e,t){const n=Qc.languages;let r,a={};for(r in"string"==typeof e?t&&(a[e]=t):a=e,a)if(Object.hasOwn(a,r)){const e=a[r],t="string"==typeof e?[e]:e;let o=-1;for(;++o<t.length;)n[t[o]]=n[r]}},Qc.registered=function(e){if("string"!=typeof e)throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Qc.languages,e)},Qc.listLanguages=function(){const e=Qc.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&"object"==typeof e[n]&&t.push(n);return t},Qc.util.encode=function(e){return e},Qc.Token.stringify=function e(t,n){if("string"==typeof t)return{type:"text",value:t};if(Array.isArray(t)){const r=[];let a=-1;for(;++a<t.length;)null!==t[a]&&void 0!==t[a]&&""!==t[a]&&r.push(e(t[a],n));return r}const r={attributes:{},classes:["token",t.type],content:e(t.content,n),language:n,tag:"span",type:t.type};return t.alias&&r.classes.push(..."string"==typeof t.alias?[t.alias]:t.alias),Qc.hooks.run("wrap",r),Oc(r.tag+"."+r.classes.join("."),function(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Uc(e[t]));return e}(r.attributes),r.content)},Xc.displayName="markup",Xc.aliases=["atom","html","mathml","rss","ssml","svg","xml"],el.displayName="css",el.aliases=[],tl.displayName="clike",tl.aliases=[],nl.displayName="regex",nl.aliases=[],rl.displayName="javascript",rl.aliases=["js"],al.displayName="abap",al.aliases=[],ol.displayName="abnf",ol.aliases=[],il.displayName="actionscript",il.aliases=[],sl.displayName="ada",sl.aliases=[],cl.displayName="agda",cl.aliases=[],ll.displayName="al",ll.aliases=[],ul.displayName="antlr4",ul.aliases=["g4"],dl.displayName="apacheconf",dl.aliases=[],pl.displayName="sql",pl.aliases=[],hl.displayName="apex",hl.aliases=[],ml.displayName="apl",ml.aliases=[],gl.displayName="applescript",gl.aliases=[],fl.displayName="aql",fl.aliases=[],_l.displayName="c",_l.aliases=[],bl.displayName="cpp",bl.aliases=[],vl.displayName="arduino",vl.aliases=["ino"],yl.displayName="arff",yl.aliases=[],El.displayName="armasm",El.aliases=["arm-asm"],Cl.displayName="bash",Cl.aliases=["sh","shell"],Sl.displayName="yaml",Sl.aliases=["yml"],wl.displayName="markdown",wl.aliases=["md"],kl.displayName="arturo",kl.aliases=["art"],xl.displayName="asciidoc",xl.aliases=["adoc"],Tl.displayName="csharp",Tl.aliases=["cs","dotnet"],Al.displayName="aspnet",Al.aliases=[],Rl.displayName="asm6502",Rl.aliases=[],Il.displayName="asmatmel",Il.aliases=[],Ol.displayName="autohotkey",Ol.aliases=[],Nl.displayName="autoit",Nl.aliases=[],Ml.displayName="avisynth",Ml.aliases=["avs"],Dl.displayName="avro-idl",Dl.aliases=["avdl"],Ll.displayName="awk",Ll.aliases=["gawk"],Pl.displayName="basic",Pl.aliases=[],jl.displayName="batch",jl.aliases=[],Ul.displayName="bbcode",Ul.aliases=["shortcode"],Fl.displayName="bbj",Fl.aliases=[],Bl.displayName="bicep",Bl.aliases=[],Gl.displayName="birb",Gl.aliases=[],Vl.displayName="bison",Vl.aliases=[],Hl.displayName="bnf",Hl.aliases=["rbnf"],zl.displayName="bqn",zl.aliases=[],Yl.displayName="brainfuck",Yl.aliases=[],ql.displayName="brightscript",ql.aliases=[],Kl.displayName="bro",Kl.aliases=[],Wl.displayName="bsl",Wl.aliases=["oscript"],Jl.displayName="cfscript",Jl.aliases=["cfc"],Zl.displayName="chaiscript",Zl.aliases=[],$l.displayName="cil",$l.aliases=[],Ql.displayName="cilkc",Ql.aliases=["cilk-c"],Xl.displayName="cilkcpp",Xl.aliases=["cilk","cilk-cpp"],eu.displayName="clojure",eu.aliases=[],tu.displayName="cmake",tu.aliases=[],nu.displayName="cobol",nu.aliases=[],ru.displayName="coffeescript",ru.aliases=["coffee"],au.displayName="concurnas",au.aliases=["conc"],ou.displayName="csp",ou.aliases=[],iu.displayName="cooklang",iu.aliases=[],su.displayName="coq",su.aliases=[],cu.displayName="ruby",cu.aliases=["rb"],lu.displayName="crystal",lu.aliases=[],uu.displayName="css-extras",uu.aliases=[],du.displayName="csv",du.aliases=[],pu.displayName="cue",pu.aliases=[],hu.displayName="cypher",hu.aliases=[],mu.displayName="d",mu.aliases=[],gu.displayName="dart",gu.aliases=[],fu.displayName="dataweave",fu.aliases=[],_u.displayName="dax",_u.aliases=[],bu.displayName="dhall",bu.aliases=[],vu.displayName="diff",vu.aliases=[],yu.displayName="markup-templating",yu.aliases=[],Eu.displayName="django",Eu.aliases=["jinja2"],Cu.displayName="dns-zone-file",Cu.aliases=["dns-zone"],Su.displayName="docker",Su.aliases=["dockerfile"],wu.displayName="dot",wu.aliases=["gv"],ku.displayName="ebnf",ku.aliases=[],xu.displayName="editorconfig",xu.aliases=[],Tu.displayName="eiffel",Tu.aliases=[],Au.displayName="ejs",Au.aliases=["eta"],Ru.displayName="elixir",Ru.aliases=[],Iu.displayName="elm",Iu.aliases=[],Ou.displayName="lua",Ou.aliases=[],Nu.displayName="etlua",Nu.aliases=[],Mu.displayName="erb",Mu.aliases=[],Du.displayName="erlang",Du.aliases=[],Lu.displayName="excel-formula",Lu.aliases=["xls","xlsx"],Pu.displayName="fsharp",Pu.aliases=[],ju.displayName="factor",ju.aliases=[],Uu.displayName="false",Uu.aliases=[],Fu.displayName="firestore-security-rules",Fu.aliases=[],Bu.displayName="flow",Bu.aliases=[],Gu.displayName="fortran",Gu.aliases=[],Vu.displayName="ftl",Vu.aliases=[],Hu.displayName="gml",Hu.aliases=["gamemakerlanguage"],zu.displayName="gap",zu.aliases=[],Yu.displayName="gcode",Yu.aliases=[],qu.displayName="gdscript",qu.aliases=[],Ku.displayName="gedcom",Ku.aliases=[],Wu.displayName="gettext",Wu.aliases=["po"],Ju.displayName="gherkin",Ju.aliases=[],Zu.displayName="git",Zu.aliases=[],$u.displayName="glsl",$u.aliases=[],Qu.displayName="gn",Qu.aliases=["gni"],Xu.displayName="linker-script",Xu.aliases=["ld"],ed.displayName="go",ed.aliases=[],td.displayName="go-module",td.aliases=["go-mod"],nd.displayName="gradle",nd.aliases=[],rd.displayName="graphql",rd.aliases=[],ad.displayName="groovy",ad.aliases=[],od.displayName="less",od.aliases=[],id.displayName="scss",id.aliases=[],sd.displayName="textile",sd.aliases=[],cd.displayName="haml",cd.aliases=[],ld.displayName="handlebars",ld.aliases=["hbs","mustache"],ud.displayName="haskell",ud.aliases=["hs"],dd.displayName="haxe",dd.aliases=[],pd.displayName="hcl",pd.aliases=[],hd.displayName="hlsl",hd.aliases=[],md.displayName="hoon",md.aliases=[],gd.displayName="hpkp",gd.aliases=[],fd.displayName="hsts",fd.aliases=[],_d.displayName="json",_d.aliases=["webmanifest"],bd.displayName="uri",bd.aliases=["url"],vd.displayName="http",vd.aliases=[],yd.displayName="ichigojam",yd.aliases=[],Ed.displayName="icon",Ed.aliases=[],Cd.displayName="icu-message-format",Cd.aliases=[],Sd.displayName="idris",Sd.aliases=["idr"],wd.displayName="ignore",wd.aliases=["gitignore","hgignore","npmignore"],kd.displayName="inform7",kd.aliases=[],xd.displayName="ini",xd.aliases=[],Td.displayName="io",Td.aliases=[],Ad.displayName="j",Ad.aliases=[],Rd.displayName="java",Rd.aliases=[],Id.displayName="php",Id.aliases=[],Od.displayName="javadoclike",Od.aliases=[],Nd.displayName="scala",Nd.aliases=[],Md.displayName="javadoc",Md.aliases=[],Dd.displayName="javastacktrace",Dd.aliases=[],Ld.displayName="jexl",Ld.aliases=[],Pd.displayName="jolie",Pd.aliases=[],jd.displayName="jq",jd.aliases=[],Ud.displayName="js-templates",Ud.aliases=[],Fd.displayName="typescript",Fd.aliases=["ts"],Bd.displayName="jsdoc",Bd.aliases=[],Gd.displayName="n4js",Gd.aliases=["n4jsd"],Vd.displayName="js-extras",Vd.aliases=[],Hd.displayName="json5",Hd.aliases=[],zd.displayName="jsonp",zd.aliases=[],Yd.displayName="jsstacktrace",Yd.aliases=[],qd.displayName="julia",qd.aliases=[],Kd.displayName="keepalived",Kd.aliases=[],Wd.displayName="keyman",Wd.aliases=[],Jd.displayName="kotlin",Jd.aliases=["kt","kts"],Zd.displayName="kumir",Zd.aliases=["kum"],$d.displayName="kusto",$d.aliases=[],Qd.displayName="latex",Qd.aliases=["context","tex"],Xd.displayName="latte",Xd.aliases=[],ep.displayName="scheme",ep.aliases=[],tp.displayName="lilypond",tp.aliases=["ly"],np.displayName="liquid",np.aliases=[],rp.displayName="lisp",rp.aliases=["elisp","emacs","emacs-lisp"],ap.displayName="livescript",ap.aliases=[],op.displayName="llvm",op.aliases=[],ip.displayName="log",ip.aliases=[],sp.displayName="lolcode",sp.aliases=[],cp.displayName="magma",cp.aliases=[],lp.displayName="makefile",lp.aliases=[],up.displayName="mata",up.aliases=[],dp.displayName="matlab",dp.aliases=[],pp.displayName="maxscript",pp.aliases=[],hp.displayName="mel",hp.aliases=[],mp.displayName="mermaid",mp.aliases=[],gp.displayName="metafont",gp.aliases=[],fp.displayName="mizar",fp.aliases=[],_p.displayName="mongodb",_p.aliases=[],bp.displayName="monkey",bp.aliases=[],vp.displayName="moonscript",vp.aliases=["moon"],yp.displayName="n1ql",yp.aliases=[],Ep.displayName="nand2tetris-hdl",Ep.aliases=[],Cp.displayName="naniscript",Cp.aliases=["nani"],Sp.displayName="nasm",Sp.aliases=[],wp.displayName="neon",wp.aliases=[],kp.displayName="nevod",kp.aliases=[],xp.displayName="nginx",xp.aliases=[],Tp.displayName="nim",Tp.aliases=[],Ap.displayName="nix",Ap.aliases=[],Rp.displayName="nsis",Rp.aliases=[],Ip.displayName="objectivec",Ip.aliases=["objc"],Op.displayName="ocaml",Op.aliases=[],Np.displayName="odin",Np.aliases=[],Mp.displayName="opencl",Mp.aliases=[],Dp.displayName="openqasm",Dp.aliases=["qasm"],Lp.displayName="oz",Lp.aliases=[],Pp.displayName="parigp",Pp.aliases=[],jp.displayName="parser",jp.aliases=[],Up.displayName="pascal",Up.aliases=["objectpascal"],Fp.displayName="pascaligo",Fp.aliases=[],Bp.displayName="psl",Bp.aliases=[],Gp.displayName="pcaxis",Gp.aliases=["px"],Vp.displayName="peoplecode",Vp.aliases=["pcode"],Hp.displayName="perl",Hp.aliases=[],zp.displayName="phpdoc",zp.aliases=[],Yp.displayName="php-extras",Yp.aliases=[],qp.displayName="plant-uml",qp.aliases=["plantuml"],Kp.displayName="plsql",Kp.aliases=[],Wp.displayName="powerquery",Wp.aliases=["mscript","pq"],Jp.displayName="powershell",Jp.aliases=[],Zp.displayName="processing",Zp.aliases=[],$p.displayName="prolog",$p.aliases=[],Qp.displayName="promql",Qp.aliases=[],Xp.displayName="properties",Xp.aliases=[],eh.displayName="protobuf",eh.aliases=[],th.displayName="stylus",th.aliases=[],nh.displayName="twig",nh.aliases=[],rh.displayName="pug",rh.aliases=[],ah.displayName="puppet",ah.aliases=[],oh.displayName="pure",oh.aliases=[],ih.displayName="purebasic",ih.aliases=["pbfasm"],sh.displayName="purescript",sh.aliases=["purs"],ch.displayName="python",ch.aliases=["py"],lh.displayName="qsharp",lh.aliases=["qs"],uh.displayName="q",uh.aliases=[],dh.displayName="qml",dh.aliases=[],ph.displayName="qore",ph.aliases=[],hh.displayName="r",hh.aliases=[],mh.displayName="racket",mh.aliases=["rkt"],gh.displayName="cshtml",gh.aliases=["razor"],fh.displayName="jsx",fh.aliases=[],_h.displayName="tsx",_h.aliases=[],bh.displayName="reason",bh.aliases=[],vh.displayName="rego",vh.aliases=[],yh.displayName="renpy",yh.aliases=["rpy"],Eh.displayName="rescript",Eh.aliases=["res"],Ch.displayName="rest",Ch.aliases=[],Sh.displayName="rip",Sh.aliases=[],wh.displayName="roboconf",wh.aliases=[],kh.displayName="robotframework",kh.aliases=["robot"],xh.displayName="rust",xh.aliases=[],Th.displayName="sas",Th.aliases=[],Ah.displayName="sass",Ah.aliases=[],Rh.displayName="shell-session",Rh.aliases=["sh-session","shellsession"],Ih.displayName="smali",Ih.aliases=[],Oh.displayName="smalltalk",Oh.aliases=[],Nh.displayName="smarty",Nh.aliases=[],Mh.displayName="sml",Mh.aliases=["smlnj"],Dh.displayName="solidity",Dh.aliases=["sol"],Lh.displayName="solution-file",Lh.aliases=["sln"],Ph.displayName="soy",Ph.aliases=[],jh.displayName="turtle",jh.aliases=["trig"],Uh.displayName="sparql",Uh.aliases=["rq"],Fh.displayName="splunk-spl",Fh.aliases=[],Bh.displayName="sqf",Bh.aliases=[],Gh.displayName="squirrel",Gh.aliases=[],Vh.displayName="stan",Vh.aliases=[],Hh.displayName="stata",Hh.aliases=[],zh.displayName="iecst",zh.aliases=[],Yh.displayName="supercollider",Yh.aliases=["sclang"],qh.displayName="swift",qh.aliases=[],Kh.displayName="systemd",Kh.aliases=[],Wh.displayName="t4-templating",Wh.aliases=[],Jh.displayName="t4-cs",Jh.aliases=["t4"],Zh.displayName="vbnet",Zh.aliases=[],$h.displayName="t4-vb",$h.aliases=[],Qh.displayName="tap",Qh.aliases=[],Xh.displayName="tcl",Xh.aliases=[],em.displayName="tt2",em.aliases=[],tm.displayName="toml",tm.aliases=[],nm.displayName="tremor",nm.aliases=["trickle","troy"],rm.displayName="typoscript",rm.aliases=["tsconfig"],am.displayName="unrealscript",am.aliases=["uc","uscript"],om.displayName="uorazor",om.aliases=[],im.displayName="v",im.aliases=[],sm.displayName="vala",sm.aliases=[],cm.displayName="velocity",cm.aliases=[],lm.displayName="verilog",lm.aliases=[],um.displayName="vhdl",um.aliases=[],dm.displayName="vim",dm.aliases=[],pm.displayName="visual-basic",pm.aliases=["vb","vba"],hm.displayName="warpscript",hm.aliases=[],mm.displayName="wasm",mm.aliases=[],gm.displayName="web-idl",gm.aliases=["webidl"],fm.displayName="wgsl",fm.aliases=[],_m.displayName="wiki",_m.aliases=[],bm.displayName="wolfram",bm.aliases=["mathematica","nb","wl"],vm.displayName="wren",vm.aliases=[],ym.displayName="xeora",ym.aliases=["xeoracube"],Em.displayName="xml-doc",Em.aliases=[],Cm.displayName="xojo",Cm.aliases=[],Sm.displayName="xquery",Sm.aliases=[],wm.displayName="yang",wm.aliases=[],km.displayName="zig",km.aliases=[],Qc.register(Xc),Qc.register(el),Qc.register(tl),Qc.register(nl),Qc.register(rl),Qc.register(al),Qc.register(ol),Qc.register(il),Qc.register(sl),Qc.register(cl),Qc.register(ll),Qc.register(ul),Qc.register(dl),Qc.register(pl),Qc.register(hl),Qc.register(ml),Qc.register(gl),Qc.register(fl),Qc.register(_l),Qc.register(bl),Qc.register(vl),Qc.register(yl),Qc.register(El),Qc.register(Cl),Qc.register(Sl),Qc.register(wl),Qc.register(kl),Qc.register(xl),Qc.register(Tl),Qc.register(Al),Qc.register(Rl),Qc.register(Il),Qc.register(Ol),Qc.register(Nl),Qc.register(Ml),Qc.register(Dl),Qc.register(Ll),Qc.register(Pl),Qc.register(jl),Qc.register(Ul),Qc.register(Fl),Qc.register(Bl),Qc.register(Gl),Qc.register(Vl),Qc.register(Hl),Qc.register(zl),Qc.register(Yl),Qc.register(ql),Qc.register(Kl),Qc.register(Wl),Qc.register(Jl),Qc.register(Zl),Qc.register($l),Qc.register(Ql),Qc.register(Xl),Qc.register(eu),Qc.register(tu),Qc.register(nu),Qc.register(ru),Qc.register(au),Qc.register(ou),Qc.register(iu),Qc.register(su),Qc.register(cu),Qc.register(lu),Qc.register(uu),Qc.register(du),Qc.register(pu),Qc.register(hu),Qc.register(mu),Qc.register(gu),Qc.register(fu),Qc.register(_u),Qc.register(bu),Qc.register(vu),Qc.register(yu),Qc.register(Eu),Qc.register(Cu),Qc.register(Su),Qc.register(wu),Qc.register(ku),Qc.register(xu),Qc.register(Tu),Qc.register(Au),Qc.register(Ru),Qc.register(Iu),Qc.register(Ou),Qc.register(Nu),Qc.register(Mu),Qc.register(Du),Qc.register(Lu),Qc.register(Pu),Qc.register(ju),Qc.register(Uu),Qc.register(Fu),Qc.register(Bu),Qc.register(Gu),Qc.register(Vu),Qc.register(Hu),Qc.register(zu),Qc.register(Yu),Qc.register(qu),Qc.register(Ku),Qc.register(Wu),Qc.register(Ju),Qc.register(Zu),Qc.register($u),Qc.register(Qu),Qc.register(Xu),Qc.register(ed),Qc.register(td),Qc.register(nd),Qc.register(rd),Qc.register(ad),Qc.register(od),Qc.register(id),Qc.register(sd),Qc.register(cd),Qc.register(ld),Qc.register(ud),Qc.register(dd),Qc.register(pd),Qc.register(hd),Qc.register(md),Qc.register(gd),Qc.register(fd),Qc.register(_d),Qc.register(bd),Qc.register(vd),Qc.register(yd),Qc.register(Ed),Qc.register(Cd),Qc.register(Sd),Qc.register(wd),Qc.register(kd),Qc.register(xd),Qc.register(Td),Qc.register(Ad),Qc.register(Rd),Qc.register(Id),Qc.register(Od),Qc.register(Nd),Qc.register(Md),Qc.register(Dd),Qc.register(Ld),Qc.register(Pd),Qc.register(jd),Qc.register(Ud),Qc.register(Fd),Qc.register(Bd),Qc.register(Gd),Qc.register(Vd),Qc.register(Hd),Qc.register(zd),Qc.register(Yd),Qc.register(qd),Qc.register(Kd),Qc.register(Wd),Qc.register(Jd),Qc.register(Zd),Qc.register($d),Qc.register(Qd),Qc.register(Xd),Qc.register(ep),Qc.register(tp),Qc.register(np),Qc.register(rp),Qc.register(ap),Qc.register(op),Qc.register(ip),Qc.register(sp),Qc.register(cp),Qc.register(lp),Qc.register(up),Qc.register(dp),Qc.register(pp),Qc.register(hp),Qc.register(mp),Qc.register(gp),Qc.register(fp),Qc.register(_p),Qc.register(bp),Qc.register(vp),Qc.register(yp),Qc.register(Ep),Qc.register(Cp),Qc.register(Sp),Qc.register(wp),Qc.register(kp),Qc.register(xp),Qc.register(Tp),Qc.register(Ap),Qc.register(Rp),Qc.register(Ip),Qc.register(Op),Qc.register(Np),Qc.register(Mp),Qc.register(Dp),Qc.register(Lp),Qc.register(Pp),Qc.register(jp),Qc.register(Up),Qc.register(Fp),Qc.register(Bp),Qc.register(Gp),Qc.register(Vp);Qc.register(Hp),Qc.register(zp),Qc.register(Yp),Qc.register(qp),Qc.register(Kp),Qc.register(Wp),Qc.register(Jp),Qc.register(Zp),Qc.register($p),Qc.register(Qp),Qc.register(Xp),Qc.register(eh),Qc.register(th),Qc.register(nh),Qc.register(rh),Qc.register(ah),Qc.register(oh),Qc.register(ih),Qc.register(sh),Qc.register(ch),Qc.register(lh),Qc.register(uh),Qc.register(dh),Qc.register(ph),Qc.register(hh),Qc.register(mh),Qc.register(gh),Qc.register(fh),Qc.register(_h),Qc.register(bh),Qc.register(vh),Qc.register(yh),Qc.register(Eh),Qc.register(Ch),Qc.register(Sh),Qc.register(wh),Qc.register(kh),Qc.register(xh),Qc.register(Th),Qc.register(Ah),Qc.register(Rh),Qc.register(Ih),Qc.register(Oh),Qc.register(Nh),Qc.register(Mh),Qc.register(Dh),Qc.register(Lh),Qc.register(Ph),Qc.register(jh),Qc.register(Uh),Qc.register(Fh),Qc.register(Bh),Qc.register(Gh),Qc.register(Vh),Qc.register(Hh),Qc.register(zh),Qc.register(Yh),Qc.register(qh),Qc.register(Kh),Qc.register(Wh),Qc.register(Jh),Qc.register(Zh),Qc.register($h),Qc.register(Qh),Qc.register(Xh),Qc.register(em),Qc.register(tm),Qc.register(nm),Qc.register(rm),Qc.register(am),Qc.register(om),Qc.register(im),Qc.register(sm),Qc.register(cm),Qc.register(lm),Qc.register(um),Qc.register(dm),Qc.register(pm),Qc.register(hm),Qc.register(mm),Qc.register(gm),Qc.register(fm),Qc.register(_m),Qc.register(bm),Qc.register(vm),Qc.register(ym),Qc.register(Em),Qc.register(Cm),Qc.register(Sm),Qc.register(wm),Qc.register(km);var xm=function(e,t){return function(n){var r,o,i=n.language,s=n.children,c=n.style,l=void 0===c?t:c,u=n.customStyle,d=void 0===u?{}:u,p=n.codeTagProps,h=void 0===p?{className:i?"language-".concat(i):void 0,style:fc(fc({},l['code[class*="language-"]']),l['code[class*="language-'.concat(i,'"]')])}:p,m=n.useInlineStyles,g=void 0===m||m,f=n.showLineNumbers,_=void 0!==f&&f,b=n.showInlineLineNumbers,v=void 0===b||b,y=n.startingLineNumber,E=void 0===y?1:y,C=n.lineNumberContainerStyle,S=n.lineNumberStyle,w=void 0===S?{}:S,k=n.wrapLines,x=n.wrapLongLines,T=void 0!==x&&x,A=n.lineProps,R=void 0===A?{}:A,I=n.renderer,O=n.PreTag,N=void 0===O?"pre":O,M=n.CodeTag,D=void 0===M?"code":M,L=n.code,P=void 0===L?(Array.isArray(s)?s[0]:s)||"":L,j=n.astGenerator,U=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,mc);j=j||e;var F=_?a.createElement(bc,{containerStyle:C,codeStyle:h.style||{},numberStyle:w,startingLineNumber:E,codeString:P}):null,B=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},G=kc(j)?"hljs":"prismjs",V=g?Object.assign({},U,{style:Object.assign({},B,d)}):Object.assign({},U,{className:U.className?"".concat(G," ").concat(U.className):G,style:Object.assign({},d)});if(h.style=fc(T?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},h.style),!j)return a.createElement(N,V,F,a.createElement(D,h,P));(void 0===k&&I||T)&&(k=!0),I=I||wc;var H=[{type:"text",value:P}],z=function(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(kc(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:a,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:a}}catch(e){return{value:a}}}({astGenerator:j,language:i,code:P,defaultCodeValue:H});null===z.language&&(z.value=H);var Y=Sc(z,k,R,_,v,E,E+(null!==(r=null===(o=P.match(/\n/g))||void 0===o?void 0:o.length)&&void 0!==r?r:0),w,T);return a.createElement(N,V,a.createElement(D,h,!v&&F,I({rows:Y,stylesheet:l,useInlineStyles:g})))}}(Qc,{'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}});xm.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Tm=xm,Am={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},Rm={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}};function Im(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function Om(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Nm(e){return"function"==typeof e?e:function(){return e}}const Mm="phrasing",Dm=["autolink","link","image","label"];function Lm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Pm(e){this.config.enter.autolinkProtocol.call(this,e)}function jm(e){this.config.exit.autolinkProtocol.call(this,e)}function Um(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Fm(e){this.config.exit.autolinkEmail.call(this,e)}function Bm(e){this.exit(e)}function Gm(e){!function(e,t){const n=os(({ignore:["link","linkReference"]}||{}).ignore||[]),r=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Om(e[0]),Nm(e[1])])}return t}(t);let a=-1;for(;++a<r.length;)us(e,"text",o);function o(e,t){let o,i=-1;for(;++i<t.length;){const e=t[i],r=o?o.children:void 0;if(n(e,r?r.indexOf(e):void 0,o))return;o=e}if(o)return function(e,t){const n=t[t.length-1],o=r[a][0],i=r[a][1];let s=0;const c=n.children.indexOf(e);let l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){const n=d.index,r={index:d.index,input:d.input,stack:[...t,e]};let a=i(...d,r);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?o.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!o.global)break;d=o.exec(e.value)}return l?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Vm],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Hm]])}function Vm(e,t,n,r,a){let o="";if(!zm(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Im(e,"(");let o=Im(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function Hm(e,t,n,r){return!(!zm(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zm(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||bo(n)||_o(n))&&(!t||47!==n)}function Ym(){this.buffer()}function qm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Km(){this.buffer()}function Wm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Jm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=oo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Zm(e){this.exit(e)}function $m(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=oo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qm(e){this.exit(e)}function Xm(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function eg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),c=r.enter("label");return i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),c(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?ng:tg))),s(),i},footnoteReference:Xm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function tg(e,t,n){return 0===t?e:ng(e,0,n)}function ng(e,t,n){return(n?"":"    ")+e}Xm.peek=function(){return"["};const rg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ag(e){this.enter({type:"delete",children:[]},e)}function og(e){this.exit(e)}function ig(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function sg(e){return e.length}function cg(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function lg(e,t,n){return">"+(n?"":" ")+e}function ug(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function dg(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&ug(o=n.stack,(i=n.unsafe[a]).inConstruct,!0)&&!ug(o,i.notInConstruct,!1))return/[ \t]/.test(r.before)?"":" ";var o,i;return"\\\n"}function pg(e,t,n){return(n?"":"    ")+e}function hg(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function mg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gg(e,t,n){const r=ko(e),a=ko(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function fg(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let c=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const l=c.charCodeAt(0),u=gg(r.before.charCodeAt(r.before.length-1),l,a);u.inside&&(c=mg(l)+c.slice(1));const d=c.charCodeAt(c.length-1),p=gg(r.after.charCodeAt(0),d,a);p.inside&&(c=c.slice(0,-1)+mg(d));const h=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+c+h}function _g(e){return e.value||""}function bg(e,t,n,r){const a=hg(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${o}`),l+=c.move(" "+a),l+=c.move(n.safe(e.title,{before:l,after:a,...c.current()})),l+=c.move(a),s()),l+=c.move(")"),i(),l}function vg(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&l&&l===d?"shortcut"===a?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(d+"]"),c}function yg(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Eg(e,t){const n=qa(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Cg(e,t,n,r){const a=hg(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,c;if(Eg(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),c=n.enter("label");let l=i.move("[");return l+=i.move(n.containerPhrasing(e,{before:l,after:"](",...i.current()})),l+=i.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=i.move("<"),l+=i.move(n.safe(e.url,{before:l,after:">",...i.current()})),l+=i.move(">")):(c=n.enter("destinationRaw"),l+=i.move(n.safe(e.url,{before:l,after:e.title?" ":")",...i.current()}))),c(),e.title&&(c=n.enter(`title${o}`),l+=i.move(" "+a),l+=i.move(n.safe(e.title,{before:l,after:a,...i.current()})),l+=i.move(a),c()),l+=i.move(")"),s(),l}function Sg(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&l&&l===d?"shortcut"===a?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(d+"]"),c}function wg(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function kg(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}ig.peek=function(){return"~"},fg.peek=function(e,t,n){return n.options.emphasis||"*"},_g.peek=function(){return"<"},bg.peek=function(){return"!"},vg.peek=function(){return"!"},yg.peek=function(){return"`"},Cg.peek=function(e,t,n){return Eg(e,n)?"<":"["},Sg.peek=function(){return"["};const xg=os(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tg(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let c=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const l=c.charCodeAt(0),u=gg(r.before.charCodeAt(r.before.length-1),l,a);u.inside&&(c=mg(l)+c.slice(1));const d=c.charCodeAt(c.length-1),p=gg(r.after.charCodeAt(0),d,a);p.inside&&(c=c.slice(0,-1)+mg(d));const h=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+c+h}Tg.peek=function(e,t,n){return n.options.strong||"*"};const Ag={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),lg);return a(),i},break:dg,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,pg);return e(),t}const s=n.createTracker(r),c=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),l=n.enter("codeFenced");let u=s.move(c);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,n,r){const a=hg(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=n.enter(`title${o}`),l+=c.move(" "+a),l+=c.move(n.safe(e.title,{before:l,after:a,...c.current()})),l+=c.move(a),s()),i(),l},emphasis:fg,hardBreak:dg,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return ds(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ls}),Boolean((!e.depth||e.depth<3)&&qa(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),c=n.enter("phrasing");o.move(i+" ");let l=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l=mg(l.charCodeAt(0))+l.slice(1)),l=l?i+" "+l:i,n.options.closeAtx&&(l+=" "+i),c(),s(),l},html:_g,image:bg,imageReference:vg,inlineCode:yg,link:Cg,linkReference:Sg,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):wg(n);const s=e.ordered?"."===i?")":".":function(e){const t=wg(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),kg(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(i=s),n.bulletCurrent=i;const l=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),l},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||wg(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?o:o+" ".repeat(i-o.length))+e});return c(),l},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return xg(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Tg,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(kg(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Rg(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ig(e){this.exit(e),this.data.inTable=void 0}function Og(e){this.enter({type:"tableRow",children:[]},e)}function Ng(e){this.exit(e)}function Mg(e){this.enter({type:"tableCell",children:[]},e)}function Dg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Lg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Lg(e,t){return"|"===t?t:e}function Pg(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Ag.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=c(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([c(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||sg,o=[],i=[],s=[],c=[];let l=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>l&&(l=e[u].length);++o<e[u].length;){const i=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===c[o]||e>c[o])&&(c[o]=e)}t.push(i)}i[u]=t,s[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<l;)o[p]=cg(r[p]);else{const e=cg(r);for(;++p<l;)o[p]=e}p=-1;const h=[],m=[];for(;++p<l;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,c[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>c[p]&&(c[p]=a),m[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,m),u=-1;const g=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<l;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=c[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===l-1||r.push("|")}g.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function c(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function jg(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Ug(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Fg(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let c=Ag.listItem(e,t,n,{...r,...s.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),c}const Bg={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),a):n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},Gg={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(Hg,c,s)(t):null===t||go(t)||bo(t)||45!==t&&_o(t)?c(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function c(e){return a||r||!o?n(e):t(e)}},partial:!0},Vg={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Hg,t,o)(i):null===i||go(i)||bo(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},Hg={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||go(i)||bo(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||go(e)||bo(e)?t(e):r(e)}function o(e){return io(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):io(t)?(e.consume(t),i):n(t)}},partial:!0},zg={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return so(e)?n(e):t(e)}},partial:!0},Yg={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Zg.call(r,r.previous)||ef(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bg,e.attempt(Gg,e.attempt(Vg,a),n),n)(t))};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Zg},qg={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){return 72!==t&&104!==t||!$g.call(r,r.previous)||ef(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(io(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?c:(o=!0,s)):n(t)}function c(t){return null===t||lo(t)||go(t)||bo(t)||_o(t)?n(t):e.attempt(Gg,e.attempt(Vg,l),n)(t)}function l(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:$g},Kg={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){return Xg(t)&&Qg.call(r,r.previous)&&!ef(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):n(t)};function i(t){return Xg(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(zg,l,c)(t):45===t||95===t||so(t)?(o=!0,e.consume(t),s):l(t)}function c(t){return e.consume(t),a=!0,s}function l(i){return o&&a&&io(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Qg},Wg={};let Jg=48;for(;Jg<123;)Wg[Jg]=Kg,Jg++,58===Jg?Jg=65:91===Jg&&(Jg=97);function Zg(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||go(e)}function $g(e){return!io(e)}function Qg(e){return!(47===e||Xg(e))}function Xg(e){return 43===e||45===e||46===e||95===e||so(e)}function ef(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Wg[43]=Kg,Wg[45]=Kg,Wg[46]=Kg,Wg[95]=Kg,Wg[72]=[Kg,qg],Wg[104]=[Kg,qg],Wg[87]=[Kg,Yg],Wg[119]=[Kg,Yg];const tf={tokenize:function(e,t,n){const r=this;return Eo(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function nf(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=oo(r.sliceSerialize({start:i.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function rf(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function af(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(i>999||93===s&&!o||null===s||91===s||go(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(oo(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return go(s)||(o=!0),i++,e.consume(s),92===s?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),i++,c):c(t)}}function of(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(s>999||93===t&&!i||null===t||91===t||go(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=oo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return go(t)||(i=!0),s++,e.consume(t),92===t?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),Eo(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function sf(e,t,n){return e.check(Io,t,e.attempt(tf,t,n))}function cf(e){e.exit("gfmFootnoteDefinition")}function lf(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){return 126===a&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const c=ko(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const l=e.exit("strikethroughSequenceTemporary"),u=ko(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Qa(i,i.length,0,xo(s,e.slice(r+1,n),t)),Qa(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),Qa(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class uf{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0!==n||0!==r.length){for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function df(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function pf(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?y:s;return o===y&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(a=!0,i+=1),c(e)}(t)}function c(t){return null===t?n(t):mo(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):fo(t)?Eo(e,c,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||go(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return 92===t||124===t?(e.consume(t),l):l(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,fo(t)?Eo(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?m(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return fo(t)?Eo(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(i+=1,g(t)):null===t||mo(t)?b(t):v(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),f(t)):v(t)}function f(t){return 45===t?(e.consume(t),f):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(t))}function _(t){return fo(t)?Eo(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||mo(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function y(t){return e.enter("tableRow"),E(t)}function E(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E):null===n||mo(n)?(e.exit("tableRow"),t(n)):fo(n)?Eo(e,E,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||go(t)?(e.exit("data"),E(t)):(e.consume(t),92===t?S:C)}function S(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function hf(e,t){let n,r,a,o=-1,i=!0,s=0,c=[0,0,0,0],l=[0,0,0,0],u=!1,d=0;const p=new uf;for(;++o<e.length;){const h=e[o],m=h[1];"enter"===h[0]?"tableHead"===m.type?(u=!1,0!==d&&(gf(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(i=!0,a=void 0,c=[0,0,0,0],l=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(i?i=!1:(0!==c[1]&&(l[0]=l[1],a=mf(p,t,c,s,void 0,a)),c=l,l=[c[1],o,0,0])):(i=!1,0===l[2]&&(0!==c[1]&&(l[0]=l[1],a=mf(p,t,c,s,void 0,a),c=[0,0,0,0]),l[2]=o)):"tableHead"===m.type?(u=!0,d=o):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=o,0!==c[1]?(l[0]=l[1],a=mf(p,t,c,s,o,a)):0!==l[1]&&(a=mf(p,t,l,s,o,a)),s=0):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(l[3]=o)}for(0!==d&&gf(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=df(t.events,o))}return e}function mf(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},ff(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=ff(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=ff(t.events,n[2]),o=ff(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},ff(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function gf(e,t,n,r,a){const o=[],i=ff(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function ff(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const _f={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return go(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return mo(r)?t(r):fo(r)?e.check({tokenize:bf},t,n)(r):n(r)}}};function bf(e,t,n){return Eo(e,function(e){return null===e?n(e):t(e)},"whitespace")}const vf={};function yf(e){const t=e||vf,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return to([{text:Wg},{document:{91:{name:"gfmFootnoteDefinition",tokenize:of,continuation:{tokenize:sf},exit:cf}},text:{91:{name:"gfmFootnoteCall",tokenize:af},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nf,resolveTo:rf}}},lf(e),{flow:{null:{name:"table",tokenize:pf,resolveAll:hf}}},{text:{91:_f}}])}(t)),a.push([{transforms:[Gm],enter:{literalAutolink:Lm,literalAutolinkEmail:Pm,literalAutolinkHttp:Pm,literalAutolinkWww:Pm},exit:{literalAutolink:Bm,literalAutolinkEmail:Fm,literalAutolinkHttp:jm,literalAutolinkWww:Um}},{enter:{gfmFootnoteCallString:Ym,gfmFootnoteCall:qm,gfmFootnoteDefinitionLabelString:Km,gfmFootnoteDefinition:Wm},exit:{gfmFootnoteCallString:Jm,gfmFootnoteCall:Zm,gfmFootnoteDefinitionLabelString:$m,gfmFootnoteDefinition:Qm}},{canContainEols:["delete"],enter:{strikethrough:ag},exit:{strikethrough:og}},{enter:{table:Rg,tableData:Mg,tableHeader:Mg,tableRow:Og},exit:{codeText:Dg,table:Ig,tableData:Ng,tableHeader:Ng,tableRow:Ng}},{exit:{taskListCheckValueChecked:jg,taskListCheckValueUnchecked:jg,paragraph:Ug}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mm,notInConstruct:Dm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mm,notInConstruct:Dm},{character:":",before:"[ps]",after:"\\/",inConstruct:Mm,notInConstruct:Dm}]},eg(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rg}],handlers:{delete:ig}},Pg(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fg}}]}}(t))}const Ef=({message:e})=>{function t(){return"dark"===Et()?Am:Rm}const[n,o]=a.useState(t());return a.useEffect(()=>{const e=e=>{o(t())},n=window.matchMedia("(prefers-color-scheme: dark)");return o(t()),n.addEventListener("change",e),()=>{n.removeEventListener("change",e)}},[e]),r.jsx("div",{className:"cometchat",style:{height:"100%",width:"100%",overflow:"hidden"},children:r.jsx("div",{className:"cometchat-ai-assistant-message-bubble",children:r.jsx(tc,{remarkPlugins:[yf],children:e?.getAssistantMessageData()?.getText()||"",components:{code({node:e,className:t,children:a,...o}){const i=/language-(\w+)/.exec(t||"");return t&&i&&i?r.jsx(Tm,{className:"cometchat-ai-assistant-message-bubble__code-block",language:i[1],PreTag:"div",style:n,children:String(a).replace(/\n$/,"")}):r.jsx("code",{className:t,...o,children:a})},a:({href:e,children:t,...n})=>r.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"cometchat-ai-assistant-message-bubble__link",...n,children:t}),img:({node:t,...n})=>r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"cometchat-ai-assistant-message-bubble__image-intersection-start"}),r.jsx("img",{...n,onClick:()=>{!wt()&&e&&yn.ccShowDialog.next({child:r.jsx(Mn,{url:n.src,ccCloseClicked:()=>{yn.ccHideDialog.next()},message:e}),confirmCallback:null})}}),r.jsx("span",{className:"cometchat-ai-assistant-message-bubble__image-intersection-end"})]})}})})})},Cf=new Ie,Sf=new Ie;let wf,kf,xf={},Tf=30;const Af=new Ne(!1),Rf=Af.asObservable(),If=Cf.asObservable(),Of=[pt.streamMessageTypes.tool_call_args,pt.streamMessageTypes.tool_call_end,pt.streamMessageTypes.tool_call_result,pt.streamMessageTypes.tool_call_start],Nf=()=>{var e,t;wf&&wf.unsubscribe(),wf=Sf.pipe((e=e=>{let t=0;return e.getType()===pt.streamMessageTypes.run_started?t=0:e.getType()===pt.streamMessageTypes.tool_call_args?t=500:Of.includes(e.getType())?t=100:e.getType()===pt.streamMessageTypes.text_message_start?t=0:e.getType()===pt.streamMessageTypes.text_message_content?t=Tf:e.getType()===pt.streamMessageTypes.run_finished&&Af.next(!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ot(e,Ve(e))}(e).pipe(function(e,t){void 0===t&&(t=Ue);var n=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=Fe);var r=-1;return null!=t&&(Ge(t)?n=t:r=t),new we(function(t){var a,o=(a=e)instanceof Date&&!isNaN(a)?+e-n.now():e;o<0&&(o=0);var i=0;return n.schedule(function(){t.closed||(t.next(i++),0<=r?this.schedule(void 0,r):t.complete())},o)})}(e,t);return lt(function(){return n})}(t),(r=oe(n=()=>Mf(e))?{next:n,error:undefined,complete:undefined}:n)?xe(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var a=!0;e.subscribe(Te(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;a=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;a=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;a&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):Se);var n,r},oe(t)?st(e,t,1):st(e,1))).subscribe()};Nf();const Mf=e=>{if(e.getType()===pt.streamMessageTypes.run_started&&(xf[e.getMessageId()]="",Cf.next({message:e})),Of.includes(e.getType()))xf[e.getMessageId()]="",Cf.next({message:e});else if(e.getType()===pt.streamMessageTypes.text_message_start)xf[e.getMessageId()]="",Cf.next({message:e});else if(e.getType()===pt.streamMessageTypes.text_message_content){xf[e.getMessageId()]||(xf[e.getMessageId()]=""),xf[e.getMessageId()]+=e.getDelta()||"";const t={message:e,streamedMessages:xf[e.getMessageId()]};Cf.next(t)}else(e.getType()===pt.streamMessageTypes.text_message_end||e.getType()===pt.streamMessageTypes.run_finished)&&Cf.next({message:e,streamedMessages:xf[e.getMessageId()]||""})},Df=()=>{wf&&(wf.unsubscribe(),wf=null),xf={},Af.next(!1)},Lf=({message:e})=>r.jsx("div",{className:"cometchat-error-view",children:r.jsx("div",{className:"cometchat-error-view__container",children:r.jsx("div",{className:"cometchat-error-view__content",children:r.jsx("div",{className:"cometchat-error-view__message",children:e})})})}),Pf=({message:e})=>{const t=a.useRef(e),[n,o]=a.useState(t.current||null),[i,s]=a.useState(""),[c,l]=a.useState(""),u=a.useRef(""),d=a.useRef({}),[p,h]=a.useState(!1),[m,g]=a.useState(!1),f=[pt.streamMessageTypes.tool_call_args,pt.streamMessageTypes.tool_call_end,pt.streamMessageTypes.tool_call_result,pt.streamMessageTypes.tool_call_start];function _(){return"dark"===Et()?Am:Rm}const[b,v]=a.useState(_());a.useEffect(()=>{const e=e=>{v(_())},t=window.matchMedia("(prefers-color-scheme: dark)");return v(_()),t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[e]);const y=a.useCallback(()=>{"offline"==(navigator.onLine?"online":"offline")&&(g(!0),Df())},[]);return a.useEffect(()=>{window.addEventListener("online",y),window.addEventListener("offline",y);const e=Rf.subscribe(h),n=If.subscribe(r=>{if(t.current?.getMessageId()&&r.message.getMessageId()!==t.current?.getMessageId())return;const a=r.message.getType();if(f.includes(a)&&(a===pt.streamMessageTypes.tool_call_start&&(u.current=r.message.getToolCallName(),l(r.message.getData()?.executionText||V("ai_assistant_chat_executing_tool"))),a===pt.streamMessageTypes.tool_call_args&&(d.current=JSON.parse(r.message.getDelta())),a===pt.streamMessageTypes.tool_call_end)){const e=kf,t=u.current;if(t&&e){const n=e.getAction(t);n?.(d.current)}}t.current?.getMessageId()&&r.message.getMessageId()!==t.current?.getMessageId()||(o(r.message),r.streamedMessages&&""!=r.streamedMessages&&s(r.streamedMessages)),r.message.getType()===pt.streamMessageTypes.run_finished&&(n.unsubscribe(),e.unsubscribe())});return()=>{n.unsubscribe(),e.unsubscribe(),window.removeEventListener("online",y),window.removeEventListener("offline",y)}},[]),r.jsxs("div",{className:"cometchat",style:{height:"100%",width:"100%",overflow:"hidden"},children:[r.jsxs("div",{className:"cometchat-stream-message-bubble",children:[(!n||p&&n&&n.getType()===pt.streamMessageTypes.run_started)&&r.jsx("span",{className:"cometchat-stream-message-bubble__thinking",children:r.jsx("span",{className:"cometchat-stream-message-bubble__thinking-text",children:V("ai_assistant_chat_thinking")})}),n&&n.getType()!==pt.streamMessageTypes.run_started&&f.includes(n?.getType())?r.jsx("span",{className:"cometchat-stream-message-bubble__tool-call-text cometchat-stream-message-bubble__thinking ",children:r.jsx("span",{className:"cometchat-stream-message-bubble__thinking-text",children:c})}):null,i&&r.jsx(tc,{remarkPlugins:[yf],children:i,components:{code({node:e,className:t,children:n,...a}){const o=/language-(\w+)/.exec(t||"");return t&&o&&o?r.jsx(Tm,{className:"cometchat-stream-message-bubble__code-block",language:o[1],PreTag:"div",style:b,children:String(n).replace(/\n$/,"")}):r.jsx("code",{className:t,...a,children:n})},a:({href:e,children:t,...n})=>r.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"cometchat-stream-message-bubble__link",...n,children:t}),img:({node:e,...t})=>r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"cometchat-stream-message-bubble__image-intersection-start"}),r.jsx("img",{...t}),r.jsx("span",{className:"cometchat-stream-message-bubble__image-intersection-end"})]})}})]}),m&&r.jsx(Lf,{message:V("ai_assistant_chat_no_internet")})]})},jf=({message:e})=>{const t=e?.getToolResultMessageData().getText()||"";if(!t)return null;let n=t,a=!1;try{const e=JSON.parse(t);n=JSON.stringify(e,null,2),a=!0}catch(e){n=t}return r.jsx("div",{className:"cometchat",style:{height:"100%",width:"100%",overflow:"hidden"},children:r.jsx("div",{className:"cometchat-toolcall-result-bubble",children:r.jsxs("div",{className:"cometchat-toolcall-result__item",children:[r.jsx("div",{className:"cometchat-toolcall-result__label",children:"Result:"}),r.jsx(Tm,{language:a?"json":"text",style:Am,customStyle:{margin:"8px 0",borderRadius:"4px"},children:n})]})})})},Uf=({message:e})=>{const[t,n]=a.useState(e?.getToolArgumentMessageData().getToolCalls()||[]);a.useEffect(()=>{n(e?.getToolArgumentMessageData().getToolCalls()||[])},[e]);const o=e=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch(t){return e}};return r.jsx("div",{className:"cometchat",style:{height:"100%",width:"100%",overflow:"hidden"},children:r.jsx("div",{className:"cometchat-toolcall-argument-bubble",children:t.map((e,t)=>r.jsxs("div",{className:"cometchat-toolcall-argument__item",children:[r.jsx("div",{className:"cometchat-toolcall-argument__name",children:e?.displayName||"Tool"}),e?.executionText&&r.jsx("div",{className:"cometchat-toolcall-argument__execution-text",children:e?.executionText}),r.jsxs("div",{className:"cometchat-toolcall-argument__arguments",children:[r.jsx("div",{className:"cometchat-toolcall-argument__label",children:"Arguments:"}),r.jsx(Tm,{language:"json",style:Am,customStyle:{margin:"8px 0",borderRadius:"4px"},children:e.function?.arguments?o(e.function.arguments):"{}"})]})]},e.id||t))})})},Ff=({previewTitle:e,hideCloseButton:t=!1,previewSubtitle:n,onClose:o,message:i,isMessageModerated:s=!1,textFormatters:c=[]})=>{const l=a.useRef(null),[u,d]=a.useState(0),p=a.useRef(null);a.useEffect(()=>{if(!t||!l.current)return;const e=l.current.closest(".cometchat-message-bubble__body-reply-view")?.parentNode;if(!e)return;const n=e.querySelector(".cometchat-message-bubble__body-content-view");return n?(p.current&&p.current.disconnect(),p.current=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect.width;d(t=>t!==e?e:t)}}),p.current.observe(n),d(n.offsetWidth),()=>{p.current&&(p.current.disconnect(),p.current=null)}):void 0},[t]);const h=a.useMemo(()=>({maxWidth:t?u<=100?105:u:"100%",width:"100%"}),[t,u]),m=a.useCallback(()=>{o?.()},[o]);return r.jsx("div",{ref:l,className:"cometchat "+(t?"bubble-view":"composer-view"),style:s&&u<240?{width:"calc(240px - var(--cometchat-padding-1) * 2)"}:h,children:r.jsxs("div",{className:"cometchat-message-preview",children:[r.jsx("div",{className:"cometchat-message-preview__title",children:e}),i?.getDeletedAt()?r.jsxs("div",{className:"cometchat-message-preview-deleted__message",children:[r.jsx("div",{className:"cometchat-message-preview-deleted__message__icon"}),r.jsx("div",{className:"cometchat-message-preview-deleted__message__text",children:V("message_deleted")})]}):r.jsxs(r.Fragment,{children:[n,!t&&r.jsx("div",{className:"cometchat-message-preview__close",onClick:m})]})]})},"cometchat-message-preview"+i?.getId())};class Bf{constructor(){this.getBubbleStatusInfoReceipt=(e,n,a)=>{if(n||e?.getSender()&&dt.getLoggedInUser()?.getUid()!==e?.getSender()?.getUid()||e?.getCategory()===pt.MessageCategory.action||e?.getCategory()===pt.MessageCategory.call||e?.getDeletedAt()||e?.getCategory()===pt.MessageCategory.interactive){if(a){let n=ar.getReceiptStatus(e);if(n===t.W4f.error)return r.jsx("div",{className:`cometchat-receipts cometchat-message-bubble__status-info-view-receipts cometchat-message-bubble__status-info-view-receipts-${this.getReceiptClass(n)} cometchat-receipts-${this.getReceiptClass(n)}`,children:r.jsx("div",{className:"cometchat-message-list__receipt"})})}return null}{let t=ar.getReceiptStatus(e);return r.jsx("div",{className:`cometchat-receipts cometchat-message-bubble__status-info-view-receipts cometchat-message-bubble__status-info-view-receipts-${this.getReceiptClass(t)} cometchat-receipts-${this.getReceiptClass(t)}`,children:r.jsx("div",{className:"cometchat-message-list__receipt"})})}},this.getBubbleStatusInfoDate=(e,t)=>e?.getCategory()!==pt.MessageCategory.action&&e?.getCategory()!==pt.MessageCategory.call?r.jsx(rr,{timestamp:e.getSentAt(),calendarObject:this.getMessageSentAtDateFormat(t)}):null,this.getStatusInfoView=(e,n,a,i,s)=>{if(e instanceof o.CometChat.Action||e instanceof o.CometChat.Call||!("meeting"!=e.getType()||"meeting"==e.getType()&&e.getDeletedAt()))return null;{const n=ar.getReceiptStatus(e)===t.W4f.error;let c=!1;if(e instanceof o.CometChat.MediaMessage||e instanceof o.CometChat.TextMessage){const t=e?.error,n=e.getMetadata()?.error;c="ERR_PERMISSION_DENIED"===(t?.code||n?.code)}return r.jsxs("div",{className:"cometchat-message-bubble__status-info-view",children:[!e.getDeletedAt()&&e.getType()==pt.MessageTypes.text&&e.getEditedAt()?r.jsxs("span",{className:"cometchat-message-bubble__status-info-view-helper-text",children:["  ",V("message_list_action_edited")," "]}):null,this.getBubbleStatusInfoDate(e,i),!a&&!c&&this.getBubbleStatusInfoReceipt(e,a,s||n)]})}},this.handleCopy=e=>{if(e.getAssistantMessageData()?.getText())if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e.getAssistantMessageData()?.getText());else{const t=document.createElement("textarea");t.value=e.getAssistantMessageData()?.getText(),document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},this.getFileType=e=>e?e.startsWith("audio/")?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI4SURBVHgBxVfPaxNBFP5msttkA8GkuYlo7MGbsj0JXvTsxSgeBIV48ij1L2h79CKIRw/BP0BTUeypZm96M6g9qKBREESsDUTT/NhkfLO20GQ3MNOdTT947GTeZL9v33vzdhYgCCFKZHWybTEb1CSn5Ga7gzdkecwWLbJFKaBGg/Kkd/TrC0Y/NqELvnAOPDuvutyTAsTkrP/+GTrVa0C/A11krj6AfbYClsmpLG/xqNn+y3sHIpcQvTY9wHOIbltleZ4jAeiISESAjojEBKiKMC5g+GEDOiIsGIb/cQNbnxsYFE+BM4YUQ2DOtwYKV+6aF2CfLmPwbm1s7oi/he2vr9AeEAFnZBRqay7y/7FSYJ0pw7lVC66TKGTI0gjILS7ApzDFEsCdPEa/m3BuVKn53Az5c/TQOVvAohRIMy5AYvD6EToPLyN9cRnZ23Wkjrljfsf6b4lEYA/DTx7+LJ9Ef30VmevVUEpsYrGTisB++CSk++QOCbgU8k3hN78NZTSYo/5mT6QT+m/XlNcm2opVoJUCls0jddQFl5XeoQNN8QT1WsSCsgBeLAXbjM+XxuZ7L1YRB8opmDu/FCI3AWUBYqcVOT/83sBMBPTWV9D37mO/IPlbp+KjoFWE3cdLlPOVoBgFFeG0qCQmQEKSmiDew6H3gWgBGq3UhIBQPLuLFez4MAZ5r7ZbifTJL6M6XS9MOv7+bKK16QXnubhIH3dRWHCjXE8P/eOUDq6sKQdk8Ta0HrEnOSX3PxBZPjDxF3YdAAAAAElFTkSuQmCC":e.startsWith("video/")?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI/SURBVHgB1ZfPaxNBFMe/O/tjdtc2JoKgBSXoqXrSk0ftxUNB1KP4H/iHqada0WtSClIVtDdpoYTQQtWqSbYlyf5Isr7ZiIcwxtnsbkq/8Nhlfuz77Hszb2cBUhzHVbI6WTuej9aET+Fb+3OzTVbGfNUhuyUA1ujm4WRv2xvh6NcQaXV1SYdjM9XhGwIgnmzdbUR4+baLaBAjrVbvubh9w4JlaSrDO1LUd5/8mZwLBWGMHXqBMFSaX1aOVVEQhQCkgSgMQBUid4DGfoQ0EAbyBjgYoLnfQnkxgqbp0BgDo+vBoYvVlQvFAwiNtBIOj9oIgmMwZiRmGPJtmToFly/qKJf+P812K7CdyhhANygS8ndNHYFH988lELX3Pupb/aljub0InZwPhxGlgeUD4PBxKFfu2EnFqxHE9pfwn+MN00mioDFd2p9pF4hUPKaIPHmwMDUtTDcTCCkgctDydZPsfJKWrc8+/ECy5bScFuE0ibQ8e1pK1oiqci9E3AJc3oPkIytVrnVgr9nDi9ffcNIzYAmSeQG0OhGer3+lKhgmW8/iJrUqnQeyAfT9ETY/tLD50cModuC4C7TW1BxnBhiH+zuOuwymWaJSO9ujUs96UzuB53l/w81t9XDnArDbGFJp5XAp3NBmdzwzgHCqG2orXEWFnojOLgDn2XObBqAz2XjzWoBB1EdeiuhZy9WutE/8GdXpeney48fPLnb22smBIquWLnFUr1RkXeun/nPKqHQ2xQ3ZK8xHwvGG8Cl8/waJH0DPGwrofQAAAABJRU5ErkJggg==":e.startsWith("image/")?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKOSURBVHgB1VfNbtNAEP42/omcljYJ5UBV0SAEEkhAUC/AgfYRIk7cEp6gj1B65FIOPADlCUIF1yrhhJCQCAdAAgkqkAgqApsGJc2fl9lNSFvjqGtiB/WTRh7vzM583h2PvQCBc54hKZHYfDwoipwiN+srL0mSGC8ckiuCQJGUnNfq1j8CO68RFOz4dTAjrepeFgS4d7T79TFaz2+RUkdQGJfvQ5/PA/oxFXcn5jfaebf2T8kFeKeGTvUJBampuCdjiAIBSERDIACJ6AgokgidgLu9iSAkdIRN4Nsm7C8VtOLnEGMMmkZPSY9pbVcwtXA3egIC08Z3/Nh5hhq9SLrGSIiEZvr6RkJAID0JmbjRpN6gcWhDNjtQDZgLD2Dd5DCvUvM0Uof6T1kkCS6JjEwgNrMEbb4gdW2WOvdcHlxhnkUrb8VDIICOc+C2/suhryiTOktkYFy6JzTfqYbW2w4/KNeA61TQfLMKnlpEo/oUux8ewuq3e/38CvX/Atr2K+Dzuu98hhEJCHTfrqLRIjIuVfoEl0HZdFYmFzAvrKBZ3QDr2MoxAxUhYxyJOMektVfV8WvFgV2byEA7s4wgCNwJDVpusedefWA/uwxunYYqAhHQThVov+/AvFFC7GRO6n8FNJPQL64NCjQ0ArLSaY/lJNL3L70X5lwObGYRoRLQfZb7MH9XoVEovQXMSKJLlb/7fr0/QPIn+DCd0OIpWMwenQBvO2i/uI2OK37he5lY79K/38vK9mnDmk9gAtLxQDdTacIqPlH/ER1dAub4DkmCgOMdrJ/Iy54fFkSsn+m8r02cjEp0XfIa6vYW7E9l+SkdFWY6i+Rs1s+08d8Pp/TjyraEQvII44FIXBY5Re7fNZtCHoK7vG8AAAAASUVORK5CYII=":e.startsWith("text/")?"text/html"==e?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMOSURBVHgBxVdbSFRBGP7OnHPci7u5q2EagWJXEoXwSaIbaG/dXssIgrJeCx9LeiqFIHpKCHoIoafU3ipJiciKwszSUDeviIbuLpm7e3TPmf7ZtUVshXP21rf87DAz+3/fzP/vzD8AgXNeTtZDFuC5QYfgFNzSWqOfzIPcIkh2QAjooMbpjaNzfo7JeQ6r2F/G4Haant4rBPzD8n7YwO32KLRVWMbVUwx1NQqcNlPTgyxZ79PXRkrkAqGIWICOkGZquochCwhr5kVkRYAVEVkTYFZExgV89nFLIhRkGANjHCPji9juJUZJhiQxMhljUw5cOunKvgCBsO7B9xk/9JUlSEyJmapINJIjAQKqvTBGbETDCRHJkLaAfDsdo4dk1NcwzAc4Xn400P3JiDvP2wKDqTCM1VgYMi5AkLc0qphb0NDy+BddLBKaznvhcsjofKPH5jDFAckgGiYl9ZHWv6ChXsbAaBjND/0YmnJiaNaNu09WULtPBzeiiXkS7ULGQ7CzlKHvm46RiTAUu4e2OO4qtCKjuEiCoWuQ15FKm6zVsgCx7TcvKKgoBXwzOkq2FqLtmY6+oXjcaysZ7UqEBEmm/FkS8DfmvukwbjwIwu2yUbwZzhy24+1XjobjNroJOa7fXwKTzZUXlnJArNw3HUFrexB7K7xoayrC7jI3Zf4qLp9ga+QLWFx2icCb8ml6B6orGIo9Bq7d80OxeTE4LuPWoxDO1jOUFDrx4kMYjXcC0LibuPPMujUvYJuXjtlRSizVlcjowUkFbV0RzC0uY1mjNJMLNs32zWA6BIPjHAerHZR0aqLvXJ2M5otObKFcWC/MCkz/QtSI4nBpveLAj1mOfAeo7NIp5n6Keb7ZkKcuQKC928Dzd0FUlXM6dnW6+aKUDy5LMU9LgDhOxGpffYmC00e1y0h56akJEI8YxG83ZAZZLclSFiASLJcCghs7j1X9pkIihExB+DpSGUg6Jl5GPfR9dOPA7M8Q+oeDVNapSBe7duRhT3lBsqGu//44ZXRtTogGWSdyA0HcKzgF9x+j/omxruOsywAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH5SURBVHgB3ZfLSxxBEMa/7s48FkIiG3LYJWxiSMwp5HHJNZBAcgrJHxrMHuJVbyJ7EEEEX+wDcdVdcPGgzmvHqlEPrqvMTPes4g+K7uluur6pLmp6ACKO41dk82SH8WSYZZ/sW1x0lsmmMFkGZJ9YwCx1fl+bHRzjoH+ErNRePIPrWmmXL7CAeHR0c3sPf+tLCMIIWfnx7QM+vn8J236UZvlAjhtdbGzkcs74foiNrW7SpmBKogCyiChEQBYRhQlIK8K4gFb7AFlEpErVLDQ7PbQ6u3j6xIEUEkLKpN3Z7eHn98/FC2BiWOjuH8H3TiClglQKyhrvqhABTKn0mN5cIQy9JAJSCGgLcB0LMzOVW9esb3bhnQZJ33FLkL7EcBhBCKkvgKlVy8mGzOvpCriMNptd+qoI/qphba1zZb1lO4iikKYNRODUC1Cfa2AYDZPnP7++0OYR6v8bEDh3kJy3urotP0tlKAeUssjO+5xgLMCy7BtDfMkNATBVBwTyYkRAfveGBMTIj6EjyC/hYeSATgS0SnGr3UvqvQ5aAlZW2wgCj+5/LvKidQRcXnWcawswwf0U4Do2JilgMDr47s1zSi4fpuC93k6Xx87xn9E8tV9HJ/r9Q7pcdKCkgi7VShm1WnXcVP3Of07pqiZa3CH7h8nAjhfYJ/s+A9xpLS5WrHVdAAAAAElFTkSuQmCC":{"application/pdf":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI/SURBVHgB1Ve/L2xBFP7m7L2bt7F5b98riO4hCgmFSkWEmmi1Qq3X06j8FXQWtR8lUWyIRiIhGiHBJn6sFXfGOWsb6y5zZ+9d8SWTmcyczPedM2fmngswjDH/uW1zuzXNwapwCreqDgrccmguitz6RcAqDyZqV83lJcz5OaKCenqAbNbWfEcEmA/k+/t4WVwEymVEBc3MIDU6CmQyNuZFCpsN8nkn8gqenqDZAZRKNtY5QhJgclsRyQiIICI5AZYiYhdgDg8RRYSHuAUcHOD6+Bjl9naklKp4KP2vkxNkp6aSFyDI8U24YRF3QQCPyT0ikO+H2jofgWppgRoYqLv+L53GXyYVchEhUQiDcwRofh7U2opgeRl6YyPU5rfnwdcaz9xiFyAR0Ht7APefIVONgKojwPkI9O4uSI7g6upLW1/yIG4Bpuq9OT21sld15t3fgYeHtw16e9EInAXQ2FjFe5qchOrogCvck7CvD8HCAtTICFJzczCcE1IHKL4ZenMTemvLah+nCBCTyhEoDr9qa4PhRCSuASQppZBJzc5a7xUpAnL1aHwcSsJ/dFQ5AsOeGhaj2XN5mFRnJ4KlJes9rQWIdzQ9/Xb/19cRrKy8W5comDoP0qf7WhtyWIVE7n0teSOwjoDmJ1cS7CVG8mgCHMJrg2Qrop8r4IsvXNwCirWT90NDKHE1Exdkr9vBwdA1+TPa5n64duHx4gLFQgFpavyU/K4u/OnuDlta+/afU+JK5UwG3PJoDoR4RziF+xXwDkgcKZ6uuwAAAABJRU5ErkJggg==","application/msword":Xn,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":Xn,"application/vnd.ms-excel":er,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":er,"application/vnd.ms-powerpoint":Qn,"application/vnd.openxmlformats-officedocument.presentationml.presentation":Qn,"application/zip":tr,"application/x-rar-compressed":tr}[e]||Zn:"",this.getFileSize=e=>{if(!e)return"";const t=["bytes","KB","MB","GB","TB"];let n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${Math.round(n)} ${t[r]}`}}getEditOption(){return new Gt({id:pt.MessageOption.editMessage,title:V("message_list_option_edit"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M4.75512%2019.2464H5.89687L17.0384%208.12569L15.8926%206.97969L4.75512%2018.1089V19.2464ZM3.96763%2020.8297C3.74262%2020.8297%203.55371%2020.7534%203.40088%2020.6007C3.24821%2020.4479%203.17188%2020.2589%203.17188%2020.0339V18.1199C3.17188%2017.9098%203.21413%2017.7052%203.29863%2017.5062C3.38313%2017.3072%203.49921%2017.1345%203.64687%2016.9882L17.0219%203.62569C17.1659%203.48752%2017.3331%203.37869%2017.5236%203.29919C17.7141%203.21952%2017.9146%203.17969%2018.1251%203.17969C18.3246%203.17969%2018.5219%203.21927%2018.7169%203.29844C18.9119%203.3776%2019.0899%203.48944%2019.2509%203.63394L20.3926%204.77969C20.5426%204.93252%2020.6545%205.10544%2020.7281%205.29844C20.8016%205.4916%2020.8384%205.68485%2020.8384%205.87819C20.8384%206.08752%2020.8011%206.28894%2020.7266%206.48244C20.652%206.67577%2020.5406%206.84569%2020.3926%206.99219L7.01337%2020.3547C6.86771%2020.5024%206.69579%2020.6184%206.49763%2020.7029C6.29946%2020.7874%206.09362%2020.8297%205.88012%2020.8297H3.96763ZM16.4634%207.55469L15.8926%206.97969L17.0384%208.12569L16.4634%207.55469Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:void 0})}getDeleteOption(){return new Gt({id:pt.MessageOption.deleteMessage,title:V("message_list_option_delete"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8465%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8465%29%22%3E%3Cpath%20d%3D%22M7.30775%2020.5C6.81058%2020.5%206.385%2020.323%206.031%2019.969C5.677%2019.615%205.5%2019.1894%205.5%2018.6923V6H5.25C5.0375%206%204.85942%205.92808%204.71575%205.78425C4.57192%205.64042%204.5%205.46225%204.5%205.24975C4.5%205.03708%204.57192%204.859%204.71575%204.7155C4.85942%204.57183%205.0375%204.5%205.25%204.5H9C9%204.25517%209.08625%204.0465%209.25875%203.874C9.43108%203.70167%209.63967%203.6155%209.8845%203.6155H14.1155C14.3603%203.6155%2014.5689%203.70167%2014.7413%203.874C14.9138%204.0465%2015%204.25517%2015%204.5H18.75C18.9625%204.5%2019.1406%204.57192%2019.2843%204.71575C19.4281%204.85959%2019.5%205.03775%2019.5%205.25025C19.5%205.46292%2019.4281%205.641%2019.2843%205.7845C19.1406%205.92817%2018.9625%206%2018.75%206H18.5V18.6923C18.5%2019.1894%2018.323%2019.615%2017.969%2019.969C17.615%2020.323%2017.1894%2020.5%2016.6923%2020.5H7.30775ZM10.1543%2017C10.3668%2017%2010.5448%2016.9282%2010.6885%2016.7845C10.832%2016.6407%2010.9037%2016.4625%2010.9037%2016.25V8.75C10.9037%208.5375%2010.8318%208.35933%2010.688%208.2155C10.5443%208.07183%2010.3662%208%2010.1535%208C9.941%208%209.76292%208.07183%209.61925%208.2155C9.47575%208.35933%209.404%208.5375%209.404%208.75V16.25C9.404%2016.4625%209.47583%2016.6407%209.6195%2016.7845C9.76333%2016.9282%209.94158%2017%2010.1543%2017ZM13.8465%2017C14.059%2017%2014.2371%2016.9282%2014.3807%2016.7845C14.5243%2016.6407%2014.596%2016.4625%2014.596%2016.25V8.75C14.596%208.5375%2014.5242%208.35933%2014.3805%208.2155C14.2367%208.07183%2014.0584%208%2013.8458%208C13.6333%208%2013.4552%208.07183%2013.3115%208.2155C13.168%208.35933%2013.0962%208.5375%2013.0962%208.75V16.25C13.0962%2016.4625%2013.1682%2016.6407%2013.312%2016.7845C13.4557%2016.9282%2013.6338%2017%2013.8465%2017Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:void 0})}getReactionOption(){return new Vt({id:pt.MessageOption.reactToMessage,title:V("message_list_option_react"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M8.00317%2015.0591C7.09828%2015.0591%206.24767%2014.8864%205.45133%2014.541C4.655%2014.1954%203.96072%2013.726%203.3685%2013.1326C2.77617%2012.5392%202.30733%2011.845%201.962%2011.05C1.61667%2010.2549%201.444%209.40537%201.444%208.50148C1.444%207.59659%201.61711%206.74509%201.96333%205.94698C2.30956%205.14898%202.77817%204.45476%203.36917%203.86431C3.96006%203.27387%204.65483%202.80687%205.4535%202.46331C6.25217%202.11987%207.10083%201.94815%207.9995%201.94815C8.42072%201.94815%208.83039%201.98703%209.2285%202.06481C9.62661%202.14259%2010.0114%202.25553%2010.3828%202.40365C10.5809%202.48509%2010.7041%202.59426%2010.7523%202.73115C10.8004%202.86804%2010.8013%202.99953%2010.755%203.12565C10.7088%203.25176%2010.6278%203.34953%2010.512%203.41898C10.3962%203.48842%2010.2689%203.48981%2010.13%203.42315C9.793%203.28426%209.44883%203.17959%209.0975%203.10915C8.74617%203.03881%208.38017%203.00365%207.9995%203.00365C6.47683%203.00365%205.1795%203.53837%204.1075%204.60781C3.0355%205.67726%202.4995%206.97409%202.4995%208.49831C2.4995%2010.0224%203.036%2011.321%204.109%2012.3941C5.18211%2013.4671%206.48072%2014.0036%208.00483%2014.0036C9.52906%2014.0036%2010.8259%2013.4676%2011.8953%2012.3956C12.9648%2011.3236%2013.4995%2010.0263%2013.4995%208.50365C13.4995%208.24876%2013.4828%207.99659%2013.4495%207.74715C13.4162%207.49781%2013.3652%207.25181%2013.2967%207.00915C13.2486%206.85592%2013.2669%206.72492%2013.3517%206.61615C13.4366%206.50748%2013.5423%206.43609%2013.669%206.40198C13.7958%206.36787%2013.9247%206.38276%2014.0557%206.44665C14.1868%206.51053%2014.2801%206.63692%2014.3357%206.82581C14.4079%207.09437%2014.4625%207.36726%2014.4995%207.64448C14.5365%207.92181%2014.555%208.2082%2014.555%208.50365C14.555%209.4032%2014.3832%2010.2527%2014.0395%2011.0521C13.6958%2011.8516%2013.2283%2012.5463%2012.6368%2013.1361C12.0453%2013.7259%2011.3511%2014.1939%2010.5543%2014.54C9.75756%2014.8861%208.90717%2015.0591%208.00317%2015.0591ZM13.4745%203.69531H12.555C12.4069%203.69531%2012.2824%203.64465%2012.1815%203.54331C12.0805%203.44209%2012.03%203.31709%2012.03%203.16831C12.03%203.01965%2012.0805%202.89437%2012.1815%202.79248C12.2824%202.6907%2012.4069%202.63981%2012.555%202.63981H13.4745V1.72581C13.4745%201.5777%2013.5252%201.45226%2013.6265%201.34948C13.7277%201.2467%2013.8527%201.19531%2014.0015%201.19531C14.1502%201.19531%2014.2754%201.2467%2014.3773%201.34948C14.4791%201.45226%2014.53%201.5777%2014.53%201.72581V2.63981H15.444C15.5921%202.63981%2015.7176%202.69137%2015.8203%202.79448C15.9231%202.89759%2015.9745%203.02353%2015.9745%203.17231C15.9745%203.32098%2015.9231%203.44531%2015.8203%203.54531C15.7176%203.64531%2015.5921%203.69531%2015.444%203.69531H14.53V4.61481C14.53%204.76292%2014.4784%204.88742%2014.3753%204.98831C14.2722%205.08931%2014.1463%205.13981%2013.9975%205.13981C13.8488%205.13981%2013.7245%205.08931%2013.6245%204.98831C13.5245%204.88742%2013.4745%204.76292%2013.4745%204.61481V3.69531ZM10.3648%207.68148C10.6176%207.68148%2010.8329%207.59298%2011.0107%207.41598C11.1884%207.23909%2011.2773%207.02431%2011.2773%206.77165C11.2773%206.51887%2011.1889%206.30359%2011.012%206.12581C10.835%205.94803%2010.6202%205.85915%2010.3675%205.85915C10.1147%205.85915%209.89945%205.94759%209.72167%206.12448C9.54389%206.30148%209.455%206.51631%209.455%206.76898C9.455%207.02176%209.5435%207.23703%209.7205%207.41481C9.89739%207.59259%2010.1122%207.68148%2010.3648%207.68148ZM5.6315%207.68148C5.88428%207.68148%206.09956%207.59298%206.27733%207.41598C6.45511%207.23909%206.544%207.02431%206.544%206.77165C6.544%206.51887%206.4555%206.30359%206.2785%206.12581C6.10161%205.94803%205.88683%205.85915%205.63417%205.85915C5.38139%205.85915%205.16611%205.94759%204.98833%206.12448C4.81056%206.30148%204.72167%206.51631%204.72167%206.76898C4.72167%207.02176%204.81011%207.23703%204.987%207.41481C5.164%207.59259%205.37883%207.68148%205.6315%207.68148ZM7.99267%2012.0925C8.61933%2012.0925%209.19745%2011.9481%209.727%2011.6593C10.2566%2011.3706%2010.6873%2010.9714%2011.0193%2010.4615C11.0858%2010.334%2011.0817%2010.2092%2011.007%2010.087C10.9323%209.96476%2010.8203%209.90365%2010.671%209.90365H5.33083C5.17661%209.90365%205.06295%209.96476%204.98983%2010.087C4.91661%2010.2092%204.91522%2010.3327%204.98567%2010.4575C5.31345%2010.9697%205.74261%2011.3703%206.27317%2011.6591C6.80372%2011.948%207.37689%2012.0925%207.99267%2012.0925Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",customView:void 0})}getReplyInThreadOption(){const e=V("message_list_option_reply");return new Gt({id:pt.MessageOption.replyInThread,title:""!==e?e:V("message_list_option_reply_in_thread"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cmask%20id%3D%22mask0_3985_363515%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2225%22%20height%3D%2224%22%3E%3Crect%20id%3D%22Bounding%20box%22%20x%3D%220.00390625%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3985_363515%29%22%3E%3Cpath%20id%3D%22subdirectory_arrow_right%22%20d%3D%22M13.4769%2019.9578C13.3219%2019.8026%2013.246%2019.6253%2013.2492%2019.426C13.2523%2019.2267%2013.3282%2019.0526%2013.4769%2018.9038L16.6309%2015.75H7.31166C6.81299%2015.75%206.38699%2015.5734%206.03366%2015.2203C5.68049%2014.8669%205.50391%2014.4409%205.50391%2013.9423V5.25C5.50391%205.03717%205.57574%204.859%205.71941%204.7155C5.86291%204.57183%206.04107%204.5%206.25391%204.5C6.46674%204.5%206.64491%204.57183%206.78841%204.7155C6.93207%204.859%207.00391%205.03717%207.00391%205.25V13.9423C7.00391%2014.0321%207.03274%2014.1058%207.09041%2014.1635C7.14807%2014.2212%207.22182%2014.25%207.31166%2014.25H16.6309L13.4617%2011.0807C13.3065%2010.9256%2013.2315%2010.7499%2013.2367%2010.5538C13.2418%2010.3578%2013.3168%2010.1822%2013.4617%2010.027C13.6168%209.87183%2013.7941%209.79333%2013.9934%209.7915C14.1927%209.7895%2014.3667%209.86283%2014.5154%2010.0115L18.8712%2014.3673C18.9648%2014.4609%2019.0308%2014.5597%2019.0692%2014.6635C19.1077%2014.7673%2019.1269%2014.8795%2019.1269%2015C19.1269%2015.1205%2019.1077%2015.2327%2019.0692%2015.3365C19.0308%2015.4403%2018.9648%2015.5391%2018.8712%2015.6328L14.5462%2019.9578C14.391%2020.1128%2014.2128%2020.1902%2014.0117%2020.1902C13.8103%2020.1902%2013.6321%2020.1128%2013.4769%2019.9578Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:void 0})}getReplyOption(){return new Gt({id:pt.MessageOption.replyMessage,title:V("message_list_option_reply_to_message"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8296%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8296%29%22%3E%3Cpath%20d%3D%22M6.37283%2011.75L9.69608%2015.073C9.84475%2015.2218%209.91808%2015.3959%209.91608%2015.5953C9.91424%2015.7946%209.83574%2015.9718%209.68058%2016.127C9.52541%2016.2718%209.34974%2016.3468%209.15358%2016.352C8.95758%2016.357%208.78199%2016.282%208.62683%2016.127L4.13258%2011.6328C3.95174%2011.4519%203.86133%2011.241%203.86133%2011C3.86133%2010.759%203.95174%2010.5481%204.13258%2010.3673L8.62683%205.873C8.76533%205.73467%208.93674%205.66384%209.14108%205.6605C9.34558%205.65734%209.52541%205.72817%209.68058%205.873C9.83574%206.02817%209.91333%206.20642%209.91333%206.40775C9.91333%206.60892%209.83574%206.78709%209.68058%206.94225L6.37283%2010.25H15.7498C17.0627%2010.25%2018.1825%2010.7135%2019.1093%2011.6405C20.0363%2012.5673%2020.4998%2013.6872%2020.4998%2015V17.75C20.4998%2017.9628%2020.428%2018.141%2020.2843%2018.2845C20.1408%2018.4282%2019.9627%2018.5%2019.7498%2018.5C19.537%2018.5%2019.3588%2018.4282%2019.2153%2018.2845C19.0717%2018.141%2018.9998%2017.9628%2018.9998%2017.75V15C18.9998%2014.1025%2018.6825%2013.3365%2018.0478%2012.702C17.4133%2012.0673%2016.6473%2011.75%2015.7498%2011.75H6.37283Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:void 0})}getSendMessagePrivatelyOption(){return new Gt({id:pt.MessageOption.sendMessagePrivately,title:V("message_list_option_message_privately"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.8%2015.0099H21V21H13.8V15.0099Z%22%20stroke%3D%22%23808080%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M17.4%2011.4158C16.7635%2011.4158%2016.153%2011.6682%2015.7029%2012.1176C15.2529%2012.5669%2015%2013.1764%2015%2013.8118V15.0099H19.8V13.8118C19.8%2013.1764%2019.5471%2012.5669%2019.0971%2012.1176C18.647%2011.6682%2018.0365%2011.4158%2017.4%2011.4158Z%22%20stroke%3D%22%23808080%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M17.3995%2017.7286C17.3402%2017.7286%2017.2823%2017.7461%2017.2331%2017.7791C17.1838%2017.812%2017.1454%2017.8587%2017.1228%2017.9135C17.1001%2017.9682%2017.0942%2018.0284%2017.1057%2018.0865C17.1173%2018.1446%2017.1458%2018.198%2017.1877%2018.2399C17.2296%2018.2818%2017.283%2018.3103%2017.3411%2018.3218C17.3992%2018.3334%2017.4594%2018.3275%2017.5141%2018.3048C17.5688%2018.2821%2017.6156%2018.2437%2017.6485%2018.1945C17.6814%2018.1452%2017.699%2018.0873%2017.699%2018.0281C17.699%2017.9486%2017.6674%2017.8725%2017.6113%2017.8163C17.5551%2017.7601%2017.4789%2017.7286%2017.3995%2017.7286%22%20stroke%3D%22%23808080%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M21%2010.8503C20.9168%209.57663%2020.5439%208.33868%2019.9096%207.23051C19.2753%206.12235%2018.3962%205.17314%2017.3393%204.45503C16.2824%203.73692%2015.0754%203.26882%2013.8101%203.0863C12.5448%202.90378%2011.2545%203.01164%2010.0372%203.4017C8.81989%203.79176%207.70769%204.45374%206.78512%205.33732C5.86254%206.22091%205.15388%207.30285%204.71298%208.5009C4.27209%209.69895%204.11057%2010.9816%204.24071%2012.2513C4.37084%2013.521%204.78921%2014.7444%205.464%2015.8285L3%2021L8.1768%2018.5368C9.14753%2019.1412%2010.2319%2019.5408%2011.3632%2019.7109%22%20stroke%3D%22%23808080%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E",onClick:void 0})}getCopyOption(){return new Gt({id:pt.MessageOption.copyMessage,title:V("message_list_option_copy"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M7.92188%2018.6641C7.49471%2018.6641%207.12404%2018.5069%206.80988%2018.1926C6.49554%2017.8784%206.33838%2017.5077%206.33838%2017.0806V3.74731C6.33838%203.32015%206.49554%202.94948%206.80988%202.63531C7.12404%202.32115%207.49471%202.16406%207.92188%202.16406H18.2551C18.6823%202.16406%2019.053%202.32115%2019.3671%202.63531C19.6813%202.94948%2019.8384%203.32015%2019.8384%203.74731V17.0806C19.8384%2017.5077%2019.6813%2017.8784%2019.3671%2018.1926C19.053%2018.5069%2018.6823%2018.6641%2018.2551%2018.6641H7.92188ZM7.92188%2017.0806H18.2551V3.74731H7.92188V17.0806ZM4.75513%2021.8306C4.32796%2021.8306%203.95729%2021.6735%203.64313%2021.3593C3.32896%2021.0451%203.17188%2020.6745%203.17188%2020.2473V6.11806C3.17188%205.90223%203.24921%205.71706%203.40387%205.56256C3.55854%205.4079%203.74604%205.33056%203.96638%205.33056C4.18671%205.33056%204.37321%205.4079%204.52588%205.56256C4.67871%205.71706%204.75513%205.90223%204.75513%206.11806V20.2473H15.8844C16.1002%2020.2473%2016.2854%2020.3249%2016.4399%2020.4801C16.5945%2020.6352%2016.6719%2020.8211%2016.6719%2021.0378C16.6719%2021.2608%2016.5945%2021.4487%2016.4399%2021.6016C16.2854%2021.7542%2016.1002%2021.8306%2015.8844%2021.8306H4.75513Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:void 0})}getMessageInfoOption(){return new Gt({id:pt.MessageOption.messageInformation,title:V("message_list_option_info"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.0625%2016.9167C12.2828%2016.9167%2012.4693%2016.8397%2012.622%2016.6855C12.7748%2016.5313%2012.8512%2016.3431%2012.8512%2016.1208V11.8042C12.8512%2011.5884%2012.7736%2011.4032%2012.6185%2011.2485C12.4633%2011.094%2012.2774%2011.0167%2012.0607%2011.0167C11.8377%2011.0167%2011.6498%2011.094%2011.497%2011.2485C11.3443%2011.4032%2011.268%2011.5884%2011.268%2011.8042V16.1208C11.268%2016.3431%2011.3453%2016.5313%2011.5%2016.6855C11.6546%2016.8397%2011.8421%2016.9167%2012.0625%2016.9167ZM11.9992%209.16675C12.2394%209.16675%2012.4415%209.08708%2012.6055%208.92775C12.7693%208.76858%2012.8512%208.57133%2012.8512%208.336C12.8512%208.08483%2012.7701%207.87717%2012.6077%207.713C12.4454%207.54883%2012.2442%207.46675%2012.0042%207.46675C11.7577%207.46675%2011.554%207.54791%2011.393%207.71025C11.2318%207.87275%2011.1512%208.07817%2011.1512%208.3265C11.1512%208.5655%2011.2325%208.76525%2011.395%208.92575C11.5575%209.08642%2011.7589%209.16675%2011.9992%209.16675ZM12.0067%2021.8333C10.6494%2021.8333%209.37347%2021.5742%208.17897%2021.056C6.98447%2020.5377%205.94305%2019.8335%205.05472%2018.9435C4.16622%2018.0533%203.46297%2017.0116%202.94497%2015.8183C2.42697%2014.6248%202.16797%2013.3496%202.16797%2011.9927C2.16797%2010.6344%202.42705%209.35767%202.94522%208.1625C3.46355%206.96717%204.16772%205.92667%205.05772%205.041C5.94789%204.15533%206.98964%203.45483%208.18297%202.9395C9.37647%202.42433%2010.6516%202.16675%2012.0085%202.16675C13.3668%202.16675%2014.6436%202.42516%2015.839%202.942C17.0343%203.45867%2018.0748%204.16%2018.9605%205.046C19.846%205.932%2020.5464%206.97258%2021.0617%208.16775C21.5769%209.36292%2021.8345%2010.6385%2021.8345%2011.9945C21.8345%2013.3518%2021.5767%2014.6278%2021.0612%2015.8223C20.5457%2017.0168%2019.8444%2018.0572%2018.9572%2018.9435C18.0699%2019.8298%2017.0286%2020.5331%2015.8335%2021.0532C14.6383%2021.5732%2013.3627%2021.8333%2012.0067%2021.8333ZM12.009%2020.25C14.2955%2020.25%2016.2408%2019.4453%2017.845%2017.836C19.4491%2016.2267%2020.2512%2014.2787%2020.2512%2011.9922C20.2512%209.70575%2019.4504%207.76042%2017.8487%206.15625C16.2469%204.55208%2014.2979%203.75%2012.0017%203.75C9.72089%203.75%207.77555%204.55083%206.16572%206.1525C4.55605%207.75433%203.75122%209.70333%203.75122%2011.9995C3.75122%2014.2803%204.55589%2016.2257%206.16522%2017.8355C7.77455%2019.4452%209.72247%2020.25%2012.009%2020.25Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",onClick:void 0})}getMarkAsUnreadOption(){return new Gt({id:pt.MessageOption.markAsUnread,title:V("message_list_option_mark_as_unread"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6.0385%2017.4997L4.0365%2019.5015C3.752%2019.7861%203.42475%2019.8506%203.05475%2019.695C2.68492%2019.5391%202.5%2019.2586%202.5%2018.8535V4.30747C2.5%203.8023%202.675%203.37472%203.025%203.02472C3.375%202.67472%203.80258%202.49972%204.30775%202.49972H13.4808C13.6936%202.49972%2013.8734%202.57472%2014.0203%202.72472C14.1671%202.87472%2014.2372%203.05614%2014.2308%203.26897C14.2244%203.4753%2014.1494%203.64872%2014.0057%203.78922C13.8622%203.92955%2013.6873%203.99972%2013.4808%203.99972H4.30775C4.23075%203.99972%204.16025%204.0318%204.09625%204.09597C4.03208%204.15997%204%204.23047%204%204.30747V17.3845L5.4%2015.9997H19.6923C19.7693%2015.9997%2019.8398%2015.9676%2019.9038%2015.9035C19.9679%2015.8395%2020%2015.769%2020%2015.692V8.97097C20%208.75814%2020.0718%208.57989%2020.2155%208.43622C20.359%208.29272%2020.5372%208.22097%2020.75%208.22097C20.9628%208.22097%2021.141%208.29272%2021.2845%208.43622C21.4282%208.57989%2021.5%208.75814%2021.5%208.97097V15.692C21.5%2016.1971%2021.325%2016.6247%2020.975%2016.9747C20.625%2017.3247%2020.1974%2017.4997%2019.6923%2017.4997H6.0385ZM19%206.23047C18.2372%206.23047%2017.5882%205.96289%2017.053%205.42772C16.5177%204.89239%2016.25%204.2433%2016.25%203.48047C16.25%202.71764%2016.5177%202.06864%2017.053%201.53347C17.5882%200.998135%2018.2372%200.730469%2019%200.730469C19.7628%200.730469%2020.4118%200.998135%2020.947%201.53347C21.4823%202.06864%2021.75%202.71764%2021.75%203.48047C21.75%204.2433%2021.4823%204.89239%2020.947%205.42772C20.4118%205.96289%2019.7628%206.23047%2019%206.23047ZM4%204.30747V16.692V3.99972V4.30747Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",onClick:void 0})}getReportOption(){return new Gt({id:pt.MessageOption.flagMessage,title:V("message_list_option_flag_message"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.9982%2016.918C12.2447%2016.918%2012.4485%2016.8384%2012.6095%2016.6792C12.7706%2016.5201%2012.8512%2016.3172%2012.8512%2016.0707C12.8512%2015.8244%2012.7716%2015.6206%2012.6125%2015.4595C12.4533%2015.2985%2012.2506%2015.218%2012.0042%2015.218C11.7577%2015.218%2011.554%2015.2976%2011.393%2015.4567C11.2318%2015.6159%2011.1512%2015.8186%2011.1512%2016.065C11.1512%2016.3113%2011.2308%2016.5151%2011.39%2016.6762C11.5491%2016.8374%2011.7519%2016.918%2011.9982%2016.918ZM12.0625%2013.118C12.2828%2013.118%2012.4693%2013.0409%2012.622%2012.8867C12.7748%2012.7326%2012.8512%2012.5443%2012.8512%2012.322V7.75547C12.8512%207.53964%2012.7736%207.35439%2012.6185%207.19972C12.4633%207.04522%2012.2774%206.96797%2012.0607%206.96797C11.8377%206.96797%2011.6498%207.04522%2011.497%207.19972C11.3443%207.35439%2011.268%207.53964%2011.268%207.75547V12.322C11.268%2012.5443%2011.3453%2012.7326%2011.5%2012.8867C11.6546%2013.0409%2011.8421%2013.118%2012.0625%2013.118ZM12.0067%2021.8345C10.6494%2021.8345%209.37347%2021.5754%208.17897%2021.0572C6.98447%2020.5389%205.94305%2019.8347%205.05472%2018.9447C4.16622%2018.0546%203.46297%2017.0128%202.94497%2015.8195C2.42697%2014.626%202.16797%2013.3508%202.16797%2011.994C2.16797%2010.6356%202.42705%209.35889%202.94522%208.16372C3.46355%206.96839%204.16772%205.92789%205.05772%205.04222C5.94789%204.15655%206.98964%203.45605%208.18297%202.94072C9.37647%202.42555%2010.6516%202.16797%2012.0085%202.16797C13.3668%202.16797%2014.6436%202.42639%2015.839%202.94322C17.0343%203.45989%2018.0748%204.16122%2018.9605%205.04722C19.846%205.93322%2020.5464%206.9738%2021.0617%208.16897C21.5769%209.36414%2021.8345%2010.6397%2021.8345%2011.9957C21.8345%2013.3531%2021.5767%2014.629%2021.0612%2015.8235C20.5457%2017.018%2019.8444%2018.0584%2018.9572%2018.9447C18.0699%2019.8311%2017.0286%2020.5343%2015.8335%2021.0545C14.6383%2021.5745%2013.3627%2021.8345%2012.0067%2021.8345ZM12.009%2020.2512C14.2955%2020.2512%2016.2408%2019.4466%2017.845%2017.8372C19.4491%2016.2279%2020.2512%2014.28%2020.2512%2011.9935C20.2512%209.70697%2019.4504%207.76164%2017.8487%206.15747C16.2469%204.5533%2014.2979%203.75122%2012.0017%203.75122C9.72089%203.75122%207.77555%204.55205%206.16572%206.15372C4.55605%207.75555%203.75122%209.70455%203.75122%2012.0007C3.75122%2014.2816%204.55589%2016.2269%206.16522%2017.8367C7.77455%2019.4464%209.72247%2020.2512%2012.009%2020.2512Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",onClick:void 0})}isSentByMe(e,t){return!t.getSender()||e.getUid()===t.getSender().getUid()}getTextMessageOptions(e,t,n,r){let a=this.isSentByMe(e,t),o=!1;n?.getScope()===pt.groupMemberScope.participant&&(o=!0);let i=[];return r?.hideReactionOption||i.push(this.getReactionOption()),r?.hideReplyOption||i.push(this.getReplyOption()),t.getParentMessageId()||r?.hideReplyInThreadOption||i.push(this.getReplyInThreadOption()),r?.hideCopyMessageOption||i.push(this.getCopyOption()),a||r?.hideMarkAsUnreadOption||i.push(this.getMarkAsUnreadOption()),(a||!o&&n)&&!r?.hideEditMessageOption&&i.push(this.getEditOption()),a&&!r?.hideMessageInfoOption&&i.push(this.getMessageInfoOption()),a||r?.hideFlagMessageOption||t.getCategory()!==pt.MessageCategory.message||i.push(this.getReportOption()),(a||!o&&n)&&!r?.hideDeleteMessageOption&&i.push(this.getDeleteOption()),!n||a||r?.hideMessagePrivatelyOption||i.push(this.getSendMessagePrivatelyOption()),i}getIsSentByMe(e){return!e.getSender()||e.getSender().getUid()==dt.getLoggedInUser()?.getUid()}getImageMessageOptions(e,t,n,r){let a=[];return a=Gf.getDataSource().getCommonOptions(e,t,n,r),a}getVideoMessageOptions(e,t,n,r){let a=[];return a=Gf.getDataSource().getCommonOptions(e,t,n,r),a}getAudioMessageOptions(e,t,n,r){let a=[];return a=Gf.getDataSource().getCommonOptions(e,t,n,r),a}getFileMessageOptions(e,t,n,r){let a=[];return a=Gf.getDataSource().getCommonOptions(e,t,n,r),a}getReceiptClass(e){return e==t.W4f.error?"error":e==t.W4f.read?"read":e==t.W4f.delivered?"delivered":e==t.W4f.sent?"sent":e==t.W4f.wait?"wait":void 0}getMessageSentAtDateFormat(e){return{yesterday:"hh:mm A",otherDays:"hh:mm A",today:"hh:mm A",...G.calendarObject,...e}}getBottomView(e,t){return null}getReplyView(e,t,n,a){const i=a||Gf.getDataSource().getAllTextFormatters({});let s=!1;return(e instanceof o.CometChat.TextMessage||e instanceof o.CometChat.MediaMessage)&&e.getModerationStatus()===pt.moderationStatus.disapproved&&(s=!0),!e.getQuotedMessage()||e instanceof o.CometChat.Action||e instanceof o.CometChat.Call||"meeting"==e.getType()||e.getDeletedAt()?null:r.jsx("div",{style:{width:"100%"},onClick:()=>{n&&n(e)},children:r.jsx(Ff,{hideCloseButton:!0,message:e.getQuotedMessage(),isMessageModerated:s,textFormatters:i,previewTitle:this.getMessagePreviewTitle(e.getQuotedMessage(),t),previewSubtitle:this.getMessagePreviewSubtitle(e.getQuotedMessage(),a,t)})})}getFooterView(e){return e instanceof o.CometChat.AIAssistantMessage?r.jsx("div",{title:V("message_list_option_copy"),className:"cometchat-ai-assistant-message-bubble__copy",style:{cursor:"pointer"},onClick:()=>this.handleCopy(e)}):null}getTextMessageTemplate(e){return new Yt({type:pt.MessageTypes.text,category:pt.MessageCategory.message,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(t,n,r)=>{const a={...e,...(o=e?.textFormatters,i=r,!i||0===i.length||o&&0!==o.length&&!i.some(e=>!o.some(t=>e.constructor?.name===t.constructor?.name))?{}:{textFormatters:r})};var o,i;let s=t;return null!=s.getDeletedAt()?this.getDeleteMessageBubble(s,void 0,n):Gf.getDataSource().getTextMessageContentView(s,n,a)},options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getAgentAssistantMessageBubble(e){return r.jsx(Ef,{message:e})}getToolArgumentsMessageBubble(e){return r.jsx(Uf,{message:e})}getToolResultsMessageBubble(e){return r.jsx(jf,{message:e})}getAgentAssistantMessageTemplate(){return new Yt({type:pt.MessageTypes.assistant,category:pt.MessageCategory.agentic,statusInfoView:void 0,contentView:(e,t)=>Gf.getDataSource().getAgentAssistantMessageBubble(e,t),options:void 0,footerView:e=>Gf.getDataSource().getFooterView(e)})}getToolResultsMessageTemplate(){return new Yt({type:pt.MessageTypes.toolResults,category:pt.MessageCategory.agentic,statusInfoView:void 0,contentView:(e,t)=>Gf.getDataSource().getToolResultsMessageBubble(e,t),options:void 0,footerView:e=>Gf.getDataSource().getFooterView(e)})}getToolArgumentsMessageTemplate(){return new Yt({type:pt.MessageTypes.toolArguments,category:pt.MessageCategory.agentic,statusInfoView:void 0,contentView:(e,t)=>Gf.getDataSource().getToolArgumentsMessageBubble(e,t),options:void 0,footerView:e=>Gf.getDataSource().getFooterView(e)})}getStreamMessageBubble(e){return r.jsx(Pf,{message:e},e.getId()+e.getType())}getStreamMessageTemplate(){return new Yt({type:pt.streamMessageTypes.run_started,category:pt.MessageCategory.custom,statusInfoView:void 0,contentView:(e,t)=>Gf.getDataSource().getStreamMessageBubble(e,t),options:void 0,bottomView:void 0})}getAudioMessageTemplate(){return new Yt({type:pt.MessageTypes.audio,category:pt.MessageCategory.message,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>{let n=e;return null!=n.getDeletedAt()?this.getDeleteMessageBubble(e,void 0,t):Gf.getDataSource().getAudioMessageContentView(n,t)},options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getVideoMessageTemplate(){return new Yt({type:pt.MessageTypes.video,category:pt.MessageCategory.message,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>{let n=e;return null!=n.getDeletedAt()?this.getDeleteMessageBubble(e,void 0,t):Gf.getDataSource().getVideoMessageContentView(n,t)},options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getImageMessageTemplate(){return new Yt({type:pt.MessageTypes.image,category:pt.MessageCategory.message,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>{let n=e;return null!=n.getDeletedAt()?this.getDeleteMessageBubble(e,void 0,t):Gf.getDataSource().getImageMessageContentView(n,t)},options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getGroupActionTemplate(e){return new Yt({type:pt.MessageTypes.groupMember,category:pt.MessageCategory.action,contentView:(t,n)=>e?.hideGroupActionMessages?null:this.getGroupActionBubble(t)})}getFileMessageTemplate(){return new Yt({type:pt.MessageTypes.file,category:pt.MessageCategory.message,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>{let n=e;return null!=n.getDeletedAt()?this.getDeleteMessageBubble(e,void 0,t):Gf.getDataSource().getFileMessageContentView(n,t)},options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getAllMessageTemplates(e){return e||(e={disableMentions:!1}),[Gf.getDataSource().getTextMessageTemplate(e),Gf.getDataSource().getImageMessageTemplate(),Gf.getDataSource().getVideoMessageTemplate(),Gf.getDataSource().getAudioMessageTemplate(),Gf.getDataSource().getFileMessageTemplate(),Gf.getDataSource().getGroupActionTemplate(e),Gf.getDataSource().getFormMessageTemplate(),Gf.getDataSource().getSchedulerMessageTemplate(),Gf.getDataSource().getCardMessageTemplate(),Gf.getDataSource().getAgentAssistantMessageTemplate(),Gf.getDataSource().getStreamMessageTemplate(),this.getToolResultsMessageTemplate(),this.getToolArgumentsMessageTemplate()]}getMessageTemplate(e,t,n){n||(n={disableMentions:!1});let r=null;if(t!==pt.MessageCategory.call)switch(e){case pt.MessageTypes.text:r=Gf.getDataSource().getTextMessageTemplate(n);break;case pt.MessageTypes.image:r=Gf.getDataSource().getImageMessageTemplate();break;case pt.MessageTypes.video:r=Gf.getDataSource().getVideoMessageTemplate();break;case pt.MessageTypes.groupMember:r=Gf.getDataSource().getGroupActionTemplate(n);break;case pt.MessageTypes.file:r=Gf.getDataSource().getFileMessageTemplate();break;case pt.MessageTypes.audio:r=Gf.getDataSource().getAudioMessageTemplate();break;case pt.MessageTypes.form:r=Gf.getDataSource().getFormMessageTemplate();break;case pt.MessageTypes.scheduler:r=Gf.getDataSource().getSchedulerMessageTemplate();break;case pt.MessageTypes.card:r=Gf.getDataSource().getCardMessageTemplate()}return r}getMessageOptions(e,t,n,r){let a=[],i=!1,s=pt.moderationStatus.unmoderated;if((t instanceof o.CometChat.TextMessage||t instanceof o.CometChat.MediaMessage)&&(s=t.getModerationStatus()),n?.getScope()===pt.groupMemberScope.participant&&(i=!0),s===pt.moderationStatus.disapproved)return a=[],(this.isSentByMe(e,t)||!i&&n)&&!r?.hideDeleteMessageOption&&a.push(this.getDeleteOption()),"text"===t.getType()&&(r?.hideCopyMessageOption||a.push(this.getCopyOption())),a;if(t.getCategory()===pt.MessageCategory.message)switch(t.getType()){case pt.MessageTypes.text:a=Gf.getDataSource().getTextMessageOptions(e,t,n,r);break;case pt.MessageTypes.image:a=Gf.getDataSource().getImageMessageOptions(e,t,n,r);break;case pt.MessageTypes.video:a=Gf.getDataSource().getVideoMessageOptions(e,t,n,r);break;case pt.MessageTypes.groupMember:a=[];break;case pt.MessageTypes.file:a=Gf.getDataSource().getFileMessageOptions(e,t,n,r);break;case pt.MessageTypes.audio:a=Gf.getDataSource().getAudioMessageOptions(e,t,n,r);break;default:a=Gf.getDataSource().getCommonOptions(e,t,n,r)}else t.getCategory()!=pt.MessageCategory.custom&&t.getCategory()!=pt.MessageCategory.interactive||(a=Gf.getDataSource().getCommonOptions(e,t,n,r));return a}getCommonOptions(e,t,n,r){let a=this.isSentByMe(e,t),o=!1;n?.getScope()===pt.groupMemberScope.participant&&(o=!0);let i=[];return r?.hideReactionOption||i.push(this.getReactionOption()),r?.hideReplyOption||i.push(this.getReplyOption()),t?.getParentMessageId()||r?.hideReplyInThreadOption||i.push(this.getReplyInThreadOption()),a&&!r?.hideMessageInfoOption&&i.push(this.getMessageInfoOption()),a||r?.hideMarkAsUnreadOption||i.push(this.getMarkAsUnreadOption()),a||r?.hideFlagMessageOption||t.getCategory()!==pt.MessageCategory.message||i.push(this.getReportOption()),(a||!o&&n)&&!r?.hideDeleteMessageOption&&i.push(this.getDeleteOption()),!n?.getGuid()||a||r?.hideMessagePrivatelyOption||i.push(this.getSendMessagePrivatelyOption()),i}getAllMessageTypes(){return[pt.MessageTypes.text,pt.MessageTypes.image,pt.MessageTypes.audio,pt.MessageTypes.video,pt.MessageTypes.file,pt.MessageTypes.groupMember,pt.MessageTypes.form,pt.MessageTypes.scheduler,pt.MessageTypes.card,pt.MessageTypes.assistant]}addList(){return"<Message Utils>"}getAllMessageCategories(e){let t=[pt.MessageCategory.message,pt.MessageCategory.interactive,pt.MessageCategory.agentic];return e?.hideGroupActionMessages||t.push(pt.MessageCategory.action),t}getStickerButton(e,t,n,r,a){}getId(){return"messageUtils"}getTextMessageContentView(e,t,n){return Gf.getDataSource().getTextMessageBubble(e.getText(),e,t,n)}getAudioMessageContentView(e,t){if(!e?.getAttachments()?.length){const n=e?.getMetadata(),r=n?.file;if(r){const n=URL.createObjectURL(r);return Gf.getDataSource().getAudioMessageBubble(n,e,r.name,t)}return Gf.getDataSource().getFileMessageBubble("",e,void 0,t)}return Gf.getDataSource().getAudioMessageBubble(e?.getAttachments()[0]?.getUrl(),e,e?.getAttachments()[0]?.getName(),t)}getFileMessageContentView(e,t){return Gf.getDataSource().getFileMessageBubble(e?.getAttachments()[0]?.getUrl(),e,e?.getAttachments()[0]?.getName(),t)}getImageMessageContentView(e,t){if(!e?.getAttachments()?.length){const n=e?.getMetadata(),r=n?.file;if(r){const n=URL.createObjectURL(r);return Gf.getDataSource().getImageMessageBubble(n,Dn,e,void 0,t)}return Gf.getDataSource().getFileMessageBubble("",e,void 0,t)}let n=e?.getAttachments()[0]?.getUrl()||"";return Gf.getDataSource().getImageMessageBubble(n,Dn,e,void 0,t)}getVideoMessageContentView(e,t){if(!e?.getAttachments()?.length){const n=e?.getMetadata(),r=n?.file;if(r){const n=URL.createObjectURL(r);return Gf.getDataSource().getVideoMessageBubble(n,e,void 0,void 0,t)}return Gf.getDataSource().getFileMessageBubble("",e,void 0,t)}return Gf.getDataSource().getVideoMessageBubble(e?.getAttachments()[0]?.getUrl(),e,void 0,void 0,t)}getActionMessage(e){let t="";if(!1===e.hasOwnProperty("actionBy")||!1===e.hasOwnProperty("actionOn"))return t;if(e.action!==pt.groupMemberAction.JOINED&&e.action!==pt.groupMemberAction.LEFT&&(!1===e.actionBy.hasOwnProperty("name")||!1===e.actionOn.hasOwnProperty("name")))return t;if(e.action===pt.groupMemberAction.SCOPE_CHANGE){if(!e.hasOwnProperty("data")||!e.data.hasOwnProperty("extras"))return t;if(!e.data.extras.hasOwnProperty("scope"))return t;if(!1===e.data.extras.scope.hasOwnProperty("new"))return t}if(e.action===pt.groupMemberAction.SCOPE_CHANGE&&!1===e.data.extras.hasOwnProperty("scope"))return t;if(e.action===pt.groupMemberAction.SCOPE_CHANGE&&!1===e.data.extras.scope.hasOwnProperty("new"))return t;const n=e.actionBy,r=e.actionOn,a=n.name,o=e.action!==pt.groupMemberAction.JOINED&&e.action!==pt.groupMemberAction.LEFT?r.name:"";switch(e.action){case pt.groupMemberAction.ADDED:t=`${a} ${V("message_list_action_added")} ${o}`;break;case pt.groupMemberAction.JOINED:t=`${a} ${V("message_list_action_joined")}`;break;case pt.groupMemberAction.LEFT:t=`${a} ${V("message_list_action_left")}`;break;case pt.groupMemberAction.KICKED:t=`${a} ${V("message_list_action_kicked")} ${o}`;break;case pt.groupMemberAction.BANNED:t=`${a} ${V("message_list_action_banned")} ${o}`;break;case pt.groupMemberAction.UNBANNED:t=`${a} ${V("message_list_action_unbanned")} ${o}`;break;case pt.groupMemberAction.SCOPE_CHANGE:{const n=e.data.extras.scope.new;t=`${a} ${V("message_list_action_made")} ${o} ${V(`member_scope_${n}`)}`;break}}return t}getDeleteMessageBubble(e,n,a){return r.jsx(jn,{isSentByMe:a==t.JxA.right,text:n})}getGroupActionBubble(e){let t=this.getActionMessage(e);return r.jsx(nr,{messageText:t})}getTextMessageBubble(e,n,a,o){let i,s={...o,textFormatters:o?.textFormatters&&o?.textFormatters.length?[...o.textFormatters]:this.getAllTextFormatters({alignment:a,disableMentions:o?.disableMentions})},c=s.textFormatters;if(s&&!s.disableMentions){let e;for(let t=0;t<c.length;t++){if(c[t]instanceof En){if(e=c[t],e.setMessage(n),n.getMentionedUsers().length&&e.setCometChatUserGroupMembers(n.getMentionedUsers()),n.getType()===pt.MessageTypes.text&&!n.getDeletedAt()){const t=/<@all:(.*?)>/g,r=n.getText(),a=Array.from(r.matchAll(t)).map(e=>e[1]);e.setCometChatMentionedChannels(a)}if(e.setLoggedInUser(dt.getLoggedInUser()),i)break}if(c[t]instanceof Cn&&(i=c[t],e))break}e||(e=Gf.getDataSource().getMentionsTextFormatter({message:n,...s,alignment:a}),c.push(e))}else for(let e=0;e<c.length;e++)if(c[e]instanceof Cn){i=c[e];break}i||(i=Gf.getDataSource().getUrlTextFormatter({alignment:a}),c.push(i));for(let e=0;e<c.length;e++)c[e].setMessageBubbleAlignment(a),c[e].setMessage(n);return r.jsx(Pn,{isSentByMe:a==t.JxA.right,text:e,textFormatters:c})}getAudioMessageBubble(e,n,a,o){return r.jsx(Jn,{isSentByMe:o==t.JxA.right,src:e})}getFileMessageBubble(e,n,a,o){let i=n.getAttachments()[0];const s=n.getMetadata(),c=s?.file,l=a??i?.getName()??c?.name??s?.fileName,u=i?.getMimeType()??c?.type??s?.fileType,d=this.getFileSize(i?.getSize()??c?.size??s?.fileSize),p=this.getFileType(u),h=`${d} ${i?.getExtension()?`• ${i.getExtension()}`:""}`.trim();return r.jsx($n,{fileTypeIconURL:p,subtitle:h,title:l,fileURL:e,isSentByMe:o==t.JxA.right})}getImageMessageBubble(e,t,n,a){const o=r.jsx(Mn,{url:n?.getAttachments()[0]?.getUrl()??e,ccCloseClicked:()=>{yn.ccHideDialog.next()},message:n});return r.jsx(Ln,{src:e,placeholderImage:t,isSentByMe:this.getIsSentByMe(n),onImageClicked:wt()?void 0:()=>{yn.ccShowDialog.next({child:o,confirmCallback:null})}})}getVideoMessageBubble(e,t,n,a){return r.jsx(Un,{isSentByMe:this.getIsSentByMe(t),src:e})}imageAttachmentOption(){return new Ht({id:pt.MessageTypes.image,title:V("message_composer_attach_image"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8295%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8295%29%22%3E%3Cpath%20d%3D%22M5.30775%2020.5C4.80258%2020.5%204.375%2020.325%204.025%2019.975C3.675%2019.625%203.5%2019.1974%203.5%2018.6923V5.30775C3.5%204.80258%203.675%204.375%204.025%204.025C4.375%203.675%204.80258%203.5%205.30775%203.5H18.6923C19.1974%203.5%2019.625%203.675%2019.975%204.025C20.325%204.375%2020.5%204.80258%2020.5%205.30775V18.6923C20.5%2019.1974%2020.325%2019.625%2019.975%2019.975C19.625%2020.325%2019.1974%2020.5%2018.6923%2020.5H5.30775ZM7.654%2016.75H16.423C16.6038%2016.75%2016.7378%2016.6679%2016.825%2016.5038C16.9122%2016.3398%2016.8987%2016.1808%2016.7845%2016.027L14.4%2012.8328C14.3063%2012.7123%2014.1858%2012.652%2014.0385%2012.652C13.891%2012.652%2013.7705%2012.7123%2013.677%2012.8328L11.2308%2016.0192L9.59225%2013.9192C9.49875%2013.8051%209.37983%2013.748%209.2355%2013.748C9.09133%2013.748%208.97242%2013.8083%208.87875%2013.929L7.302%2016.027C7.1815%2016.1808%207.16483%2016.3398%207.252%2016.5038C7.33917%2016.6679%207.47317%2016.75%207.654%2016.75Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:null})}videoAttachmentOption(){return new Ht({id:pt.MessageTypes.video,title:V("message_composer_attach_video"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8284%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8284%29%22%3E%3Cpath%20d%3D%22M4.54773%2019.5C4.04273%2019.5%203.61523%2019.325%203.26523%2018.975C2.91523%2018.625%202.74023%2018.1974%202.74023%2017.6923V6.30775C2.74023%205.80258%202.91523%205.375%203.26523%205.025C3.61523%204.675%204.04273%204.5%204.54773%204.5H15.9325C16.4375%204.5%2016.865%204.675%2017.215%205.025C17.565%205.375%2017.74%205.80258%2017.74%206.30775V10.8848L20.4862%208.1385C20.6337%207.991%2020.7994%207.95417%2020.9832%208.028C21.1672%208.10167%2021.2592%208.24233%2021.2592%208.45V15.55C21.2592%2015.7577%2021.1672%2015.8983%2020.9832%2015.972C20.7994%2016.0458%2020.6337%2016.009%2020.4862%2015.8615L17.74%2013.1152V17.6923C17.74%2018.1974%2017.565%2018.625%2017.215%2018.975C16.865%2019.325%2016.4375%2019.5%2015.9325%2019.5H4.54773Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:null})}audioAttachmentOption(){return new Ht({id:pt.MessageTypes.audio,title:V("message_composer_attach_audio"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8297%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8297%29%22%3E%3Cpath%20d%3D%22M10.7942%2015.3652L15.15%2012.5673C15.364%2012.4314%2015.471%2012.2427%2015.471%2012.001C15.471%2011.7593%2015.364%2011.5699%2015.15%2011.4327L10.7942%208.63475C10.5699%208.48092%2010.3397%208.46858%2010.1037%208.59775C9.86792%208.72692%209.75%208.92833%209.75%209.202V14.798C9.75%2015.0717%209.86792%2015.2731%2010.1037%2015.4022C10.3397%2015.5314%2010.5699%2015.5191%2010.7942%2015.3652ZM12.0017%2021.5C10.6877%2021.5%209.45267%2021.2507%208.2965%2020.752C7.14033%2020.2533%206.13467%2019.5766%205.2795%2018.7218C4.42433%2017.8669%203.74725%2016.8617%203.24825%2015.706C2.74942%2014.5503%202.5%2013.3156%202.5%2012.0017C2.5%2010.6877%202.74933%209.45267%203.248%208.2965C3.74667%207.14033%204.42342%206.13467%205.27825%205.2795C6.13308%204.42433%207.13833%203.74725%208.294%203.24825C9.44967%202.74942%2010.6844%202.5%2011.9983%202.5C13.3123%202.5%2014.5473%202.74933%2015.7035%203.248C16.8597%203.74667%2017.8653%204.42342%2018.7205%205.27825C19.5757%206.13308%2020.2528%207.13833%2020.7518%208.294C21.2506%209.44967%2021.5%2010.6844%2021.5%2011.9983C21.5%2013.3123%2021.2507%2014.5473%2020.752%2015.7035C20.2533%2016.8597%2019.5766%2017.8653%2018.7218%2018.7205C17.8669%2019.5757%2016.8617%2020.2528%2015.706%2020.7518C14.5503%2021.2506%2013.3156%2021.5%2012.0017%2021.5Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:null})}fileAttachmentOption(){return new Ht({id:pt.MessageTypes.file,title:V("message_composer_attach_file"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cmask%20id%3D%22mask0_3985_201121%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20id%3D%22Bounding%20box%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3985_201121%29%22%3E%3Cpath%20id%3D%22description%22%20d%3D%22M9%2017.75H15C15.2125%2017.75%2015.3906%2017.6781%2015.5343%2017.5343C15.6781%2017.3904%2015.75%2017.2122%2015.75%2016.9998C15.75%2016.7871%2015.6781%2016.609%2015.5343%2016.4655C15.3906%2016.3218%2015.2125%2016.25%2015%2016.25H9C8.7875%2016.25%208.60942%2016.3219%208.46575%2016.4658C8.32192%2016.6096%208.25%2016.7878%208.25%2017.0003C8.25%2017.2129%208.32192%2017.391%208.46575%2017.5345C8.60942%2017.6782%208.7875%2017.75%209%2017.75ZM9%2013.75H15C15.2125%2013.75%2015.3906%2013.6781%2015.5343%2013.5343C15.6781%2013.3904%2015.75%2013.2122%2015.75%2012.9998C15.75%2012.7871%2015.6781%2012.609%2015.5343%2012.4655C15.3906%2012.3218%2015.2125%2012.25%2015%2012.25H9C8.7875%2012.25%208.60942%2012.3219%208.46575%2012.4658C8.32192%2012.6096%208.25%2012.7878%208.25%2013.0003C8.25%2013.2129%208.32192%2013.391%208.46575%2013.5345C8.60942%2013.6782%208.7875%2013.75%209%2013.75ZM6.30775%2021.5C5.80258%2021.5%205.375%2021.325%205.025%2020.975C4.675%2020.625%204.5%2020.1974%204.5%2019.6923V4.30775C4.5%203.80258%204.675%203.375%205.025%203.025C5.375%202.675%205.80258%202.5%206.30775%202.5H13.502C13.7458%202.5%2013.9782%202.54683%2014.1992%202.6405C14.4202%202.734%2014.6128%202.86283%2014.777%203.027L18.973%207.223C19.1372%207.38717%2019.266%207.57975%2019.3595%207.80075C19.4532%208.02175%2019.5%208.25417%2019.5%208.498V19.6923C19.5%2020.1974%2019.325%2020.625%2018.975%2020.975C18.625%2021.325%2018.1974%2021.5%2017.6923%2021.5H6.30775ZM13.5%207.6C13.5%207.855%2013.5863%208.06875%2013.7587%208.24125C13.9312%208.41375%2014.145%208.5%2014.4%208.5H18L13.5%204V7.6Z%22%20fill%3D%22%236852D6%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:null})}getAttachmentOptions(e,t){const n=[this.imageAttachmentOption(),this.videoAttachmentOption(),this.audioAttachmentOption(),this.fileAttachmentOption()],r={[pt.MessageTypes.image]:t?.hideImageAttachmentOption,[pt.MessageTypes.video]:t?.hideVideoAttachmentOption,[pt.MessageTypes.audio]:t?.hideAudioAttachmentOption,[pt.MessageTypes.file]:t?.hideFileAttachmentOption};return n.filter(e=>!r[e.id])}getLastConversationMessage(e,n,r){let a=r.textFormatters||r.textFormattersList||[],i={...r,textFormatters:a&&a.length?[...a]:[new Nn,this.getMentionsTextFormatter({disableMentions:r.disableMentions})]},s=_n.getLastConversationMessage(e,n,i);s=ht.sanitizeText(s);let c=e.getLastMessage();if(c){let e=i.textFormatters;if(i&&!i.disableMentions){let t;for(let n=0;n<e.length;n++){if(e[n]instanceof En){if(t=e[n],t.setMessage(c),c.getMentionedUsers().length&&t.setCometChatUserGroupMembers(c.getMentionedUsers()),c.getType()===pt.MessageTypes.text&&!c.getDeletedAt()){const e=/<@all:(.*?)>/g,n=c.getText(),r=Array.from(n.matchAll(e)).map(e=>e[1]);t.setCometChatMentionedChannels(r)}t.setLoggedInUser(dt.getLoggedInUser())}if(t)break}t||(t=Gf.getDataSource().getMentionsTextFormatter({messageObject:c,...i,alignment:null}),e.push(t))}if(c&&c instanceof o.CometChat.TextMessage)for(let n=0;n<e.length;n++){let r=e[n].getFormattedText(s,{mentionsTargetElement:t.rnx.conversation});"string"==typeof r&&(s=r)}}return s}getMessagePreviewSubtitle(e,n,a){try{if(!e)return null;const i=e.getType(),s=e.getAttachments?.(),c=(e,t,n)=>{const a=n||`cometchat-message-preview__subtitle-icon-${e}`;return r.jsxs("div",{className:"cometchat-message-preview__subtitle",children:[r.jsx("div",{className:`cometchat-message-preview__subtitle-icon ${a}`}),r.jsx("div",{className:"cometchat-message-preview__subtitle-text",children:t})]})},l=(e,t,n,a)=>{const o=a||`cometchat-message-preview__subtitle-icon-${e}-${t}`;return r.jsxs("div",{className:"cometchat-message-preview__subtitle cometchat-message-preview__subtitle-call",children:[r.jsx("div",{className:`cometchat-message-preview__subtitle-icon ${o}`}),r.jsx("div",{className:"cometchat-message-preview__subtitle-text",children:n})]})},u=(e,t,n)=>{const a=n||`cometchat-message-preview__subtitle-icon-${e}`;return r.jsxs("div",{className:"cometchat-message-preview__subtitle",children:[r.jsx("div",{className:`cometchat-message-preview__subtitle-icon ${a}`}),r.jsx("div",{className:"cometchat-message-preview__subtitle-text",children:t})]})},d=o=>{const i=n||Gf.getDataSource().getAllTextFormatters({}),s=ht.convertFormattingHtmlToMarkdown(o);let c=ht.sanitizeText(s);i.forEach(t=>{t.setMessage(e),t.setMessageBubbleAlignment(a)});for(let e=0;e<i.length;e++)c=i[e].getFormattedText(c,{mentionsTargetElement:t.rnx.textbubble});return r.jsx("div",{className:"cometchat-message-preview__subtitle",children:r.jsx("div",{className:"cometchat-message-preview__subtitle-text",dangerouslySetInnerHTML:{__html:c}})},e.getId())};if(e.getDeletedAt())return u("deleted",V("message_preview_deleted_message"));switch(i){case pt.MessageTypes.text:return d(e.getText());case pt.MessageTypes.image:return s?c("image",s[0].name,"cometchat-message-preview__subtitle-icon-image"):null;case pt.MessageTypes.video:return s?c("video",s[0].name,"cometchat-message-preview__subtitle-icon-video"):null;case pt.MessageTypes.audio:return s?c("audio",s[0].name,"cometchat-message-preview__subtitle-icon-audio"):null;case pt.MessageTypes.file:return s?c("file",s[0].name,"cometchat-message-preview__subtitle-icon-file"):null;case pt.calls.meeting:try{const t=e.getCustomData(),n=t?.callType||"meeting",r=e.getSender().getUid()===dt.getLoggedInUser()?.getUid(),a=r?"outgoing":"incoming";return l(n,a,`${r?"Outgoing":"Incoming"} ${n} call`,`cometchat-message-preview__subtitle-icon-meeting-${a}-${n}`)}catch(e){return u("meeting","Call","cometchat-message-preview__subtitle-icon-meeting")}case $t.extension_poll:return u("poll",e instanceof o.CometChat.CustomMessage&&e.getConversationText()||V("conversation_subtitle_poll"),"cometchat-message-preview__subtitle-icon-poll");case Qt.sticker:return u("sticker",e instanceof o.CometChat.CustomMessage&&e.getConversationText()||V("message_composer_sticker_hover"),"cometchat-message-preview__subtitle-icon-sticker");case Zt.extension_whiteboard:return u("collaborative-whiteboard",e instanceof o.CometChat.CustomMessage&&e.getConversationText()||V("messsage_composer_collaborative_whiteboard"),"cometchat-message-preview__subtitle-icon-collaborative-whiteboard");case Jt.extension_document:return u("collaborative-document",e instanceof o.CometChat.CustomMessage&&e.getConversationText()||V("messsage_composer_collaborative_document"),"cometchat-message-preview__subtitle-icon-collaborative-document");default:return e instanceof o.CometChat.CustomMessage?u("unsupported",e.getConversationText()||e.getType(),`cometchat-message-preview__subtitle-icon-unsupported cometchat-message-preview__subtitle-icon-${e.getType()}`):r.jsxs("div",{className:"cometchat-message-preview__subtitle",children:[r.jsx("div",{className:"cometchat-message-preview__subtitle-icon cometchat-message-preview__subtitle-icon-unsupported"}),r.jsx("div",{className:"cometchat-message-preview__subtitle-text",children:"Unsupported message"})]})}}catch(e){return null}}getMessagePreviewTitle(e,t){if(!e)return null;const n=e.getSender().getUid()===dt.getLoggedInUser()?.getUid();return r.jsx("div",{className:"cometchat-message-preview__title",children:n?V("conversation_subtitle_you_message"):e.getSender().getName()})}getAuxiliaryHeaderMenu(e,t,n){return[]}getMentionsFormattedText(e,t,n){const r=/<@uid:(.*?)>/g,a=/<@all:(.*?)>/g;let o=e.getText(),i=t,s=r.exec(o),c=a.exec(o),l=[],u=[],d=e.getMentionedUsers();for(;null!==s;){let e;for(let t=0;t<d.length;t++)s[1]==d[t].getUid()&&(e=d[t]);e&&l.push(e),s=r.exec(o)}for(;null!==c;)u.push(c[1]),c=a.exec(o);let p=this.getMentionsTextFormatter({});return p.setClasses(["cc-mentions"]),p.setCometChatUserGroupMembers(l),p.setCometChatMentionedChannels(u),i=p.getFormattedText(i,n),i}getAllTextFormatters(e){let t=[];const n=new On;t.push(n);const r=new Nn;t.push(r);const a=e.disableMentions?null:Gf.getDataSource().getMentionsTextFormatter(e),o=Gf.getDataSource().getUrlTextFormatter(e);return a&&t.push(a),o&&t.push(o),t}getMentionsTextFormatter(e){return new En}getUrlTextFormatter(e={}){return new Cn([/((https?:\/\/|www\.)[^\s]+)/i])}getFormMessageBubble(e,t){return this.getDeleteMessageBubble(e,V("message_type_not_supported"),t)}getSchedulerMessageBubble(e,t){return this.getDeleteMessageBubble(e,V("message_type_not_supported"),t)}getCardMessageBubble(e,t){return this.getDeleteMessageBubble(e,V("message_type_not_supported"),t)}getFormMessageTemplate(){return new Yt({type:pt.MessageTypes.form,category:pt.MessageCategory.interactive,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>null!=e.getDeletedAt()?this.getDeleteMessageBubble(e):this.getFormMessageContentView(e,t),options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getSchedulerMessageTemplate(){return new Yt({type:pt.MessageTypes.scheduler,category:pt.MessageCategory.interactive,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>null!=e.getDeletedAt()?this.getDeleteMessageBubble(e):this.getSchedulerMessageContentView(e,t),options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getCardMessageTemplate(){return new Yt({type:pt.MessageTypes.card,category:pt.MessageCategory.interactive,statusInfoView:Gf.getDataSource().getStatusInfoView,replyView:Gf.getDataSource().getReplyView,contentView:(e,t)=>null!=e.getDeletedAt()?this.getDeleteMessageBubble(e):this.getCardMessageContentView(e,t),options:Gf.getDataSource().getMessageOptions,bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getFormMessageContentView(e,t){return Gf.getDataSource().getFormMessageBubble(e,t)}getSchedulerMessageContentView(e,t){return Gf.getDataSource().getSchedulerMessageBubble(e,t)}getCardMessageContentView(e,t){return Gf.getDataSource().getCardMessageBubble(e,t)}}class Gf{static init(e){this.dataSource=e??new Bf,e||(this.names=[]),this.names.push(this.dataSource.getId())}static enable(e){let t=e(this.dataSource);this.names.find(e=>e===t.getId())||(this.dataSource=t,this.names.push(this.dataSource.getId()))}static getDataSource(){return this.dataSource}}Gf.names=["message utils"];class Vf{constructor(e){this.dataSource=e}getTextMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getTextMessageOptions(e,t,n,r)}getImageMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getImageMessageOptions(e,t,n,r)}getVideoMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getVideoMessageOptions(e,t,n,r)}getAudioMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getAudioMessageOptions(e,t,n,r)}getFileMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getFileMessageOptions(e,t,n,r)}getStatusInfoView(e,t,n,r,a){return(this.dataSource??new Bf).getStatusInfoView(e,t,n,r,a)}getBottomView(e,t){return(this.dataSource??new Bf).getBottomView(e,t)}getReplyView(e,t,n,r){return(this.dataSource??new Bf).getReplyView(e,t,n,r)}getFooterView(e){return(this.dataSource??new Bf).getFooterView(e)}getMessagePreviewSubtitle(e,t,n){return(this.dataSource??new Bf).getMessagePreviewSubtitle(e,t,n)}getMessagePreviewTitle(e,t){return(this.dataSource??new Bf).getMessagePreviewTitle(e,t)}getTextMessageContentView(e,t,n){return(this.dataSource??new Bf).getTextMessageContentView(e,t,n)}getImageMessageContentView(e,t){return(this.dataSource??new Bf).getImageMessageContentView(e,t)}getVideoMessageContentView(e,t){return(this.dataSource??new Bf).getVideoMessageContentView(e,t)}getAudioMessageContentView(e,t){return(this.dataSource??new Bf).getAudioMessageContentView(e,t)}getFileMessageContentView(e,t){return(this.dataSource??new Bf).getFileMessageContentView(e,t)}getTextMessageTemplate(e){return(this.dataSource??new Bf).getTextMessageTemplate(e)}getAgentAssistantMessageTemplate(e){return(this.dataSource??new Bf).getAgentAssistantMessageTemplate(e)}getToolArgumentsMessageTemplate(e){return(this.dataSource??new Bf).getToolArgumentsMessageTemplate(e)}getToolResultsMessageTemplate(e){return(this.dataSource??new Bf).getToolResultsMessageTemplate(e)}getStreamMessageTemplate(e){return(this.dataSource??new Bf).getStreamMessageTemplate(e)}getImageMessageTemplate(){return(this.dataSource??new Bf).getImageMessageTemplate()}getVideoMessageTemplate(){return(this.dataSource??new Bf).getVideoMessageTemplate()}getAudioMessageTemplate(){return(this.dataSource??new Bf).getAudioMessageTemplate()}getFileMessageTemplate(){return(this.dataSource??new Bf).getFileMessageTemplate()}getGroupActionTemplate(e){return(this.dataSource??new Bf).getGroupActionTemplate(e)}getAllMessageTemplates(e){return(this.dataSource??new Bf).getAllMessageTemplates(e)}getMessageTemplate(e,t){return(this.dataSource??new Bf).getMessageTemplate(e,t)}getMessageOptions(e,t,n,r){return(this.dataSource??new Bf).getMessageOptions(e,t,n,r)}getCommonOptions(e,t,n,r){return(this.dataSource??new Bf).getCommonOptions(e,t,n,r)}getAttachmentOptions(e,t){return(this.dataSource??new Bf).getAttachmentOptions(e,t)}getAllMessageTypes(){return(this.dataSource??new Bf).getAllMessageTypes()}getAllMessageCategories(e){return(this.dataSource??new Bf).getAllMessageCategories(e)}getStickerButton(e,t,n,r,a){return(this.dataSource??new Bf).getStickerButton(e,t,n,r,a)}getId(){return(this.dataSource??new Bf).getId()}getDeleteMessageBubble(e,t,n){return(this.dataSource??new Bf).getDeleteMessageBubble(e,t,n)}getGroupActionBubble(e){return(this.dataSource??new Bf).getGroupActionBubble(e)}getTextMessageBubble(e,t,n,r){return(this.dataSource??new Bf).getTextMessageBubble(e,t,n,r)}getAgentAssistantMessageBubble(e,t,n){return(this.dataSource??new Bf).getAgentAssistantMessageBubble(e,t,n)}getToolArgumentsMessageBubble(e,t,n){return(this.dataSource??new Bf).getToolArgumentsMessageBubble(e,t,n)}getToolResultsMessageBubble(e,t,n){return(this.dataSource??new Bf).getToolResultsMessageBubble(e,t,n)}getStreamMessageBubble(e,t,n){return(this.dataSource??new Bf).getStreamMessageBubble(e,t,n)}getVideoMessageBubble(e,t,n,r,a){return(this.dataSource??new Bf).getVideoMessageBubble(e,t,n,r,a)}getImageMessageBubble(e,t,n,r,a){return(this.dataSource??new Bf).getImageMessageBubble(e,t,n,r,a)}getAudioMessageBubble(e,t,n,r){return(this.dataSource??new Bf).getAudioMessageBubble(e,t,n,r)}getFileMessageBubble(e,t,n,r){return(this.dataSource??new Bf).getFileMessageBubble(e,t,n,r)}getLastConversationMessage(e,t,n){return(this.dataSource??new Bf).getLastConversationMessage(e,t,n)}getAuxiliaryHeaderMenu(e,t,n){return(this.dataSource??new Bf).getAuxiliaryHeaderMenu(e,t,n)}getAllTextFormatters(e){return(this.dataSource??new Bf).getAllTextFormatters(e)}getMentionsTextFormatter(e={}){return(this.dataSource??new Bf).getMentionsTextFormatter(e)}getUrlTextFormatter(e={}){return(this.dataSource??new Bf).getUrlTextFormatter(e)}getMentionsFormattedText(e,t,n){return(this.dataSource??new Bf).getMentionsFormattedText(e,t,n)}getFormMessageContentView(e,t){return(this.dataSource??new Bf).getFormMessageContentView(e,t)}getSchedulerMessageContentView(e,t){return(this.dataSource??new Bf).getSchedulerMessageContentView(e,t)}getCardMessageContentView(e,t){return(this.dataSource??new Bf).getCardMessageContentView(e,t)}getFormMessageTemplate(){return(this.dataSource??new Bf).getFormMessageTemplate()}getSchedulerMessageTemplate(){return(this.dataSource??new Bf).getSchedulerMessageTemplate()}getCardMessageTemplate(){return(this.dataSource??new Bf).getCardMessageTemplate()}getFormMessageBubble(e,t){return(this.dataSource??new Bf).getFormMessageBubble(e,t)}getSchedulerMessageBubble(e,t){return(this.dataSource??new Bf).getSchedulerMessageBubble(e,t)}getCardMessageBubble(e,t){return(this.dataSource??new Bf).getCardMessageBubble(e,t)}}var Hf=null;try{Hf=n(8484)}catch(r){}var zf=Hf?.CometChatCalls;class Yf{}Yf.ccOutgoingCall=new Ie,Yf.ccCallAccepted=new Ie,Yf.ccCallRejected=new Ie,Yf.ccCallEnded=new Ie;const qf={sessionID:"",callSettingsBuilder:void 0,onError:e=>{console.log(e)},callWorkflow:t.mKX.defaultCalling},Kf=e=>{const[n,i]=a.useState(null),s=a.useRef(null);(new Date).getMilliseconds();const{sessionID:c,callSettingsBuilder:l,onError:u,callWorkflow:d}={...qf,...e},p=a.useCallback(e=>{if(e instanceof o.CometChat.CometChatException)u?.(e);else{let t={code:e?.code,name:e?.name,message:e?.message,details:e?.details},n=new o.CometChat.CometChatException(t);u?.(n)}},[u]),h=a.useCallback(()=>{let e=l||(new zf.CallSettingsBuilder).enableDefaultLayout(!0).setIsAudioOnlyCall(!1);return e.setCallListener(new zf.OngoingCallListener({onCallEnded:()=>{d===t.mKX.defaultCalling&&(zf.endSession(),o.CometChat.clearActiveCall(),Yf.ccCallEnded.next(null))},onCallEndButtonPressed:()=>{d===t.mKX.defaultCalling?o.CometChat.endCall(c).then(e=>{zf.endSession(),Yf.ccCallEnded.next(e)}).catch(e=>{p(e)}):(Yf.ccCallEnded.next(null),zf.endSession())},onError:e=>{p(e)}})),e.build()},[l,d,p,c]),m=a.useCallback(()=>{if(n){const e=n.getAuthToken();zf.generateToken(c,e).then(e=>{zf.startSession(e?.token,h(),s.current)},e=>{p(e)})}else o.CometChat.getLoggedinUser().then(e=>{const t=e.getAuthToken();zf.generateToken(c,t).then(e=>{zf.startSession(e?.token,h(),s.current)},e=>{p(e)})})},[c,h,n,p]);return function(e,t,n){a.useEffect(()=>{A_.getLoggedinUser().then(t=>{t&&e(t)})},[e]),a.useEffect(()=>{""!==t&&n()},[t,n])}(i,c,m),""!==c?r.jsx("div",{className:"cometchat",children:r.jsx("div",{className:"cometchat-ongoing-call",ref:s})}):r.jsx(r.Fragment,{})};var Wf;class Jf{static play(e,t=null){if(!this.hasInteracted())return;const n=Wf.Sound[e],r=Wf.handlers[n];return!!r&&r(t)}static pause(){Wf.audio&&(Wf.audio.pause(),Wf.audio.currentTime=0,Wf.audio=null)}static hasInteracted(){return!("userActivation"in window.navigator)||window.navigator.userActivation.isActive||window.navigator.userActivation.hasBeenActive}}Wf=Jf,Jf.audio=null,Jf.Sound=Object.freeze({incomingCall:"incomingCall",incomingMessage:"incomingMessage",incomingMessageFromOther:"incomingMessageFromOther",outgoingCall:"outgoingCall",outgoingMessage:"outgoingMessage"}),Jf.onIncomingMessage=(e=null)=>{Wf.audio=new Audio(e||"https://assets.cc-cluster-2.io/uikits/static/audio/incomingmessage.wav"),Wf.audio.currentTime=0,Wf.hasInteracted()&&Wf.audio.play()},Jf.onIncomingOtherMessage=(e=null)=>{Wf.audio=new Audio(e||"https://assets.cc-cluster-2.io/uikits/static/audio/incomingothermessage.wav"),Wf.audio.currentTime=0,Wf.hasInteracted()&&Wf.audio.play()},Jf.onOutgoingMessage=(e=null)=>{Wf.audio=new Audio(e||"https://assets.cc-cluster-2.io/uikits/static/audio/outgoingmessage.wav"),Wf.audio.currentTime=0,Wf.hasInteracted()&&Wf.audio.play()},Jf.onIncomingCall=(e=null)=>{try{Wf.audio=new Audio(e||"https://assets.cc-cluster-2.io/uikits/static/audio/incomingcall.wav"),Wf.audio.currentTime=0,"boolean"==typeof Wf.audio.loop?Wf.audio.loop=!0:Wf.audio.addEventListener("ended",function(){this.currentTime=0,this.play()},!1),Wf.hasInteracted()&&Wf.audio.play()}catch(e){}},Jf.onOutgoingCall=(e=null)=>{try{Wf.audio=new Audio(e||"https://assets.cc-cluster-2.io/uikits/static/audio/outgoingcall.wav"),Wf.audio.currentTime=0,"boolean"==typeof Wf.audio.loop?Wf.audio.loop=!0:Wf.audio.addEventListener("ended",function(){this.currentTime=0,this.play()},!1),Wf.hasInteracted()&&Wf.audio.play()}catch(e){}},Jf.handlers={incomingCall:Wf.onIncomingCall,outgoingCall:Wf.onOutgoingCall,incomingMessage:Wf.onIncomingMessage,incomingMessageFromOther:Wf.onIncomingOtherMessage,outgoingMessage:Wf.onOutgoingMessage};const Zf=e=>{const{call:t,disableSoundForCalls:n=!1,customSoundForCalls:o="",onError:i,onCallCanceled:s=()=>{},titleView:c,subtitleView:l,avatarView:d,cancelButtonView:p}=e,h=u(i),m=a.useRef(null);m.current=t;let g=V("calls_outgoing");const f=a.useCallback(()=>{try{Jf.pause(),s&&s()}catch(e){h(e,"onClose")}},[s]),_=a.useCallback(()=>{try{n||(o?Jf.play(Jf.Sound.outgoingCall,o):Jf.play(Jf.Sound.outgoingCall))}catch(e){h(e,"playAudio")}},[n,o]);return function(e,t,n){a.useEffect(()=>{try{let e=null;return n&&(e=setTimeout(()=>{t()})),()=>{null!==e&&clearTimeout(e),Jf.pause()}}catch(t){e(t,"useEffect")}},[n,t])}(h,_,t),r.jsx(r.Fragment,{children:r.jsx("div",{className:"cometchat",children:m.current?r.jsx(r.Fragment,{children:r.jsxs("div",{className:"cometchat-outgoing-call",children:[r.jsxs("div",{className:"cometchat-outgoing-call__title-container",children:[c||r.jsx("div",{className:"cometchat-outgoing-call__title",children:m.current?.getReceiver()?.getName()}),l||r.jsx("div",{className:"cometchat-outgoing-call__subtitle",children:g})]}),d||r.jsx("div",{className:"cometchat-outgoing-call__avatar",children:r.jsx(W,{name:m.current?.getReceiver()?.getName(),image:m.current?.getReceiverType()===pt.MessageReceiverType.user?m.current?.getReceiver()?.getAvatar():m.current?.getReceiver()?.getIcon()})}),p||r.jsx("div",{className:"cometchat-outgoing-call__button",children:r.jsx(rn,{onClick:f,iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8330%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8330%29%22%3E%3Cpath%20d%3D%22M11.9997%208.25C13.9087%208.25%2015.7917%208.633%2017.6487%209.399C19.5057%2010.165%2021.1311%2011.2756%2022.5247%2012.7308C22.7311%2012.9373%2022.8359%2013.1786%2022.8392%2013.4548C22.8424%2013.7311%2022.7407%2013.9693%2022.5342%2014.1693L20.6285%2016.025C20.426%2016.2212%2020.1991%2016.3308%2019.9477%2016.3538C19.6966%2016.3769%2019.4646%2016.3103%2019.2517%2016.1537L16.7362%2014.2422C16.5709%2014.1166%2016.4485%2013.9775%2016.369%2013.825C16.2895%2013.6725%2016.2497%2013.5001%2016.2497%2013.3078V10.4865C15.5267%2010.2417%2014.8222%2010.0577%2014.1362%209.9345C13.4504%209.8115%2012.7382%209.75%2011.9997%209.75C11.2612%209.75%2010.5491%209.8115%209.86323%209.9345C9.17723%2010.0577%208.47273%2010.2417%207.74973%2010.4865V13.3078C7.74973%2013.5001%207.70998%2013.6725%207.63048%2013.825C7.55098%2013.9775%207.42856%2014.1166%207.26323%2014.2422L4.74773%2016.1537C4.53489%2016.3103%204.30289%2016.3769%204.05173%2016.3538C3.80039%2016.3308%203.57348%2016.2212%203.37098%2016.025L1.46523%2014.1693C1.25873%2013.9693%201.15706%2013.7311%201.16023%2013.4548C1.16356%2013.1786%201.26839%2012.9373%201.47473%2012.7308C2.85806%2011.2756%204.48081%2010.165%206.34298%209.399C8.20514%208.633%2010.0907%208.25%2011.9997%208.25Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"})})]})}):null})})};class $f{constructor(e){this.disableSoundForCalls=!1,this.disableSoundForCalls=e?.disableSoundForCalls,this.onError=e?.onError,this.onCallCanceled=e?.onCallCanceled,this.titleView=e?.titleView,this.subtitleView=e?.subtitleView,this.avatarView=e?.avatarView,this.cancelButtonView=e?.cancelButtonView}}class Qf{static publishEvent(e,t=null){e.next(t)}}Qf.ccMessageSent=new Ie,Qf.ccMessageEdited=new Ie,Qf.ccReplyToMessage=new Ie,Qf.ccMessageTranslated=new Ie,Qf.ccMessageRead=new Ie,Qf.ccMessageDeleted=new Ie,Qf.onTextMessageReceived=new Ie,Qf.onMessageModerated=new Ie,Qf.onMediaMessageReceived=new Ie,Qf.onCustomMessageReceived=new Ie,Qf.onTypingStarted=new Ie,Qf.onTypingEnded=new Ie,Qf.onMessagesDelivered=new Ie,Qf.onMessagesRead=new Ie,Qf.onMessagesDeliveredToAll=new Ie,Qf.onMessagesReadByAll=new Ie,Qf.onMessageEdited=new Ie,Qf.onMessageDeleted=new Ie,Qf.onMessageReactionAdded=new Ie,Qf.onMessageReactionRemoved=new Ie,Qf.onCustomInteractiveMessageReceived=new Ie,Qf.onFormMessageReceived=new Ie,Qf.onCardMessageReceived=new Ie,Qf.onSchedulerMessageReceived=new Ie,Qf.onAIAssistantMessageReceived=new Ie,Qf.onAIToolResultReceived=new Ie,Qf.onAIToolArgumentsReceived=new Ie;const Xf={onVoiceCallClick:void 0,onVideoCallClick:void 0,callSettingsBuilder:void 0,outgoingCallConfiguration:new $f({}),onError:e=>{console.log(e)}},e_=e=>{const{user:n,group:i,onVoiceCallClick:s,onVideoCallClick:c,callSettingsBuilder:d,onError:p,outgoingCallConfiguration:h,hideVideoCallButton:m=!1,hideVoiceCallButton:g=!1}={...Xf,...e},f=u(p),[_,b]=a.useState(null),[v,y]=a.useState(n),[E,C]=a.useState(i),[S,w]=a.useState(!1),[k,x]=a.useState(!1),[T,A]=a.useState(!1),R=a.useRef(null),I=a.useRef(""),O=a.useRef(!1),N=l(s),M=l(c);let D="callbuttons_"+(new Date).getTime();const L=a.useCallback(()=>{try{const e=Yf.ccCallRejected.subscribe(()=>{A(!1)}),t=Yf.ccOutgoingCall.subscribe(()=>{A(!0)}),n=Yf.ccCallEnded.subscribe(()=>{A(!1),R.current=null,I.current="",w(!1),x(!1)});return()=>{n?.unsubscribe(),e?.unsubscribe(),t?.unsubscribe()}}catch(e){f(e,"subscribeToEvents")}},[]),P=a.useCallback(()=>{try{o.CometChat.addCallListener(D,new o.CometChat.CallListener({onIncomingCallReceived:()=>{A(!0)},onIncomingCallCancelled:()=>{A(!1)},onOutgoingCallRejected:()=>{x(!1),A(!1),R.current=null,I.current=""},onOutgoingCallAccepted:e=>{if(e.getSender()?.getUid()===_?.getUid()||e.getSessionId()!==R.current?.getSessionId())return x(!1),A(!1),R.current=null,void(I.current="");I.current=e.getSessionId(),x(!1),w(!0),A(!0),R.current=e}}))}catch(e){f(e,"attachListeners")}},[D]),j=a.useCallback(()=>{try{o.CometChat.removeCallListener(D)}catch(e){f(e,"removeListener")}},[D]),U=()=>{A(!1),R.current=null,I.current="",w(!1),x(!1)},F=a.useCallback(e=>{try{const t=v?pt.MessageReceiverType.user:pt.MessageReceiverType.group,n=v?v?.getUid():E?.getGuid(),r=new o.CometChat.Call(n,e,t);o.CometChat.initiateCall(r).then(e=>{R.current=e,x(!0),Yf.ccOutgoingCall.next(e)},e=>{f(e,"initiateCall")})}catch(e){f(e,"initiateCall")}},[v,E]),B=a.useCallback(()=>{try{v&&F(pt.MessageTypes.audio),E&&(O.current=!0,I.current=E?.getGuid(),G(pt.MessageTypes.audio),w(!0))}catch(e){f(e,"initiateAudioCall")}},[v,F]),G=a.useCallback(e=>{try{const n=v?pt.MessageReceiverType.user:pt.MessageReceiverType.group,r=v?v?.getUid():E?.getGuid(),a=I.current,i={sessionID:a,sessionId:a,callType:e},s=pt.calls.meeting,c=`group_${a}`,l=new o.CometChat.CustomMessage(r,n,s,i);l.setMetadata({incrementUnreadCount:!0}),l.shouldUpdateConversation(!0),l.setSender(_),l.setConversationId(c),l.sentAt=ht.getUnixTimestamp(),l.muid=ht.ID(),Qf.ccMessageSent.next({message:l,status:t.qpt.inprogress}),o.CometChat.sendCustomMessage(l).then(e=>{Qf.ccMessageSent.next({message:e,status:t.qpt.success})},e=>{f(e,"sendCustomMessage")})}catch(e){f(e,"sendCustomMessage")}},[v,E,_]),H=a.useCallback(()=>{try{v&&F(pt.MessageTypes.video),E&&(O.current=!1,I.current=E?.getGuid(),G(pt.MessageTypes.video),w(!0))}catch(e){f(e,"initiateVideoCall")}},[v,E,G,F]),z=a.useCallback(()=>{const e=R.current;if(e)try{Jf.pause(),o.CometChat.rejectCall(e.getSessionId(),pt.calls.cancelled).then(e=>{A(!1),x(!1),Yf.ccCallRejected.next(e),R.current=null},e=>{f(e,"rejectCall")}),x(!1)}catch(e){f(e,"cancelOutgoingCall")}},[]),{audioCallButtonClicked:Y,videoCallButtonClicked:q}=function(e,t,n,r,i,s,c,l,u,d,p,h,m,g){return a.useEffect(()=>{try{o.CometChat.getLoggedinUser().then(e=>{e&&t(e)},e=>{i(e,"getLoggedinUser")})}catch(e){i(e,"getLoggedinUser")}},[t]),a.useEffect(()=>{try{let t;return e&&(t=g(),s()),()=>{t?.(),c()}}catch(e){i(e,"useEffect")}},[e,s,c,g]),a.useEffect(()=>{try{n&&(l(n),u(null))}catch(e){i(e,"setActiveUser")}},[n,l,u]),a.useEffect(()=>{try{r&&(l(null),u(r))}catch(e){i(e,"setActiveGroup")}},[r,l,u]),{audioCallButtonClicked:()=>{try{const e=h.current;e?e():d()}catch(e){i(e,"audioCallButtonClicked")}},videoCallButtonClicked:()=>{try{const e=m.current;e?e():p()}catch(e){i(e,"videoCallButtonClicked")}}}}(_,b,n,i,f,P,j,y,C,B,H,N,M,L),K=T?{disabled:!0}:{};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"cometchat-call-button",children:[!v&&!E||g?null:r.jsx("div",{className:"cometchat-call-button__voice",children:r.jsx(rn,{...K,hoverText:V("call_button_voice_hover"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M19.7512%2020.8335C17.8234%2020.8335%2015.8692%2020.3772%2013.8887%2019.4647C11.9082%2018.5522%2010.086%2017.2572%208.42197%2015.5795C6.7443%2013.9155%205.44922%2012.0947%204.53672%2010.117C3.62422%208.13916%203.16797%206.18199%203.16797%204.24549C3.16797%203.94033%203.27114%203.68424%203.47747%203.47724C3.6838%203.27041%203.94172%203.16699%204.25122%203.16699H7.81797C8.0513%203.16699%208.25055%203.24541%208.41572%203.40224C8.58105%203.55924%208.69288%203.75858%208.75122%204.00024L9.41672%207.19424C9.44522%207.41774%209.43655%207.62324%209.39072%207.81074C9.34488%207.99824%209.25822%208.15708%209.13072%208.28724L6.70547%2010.7502C7.10814%2011.4447%207.54305%2012.0956%208.01022%2012.7027C8.47755%2013.3101%208.99264%2013.8884%209.55547%2014.4377C10.1276%2015.0266%2010.7339%2015.5687%2011.3742%2016.064C12.0144%2016.5592%2012.6901%2017.0046%2013.4012%2017.4002L15.7852%2014.9835C15.9376%2014.8197%2016.1118%2014.7072%2016.308%2014.646C16.5041%2014.585%2016.7019%2014.5697%2016.9012%2014.6002L19.9822%2015.2492C20.2282%2015.3082%2020.4318%2015.4351%2020.593%2015.6297C20.754%2015.8246%2020.8345%2016.0425%2020.8345%2016.2835V19.7502C20.8345%2020.0597%2020.7313%2020.3177%2020.525%2020.524C20.3186%2020.7303%2020.0607%2020.8335%2019.7512%2020.8335ZM5.92197%209.28349L7.82197%207.36699L7.28447%204.75024H4.77197C4.81097%205.43358%204.92072%206.14749%205.10122%206.89199C5.28172%207.63633%205.5553%208.43349%205.92197%209.28349ZM14.8887%2018.1502C15.5471%2018.4557%2016.2563%2018.703%2017.0165%2018.892C17.7766%2019.0808%2018.5216%2019.1947%2019.2512%2019.2335V16.717L16.7845%2016.196L14.8887%2018.1502Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:Y})}),!v&&!E||m?null:r.jsx("div",{className:"cometchat-call-button__video",children:r.jsx(rn,{...K,hoverText:V("call_button_video_hover"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Base_Icon%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M3.77881%2019.8504C3.35165%2019.8504%202.98098%2019.6933%202.66681%2019.3791C2.35248%2019.0648%202.19531%2018.6941%202.19531%2018.2671V5.73364C2.19531%205.30664%202.35248%204.93597%202.66681%204.62164C2.98098%204.30747%203.35165%204.15039%203.77881%204.15039H16.3156C16.7344%204.15039%2017.1024%204.30747%2017.4196%204.62164C17.7367%204.93597%2017.8953%205.30664%2017.8953%205.73364V10.8336L21.1288%207.60039C21.251%207.47822%2021.3954%207.44839%2021.5621%207.51089C21.7287%207.57339%2021.8121%207.69214%2021.8121%207.86714V16.1371C21.8121%2016.309%2021.7287%2016.4264%2021.5621%2016.4894C21.3954%2016.5522%2021.251%2016.5226%2021.1288%2016.4004L17.8953%2013.1671V18.2671C17.8953%2018.6941%2017.7367%2019.0648%2017.4196%2019.3791C17.1024%2019.6933%2016.7344%2019.8504%2016.3156%2019.8504H3.77881ZM3.77881%2018.2671H16.3121V5.73364H3.77881V18.2671Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:q})})]}),S&&null!=I.current?r.jsx(Kf,{sessionID:I.current,callSettingsBuilder:function(){try{let e=v?R.current?.getType()===pt.MessageTypes.audio:O.current,t=d?d(e,n,i):(new zf.CallSettingsBuilder).enableDefaultLayout(!0).setIsAudioOnlyCall(e);const r=I.current;return t.setCallListener(new zf.OngoingCallListener({onCallEnded:()=>{R.current?.getReceiverType()===pt.MessageReceiverType.user&&(zf.endSession(),o.CometChat.clearActiveCall(),Yf.ccCallEnded.next(null),U())},onCallEndButtonPressed:()=>{R.current?.getReceiverType()===pt.MessageReceiverType.user?o.CometChat.endCall(r).then(e=>{zf.endSession(),Yf.ccCallEnded.next(e),U()}).catch(e=>{f(e,"endCall")}):U()},onError:e=>{f(e,"callSettingsBuilder")}})),t}catch(e){f(e,"getCallBuilder")}}(),callWorkflow:E?t.mKX.directCalling:t.mKX.defaultCalling}):null,k&&R.current?r.jsx("div",{className:"cometchat-backdrop cometchat-outgoing-call__backdrop",children:r.jsx(Zf,{onCallCanceled:h?.onCallCanceled??z,call:R.current,customSoundForCalls:h?.customSoundForCalls,disableSoundForCalls:h?.disableSoundForCalls,onError:h?.onError,titleView:h?.titleView?.(R.current),subtitleView:h?.subtitleView?.(R.current),avatarView:h?.avatarView?.(R.current),cancelButtonView:h?.cancelButtonView?.(R.current)})}):null]})};class t_{constructor(e){this.outgoingCallConfiguration=new $f({}),this.callSettingsBuilder=e?.callSettingsBuilder,this.onVoiceCallClick=e?.onVoiceCallClick,this.onVideoCallClick=e?.onVideoCallClick,this.onError=e?.onError,this.outgoingCallConfiguration=e?.outgoingCallConfiguration}}class n_{constructor(e){this.callButtonConfiguration=new t_({}),this.groupCallSettingsBuilder=e?.groupCallSettingsBuilder,this.callButtonConfiguration=e?.callButtonConfiguration,this.callInitiatedDateTimeFormat=e?.callInitiatedDateTimeFormat}}class r_{static isSentByMe(e,t){const n=e.getSender()?.getUid();return!n||n===t?.getUid()}static isMissedCall(e,t){const n=e.getCallInitiator()?.getUid(),r=e.getStatus();return!(!n||n===t?.getUid())&&[pt.calls.busy,pt.calls.unanswered,pt.calls.cancelled].includes(r)}static getCallStatus(e,t){const n=e.getStatus();if(r_.isSentByMe(e,t))switch(n){case pt.calls.initiated:return V("conversation_subtitle_outgoing_call");case pt.calls.cancelled:return V("conversation_subtitle_cancelled_call");case pt.calls.rejected:return V("conversation_subtitle_rejected_call");case pt.calls.busy:return V("conversation_subtitle_missed_call");case pt.calls.ended:return V("conversation_subtitle_ended_call");case pt.calls.ongoing:return V("conversation_subtitle_answered_call");case pt.calls.unanswered:return V("conversation_subtitle_unasnwered_call");default:return V("conversation_subtitle_outgoing_call")}else switch(n){case pt.calls.initiated:return V("conversation_subtitle_incoming_call");case pt.calls.ongoing:return V("conversation_subtitle_answered_call");case pt.calls.ended:return V("conversation_subtitle_ended_call");case pt.calls.unanswered:case pt.calls.cancelled:return V("conversation_subtitle_missed_call");case pt.calls.busy:return V("conversation_subtitle_busy_call");case pt.calls.rejected:return V("conversation_subtitle_rejected_call");default:return V("conversation_subtitle_outgoing_call")}}}r_.getDefaultMessageTypes=()=>[pt.MessageTypes.audio,pt.MessageTypes.video,pt.calls.meeting],r_.getDefaultCategories=()=>[pt.MessageCategory.call,pt.MessageCategory.custom];const a_=e=>{const{title:t="",sessionId:n="",subtitle:a=null,buttonText:o="",onClicked:i=()=>{},isSentByMe:s=!0,iconURL:c}=e;return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-call-bubble "+(s?"cometchat-call-bubble-outgoing":"cometchat-call-bubble-incoming"),children:[r.jsxs("div",{className:"cometchat-call-bubble__body",children:[r.jsx("div",{className:"cometchat-call-bubble__icon-wrapper\n",children:r.jsx("div",{className:"cometchat-call-bubble__icon-wrapper-icon",style:c?{WebkitMask:`url(${c}) center center no-repeat`}:void 0})}),r.jsxs("div",{className:"cometchat-call-bubble__body-content",children:[r.jsx("div",{className:"cometchat-call-bubble__body-content-title\n",children:t}),r.jsx("div",{className:"cometchat-call-bubble__body-content-subtitle",children:a})]})]}),o?.trim()&&o.trim()?.length>0?r.jsxs("button",{className:"cometchat-call-bubble__button",title:o,onClick:()=>i?i(n):null,children:[" ",o]}):null]})})},o_=Object.freeze({meeting:"meeting",ongoing:"ongoing",ended:"ended",initiated:"initiated",cancelled:"cancelled",rejected:"rejected",unanswered:"unanswered"});class i_ extends Vf{constructor(e,t){super(e),this.loggedInUser=null,this.configuration=new n_({}),this.addLoginListener(),this.getLoggedInUser(),this.configuration=t}addLoginListener(){o.CometChat.addLoginListener("login_listener",new o.CometChat.LoginListener({logoutSuccess:()=>{try{let e=o.CometChat.getActiveCall();e&&o.CometChat.endCall(e.getSessionId())}catch(e){console.log("error in endCall on logout",e)}}}))}async getLoggedInUser(){this.loggedInUser=await o.CometChat.getLoggedinUser()}getAllMessageTypes(){const e=super.getAllMessageTypes();return e.includes(o_.meeting)||e.push(o_.meeting),e.includes(pt.MessageTypes.audio)||e.push(pt.MessageTypes.audio),e.includes(pt.MessageTypes.video)||e.push(pt.MessageTypes.video),e}getId(){return"calling"}getAllMessageCategories(e){const t=super.getAllMessageCategories(e);return t.includes(pt.MessageCategory.call)||t.push(pt.MessageCategory.call),t.includes(pt.MessageCategory.custom)||t.push(pt.MessageCategory.custom),t}checkIfTemplateTypeExist(e,t){return e.some(e=>e.type===t)}checkIfTemplateCategoryExist(e,t){return e.some(e=>e.category===t)}getAllMessageTemplates(e){const t=super.getAllMessageTemplates(e);return this.checkIfTemplateTypeExist(t,o_.meeting)||t.push(this.getDirectCallTemplate()),this.checkIfTemplateCategoryExist(t,pt.MessageCategory.call)||t.push(...this.getDefaultCallTemplate()),t}getDirectCallTemplate(){return new Yt({type:o_.meeting,category:pt.MessageCategory.custom,statusInfoView:super.getStatusInfoView,contentView:(e,t)=>e.getDeletedAt()?super.getDeleteMessageBubble(e,void 0,t):this.getDirectCallMessageBubble(e,t),options:(e,t,n,r)=>Gf.getDataSource().getCommonOptions(e,t,n,r),bottomView:(e,t)=>super.getBottomView(e,t)})}getDefaultCallTemplate(){return[new Yt({type:pt.MessageTypes.audio,category:pt.MessageCategory.call,contentView:(e,t)=>this.getDefaultAudioCallMessageBubble(e,t),bottomView:(e,t)=>super.getBottomView(e,t)}),new Yt({type:pt.MessageTypes.video,category:pt.MessageCategory.call,contentView:(e,t)=>this.getDefaultVideoCallMessageBubble(e,t),bottomView:(e,t)=>super.getBottomView(e,t)})]}getSessionId(e){let t=e.getData();return t?.customData?.sessionID}getDateFormat(){return{yesterday:"DD MMM, hh:mm A",otherDays:"DD MMM, hh:mm A",today:"DD MMM, hh:mm A",...kt(G.calendarObject),...kt(this.configuration?.callInitiatedDateTimeFormat)}}getDirectCallMessageBubble(e,t){let n=this.getSessionId(e),a=V("message_list_join_call"),o=!e.getSender()||this.loggedInUser?.getUid()==e.getSender().getUid(),i=e.getCustomData().callType==pt.MessageTypes.audio,s=i?o?"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.7605%2019.1855C15.6625%2020.0618%2017.5557%2020.5%2019.4402%2020.5C19.7402%2020.5%2019.9919%2020.4%2020.1952%2020.2C20.3984%2020%2020.5%2019.75%2020.5%2019.45V16.2078C20.5%2015.9654%2020.4202%2015.7487%2020.2605%2015.5577C20.1008%2015.3667%2019.8948%2015.2379%2019.6423%2015.1713L16.8655%2014.6058C16.6257%2014.5724%2016.3946%2014.5884%2016.1723%2014.6538C15.9498%2014.7193%2015.7603%2014.8334%2015.6038%2014.9963L13.3598%2017.2598C12.6431%2016.8546%2011.9757%2016.4167%2011.3577%2015.9462C10.7397%2015.4757%2010.1564%2014.9661%209.60775%2014.4173C9.05125%2013.8648%208.53425%2013.285%208.05675%2012.678C7.57908%2012.0708%207.15442%2011.4269%206.78275%2010.7462L9.09225%208.498C9.23842%208.36467%209.33975%208.19992%209.39625%208.00375C9.45258%207.80758%209.46092%207.573%209.42125%207.3L8.848%204.35775C8.7955%204.11542%208.67275%203.91192%208.47975%203.74725C8.28675%203.58242%208.064%203.5%207.8115%203.5H4.55C4.25%203.5%204%203.60158%203.8%203.80475C3.6%204.00808%203.5%204.25975%203.5%204.55975C3.5%206.44425%203.93817%208.33583%204.8145%2010.2345C5.69083%2012.1333%206.92383%2013.8808%208.5135%2015.477C10.1097%2017.073%2011.8587%2018.3092%2013.7605%2019.1855Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M15.6865%205.0681H17.8828L13.1788%209.77185C13.0339%209.91685%2012.9615%2010.0925%2012.9615%2010.2989C12.9615%2010.5054%2013.0339%2010.681%2013.1788%2010.8259C13.3236%2010.9707%2013.5009%2011.0415%2013.7105%2011.0384C13.9202%2011.0352%2014.0943%2010.9644%2014.2328%2010.8259L18.9365%206.12185V8.3181C18.9365%208.5306%2019.0084%208.70877%2019.152%208.8526C19.2955%208.99627%2019.4736%209.0681%2019.6863%209.0681C19.8988%209.0681%2020.0769%208.99627%2020.2208%208.8526C20.3646%208.70877%2020.4365%208.5306%2020.4365%208.3181V4.47185C20.4365%204.21585%2020.3499%204.00127%2020.1765%203.8281C20.0034%203.65477%2019.7888%203.5681%2019.5328%203.5681H15.6865C15.474%203.5681%2015.2959%203.63993%2015.152%203.7836C15.0084%203.9271%2014.9365%204.10518%2014.9365%204.31785C14.9365%204.53035%2015.0084%204.70852%2015.152%204.85235C15.2959%204.99618%2015.474%205.0681%2015.6865%205.0681Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19.4402%2020.5C17.5557%2020.5%2015.6625%2020.0618%2013.7605%2019.1855C11.8587%2018.3092%2010.1097%2017.073%208.5135%2015.477C6.92383%2013.8808%205.69083%2012.1333%204.8145%2010.2345C3.93817%208.33583%203.5%206.44425%203.5%204.55975C3.5%204.25975%203.6%204.00808%203.8%203.80475C4%203.60158%204.25%203.5%204.55%203.5H7.8115C8.064%203.5%208.28675%203.58242%208.47975%203.74725C8.67275%203.91192%208.7955%204.11542%208.848%204.35775L9.42125%207.3C9.46092%207.573%209.45258%207.80758%209.39625%208.00375C9.33975%208.19992%209.23842%208.36467%209.09225%208.498L6.78275%2010.7462C7.15442%2011.4269%207.57908%2012.0708%208.05675%2012.678C8.53425%2013.285%209.05125%2013.8647%209.60775%2014.4173C10.1564%2014.9661%2010.7397%2015.4757%2011.3577%2015.9462C11.9757%2016.4167%2012.6431%2016.8546%2013.3598%2017.2598L15.6038%2014.9963C15.7603%2014.8334%2015.9498%2014.7192%2016.1723%2014.6538C16.3946%2014.5884%2016.6257%2014.5724%2016.8655%2014.6058L19.6423%2015.1713C19.8948%2015.2379%2020.1008%2015.3667%2020.2605%2015.5577C20.4202%2015.7487%2020.5%2015.9654%2020.5%2016.2078V19.45C20.5%2019.75%2020.3984%2020%2020.1952%2020.2C19.9919%2020.4%2019.7402%2020.5%2019.4402%2020.5ZM15.5153%209.5385H17.7115C17.9243%209.5385%2018.1025%209.61033%2018.246%209.754C18.3897%209.8975%2018.4615%2010.0757%2018.4615%2010.2885C18.4615%2010.5013%2018.3897%2010.6795%2018.246%2010.823C18.1025%2010.9667%2017.9243%2011.0385%2017.7115%2011.0385H13.8652C13.6076%2011.0385%2013.3926%2010.9523%2013.2203%2010.7798C13.0478%2010.6074%2012.9615%2010.3924%2012.9615%2010.1348V6.2885C12.9615%206.07567%2013.0333%205.8975%2013.177%205.754C13.3205%205.61033%2013.4987%205.5385%2013.7115%205.5385C13.9243%205.5385%2014.1025%205.61033%2014.246%205.754C14.3897%205.8975%2014.4615%206.07567%2014.4615%206.2885V8.48475L19.1652%203.78075C19.3038%203.64225%2019.4778%203.57142%2019.6875%203.56825C19.8972%203.56508%2020.0744%203.63592%2020.2193%203.78075C20.3641%203.92558%2020.4365%204.10125%2020.4365%204.30775C20.4365%204.51408%2020.3641%204.68975%2020.2193%204.83475L15.5153%209.5385Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E":o?"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_774_6314%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_774_6314%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.26523%2018.975C3.61523%2019.325%204.04273%2019.5%204.54773%2019.5H15.9325C16.4375%2019.5%2016.865%2019.325%2017.215%2018.975C17.565%2018.625%2017.74%2018.1974%2017.74%2017.6923V13.1152L20.4862%2015.8615C20.6337%2016.009%2020.7994%2016.0458%2020.9832%2015.972C21.1672%2015.8983%2021.2592%2015.7577%2021.2592%2015.55V8.45C21.2592%208.24233%2021.1672%208.10167%2020.9832%208.028C20.7994%207.95417%2020.6337%207.991%2020.4862%208.1385L17.74%2010.8848V6.30775C17.74%205.80258%2017.565%205.375%2017.215%205.025C16.865%204.675%2016.4375%204.5%2015.9325%204.5H4.54773C4.04273%204.5%203.61523%204.675%203.26523%205.025C2.91523%205.375%202.74023%205.80258%202.74023%206.30775V17.6923C2.74023%2018.1974%202.91523%2018.625%203.26523%2018.975ZM8.72461%209.49999H10.9209L6.21686%2014.2037C6.07203%2014.3487%205.99961%2014.5244%205.99961%2014.7307C5.99961%2014.9372%206.07203%2015.1129%206.21686%2015.2577C6.36169%2015.4026%206.53894%2015.4734%206.74861%2015.4702C6.95828%2015.4671%207.13236%2015.3962%207.27086%2015.2577L11.9746%2010.5537V12.75C11.9746%2012.9625%2012.0464%2013.1407%2012.1901%2013.2845C12.3336%2013.4282%2012.5117%2013.5%2012.7244%2013.5C12.9369%2013.5%2013.115%2013.4282%2013.2589%2013.2845C13.4027%2013.1407%2013.4746%2012.9625%2013.4746%2012.75V8.90373C13.4746%208.64773%2013.3879%208.43315%2013.2146%208.25998C13.0414%208.08665%2012.8269%207.99999%2012.5709%207.99999H8.72461C8.51211%207.99999%208.33394%208.07182%208.19011%208.21549C8.04644%208.35898%207.97461%208.53707%207.97461%208.74973C7.97461%208.96223%208.04644%209.1404%208.19011%209.28424C8.33394%209.42807%208.51211%209.49999%208.72461%209.49999Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_774_6313%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_774_6313%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.26523%2018.975C3.61523%2019.325%204.04273%2019.5%204.54773%2019.5H15.9325C16.4375%2019.5%2016.865%2019.325%2017.215%2018.975C17.565%2018.625%2017.74%2018.1974%2017.74%2017.6923V13.1152L20.4862%2015.8615C20.6337%2016.009%2020.7994%2016.0458%2020.9832%2015.972C21.1672%2015.8983%2021.2592%2015.7577%2021.2592%2015.55V8.45C21.2592%208.24233%2021.1672%208.10167%2020.9832%208.028C20.7994%207.95417%2020.6337%207.991%2020.4862%208.1385L17.74%2010.8848V6.30775C17.74%205.80258%2017.565%205.375%2017.215%205.025C16.865%204.675%2016.4375%204.5%2015.9325%204.5H4.54773C4.04273%204.5%203.61523%204.675%203.26523%205.025C2.91523%205.375%202.74023%205.80258%202.74023%206.30775V17.6923C2.74023%2018.1974%202.91523%2018.625%203.26523%2018.975ZM10.75%2013.9704H8.55375L13.2578%209.2666C13.4026%209.1216%2013.475%208.94594%2013.475%208.7396C13.475%208.5331%2013.4026%208.35743%2013.2578%208.2126C13.1129%208.06777%2012.9357%207.99693%2012.726%208.0001C12.5163%208.00327%2012.3422%208.0741%2012.2037%208.2126L7.5%2012.9166V10.7204C7.5%2010.5079%207.42817%2010.3297%207.2845%2010.1859C7.141%2010.0422%206.96291%209.97035%206.75025%209.97035C6.53775%209.97035%206.35958%2010.0422%206.21575%2010.1859C6.07192%2010.3297%206%2010.5079%206%2010.7204V14.5666C6%2014.8226%206.08666%2015.0372%206.26%2015.2104C6.43317%2015.3837%206.64775%2015.4704%206.90375%2015.4704H10.75C10.9625%2015.4704%2011.1407%2015.3985%2011.2845%2015.2549C11.4282%2015.1114%2011.5%2014.9333%2011.5%2014.7206C11.5%2014.5081%2011.4282%2014.3299%2011.2845%2014.1861C11.1407%2014.0423%2010.9625%2013.9704%2010.75%2013.9704Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",c=V(i?"message_list_voice_call":"message_list_video_call");return r.jsx(a_,{subtitle:r.jsx(rr,{timestamp:e.getSentAt(),calendarObject:this.getDateFormat()}),isSentByMe:o,sessionId:n,title:c,buttonText:a,onClicked:()=>{this.startDirectCall(n,e)},iconURL:s})}startDirectCall(e,n){let a,o=n.getCustomData()?.callType==pt.MessageTypes.audio;this.configuration?.groupCallSettingsBuilder?a=this.configuration?.groupCallSettingsBuilder(n):(a=(new zf.CallSettingsBuilder).enableDefaultLayout(!0).setIsAudioOnlyCall(o),a.setCallListener(new zf.OngoingCallListener({onCallEndButtonPressed:()=>{yn.ccShowOngoingCall.next({child:null,message:n})}})));const i=r.jsx(Kf,{callSettingsBuilder:a,sessionID:e,callWorkflow:t.mKX.directCalling});yn.ccShowOngoingCall.next({child:i,message:n})}getCallActionMessage(e){return r_.getCallStatus(e,this.loggedInUser)}getCallStatusClass(e){switch(r_.getCallStatus(e,this.loggedInUser)){case V("message_list_outgoing_call"):return"cometchat-message-bubble__outgoing-call";case V("message_list_incoming_call"):return"cometchat-message-bubble__incoming-call";case V("message_list_cancelled_call"):return"cometchat-message-bubble__cancelled-call";case V("message_list_rejected_call"):return"cometchat-message-bubble__rejected-call";case V("message_list_busy_call"):return"cometchat-message-bubble__busy-call";case V("message_list_ended_call"):return"cometchat-message-bubble__ended-call";case V("message_list_answered_call"):return"cometchat-message-bubble__answered-call";case V("message_list_unasnwered_call"):return"cometchat-message-bubble__unanswered-call";case V("message_list_missed_call"):return"cometchat-message-bubble__missed-call";default:return""}}getDefaultAudioCallMessageBubble(e,t){return r.jsx("div",{className:this.getCallStatusClass(e),children:r.jsx(nr,{messageText:this.getCallActionMessage(e)})})}getDefaultVideoCallMessageBubble(e,t){return r.jsx("div",{className:this.getCallStatusClass(e),children:r.jsx(nr,{messageText:this.getCallActionMessage(e)})})}getLastConversationMessage(e,t,n){let r="";if(e.getLastMessage()&&e.getLastMessage().category==pt.MessageCategory.call){let n=e.getLastMessage();r=r_.getCallStatus(n,t)}else if(e?.getLastMessage()&&e.getLastMessage().type==pt.calls.meeting){let a=e.getLastMessage(),i=a.getData().customData?.callType;a.getSender()&&a?.getSender()?.getUid()!=t.getUid()?i===pt.MessageTypes.audio?r=`${a.getSender().getName()}  ${V("conversation_subtitle_group_voice_call_initated")}`:i===pt.MessageTypes.video&&(r=`${a.getSender().getName()}  ${V("conversation_subtitle_group_video_call_initated")}`):i===pt.MessageTypes.audio?r=V("conversation_subtitle_group_voice_call_initated_self"):i===pt.MessageTypes.video&&(r=V("conversation_subtitle_group_video_call_initated_self"));let s=e.getLastMessage();s&&s.getMentionedUsers().length&&s instanceof o.CometChat.TextMessage&&n&&!n.disableMentions&&(r=ht.sanitizeText(r),r=this.getMentionsFormattedText(s,r,n))}else r=super.getLastConversationMessage(e,t,n);return r}getAuxiliaryHeaderMenu(e,t,n){let a=[];if(n?.hideVideoCallButton&&n?.hideVoiceCallButton)return[];let o=r.jsx(e_,{user:e,group:t,onError:this.configuration?.callButtonConfiguration?.onError,outgoingCallConfiguration:this.configuration?.callButtonConfiguration?.outgoingCallConfiguration,callSettingsBuilder:this.configuration?.callButtonConfiguration?.callSettingsBuilder,hideVideoCallButton:n?.hideVideoCallButton,hideVoiceCallButton:n?.hideVoiceCallButton},"callbuttons");return a.push(o),a}}class s_{enable(){o.CometChat.isExtensionEnabled(this.getExtensionId()).then(e=>{e&&this.addExtension()},e=>{})}}const c_=Object.freeze({stickers:"stickers",reactions:"reactions",thumbnailGeneration:"thumbnail-generation",linkPreview:"link-preview",imageModeration:"image-moderation",messageTranslation:"message-translation",smartReply:"smart-reply",xssFilter:"xss-filter",dataMasking:"data-masking",polls:"polls",whiteboard:"whiteboard",document:"document",profanityFilter:"profanity-filter"}),l_=e=>{const{title:t="",URL:n="",subtitle:a="",buttonText:o="",isSentByMe:i=!1,onClicked:s=()=>{},bannerImage:c=""}=e;return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-document-bubble "+(i?"cometchat-document-bubble-outgoing":"cometchat-document-bubble-incoming"),children:[r.jsx("div",{className:"cometchat-document-bubble__banner-image",children:r.jsx("img",{src:c,alt:""})}),r.jsxs("div",{className:"cometchat-document-bubble__body",children:[r.jsx("div",{className:"cometchat-document-bubble__body-icon"}),r.jsxs("div",{className:"cometchat-document-bubble__body-content",children:[r.jsx("div",{className:"cometchat-document-bubble__body-content-name",children:r.jsx("label",{title:t,children:t})}),a?.trim()&&a.trim()?.length>0?r.jsx("div",{className:"cometchat-document-bubble__body-content-description",children:r.jsx("label",{title:a,children:a})}):null]})]}),r.jsx("div",{className:"cometchat-document-bubble__button",title:o,onClick:()=>s(n),children:o})]})})};class u_ extends Vf{constructor(e,t){super(e),this.loggedInUser=dt.getLoggedInUser(),this.newDataSource=e,this.configuration=t,this.loggedInUser=dt.getLoggedInUser()}getAllMessageTypes(){const e=super.getAllMessageTypes();return e.includes(Jt.extension_document)||e.push(Jt.extension_document),e}getId(){return"collaborativedocument"}getAllMessageCategories(e){const t=super.getAllMessageCategories(e);return t.includes(pt.MessageCategory.custom)||t.push(pt.MessageCategory.custom),t}checkIfTemplateExist(e,t){return e.some(e=>e.type===t)}getAllMessageTemplates(e){const t=super.getAllMessageTemplates(e);return this.checkIfTemplateExist(t,Jt.extension_document)||t.push(this.getDocumentTemplate()),t}getDocumentTemplate(){return new Yt({type:Jt.extension_document,category:pt.MessageCategory.custom,statusInfoView:super.getStatusInfoView,replyView:(e,t,n)=>{let r=e;return Gf.getDataSource().getReplyView(r,t,n)},contentView:(e,t)=>{let n=e;return n.getDeletedAt()?super.getDeleteMessageBubble(n,void 0,t):this.getDocumentContentView(n,t)},options:(e,t,n,r)=>super.getCommonOptions(e,t,n,r),bottomView:(e,t)=>super.getBottomView(e,t)})}getDocumentContentView(e,n){const a=this.getDocumentURL(e),o=V("message_list_collaborative_document_title"),i=V("message_list_collaborative_document_open"),s=V("message_list_collaborative_document_subtitile");_t(e,this.loggedInUser);const c="dark"==Et()?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdAAAAEYCAYAAADs5qfZAAAiuUlEQVR4Ae3dCXBU55nu8bcFCNCCML5sQiSyASexZOy4EnvA1xWTxMA4iWMcllvlLcFQl0nuZIyXVJK6A9ipm1sJxp7xJB6mwB4vuGoEjLeJbZZUSMYxi8fjGIzGDqsSQEKiDFgLsljUc96vdZrTm9R9uiWd/vT/ubq61X36NEmr+9H7rSFJU2Vl5chz587d5tz8UjgcviYUClU61yMFAIA85WTZaSfL6pzr95wffzdkyJCX6+rqTqf13J4OcIKz0gnOv3FufpvABADYzgnTZ5wgfdgJ0rpuj0v1QFfFudwJzfsEAIABxgnSvzt27NjSlI8nu1OrzrNnz27TmwIAwMBVV1hYOCNZNVoQf8eECROuITwBADBMQanZGP9ATAVK5QkAQFIJlWg0QLXP0wnPPwjhCQBAMhqin3dH6UabcHXAkBCeAACkUtmVlYapQLuabg8LAADollOFXqZNuaYC9SYqAABIzclMM70z1NX3eUoAAEA6TmsVWtC1PB8AAEiPWdpWm3C/JAAAIG3hcPhLGqDXCAAAyMQ1GqCVAgAAMlFZwA4rAABkbGSBAACAjBGgAAD4QIACAOADAQoAgA8EKAAAPhCgAAD4QIACAOADAQoAgA+DBQAGqIVf/5osX3iP5Kv/OlxnLo+v3yhHm5oEfYsKFMCANev6L0g+u/KySpn75ZvkrdW/kKUL5gn6FgEKABa4zwlQQrRvEaAAYAkN0b+orhL0DQIUACyydP5cQd8gQAHAItovir7BKFwA6EZ7W5u8s2mLuR41dqxcfs1Uc93bXn1ytbS3tsmCHzyQ0fNGFBfLxDGj5UjTCUHvIkABIIXat3bIv/x8pXziBJnrknFjZcljK3s9RPe+tV1OHW/MOEDRd2jCBYAU/v1fXzLheev3lshPXnlR/ue35phQ2/rsuoRjTzU2miq1O/p4/DH6PL309LyejkHfowIFgBRONR4315OunirDSopl5t13SvUN02W4c9v1zuat8sqT/xitUssnTZJ7frLcVKgatj+94275wqyZconz85svvug8/wZTVR47eFDW/2yV1DvXSivbbz+y3Dzfa4sT1lufez56TF9Uv0gPFSgApKDBp55Z9rDU/PxRE3Yapm7InXSqQr1/eHGJ3PrdJeb4ehOMj8acZ+9bb5kQHF5SEg3fZ51z6rE333OXee4nra2y+v4fJPwbap2mXD3m8quvNoH8b79cLQgGKlAASEErTg28Nze+ZCpNvZRPvlzueWSFqQKHFxdHK0KtDlWtE5b1Bw/FnCfk/PfjF56LHqMW/OBBc243jP9jy1ZpOHDQhKT3OK1K9ef221tl2Te/ZSpXBAMBCgDduPH2OeZycPce05x6aPduU2FqcGpFeei93VLjBGt7W2vMYCMvDV1vKKp6Jyw1kE86zcSpnqfc5+lrIVhowgWAJNqdJtWan68y00mUNt1++5Fl5raGqdIA3PLcOicgJzmPrTChmg5t+o1MU2k1lag+Lz5gEXwEKAAkoRXfQae6fPNfX5LfOxcdBauBqconXW6uT3aNjNWmWA3Yg+/tSevcWn2qUU5o6qAkbbbVC/ILTbgAkMK3f7Jcnvnbh+UVp1p8pasSHeb0e2rVqKpvmOaE64vR/lEdaat9mvU99FNq2OqxWsk+9JVZ5pxVTpDqgCHkj1B5eXlYAGAAevSvvyvzZtzU7TFaGerAHR0YdMnYMXLVDTeYKS3ex/d2Bd8XZ82Uk8cbTX+ohqQ20erzvIOFvM/TANVjtApVWtHq85TbTOz+7N6X7FzxrrrrO9Lcw5xUZI8ABWCdUCgk4XDPX20Lv/E1Wf6d/N1QO5mjTSfkhiXfE/Q++kABWEFDUy/KDU/351Q2/ua3YpudtbWCvkGAAshr3tCMrzq9QZosTLWZ86lfvS620Orz8ZoNgr7BICIAec0NyYkTJ8q9994r1dXVcuTIEVm1apUcPXo04bh4jzz9jEwcPVpmXv9FyWf6x8Din600IYq+QR8ogLzk7efU8Ny4caNUVFREH29ubpa5c+dKbVeTZk/9ovctmCdLnUs+2rm3Vh74xZOEZx8jQAHkJW8gPv744zJ//nyR8+clfOqkhEaMEBk6TLZv3y7z5s1L+bx4FWNGy19UV8mVlZVSVlwkQfdfdX+S2sN1JkDR9whQAHlNq8+dO3ea252H9kvniSYnQMtk0OeqzX1ahe7YsSN6fLojdIGeMIgIQF6bNm1a9HZn88fmOqzXTjWqZs2aFX2c8EQuEaAA8kr8aFq3iVYrT+noiN7f2VhvrhcsWCClpaXmtoZnT1NbgHQRoADyireC1Obb6dMjq/jIqY9ijutsaDDXI5z+0OgxHgQpskWAAsgr3uC7//77IzecyrPz1MnYAy+cjzTlOhYtWhQN3vhrwC8CFEBe8Qaf2//p9n3G6zx2xFxrBaqjdJMttuBFVYpMDHL6BlYIAOQBb8BpeC5evNjc7jy8X+TcucQnOJWpjsgNDR0ms2fPNk2+Oj9UF1ogLJEtKlAAecPb/Grmfaq2Ngl3s/PIhUNOuHZ8Ym7rc3TBhV27dpnBR96FFxShikwwDxRAXvCueasDgz744APzszv3sycFo8dIwYSJZoEFr/Xr1ycs+8d0F6SDChRA3nBDTZtjXan6P+NpyJ5/7z/lwgd7I4HbNU9Uq9KtW7dKVVVVzOtQjaInBCiAvOCtCN3m27BOXfHM/UzrPE7gatV6fvd/mmtt3tWKdsWKFSlfD0iGAAUQeN7tyLTf0h19G46fupIJpwLVSvTC0chIXR1gBGSCAAUQeN7pJ9HBQzr3M42+z+6ESstk0Phyc1tH5/a0fyjgxX6gAALPO6hHl+ZT6fZ9Jhg8WAouHS2hUZeaKS6uNWvWEJzICAEKINDi5366U0/CGVafWm0WVEyUUFGxCVGXVp7Lli2TDRs2RM7LACKkiQAFEHhuE663+Tbc0nMFqqEZGjVKCv7HmITQ1L1C165dG7PVmXkOU1iQJgIUQF7QYHOnr3QeP5b6QG2iHTs+sgKRp4lWaWhu3rxZampqpKWlJabapOpEpghQy+k2TiNHjpSysjIpLCwUZK+9vd1cGhoanEIosykUmeL9i9Cgq66uNtNNVMLC8U5omibaceMTQrOtrU1efvllM9ezqanJBOWkSZPMY73R59mXvx/oXwSopQY7Xyjjxo2TMWPGCHJr+PDh5jLKaRo8ceKE1NfXy4ULFySXeP/Sk6qJVkNTq81f//rX8v7770eOdYKyoKAgeru39MXvB4KBALWQfvlOmTLFfIjRu0aPHi0lJSWyb9++nH1J8v4ld+jQIROMxcXFMrj6msidg2O/wvbs2WP6NLXaPHPmTLTC7K/Rtb3x+4HgYC1cC+koRSqXvqWVhu7wkQu8f8lpM+5XvvIVWbp0acz9jY2NJjC1mdYNTZXsur8GB+Xy9wPBQYBaZujQoTFreqLv7N+/3wxMyQbvX2ruSFz948JdiejgwYMxTbTeKjNog4Jy8fuBYKEJ1zLjx48X9A8d6JPtFyTvX2puQGo198orr0Tvj+/XDOo0lFz8fiBYWMrPMvSb9R8dLZst3r/uuSGqoele4vs4gzqHMxe/HwgWAtQyfAH3n1xMM+H961534Rj0xQ+YRmYfAhQAAB8IUAAAfCBAAQDwgQAFAMAHAhQAAB8IUAAAfCBAAQDwgQAFAMAHAhQAAB8IUAAAfCBAAQDwgQAFAMAHAhQAAB8IUAAAfCBAAQDwgQAFAMCHwQJkqaioSC699FIJko6ODmlqahIA6C0EKLJWXFwsFRUVEiTNzc15GaBnz56VwsJCgX3a29sFdqEJFwiQ06dPC+x05swZgV0IUCBAPv74Y4GdGhoaBHYhQIEAaWlpoe/WQvqeavM87EKAAgGjlQr9ZfbQ95Lq004EKBAwFy5ckH379lGJWkDfQ30v9T2FfRiFi6zpl4NOG8nUoEGDZPDg7n8Fz58/7+vLR5+Xz/R/89GjR80X8Pjx481UoeHDhwuCT5tqdTCY9mdrkzzsRYAiaydPnjSXTE2ePFlGjx7d7TE6crG2tlYGKv0y/tOf/iQAgocmXAAAfCBAAQDwgQAFAMAHAhQAAB8IUAAAfCBAAQDwgQAFAMAH5oECATN06FD59Kc/bRZO0MUmkN90QQVdFMPPYiMINipQIEA0PD/72c9KSUkJ4WmJsrIy857qewu7EKBAgOjG5ASnffQ91VYF2IUABQJEqxXYibWM7UOAAgHCrh32omXBPgQoECDsA2ov3aEFdiFAgQCpq6ujCrWQuz0d7EKAAgGi25d98MEHZuoD8p8GZ2trq3lP9b2FXZgHCgSMftEePHhQAAQbFSgAAD4QoAAA+ECAAgDgAwEKAIAPBCgAAD4QoAAA+ECAAgDgA/NAgYBhP1C7sB+ovahAgQBhP1D7sB+ovQhQIEDYD9RO7AdqJwIUCBD2A7UX+4HahwAFAoSdWOxFy4J9CFAgQNgP1F7sB2ofAhQIEPYDtRP7gdqJAAUChP1A7cJ+oHZjHigQMOwHCuQHKlAAAHwgQAEA8IEABQDABwIUAAAfCFAAAHxgFC76zYEDB8wFAPIRFSgAAD5QgQIBw36gdmE/UHtRgQIBwn6g9mE/UHsRoECAsB+ondgP1E4EKBAg7AdqL/YDtQ8BCgQIO7HYi5YF+xCgQICwH6i92A/UPgQoECDsB2on9gO1EwEKBAj7gdqF/UDtxjxQIGDYDxTID1SgAAD4QIACAOADAQoAgA8EqEVCoZC5xN8HAMg9AtQy4XC4258BALnBKNw8ptWlNyD1dmdnZ8zjyW4DALJHgOaxZNXlVVddJV/96ldl7Nix0tjYKC+88II0NTWZxwhRAMidUHl5OW18ARdfaXrp/dOnT5dZs2bJggULZMSIETGPt7W1yQ9/+EM5fPhwtI+UZt3e8+6770q22A/ULuwHai8CNIDcStENumShp0G5aNEimTZtmglQrzNyVtrDF6Q0NFQKnW7uPXv2yI9+9KOkg4yQO7qOra44kw13P1CC0y66ItGHH35IiFqGJtwASjUQSENTA3Px4sXm2uuChOVk+Iyclk/knET6QTvC56U8VGqac9H7zpw5I9liP1A7ufuB7tu3T2APAjQgUjWtdtdEq6F5OvyJtEiHU3WeS3huUWiIuda+UPS+hoYGyRb7gdqL/UDtQ4AGRPxoWg1KrTQ1NLUq8dIm2pbwWTnlVJudkroFvtRpwFU7duww56T5tvfoQK1cLBauTX1UoHbifbUPAdrPvP2d3TXRnnPqTa02P5L2bkPTNVKGyaCuab4aoO7rxPevInva95mL6tM9V0lJicA+7AdqHwK0n8QHWVVVlTz11FMyceLE6DE9NdF2Z2RomLnWAURaHTECt3fo/7canrnaw1P3A/3c5z5HtWIZ9gO1EwHaT+KDzBue2kT7kROcbc51OtVmvCFO7Vkkkf7PdevWyalTp6SoqMhckD1tqtVqQqcntLS0SC65+4Hq7wL9oflPg1NbFfQPI/YDtQ8BGgDaXOuGZ134dMbVZrzirvBsbm6WV199Nedf8uhd7AcK5AfWwg0YdwpKNkaHIpXmG2+8YUIUAJB7BGg/cvtBa2tro0FXGSozcze1GdaPYU6jgvvcDRs2MPIWAHoJAdqP3H5QDc/77rvPXGv46QjaKaFRTpiONLcLJP0QHBWKzDU7cuSIbN++PXo/QQoAuUWABsTmzZvl5ptvlvXr15vwUzoQSKvRSaFLnGbZ4rTO4/Z/btq0KSY0GX0LALnFWrj9KNWcTP159uzZMn/+fHPt+kTOm0FGqUbmjpBCqQhFRm5ef/310WHzTF8BgNyjAu1HGmrJgk0DTyvSe++91wShVqVK+zfHdFOJjuia+6lNt24V674OACC3CNCA0ypy6dKlsmbNGvNzWYo+Ue07HSFDzW0N3PiVhwAAuUWABlCy8Fu1apUZZDTICc9LJXFRarfvU+nSfcnOBwDIHQI0gNyF371Nr7oYQk1Njbmt+3zGc0ffavUZv2QYTbgAkHsEaEB5N9N2ab+o0r7QIk/Fqc23w7oWlXJDFgDQu6xZyu+vVjwkty+6Q/Jd45F62b3zHXn+sdVy3LntpYOD9u7dK9XV1Wax+DPhyJJ/7spDOnDIbb5l1xUA6F3WVKA3zJohNhg7sVxmzrtVnt/xutx1/5KYfTzd0bmqVIaaylMvbv+nNzzdCwCgd9CEG2B3OwE6J66q1tG47mCiSaGR5uIu3acDjbyVJ9UnAPQeAjTgNETHVoyPVpQ6mMhd9q+g6z+l97HfIAD0HbYzC7iSEaUy5947ZPXDj0YrSm3GnTlzplx55ZVmz0jddSV+yzJWHwKA3mXNUn7rnD5D7T+0kQ4sunPaLT0el2zg0ODBg6MX+kSB3tfZ2Wk20tZ9XfU27DUgK9CWtlbZtv1NKR87Tr4w9fMSdPF/GKSqLr336TFDhw6VIUOGCIC+U1BQYC762Tt37px0dHTQGmSpAdkH2tLaKstW/VRe3fqG2MJbXertoqIiwhPoZ/oZ1M8irT92YhCRR0tbi9Q3NphLqsf/eHC/ufbzuEvPr8f51VP1qZWn/gUMoP/pZ1E/k7APg4i6vPDSBlm97mnTvKu0eXftz59wrsebn1eu/gd54eX10eNvvfkv5ZEHfpzy+fr4Q0u+L6XFJU5gHpdb7plnmosjIXvAHKM/P778p+aYXHGbjgAEh9ucq32jsAdlikQqwpX/9ISUlpSaUFxy50ITestW/X/z+Dt7/mDCc8a0G02oLrnzO85970WbgPXaff5D//v7Jjz1Pm0m9tLzfObyKeYYDWb9+dUtr0suFRYWCoDg4Q9b+1CBipgwe/3Z9SYA3WrwhZfWm4Dzqm86bq7vmDPPhKzLDdJHHvhRdFCSDlLSi1uRKg1Pt2otHzdOlj78Y/njoQOSS4MGDRIAwcNn0z4EaJdXt24yoekNPJeG4h23zXOq0A2y6AffN/d9ZtIUeXzZ/zPhq9Wqe5xLH9cArj/eYIJZlZZcbKrNZbOtF32fQDDx2bTPgHhHNcg0+NxKMX6Qj96v/ZcagFqJ1vzy6YRzaH/me5veNI9pE64OAlq97p/NY9pfqryDj6J9qePGCwDAPgPmT6JIP+aGrn7HTeY+tyJ0g09/1su2Hb+Pea5WptfMvlFWrn7CVJbuwCI3JL8w9RpzrX2men4dcKQBq022vVVpAgD614Bowk3WBKsheMdt883tW2++xYyi1UpUL/qYBqU71eTWmc7jL280z9eLKi2ODBhS2h+qc0sj5/9D9Pw6whYAYCdrlvJbvblGJlV9pttjTJ9kV3/ljOk3xlSHev8fD+03QaiP6c8trS0x/ZrdPb+7x7VS1TDWnzWYvfdp0LpNwKm0NrfInCtvlHSUlpYKgGCKX7Ma+c2aAP3uiocStv6yxe4d78iD8xaldSwBCgQXAWoXa/pA39q8TWy1ZcOrAgAIFmsCVKs0G0P0+JF62bKeAAWAoLFqFO6jS5fJwdo/ii00PB+cn17TLQCgb1nTB+plQ3+oNts+uXyltDVn1meSiz5QXXJs7NixLEoPONra2uTEiRNmLdts0QdqFysDVOkempOv/EyPI3ODpvFovfx+07aMg9OVbYBqeH7qU58iOAEP3Rj7z3/+c9YhSoDaxdoAHaiyDVDn90GKi4sFQKz29nY5evSoZIMAtQtlBmIQnkBy7OmJeAQoYmhTFYBEdGsgHr8RiNHR0SEAEulgIsCLAEWMxsZGqlAgjn4mdCRufwqFQoJgIUARQ0cZ6mhD/toGIsGpg4dyMQI3W+Fw2ISoG6QEav9jQ20k0C+K+vp6AdC/3JDU8PRexx+T7H70PipQAAgQb2WpwZgqHLsLVfQNAhQAAiQ+EKuqqmTjxo2ya9cucz1//nypqKhI+XyaePsOCylYhu3MgODqaSGF+Opz4sSJsnPnzqTHrl+/3lx27NghPZ2TKrV3EKCWIUCB4Ep3JSI39DZs2CDTp0+X8+d1Go1IYaHI8OGxxx45csSE6KpVq8xt9/nJzqkI09whQC1DgALBlelSftpsq821H38s8nFz5L7Bg3VVJOezXhIJVK+9e/fK2rVrTaBqmNKM27sIUMsQoEBwpduE61aJbgX6SYdIU1Pi8RqmZSMigTo4bk7Fpk2bTBPv5s2bk76OOy3G+3rIzCDnC3eFwBqs1wkE19mzZ3s8xls1lpWVyYwZM0w4avbGx5yuedLe7jzWqquIRe5zq9LJkyfLN7/5TTPoSAci6UL4yRaDoEr1jwrUMuwHCuRWf+4Hqp/nt99+W0aMGCGnTkWCsiduE29xkciwYbGPabOu9pVqE693ZxkqUX+oQC2TbQXq7gda6PwZy1+mgJjPggZYa2tr1stcplOBxh9/7bXXmmoyVBAZSNQT/Sdq1rediVzUoEG6GH6kop09e7a51NbWZr0920BHeYEYo0ePpuoE4uhnQltl+or3j1cdFKSGDY1cMqGjd0+dFqlviPShugGs02Oefvpp84dBstdEevimRAz2AwWS66/xBdu3b5fm5sgQ3KHDxDcdiPTRyUiYKg3PadOmmdvMFfWHAEUMdmIBkuvLlpn4MFuzZo251qkr2Z88+et5F6pHelhMHjF0P9Dh8TO1AfTbDkUaau5qQ5rh2oz7iY9te00TsPPRLulqZNIBRdoP6qICzRwVKGKwHyiQqL/3A9VmXL2okgwG2heEdCSvyJgxkcuI0kgIa5Pw0qVLGUSUJQIUMdgPFLgoKPuBahXqLoiglWRBDy2t+nhZmUh5ucglIy8OPtLg1Gks1113XcwaujTd+sM8UMuwEhEQXJnOA/XSz/aHH35obnc3J1TDU6tNd0EFDU2tXrUfVUMz2W4tNN/6Qx8oAOQBDV8NQl3ab3hR6gAtG3kxPDU0teLUEI0fJERoZo8mXADIE4899pi5HpZk7Vs1eNDFkboanMuXLzfB6w1OmmtzhwAFgADzVo7eOaHJpmx754nqQvLxYcl8z9wiQAEgwLyBpwFYU1NjbiebE1rWtbCQhmeyvUEJz9yiDxQA8oiOxl28eHHCnFBvs64GqMtdJMENz9LSEVJSUiYDWWvrx07TdrNkiwAFgDzghqA7J1QHE+nCCG6AFnkWSNDHk422HT9+ojz73BYTogNdQ8MRee21DfL6a+vNbT9owgWAgHOrR7c/1J3DqasK6cAhvbgrDOngofi+T/f548dXEJ5d9I+JRYvul18+ucHc9oMKFAnYDxS4KJf7gWbDbYpVOj1Fm3F1QXhdLMGl1Wf8Agn0e3ZPw/M5pyq/++6ZGVeifDsihrsfqK6HS3gCkR2K9DOhn43+5oahTk1ZuHBhdKCQ0tG5Om2F5fkyV+JU5f/3bx+XTFGBIgb7gQKJ3P1A+zucvBWlVppz586Vqqoqs1H2pk2bolNc3EqV6jN91147zVzefXdH2s8hQBGD/UCB5PprP1AvbzOu3tZAjw91wtO/KVdUEaDwTxfPpgIFEgXlc+HduzNZSGYbnG1t7bJt8y45fCgSzNVTp8iMmdfHHNPUeFKKS4Y7f3DnduvDbVt2ybatu+Trt90k190wVfpaaUlmA6wIUMRgP1AguSDtUOStRHNJg3HZg09EA7Kt1QnTLW9L3cGj8p2/+lb0uCV3rZDqqyfLIyu/L7mkr7t39wGZcfP1kg8oNRCD/UCBRP29H2gyvdFEW3fgqAkxrTiff/Fnsvr5FSZI/+2l35kw1er08MFj5lj9WY/V+7zcENRrLz3OvU9vJzsm/vjujsnV62SDChQx3P1AdTAR/aEY6DQ4tVVG/7Ds72ksfcENwxONH5nrMWNHmRDVsBSn4H37rT3yD4++YB7TINVKVMP2rx+8wzz3FyvXya7t70fP9405X4pWrr968bdS8/wb5r7fOFWt+1oL7vpLc/HatX2PPP2PL6Y85hfOv+E3TnNvT6+jwe9K9jrZIkCRQL8o6uvrBcDAct30qTJm3BumanPDUS8apKpy0gT5+pyb5Fcv/dY5bpRpar3MuU/VPPeGCc9v3H6TfHHaVOeYbSbAikqKYoLrN1vflq87x2j/6a9ejoSdnt/bz1p36JgsdAKxrfWM1Kx7wxyjr6vVsN7W8OzpdXbteN8J9juTniNXaMIFABgaLtqvacLMqTg1dDRI9VpdNqnChJ/S0NPA0tBVOvhHn/81J6Q0XBfcdYu5v3bP/pjX0BDT5+l5/s8Dd5j7NOzij5kx8zpzjHt+t+lYBxole523naq1p3PkuimXChQAEKXBqE2ySiu9f179ognQqqmTpfrqKUmfY/pHWyPNrRq4Xk3HY0Or8vIJF19r3KXm+sTxj2KO6W50rxuC8a/jvn5354g/JlsEKADA0P7Dt3fsiU4j+bJTidY5lZ822Z7opnozU1q6prVon2l3tHn2+q4pKm64ZtKsmu7r9AUCFABgFDnhZEatOsGmfYpn2tqjTaOjx0aqRbey0yZVDdzKyRVS7VSn2kyqzatarbq39bnznebaL3v6N03/qelTDTnHvm7uuymDaSva76rn6Ol1+gIBCgAwvBXnsoeeiN6vfZY671NpBag/a4A97TTvan+pBujCJbeb/k693+0z1efEh5r2W7ojed3XzCT49LXTeZ2+ECovL2e9J4uUlpYKgGDSReD70xVXVJn9QHui/YyHDxwzFeh1N1yVvD+xLdLvGb8ikVaw2tyrI3bdEbrKDTztX61y+lL1/Bqm3mOSnTPT18nkHPGeWrtK1q59TNJFBQoAA0R9wxEnxJt73BNUm1jdqSupaBAlCyO3UvVz/mTnzPR1MjlHvEzWwVUEKBKwHyhwUVD2A82FVic8X3+tRhb8r8WCWLoXKAGKrLj7gRKcQISuyKXrQ+sKXTaEaE3NU3LL1xb0WIXmmvaVVk2dIpdNniBB9FQGTbcuviURg/1AgUTufqA20Erre9+da5py+5I22Wqza653cMmFtU7f52uvrZdM8U2JGKx/CyQXhP1Ac2X//lq55+6ZvkLDJu4fE36qT8UoXMtkOwp30qRJVKBACvv375ds9Pco3GTGj58oU664Uq6YUiUDhb4P+/fvzbjPMx4BaplsA7SiooL9QIEkdDBRtpssBDFA4R+lBmKwHyiQKIj7gaL/EaCI4e4Hqn9tAwOdBmd7e7s1I3CRW0xjQQL2AwWAnlGBAgDgAwEKAIAPBCgAAD4QoAAA+ECAAgDgAwEKAIAPBCgAAD4wDxQJ2A8UuMim/UCRW3w7Ioa7H6iuh0t4ApEdivQzoZ8NwItvSMRgP1AgkU37gSJ3+KZEDPYDBZKzaT9Q5AYBihjsxAIkR8sM4vEbgRgdHR0CIBE7FCEeAYoY7AcKJGI/UCRDgCIG+4ECF7EfKLrDPFAkYD9QAOhZQSgUOi0AACATp7UJt04AAEAm6grC4fBuAQAAmXhPm3B/KwAAIG1Odv6uYMiQIS/TDwoAQPo0Owvq6uo0PJ8VAACQjmc0O8080AsXLvydAACAHnV2dj6s12Ye6PHjx+smTJjw9+Fw+G8EAx77gQIXsR8ovJwuz7/XzNTb0W9H50tzhTClZcBjP1AgFvuBwqOuKyuN6Dektuc6ZekMIUQHNPYDBRKxHygcdZqRXeOGjJhvSi1LnfJ0jhCiAxb7gQLJsR/ogGay0W26dSWUGseOHXuPSnTgYicWIDlaZgYsU3lqNsY/kPQ3QlO2sLDw89pZKhhQ2A8USI4digYezUDNwvjKM/p4TycYN25cpfOX1wrn5j2CwCstLZVsuIOI+GsbuEhbZnKxpVlLS4sg2LoWFnpWp3emCs7osZKmysrKkc4vz23hcPgm5wWu1ruc2yMFgZJtgCoNUR1MRH8oBjoNTm2V0Y3mczGNhQANnq7ArHMu2kT7O11hyDtQqDv/DV3wNshwzp4jAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdAAAAEYCAYAAADs5qfZAAAiIElEQVR4Ae3deYykd33n8W91z/Q53T13j8eDNfbYG0XYY1tLQOBF2FlhNizx2iDCH4ZA0ErrvQhZDmmR1gajZRUMm+BcEykiHLYUQ2IbgjCxJQxxDLKDhO2YSMieccfHHD2ePqa7Z3qO7srz+VV9q5+qru6ueqq66qmn3y/0UN1VT1V5pqbqU9/fmbMa5fP5rdHFrdHxjui4Ljr2R8dWAwCgc01Fx1h0PBMdP46Oh3O53FQtd8ytdUIUnPuji9+Njo8YgQkAyL6vRcfnoiAdW+2kFQO0WHHeFR0fNwAANp4/jEL091a6sWqAFqvOx63QTAsAwEY1Fh03VatGuyqviMJT/ZuEJwAAhSx8vJiNZcoqUCpPAACqGrOKSrQUoMU+z58b4QkAQDVj0XG9j9KNN+FqwNB+AwAA1ey3QlYGoQItNt2+ZAAAYC2XqynXK9C7DAAA1CJM78wV+z4nDQAA1EJ9oJerAr3VAABArcLStgrQdxgAAKjHOxSg1xkAAKjHdeoDVf8ni8QDAFC7KQVo3gAAQF26DAAA1I0ABQAgAQIUAIAECFAAABIgQAEASIAABQAgAQIUAIAECFAAABLYZACwQS0eO2qLL3fuVsi5gUHLDQ5a16VvMOvtM7QWKxEB2LAW/vl5y89MWxZ07busEKRoGZpwASADFl992RZfe8XQOgQoAGSEQjR/OhsVdScgQAEgQ6hCW4cABYAMyc/NGVqDUbgAsIqzUSD97AePhsvto6N2xXUHw+V6++6fHrKzs3P2gU9/oq772cJFy5+btxyjctcdAQoAK/jFkz+1v/riPTY/u1TVbdszanf8/3vWPUSff/InNnn8RP0BipahCRcAVvD3f/NQCM9b/vsd9vnvPGj/7n23hVB77Ov3LTt38sSJUKWuRrdXnqP76Vjrfmudg9ajAgWAFUyeOB4uD1x70Pq2DNrNv/1Bu/qGt1l/9LP72d89Zt/50z8rVal7DxywD3/+rlChKmy/cPtv25vedbNti35/4sEHo/vfEKrK1w4ftm/9/pftaHQpqmw/cvdd4f5xj0Zh/dg3vlk6pxXVL2pDBQoAK1Dwydfu/Jw98MUvhbBTmHrITURVoa7vH9xit/y3O8L5R0MwfqnscZ5/8skQgv1btpTC9+vRY+rcd374Q+G+87Ozduh/fXrZf8MvoqZcnXPFtdeGQP7bPzlkSAcqUABYgSpOBd4Tf/1QqDR17L3yCvvw3Z8NVWD/4GCpIlR1KL+IwvLo4SNlj5OL/veZ+79ROkc+8OlPhsf2MP7HRx+zYy8eDiEZP09VqX4/+95Zu/M/vS9UrkgHAhQAVvH2994WjsPPPheaU488+2yoMBWcqiiPPPOsPRAF69m52bLBRnEK3XgoytEoLBXIE1Ez8Ur3E7+fngvpQhMuAFRxNmpSfeCLXw7TSURNtx+5+87ws8JUFICPfuO+KCAPRLd9NoRqLdT0W5imMhsqUd2vMmCRfgQoAFShiu9wVF0+8TcP2T9Eh0bBKjBl74ErwuVEcWSsmmIVsIefea6mx1b1Kduj0NSgJDXb6kBnoQkXAFbwkc/fZV/7P5+z70TV4neKlWhf1O+pqlGuvuGtUbg+WOof1Uhb9WkeXaOfUmGrc1XJfurfvys85hujINWAIXQOtjNLscXFxXA4Xiqgyf7liOVOvb7qKaoMNXBHA4O2je62a264IUxpid/+fDH4fu1dN9vE8ROhP1QhqSZa3S8+WCh+PwWozlEVKqpodT/xZmL/3a+r9liVNv3bt0T/R3203gjQFFpYWAhhyUsD1EfvmVwuV/sdxo9b7tWXLVN6e23TdW8yrD/6QFNEwXnhwoVQdRKeQO3iXzj1/tF7qab30Y5dljVdQyOG1iBAU+LixYtlzbUAauPhqfeP3kcKTz/WDNHubsvv3mOZEVWfXfveYGgNGslTQG96Kk6gfh6eCkvZFPX7dUehqOA8d+5c6faurq5wVLXvMotONpuetI4W/dk3/ZtfjUKUXVhahT7QNiM8geR8oJ2O/v7+spDU+2pubi70iSpUdazq2GuWi45OlIuabbsPXEl4thgB2kaEJ5CcV5d6H/X09NjmzZv1prL85ITlhodDmOi2M2fOlCrTFatQdz6qRGdOm509Y7liVZtm+f4B2zQ0HP156fdsB5pw28RH2gKoX3zAkITw1O8vv2SLJ8dDoHT/6tUhOFWB6v2mSz9W1NNbGljUKe/OxehLQbehHRhE1CYMGAIa4wOE4oG4eHo6XOZ1GVWfonDN8hdWPkvahwBtg4UOaBoC0sxDU+8lNd+KKs8wGKho8cTRcNnb21v4vdhXmsUg5TOlPQjQNuAbI9AYD0MF6SZfcWfyVPk5x46FSx9EVPPc0A7EZ0p7EKAtxj90oDHxeZ9efaryXJycKD9x4WKhKdcKVagHaFaDlM+W1iNAW4yBQ0DjPES9+vS+z0qLr70SLn2Urlb6UoD6wiVZWjaTAG09ArTFCFCgMV59qmnWp6Xki/2dy86NgtWr0KGhoTBXVBSgvmwma08jKQK0xXiTAslVbb6dm7N8dKxk4cgLURPvfPi5r68vBKkOha9Xo96s28lVHJ8trcdCCi2mb70AkvGFExR4CkFZjAIyjMBdQ9eu3dZ16RuWrdZz/vz5cHhFqwFHde3okiI+HxatwUIKADqGV6DxZflW6v+spJD1RRZyO6Mw3bY9rB/r/aNa9i/eNNypIYrWIUABdIR48633ZeY1dSU297Omxyn2iy5G4akQVVWai6pSNe+ePXt27eX+gCL+pQDoCB6e4qNv85VTV+qhkbhRRbrwamGkroLTp7fQs4VaEKAAUi9efZb6+TT3s4a+z9WEXUwu2Vt6jtL1NN+iBjThAki9aqNva+37XEZNtzt2WW77jrJdTObn51ffNxSoQIACSDWvDH3wUGnuZ53Vp6rNrn1Rf+fAYAjR+ONryzON7mUUK+pBgAJIvWpL9+Vn1q5AFZq57duta+fustDUYykwNWhIP6tPVYdXoDThohYEKIBUU5h5E25p38/jr618BwXh6CWF6SoVG037nE+f96mKVo/p8z/9+YBaEKAZdy76pq7mKX3TvljcHxGN8XmDIyMjSzuBrBNev0L1qYUTtCB8afGEytG32jhbTbR7LlkWmrrvyZMnbWJiIvwdxqvM+KU0Izxb+e8D7cWrm1FqlpqenraZmRlDc3kFo4n3+kDXB2WzB57w+tVmpSZahab+/iYnJ8Pr5CGpYIsHZjOD07Xi3wfSgaX8WqwVS/npw3d8fDy8ibH+VHHs3r27aR+SvH7lvP9Tx1VXXVVoavVqvKLCm52dLQWn84pzPUNzNc3+97EaBkG1FhVoBukDhA/f1tHftf7Ot23bZs3A61fOg05BeuzYMdu3b19ZcOrvSs2zaqb189sdmnHN/veB9KACbbH1rkDVx3P06FFD642OjoZ+ukbw+i3nA4i8L1QVqJpG9bv6hr2J1heB937N+JEGzfj3sRYq0NaiAs0YfdNFe2iwT6MfkLx+y8UDUCGpptypqanS/FAfRVstMNM0orYZ/z6QLvRsZwzbpbWPqqFG8fpV58Ho00183mZ8/qZXoGmrPF0z/n0gXahAM4a+s/ZpxjQTXr+VeSDG+0Tjv1f+nDZMI8seAhRAR2LBA7QbTbgAACRAgAIAkAABCgBAAgQoAAAJEKAAACRAgAIAkAABCgBAAgQoAAAJEKAAACRAgAIAkAABCgBAAgQoAAAJEKAAACRAgAIAkAABCgBAAuwHiobNzc3ZqVOnLE36+vps9+7dBgDrhQBFwxSgr7zyiqXJ8PBwRwbopk2b7OLFi4bs2bx5syFbaMIFUqS/v9+QTT09PYZsIUCBFBkYGDBk08jIiCFbCFAgRXp7e21oaMiQLXpN1TyPbCFAgZRRpUJ/WXbotaT6zCYCFEiZrq4uGx0dpRLNAL2Gei31miJ7aFNAw7q7u0PTY70WFhbWHHGqZi89fr06vYLTB+62bdvCB/D09LSdP3/eLly4YEg//ZvVYDD1Zyd5X6BzEKBo2I4dO8JRrxdeeMHGx8dXPUcfQtdcc41tVPowTvJ3C2D90a4AAEACBCgAAAkQoAAAJECAAgCQAAEKAEACBCgAAAkQoAAAJMA8UCBltLiE9lfVwgmLi4uGzqZFFbQoBmvhZg8VKJAiCs/jx4/buXPnCM+MOHv2bHhN2ec1ewhQIEUmJycJzgzSa6pWBWQLAQqkiKoVZBNrGWcPAQqkSC6XM2QTLQvZQ4ACKdLT02PIJg0mQrYQoECKaOcVqtDs0WuqkbjIFgIUSBFNdbjkkkuoVjJCwak9QfWaMo0le3hFgZTRB+2uXbsMQLpRgQIAkAABCgBAAgQoAAAJEKAAACRAgAIAkAABCgBAAgQoAAAJMA8USBn2A80W9gPNLipQIEXYDzR72A80uwhQIEXYDzSb2A80mwhQIEXYDzS72A80ewhQIEXYiSW7aFnIHgIUSBH2A80udtjJHgIUSBH2A80m9gPNJgIUSBH2A80W9gPNNl5RIGXYDxToDFSgAAAkQIACAJAAAQoAQAIEKAAACRCgAAAkkMtHDC2z3st5vfzyy4b2ueyyywxol82bNxtahwoUAIAEmAcKpAz7gWYL+4FmFxUokCLsB5o97AeaXQQokCLsB5pN7AeaTQQokCLsB5pd7AeaPQQokCLsxJJdtCxkDwEKpAj7gWYXO+xkDwEKpAj7gWYT+4FmEwEKpAj7gWYL+4FmG68okDLsBwp0BipQAAASIEABAEiAAAUAIAECNMPYaAcA1g+DiDLCw1KX8eDUzz4tgukRANA8BGiH8mD0wNShlU60YLUHqG6PH34dAKBxBGgHioemB6cfmnOmCdvaWFdrb46Pj4fru7q6CE8AaCICtENUNtF6cC4sLFh3d3cITC0DNzw8XHa/oaEhGxsbKy1krXORbuwHmi3sB5pdDCJKsWphqQ9XfbDqUm/IgYEBGxwcDJWnV5hn7Lydyp+N/n8xBObo6Gi4b2X/KJpLX2IaxX6g2cN+oNnFV6IU8pDzD1BvntX1CkR9o638NhvFo03kz9iUzVtUt4TrzuUv2t7cUKhM42FMU+76aMZC8OwHmk2+H6i+zCI7CNCUqKwOveLUdeq/9CbaePgpNKfy8zZj56Kqc/legwO5QkV0/vx5w/obGRmxRrEfaHaxH2j2EKApEK8OPTQVoApMHQrQODXRzuTP22RUbUZ16YqPG9We4XJ6ejpcUnmuH/U1N6OPy0dWI3toWcgeArTNKoPTd2+o/DC+ENWbqjZP2dlVQ9NttT7rLnZxK0B9KktlGKNxah1oRvUp+sKk/k9kDzvsZA8B2mZebYreYPGAW6uJdjVbc33hcnZ2Ngxe0Ie8VzdUos2jylPh2awvJtoP9NixY1ShGcN+oNlEgLZRfIRtPDwLo2jnbS6Mo63/g3RzVHsOWKH/U+GpD3l/HsKzcWod0OulEdBqLWj2Y2vvSA0moj+08+n9plYFfTFiGkv28Iq2UXxUrIfnWH6q7mqz0mAxPP3xd+7cGSpQFlPoDOwHCnQGOsTaqFqY+RSURuzKDYRL70sjNAGg+QjQNvJgi09h2Z8bCXM31QybRF/UqOD3VYBq3qgqT6pPAGgumnDbKD6gR/1d6lfbnOu2rVEAahCQmnI1iOi0nau5L3R7rjDSz1ct8mkwhCcANBcB2kbxqSUKvJmZmTAoxfsrNRBIiyHsin6aikL0ZH5uzcf0/k8tnqDq0ytQAEBzEaBt5uGmIFWIqtn1zJkzYSCJwlQVpJpkFaJDuZ4wyGilanTYekrNt/Pz8yE8qTwBYH1QmqSAV6EKPAWnL0quIJ2amgphKOrf3J0bXPFxhotzP1V9+hKAVJ8AsD74dE2BeFOuAtQPBalCVf2jPidwJIrRqEdz2WOo8hy2wpzE+OAhf3wAQHMRoCkSD1Lf49PD1Le3ihplbYctXxLM+z5Fg4d84BDhCQDrgwBNoXjweVWqS99VZSi3fPUbH33rzb2MvAWA9UWApphXo37p2yGpL3QgVnGq+bavOB7Mm289hAlRAFgfmRmFezw/axPWAWuHrvE3vjnfFTXQbrLti33hZ/HBQApQjdRVQIZ5ovlCoPrKQ7pNB8v2AcD6y0wFqh1LsuBCbtFO587bWPdpO9VVaI71SlLB6VXokPWGylOH93/qNu8/JUABYH0xDzTFJqIA1YjbbYu9IRA1NUUhqfmh3VE4HshtDed1Fb8HMfcTAFqHPtCUU4hqgXmvQHWpKS1hnmfxf6J9P+PVJwBgfVGBppxWHZrqOme7FgujbDUiV/2cc3NzpaZdjc710boMHgKA1iBAO8Bc7oLtsv6yvlCFqO/iokFDPlK3svr0jbTjO74AWD/x+dx8kc22DRmgM3Oz9vhPnrC9o3vsTQevt7TTwCK3UnVZWXl6cOoA0Dr+ZVXvPe9WQTZtyM6ymai/8M4vf8G++9gj1mkqVyvyqjP+bVdvXlWohCfQXnoPamUwZBOjTWJm5mbs6Ilj4Vjp9l8efiFcJrnd6fF1XiM8LKtVpN5kC6D9/Astsoc+0KL7H/q2Hbrvq6F5V9S8+xdfvDe6vCT8fs+hP7L7H/5W6fxb3vkbdvcnPrPi/XX7p+74mA0NbokC87i9+8PvD83FhZB9MZyj3//gri+Ec5rFm44ApIc359Inmi1UoFaoCO/583ttaMtQCMU7PvjREHp3fvn/hdt/9tzPQ3je9Na3h1C944O/E133TKkJWJd+/0/9l4+F8NR1aiaO0+P8yhVXhXMUzPr9u49+35qJ8ATSifdm9lCBmoUw+/7XvxUC0KvB+x/6Vgi4uKPjx8Pl7be9P4Ss8yC9+xP/uzQoSYOUdHhFKgpPr1r37tljv/e5z9gvj7xozUTTLZBOvDezhwAt+u5jPwihGQ88p1C8/db3R1Xot+0/f/pj4bpfOXCV/cGd/zeEr6pVP8/pdgXw0ePHQjDL0JalptpmNtvG8SYF0on3ZvZsiCZcBZmCzyvFykE+ul79lwpAVaIP/MlXlz2G+jOf+cET4TY14WoQ0KH7/jLcpv5SiQ8+KvWl7rnEAADZs2H6QAv9mN8u9jv+IFznFaEHn37X8fhP/6HsvqpMr/sPb7d7Dt0bKksfWOQh+aaD14VL9Znq8TXgSAGrJtv1qjQBAO21IZpwqzXBKgRvv/W3ws+3vPPdYRStKlEduk1B6VNNbrk5uv3hvw731yFDg4UBQ6L+UM0tLTz+z0uPrxG2AIBsyuUz0jB/JD9p87b6hOXQJ1nsr7zpbW8vqw51/S+PvBCCULfp95nZmbJ+zdXuv9rtqlQVxvpdwRy/TkHrTcAr0Y4sBy6OWC18uzMA6aNlNzv58VEuMwHaMRtqJ9Cf32T7FmprCiZAgfQiQLMlM32gw7ley6rhxR4DAKRLZgJ0wDbbkGUvRDfnu2w4T4ACQNpkahTu3tyQ9WVoXJTC89JFRvECQBplpg807nh+LuoPPWOdTFWnNtHuyte3dmYz+kC18PXU1FR4LCZ/Y6Pr6+uz4eHhpmxLRh9otmQyQOWCLdi8jny6BtUsrLEepqrOLVFzdL3B6RoNUIXnyZMnCU4gRgvB79y5s+EQJUCzJbPzQDdbdziGcunqP7ywmO5RstPT04QnUEELwatVZseOHQY4dmNBmXPnzhmA5dgYG5UIUJRhv0KgOrYjQyUCFGXoQwGq02AiII4ARZmtW7dShQIV9J7QSFwgjgBFGY0y3LVrF9+2ASsEZ09PT3hPNGMaC7KFDbWxjD4otm3bZgDay0fEq//VW4Z0nX7232kxah8CFABSSEHpA5c0P9vD1MNTc1NFl4RoexCgAJAyCsv4oS4VhaQC9fz58yFQdXiQ+qVXqgRqaxCgAJBCCkMdg4ODpesUkps2FT62NWdbK4/p0PU61P3iAUoT7/ojQAEgZbz51gfzaQ2HuTmznh6z/v7COb29veHQeQpRBaqq05WC1Jt80TwEKACkiDfbioefwnP6dOF2FaBRbtrQlkKgKhgrw9RXTfIwjSNIm4cABYAUiTe5KhBDQKoQLQaostErUoXpyHAhUPWzh2nhvIuhn1SVqULUm3l9FK8/F028yRGgAJAiHnC6VDWpPs++KBO7opxbrNjnQUF6aqLws85Rd6l3mep+OrS6mA8+Eq9KGb3buMxuZ5ZWzdivc70fn/1AgSXt2A9U7ztVkDq2bNkSwm5y0mxmdu37ehPv4ID+28tv8yZeD2n9mfzPRZjWjwoUZdgPFCg3Pz8fqrdm7AdaL4Wa3pMK0P6B2gK0solXfaUaeBRv4o1PhxFWWUqG3mSUYT9QYDnfD7RVvDpU4PkWg2qi7eut73EUpJPRf/bRY2bj44VQlXiQxhdsQH0IUJRhP1CgunbsB+oVqAdcbwNLVM+fK/SXKkz9sX1xBuGLc/0IUJShHwSortVVmq8uFK9C1RzbMHKyaQhQlGE/UKC6Vu9QFF8IwfsqNYWz3mZcp/tt3Wq2Z0/hd1/piC/NyRGgKMN+oMBy7doP1PtCFXTehLxlqPb7a+rLUHT+7t2FY3ioEMJqrtXgqPhaurzv68coXJTx/UBPnz4d3mDARqZQUauMvli2a6Sqh9xac0LjQnAOF5p84wsPKTjVHKww1p9Hj8d80OQIUCzDfqBAOsS3LtO0k/7+/hCIWixhpSktCk9Vm1rmT3xOqYJTP3tw+hxQqs/kCFAASLF4X6iCUOG32pzQka1L4elzWHVfrzYrm2wJz+QIUABIsXgVqkDUykR9xbVvK2fWbOpeGql75syZUuDG18Kt3KUFyTGICABSzgM0Pic0tk1oSXyeqPdzqg/Xm2vjIYrGEaAAkHLxKtTXu642J3SkOFDYm209NFk8fn3QhAsAKRefbqIA1TJ8Pid0vrh4mDfris7xwUKVzbUqYDf6yn36u2vGtqgEKACknO+eohD1XVrClJb+pQAdKDbp+gIJarr1+zj1mR4/QYCKvmxoxxo1hW9KmIQ04QJAynkF6X2YpUUVBgsDh3RsKQaoBhqt1GR7cYHwdPornD5tNn5y+WCsWlGBYhn2AwWWNHM/0EZ5gKqPs9CMm7O9e5du991V4nM8sTqvyveM1l+JUoGijO8Hqjco4QkUKrrXX3+9tB5tu8SrUIWjpqnEF7jX+1Xv2/igIdRGf40TE1Y3/oZRhv1AgeVavR/oSuI7tOh9qhCdm5sLl1p+U3zaCnM966O+5HpXLyVAUYb9QIHq2rEfaDUeor6ykCjg42vbUn0mU5whVDP6QFFGb04qUGC5xRSNvvEK1CvM+CjdRqvOubmz9vjfPWUvHXk1/H71wavsppvfUnbO+IkJG9zSb4OD/dZMjz/6lD3+2FP2nltvtDffcNBard6XmABFGTX/qB8FQLlW7we6Fm+i9fCsnLKShILxzk/eWwrIudkoTB992sYOv2q/81/fVzrvjg991q6+9kq7+56PWTPpeZ9/9kW76Z1vsU5AnY8y7AcKLNeu/UBr0cy+zrEXXw0hporzmw/+vh365mdDkP7tQz8OYarq9KXDr4Vz9bvO1XVxHoK6jNN5fp1+rnZO5fmrndOs52kEFSjKsB8osCQN+4G2kofhyROnwuXu0e0hRBWWFmX0008+Z3/0pfvDbQpSVaIK2//5ydvDff/4nvvsqZ/8U+nxfvO2d5Qq1+89+CN74JuPhOt+GFW1/lwf+NBvhCPuqZ88Z1/9swdXPOePo/+GH0bNvWs9j4LfVXueRhGgWIb9QIGN6c1vO2i79zwSqjYPRx0KUtl/4FJ7z2032vce+lF03vbQ1Hp5dJ088I1HQnj+5ntvtF9768HonMdDgA1sGSgLrh8+9rS9JzpH/affe7gQdnr8eD/r2JHX7KNRIM7NnrEH7nsknKPnVTWsnxWeaz3PUz/9pyjYP1j1MZqFJlwAQKBwUb9mCLOo4lToKEh1KZcf2BfCTxR6CiyFrmjwj+7/H6OQUrh+4EPvDtf/4rkXyp5DIab76XH+xyduD9cp7CrPuenmN4dz/PG96VgDjao9z9NR1brWYzS7KZcKFABQomBUk6yo0vvLQw+GAH3jwSvt6muvqnqf0D86W2huVeDGjR8vD639V1y69Fx7doTLk8dPlZ2z2uheD8HK5/HnX+0xKs9pFAEKAAjUf/j0T58rTSP59agSHYsqPzXZnlylegtTWorTWtRnuho1z76lOEXFw7WeZtVan6cVCFAAQDAQhVMYtRoFm/oUz8ydLTWN7hotVIte2alJVYG7/8p9dnVUnaqZVM2rqlb9Z933t6Lm2l+P9W+G/tPQp5qLzv1+uO7GOqatqN9Vj7HW87QCAQoACOIV552furd0vfosNe9TVAHqdwXYV6PmXfWXKkA/esd7Q3+nrvc+U92nMtTUb+kjef056wk+PXctz9MKuTzLzrTUhXrXikrZ4wNITlNi2vn4WiNFO4+sRf2ML734WqhA33zDNdX7E+cK/Z6VKxKpglVzr0bs+ghd8cBT/+obo75UPb7CNH5Otces93nqeYxKI8PRMWI1owIFgA1C23V15cwW1yib1MTqU1dWoiCqFkZeqSZ5/GqPWe/z1PMYlXp7rS4EKJZhP1BgSZr2A22UVvobHDSbmTVU0Kbk9a7WSBNui6W9Cdf3A+WfBbBEa8zu3Lmz4RBtdxOuhA2kj69dhTabmoU1OOnyKy9t+iL0zbA9Koi3DNZ3HwK0xdIeoBMTE2xpBlTR09NjO3bssEakIUBFfaHj460P0bSqt+/TsRIRyhCeQHVp2Q+0GaLvArZnT6E5dyNTs+3u3cnCM9zfgBj2AwWqS9N+oM2gAUU7theqr/NRw9WFDbSLYa6r8CWir85BQ5UIUJRhP1CgurTtB9osClIdlr5uydSjCRdl2A8UWC7N+4GifQhQlPH9QLP6bRuoh4JTg4f0ntgI+4GiPjThYhn2AwWAtVGBAgCQAAEKAEACBCgAAAkQoAAAJECAAgCQAAEKAEACBCgAAAkwDxTLsB8osCRL+4GiuahAUcb3A9V6uIQnYDY/P2+vv/56eG8AcQQoykxPTxOcQAXtxKJWGSCOAEUZ9gMFqsvSfqBoDgIUZdiJBagua/uBonEEKMpoP1AAy7FDESoRoCjDfqDAcuwHimoIUJRhP1BgCfuBYjXMA8Uy7AcKAGtTBcrYbAAA6jOlAB0zAABQjzEF6LMGAADq8YwC9EcGAADq8eNcPp/fGv3wUnRsNaw7LdDeyY8PILn1nmfNPO6W2taVy+U0iOjrBgAAavE1ZWeYMR9VofutUIVinVGBAhsXFWhmXB4F6FiYB6ofohD9SvTj7xo2PPYDBZawHygqfEWZqR9Ka7YV+0J/Hh37Desm7RWo7wdKcAJLurq6bOfOnQ2HKBVoxxuLjuuLXZ9LS/kVr7jJmBe6obEfKLAc+4HCCtl4k4enlK2FWyxLbzNCdMNiP1CgOvYD3dDGouM2b7p1yxaTj054xqhENyx2YgGqYz/QDWvMCpXnM5U3VN2NpZiy10fHVwwbCn0oQHXsULQhKQOvr6w83YrbmYU5Lrncx6MfLzfmiW4Y7AcKLMd+oBuK+jgVnJqq8vF4n2elmj8pi6N0b42OG6PjWiuM1mX1ojp1wjxQjcQ9ffq0zc/PG7CRKTjVKqMvls2YxsIo3FRSQI5Fh5pofxwdD68WmnH/Cl480AZrzbWwAAAAAElFTkSuQmCC";return r.jsx("div",{className:"cometchat-collaborative-document",children:r.jsx(l_,{title:o,URL:a,subtitle:s,buttonText:i,onClicked:this.launchCollaborativeDocument,bannerImage:c,isSentByMe:n==t.JxA.right})})}launchCollaborativeDocument(e){window.open(e,"","fullscreen=yes, scrollbars=auto")}getDocumentURL(e){try{if(e?.getData()){const t=e.getData();if(t?.metadata){const e=t?.metadata;if(ht.checkHasOwnProperty(e,"@injected")){const t=e["@injected"];if(t?.extensions){const e=t.extensions;return e[Jt.document]?e[Jt.document].document_url:e[Jt.document].board_url}}}}}catch(e){console.log("error in fetching document url",e)}}getAttachmentOptions(e,n){if(e?.parentMessageId||n?.hideCollaborativeDocumentOption)return super.getAttachmentOptions(e,n);{let r=n.messageToReplyRef;const a=r?r.current:null;let i=!!e?.user,s=i?pt.MessageReceiverType.user:pt.MessageReceiverType.group,c=i?e.user:e.group;const l=super.getAttachmentOptions(e,n);let u=new Ht({id:Jt.document,title:V("messsage_composer_collaborative_document"),iconURL:this.configuration?.getOptionIconURL()?this.configuration?.getOptionIconURL():"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%204.14748C2%202.40917%203.40918%201%205.14749%201H15.8489C17.5873%201%2018.9964%202.40918%2018.9964%204.14749V9.5388C18.9964%209.70329%2018.932%209.86125%2018.8171%209.97886L14.75%2014.1389L8.93259%2019.7101C8.81541%2019.8223%208.65943%2019.8849%208.49719%2019.8849H5.14749C3.40918%2019.8849%202%2018.4757%202%2016.7374V4.14748ZM9.2393%203.95166C8.783%203.95166%208.41309%204.32157%208.41309%204.77788C8.41309%205.23418%208.783%205.60409%209.2393%205.60409H15.2195C15.6758%205.60409%2016.0457%205.23418%2016.0457%204.77788C16.0457%204.32157%2015.6758%203.95166%2015.2195%203.95166H9.2393ZM5.77641%207.41455C5.3201%207.41455%204.9502%207.78446%204.9502%208.24077C4.9502%208.69707%205.3201%209.06698%205.77641%209.06698H15.2189C15.6752%209.06698%2016.0451%208.69707%2016.0451%208.24077C16.0451%207.78446%2015.6752%207.41455%2015.2189%207.41455H5.77641ZM5.77641%2010.876C5.3201%2010.876%204.9502%2011.2459%204.9502%2011.7022C4.9502%2012.1585%205.3201%2012.5284%205.77641%2012.5284H13.3304C13.7867%2012.5284%2014.1566%2012.1585%2014.1566%2011.7022C14.1566%2011.2459%2013.7867%2010.876%2013.3304%2010.876H5.77641Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M21.1275%2011.3341C20.6359%2010.8424%2019.8387%2010.8424%2019.3471%2011.3341L11.4128%2019.2684C11.3622%2019.319%2011.3294%2019.3846%2011.3193%2019.4553L10.9521%2022.0259C10.9209%2022.244%2011.1079%2022.431%2011.326%2022.3998L13.8965%2022.0326C13.9673%2022.0225%2014.0329%2021.9897%2014.0835%2021.9391L22.0178%2014.0048C22.5095%2013.5132%2022.5095%2012.716%2022.0178%2012.2243L21.1275%2011.3341Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",onClick:()=>{const e={receiver:c,receiverType:s};a&&(e.quotedMessageId=a.getId()),n.closeReplyPreview&&n.closeReplyPreview(),o.CometChat.callExtension(Jt.document,Jt.post,Jt.v1_create,e).then(e=>{r&&Qf.ccReplyToMessage.next({message:r.current,status:t.qpt.success})},e=>{})}});return l.push(u),l}}getLastConversationMessage(e,t,n){const r=e.getLastMessage();return null!=r&&r.getType()===Jt.extension_document&&r.getCategory()===pt.MessageCategory.custom?r instanceof o.CometChat.CustomMessage&&r.getConversationText()||V("conversation_subtitle_collaborative_document"):super.getLastConversationMessage(e,t,n)}}class d_ extends Vf{constructor(e,t){super(e),this.loggedInUser=dt.getLoggedInUser(),this.newDataSource=e,this.configuration=t,this.loggedInUser=dt.getLoggedInUser()}getAllMessageTypes(){let e=super.getAllMessageTypes();return e.some(e=>e===Zt.extension_whiteboard)||e.push(Zt.extension_whiteboard),e}getId(){return"collaborativewhiteboard"}getAllMessageCategories(e){const t=super.getAllMessageCategories(e);return t.includes(pt.MessageCategory.custom)||t.push(pt.MessageCategory.custom),t}checkIfTemplateExist(e,t){return e.some(e=>e.type===t)}getAllMessageTemplates(e){const t=super.getAllMessageTemplates(e);return this.checkIfTemplateExist(t,Zt.extension_whiteboard)||t.push(this.getWhiteBoardTemplate()),t}getWhiteBoardTemplate(){return new Yt({type:Zt.extension_whiteboard,category:pt.MessageCategory.custom,statusInfoView:super.getStatusInfoView,replyView:(e,t,n)=>{let r=e;return Gf.getDataSource().getReplyView(r,t,n)},contentView:(e,t)=>{let n=e;return n.getDeletedAt()?super.getDeleteMessageBubble(n,void 0,t):this.getWhiteboardContentView(n,t)},options:(e,t,n,r)=>super.getCommonOptions(e,t,n,r),bottomView:(e,t)=>super.getBottomView(e,t)})}getWhiteboardContentView(e,n){t.Aq1.right;const a=this.getWhiteboardDocument(e),o=V("message_list_collaborative_whiteboard_title"),i=V("messag_list_collaborative_whiteboard_open"),s=V("message_collaborative_whiteboard_subtitile");_t(e,this.loggedInUser);const c="dark"==Et()?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdAAAAEYCAMAAADbOFfrAAACK1BMVEUAAAAcHBwaGhogICAaGhobGxsaGhobGxsbGxsbGxsbGxsaGhpBQkMaGhonJyeFhYXIyMjh4v/V/ur7yMQxMjI9PT5ubm5fYWI/Pz94eHhISUo7Ozv///81NTVrbG9ra2uMjIxTVVYzMzN6enobGxuYm58oKCh2eHtkZGQxMTFUVVegoKCNj5O0tLSvs7czKG2BhIekp6tqamq+vr5QUFBqbW6fn58FRidwCwt+foxPT0+CgoIzMzeqqqpFRUWws7d4jIJiY2PT1tvHy8+KhbbW1/ZaWlqnh4SWlpbLy+27v8Pqsa1ZWVmBIiLx8fF2eXtTU1P8/v6gnMi1s9vGxsZ3d3eh0LlMTFI2Nja759K+4dB0bqRJP39Ti3Di4uLDnZnw8P/zvbk+NHbt//aAea2HuaHYmZY2MC/n5//b/u3I896VPTz39/9vcHE5dFh4Fxav2sXhpaFfV5G+dXNAQELAv+T91tR9fX5vb2+1amgfXUDj4///+Pf93tu759Gampr/+/v2//rj/vH+6Oerp9KVkL9glnykUlGKLi3+8fDI892+wca3t7dtoogSUTPX/uvj4+P80MygnMl6rZXHgX8saUz7zMicnqFpYppUS4g3NzfIyeLgwcCEmo/QjYpGgGStXlzctLGWwayPppt8Z2XJ8N21s9rtvbnNqaa9n5y0kpBxcX6YfHqLcW9gcGgsaEtSRkV4FhavsMaKipp9fo19foxlZXCKcW9uXFp/tQIDAAAADXRSTlMAIN8Qn+/PYJCPMO/fvNAgtAAAHVpJREFUeNrsnc1rE0EYxldTP6rMeJhdImEIBjYGQwjJobAXFeqh4JLooQdPllzioUgJgdRAi4UekoIHheJBpFQQ/EBBT/rnOZPkndk409FsWzYb5kdt3+w7fWb3fZjJzpiljiRzZenyJWRJGZcuL13JOCoXli9hFxp5GKIcBNgTSdlMJEUzV6NRFs1ck4Y3o4ZsljNqIIOG+UJNGvNVrKULzjSZZXZ0pQStqgX4xSr0lC1CspiFSCS9+4ij13AfCo3KjBr1AiQfIo2GcpIF3Xl4qoZIFgsGjUr2JI05LNby9PC8iCwp52JkkF6zfi4AF6/Z8blYwBjNWD8XhIsZh7OMLAvC8mjCRZaFgU+6S8iyMFx1nAyyLA7XM84VV6xuywWI8rCQxjU8idyskkQiqdVwIVmDQ94ZaOSMGnk4lM2JZrKDGTXyQqMEyXMvFj5lsa44S1hTq5LQrwh9WauC0HeVIhRiaKhJg0ZONlMKObtGXib/S2Pui7XkXEaWBeKyY/9/ZaG47iDLQmENXTCsoQuGNdTIRzIbn9eeoSSxhv6DDTIz31GCWEONcEPT5qiDvCrEK3mI6uVJgKvqJyJqWdEMlvZS45HUyBk0KlIDkrm61FA6cKtIo6F0UC6qGlWNhvwIStmkkY1lKPmRZLGc6GeWPIhyGCKZ1Hy0qQDBzBqeUUMmNRpebA3jSRZ0FxrP0I3kimWnXDPxDP2EEsMaakYa2ur2D0NyEscDEiW5O11rqBFp6NFWEASNEx1tBNbQdACGbgbd1nEw4GHYgkHLgzCcGNoKraEpYEMMwQ5ptTuEHLKhOgxJGAz6WwPSGbJx2+HpPgtCa+jcA4b2g8agzQdk0OgOgk32cytoHHMju1tb3NBhfzPYtIbOPWAo6TZGI7PVDglhFjJDWUD4mB0GITOUpYLGnBiKIcauiBAgD2E16UFwxhoy0nUwo4YbX4MbKmiPhmC/wW+PSMhiRnfIX4Xjm6KIoedaLLOGE3nupVSBqF4A+VX4zbxoVlyB6AF0ENGoKRreKgKNoqqxCho5oVERGlWh8UCjURAa2KDxwDNoyAvVaBRLYGhrcMy+MSMPg812GwzlE/BRu6ExNHuKYuHTFctBOrDpmLlZfA0cWwPF1jB3EL0p6obdYEj6wYD9A0OP2PdD3QhNrFj2PdSINLTTCILgZ4d02BTbGIKhrQY7uAmGzs17qGUKH0VYA4/Co/5hi//sdlud9mgJwwgPu2HYJqTdHt8hTcAoKayhKj77EqZ+JDH4gBLDGqrgj76Bp5jEYA0lhjX0L/y/o28xBmiCb6HW0Gl830fvXq7ffSKn3a9kRj7dRMlhDVV495pS2ryHBL/ITGw8Q4niRB6s8QoQZV0RQeCKZFkmMSSlRk7VKEsNNZnXaHhKBzh7RhrmC/URukv39nfoOo+9cfLZ72/vv66N+fJ+bcLnDxC9/yKitY8/Ei4WN7QIR1ZEqwr0hIsgkSuJZqKnoguqOg1PaIguhUZJo1HRaLhGDfUka6pGUaORh6gWvVDu5ztKd0mP0sdTF1oHjRjFUjXOsVh2yo3CDX1O6RtC9ujL8ev0YQ2V8PugdbpPCNmnTYz8NPppDZ2Cz7g9ZuhbSrPIjtAF4C7dIZwDuo7SiTV0iqd0n3B6lL5AjPSNUmtolMf8lmgyROndx4iRNkutoRKYcTlvdiilT188QShljlpDAd9Ht/kiFNjdoQy2C5guohsLZe16G5IlSOazEImkK9a5cs1e8SCp0SipGp5ZQz3JkjhJo0bRBY26WQMWoYLe/t5oF9BXNM6vWPi0xXIQNu1E4RU45IpmBUhqd9W8GTXyajI3q0ZWk9RoyGY5zXmMFqEHZIq3u3wX0PdBIwXFslPuBObnEzHjSnbpU5QqrKFjuKG34JZI0tuhqyhVWEMBuQiVE+4B5evRVGENHeOPFqE9Iukd7DE7my9QutYt1tAxvliEyhtc2nzF9xbStUtvDRU06a6cahnr2xilD2voGB+2/d72Rm42b6VtR2GENXSCPzYUplrYxk3X2+cIJ/IMT60CUVVsfoib9rJ8diYP0QMPkg8NGu5/atQNGtqHlfLiJO+oGupfVlI1ZAc+Xr3ZpHt7lLG6jU86yfMvFj5tsZzIM2qu+QE2Q7M4GmoyAQ08iXzfQ88p4+mtySFfp5GCYtkpFxxF6Mn29mN4mb65doQ1VEMK3zgFZ2rojQgovfjsK8VXZw0VcCfTf3V/2Duf5aZhIIzzAjV7SAxBE3CHAxZGTIs8PthjM4GZjA+55jF66wwPAfe+LlHXkpxI2ZLGNK2j79AK/fmc7M+WZQHeAHRk3y4AHdm3C0BH9u1eXUSfsbSV1NpJCe1NK62fhtHjdU9+jwnp8c5tnHo87Min83jnAj0yWA8HfHKYB37RnRcgu6mp6ffxfp1or+sdoPP5/E86R91+v+1Kv+7mne5udOm3bkyvdZUajvqz6gqr73Pt0Toet8bjxuPx2+NhGu9SyuOm57EF9JhgeQN+bTyuSQ/7AmSPh8I96JR7Nrp4xvpPQOPR6cyBRqNTADoyBaAj0xkCvde312+j8Sp+Pb945gpAA1BCAejJ9aqfzvmNLtFppd/p0pfdlNDjB/rx34L1ngwW5eFNNk54vOnl4EagkZNr3J/j281X3k8rfS5Abx4ZrKNycE8pj0vrEabcUU65QyoAPbkC0ACUUAB6cgWgASihAPTkCkADUELHA42zjG1+5Vm29DVnWXWQ3TkC7aWEPjQH91cnrfSDQPOqrbM2ZvvaEwDVlgKkvmaAbAAus3rxWKD144N1fA5u6/GZyMHd+78zpjQlc3C7eauj6b8BZRl0mp0QaAkgHwu0HDJYkwnlMT3Q4zJ68imXCQCZzGbthmjy5ECZEDhfcwn1iKfcIYVAKZ4V16X4yYGas4iVPAD9J9FAEzvTMgnyFEDPYVE0pEigHED0weW6fpnmbD9Q3qTLZgsoXy71WGPAo76aJXPH0kB1/5wFoFYk0CVAhSUkNuuvkzLmB8pnUjWLmQGKA4SZsXM0SJjukTQCL2TW4tgU61GJPi1SO+tLyHrHylgAqkUCrfCiRPE0LdXvhVQhh40WDlC9jBJSgehwCbG9To5B9VA/mq6H7t5IPXbmA8oRI55pi+5YgE4BqBYFtEBWWuZeGnPkmnuACoA1x1jniOu+gmN/hCHKDZ0NV8l0jzYtGzVGqkuwxLFmykWgeILx/klUA1T4UQR/0UA96ZxVATV1GyPqHQ40UF/dSj8bZi7QEhlgocMVb/UX+ixZqArTAy0WuuvMB7TUPQW0/ZtAjAU/0NtDgzUhguU0Hhxw16Ofg/v9lS55UlM/kFb6UUAxxnaV5ABlacrsbQ5RWDduQNsK26PRYzn2cYBqzxLJ1yDsLZXYKRowWFeux/SnJwf3G+OBjXQO7mH0OKAxXqBdWCvisUVYoP2hFUBjK2L/g80+oGs8BRKQiL2NUC3IFz3lDqgDgVoeGFAfUBYn2UawC3Sp+BlP5FXtAM1nLY71ALVzroAE/1AnKDWNB6CoAxdFCfLQUXaB8hZQDlC8MxYgDFCzgnU2jv1A1ejs3ijHIxoFoFoUUMWqcas4CbTe1KZsI3EgUFwZtys1di/QWB0+QYt0U5kY8QAURQHFm9zWLbNS+IgpNzULTuGfcluFxBLGHruH2wuUqy4CEu0Xtv4cUUCZiTWCW+ndGgPIAYq8HKB2m2KtftpVUr9HAZJeFOGcWwIw/ekCUEcU0Kiw0efiHhXXUUSS+4EyqYFKTdg+tpgK1oclNFC2H2i6qYLaucXzAFSLBNro3Rz7Fy9V72k+iRygupnX3cY+6P3gteqPGBa2wsKypw8T+4FyCTgedyZqjlZi+ZKB0jm4beoX2zjVJSclNAUUqUGS53ms+HC8UlUNy6tNBfPtFKnm5UyCBQr1Ml8m+txgEg1aNEBYGpCscGxXJUGmeWn74OGA2QlEpA1bZtROUTpksGgPXyORx5vMwX2FH+PwHNw00CiW0CljZi2KEo1vc36tu9d6H6itsUZfWI0xYNHuXRZVSRCRMUu218q2GPEE9Ij9U27rCdYACcuv3EThl+9Nt1Pm4KaBRixR8ZdZaasWipBY8wiDXhSqtCqKElsLhXMRxUWhiBdFHK2Fcmis5ZZBUVRbzptDJUXBELFEWKaPKq6wgAfDDxcWRVoIlBZn3MHs1NCtnBGWRAN6kWIsrHJ7Cv/Q+uQKQANQQgHoyRWABqCEAtCTKwAdHVCTVrqfzplKK/1pf1rp8QO9u+hE5+Cmg3V8wKd7Pfo5uCdT04tMbz0xJZtW+lyApkMGa0Lm4L70eFxQHuG1NuOccodUAHpyhderhter+hWAPg8FoAGoXwHo81AAOj6gkVsbESUsOAPOF+iBwRoq4P7+D+fgxm7+lNA/pl3h3fcdoG9Hp12gn44JFopOWP6G8vjs98ArlBPYvY3es+PsMisdFywsDOvxP++hH0anF3QPHUYvJyHjX/bO97VpIIzj/gMJI7iN9qJEiS6xViYpBlIanC/KkDItzOIEfTP6woKj75S9mOgLX4ibwthLERTf6r/oc7lf6a7e0u4y05ivYu9yydPmPtyT3Nn0W+6zq4CW7OwqoCU7u0tGpVKpAloyVUBLpr94cPOSaKzTgtoSWjTeMhUx6vPHWFbFqKtinONEWQwzrxg6OkvlwU2OnG4JvZ7RVloZI6OtNKWX/uLTOivdZjFMEUM8B8RXV8QPD0+LIftnXxMxpBOdvbPWLrKzqpRbQi0c0EWZPvyb86iAZtXCnEeeQF3DTf5qUQU0i/IESkHqIloBzaLcgLpS7byqgGZRLkBdlxF83NnuPNU2SOWOqC2wFgVoQtNNaL7dskFbsc7w5fxvdEObzvbgvj2TrbTrXltNaN50tm3Qu92+ve232Yi9ldFWWt7t8roxBej1BdYEUOlE5+4sAGpSUtNtpfmBy8L1mcdfm7SEdnHjNaC5mtDs7760rPf2CxYju610XXoDFqM8X0WbACo6/FydpS/lMpw01TKaoF17W89NUbmB6pFmoBib6XxJUu37zxZR335dAV1QoCLVMpo449pP9YSvgGaQRqAwCOMvLNUKvbO3SaNOleehRc2PJ+oCSpG9YKlW6KVtvzE0qwKqkM6U+9i2+eAUGXfLNDSrAqqQvhHqTgXatzvaF3MroArpTLk3t8QFVGTcx9BYAb1QoPWHrPxIPPcibKXl52/ENyIeLrPGhwBtdSs1YaGT0BeA07xjUK1OMwuSn795JH99JB2jjED5w0rn6SzZg1t4bPGSaLws71Y3+G54FD7tvEjuc1MZ9606RrrRzPo5ygiUnKiGztJ3U+S6mOnqJzxKP4tJqP6EW6VchTQCZeSedmx71+LLfvpVAVUJgGrXW7v/mU9C9Q/QCqhC+oECP3PL3qUZ94rhFiflMu/K7Op6XQ3UIs/zFxao6yZD9B1Z9usYOUgNtNWKWTFOF1tTLCxRDeoqYWe180hYDC0sUIOtGbFJqHvBKTcQDJq0yAycBFBh1NL9n4B+tWbVsx/k8z2wd+kkNIeEqwYq3NJi4rHDnfNkoJvUjrYLboRlAiq5PtNNz6w5dB/HcOz+y5d9mnEzW1MvZ26UgcqewVDiTnm1paXpKXeDNaN/DBROT09nAdBlulIk2UrPBdT64br4tqjf55NQYSu9yh+xUdtKr7HSHWFNTQuKlSI+GBmNtA2aLwPFKgpQfqKXZ+2sdd5Zag/uuYH+vMJWAd/klHFVQIUjug84lwK2rWNyoL5/BlB0GuhpHBIe/2913y/SNXQ+oNbXZBVw9ZWZG8+zjKF96kfao/6EMYxaCtSvYZ8tB5HubDSQ6TUaTWCPi1itRgB2eR4HCu14pLc4ohqud8REBLXhcH4EREMrsAElu0KopoMWHegzgdG9cKDCItYBGAGAJCR75AVwJmr6PBfWJmy3He6MR4GyDbXT3nuU0UZAN3R8OtgdGgyx92oUEOhoOMhOlIDMjacCKLe+p9737aUGpeQz23SnF21AT7c5UBRF8OpFETU0bPQQ3tAgQPHYwztwL1K6AyPagvG+glDEQgJQ2KPd9uED8GMLCHQnfD4LUMNN/uQkNVA/SLy8Y4ygS0h24BJKgW5Qz9GAAeXXULrHpvCDBqCsvkEJO2yoPhHIEX3XwCehmtFkrI3iAv14cJDUPo4/8leig3EaaP5SG0MHZNKS3Bh5yb8O7eI2n4AiCajAww+BUFAXLQhwTdpPO84TblYa41Dc17TDMW4WFejxURjuA9IPYQhVUn8+gra9kzDcGxUFKHHeB7v0pNsdcntkirtcRlIGivCgYjiaqWkLc3/vElySqT6d6tIXfpNdtJWiU0APwv3hYbhnDcJvg8P9oTUM94+fh9+sHcB6vB8eFwVochH1SdevLAWEcAagZA7bIoIbGQ6U3SizYcjHMC15NVAjBZTGqv0boOIxiUlLaHmEHsAgPAoB6MkAp9q9cIDro53wt2V9hx0mgJ7HmrpeN07HSH9IBVDe1V3SiREQIFiUQDlxIQ5UOO3zu6u0NTQCkkQS0JVMQDV3FgA1p1tCy0APj0IQSbknB9Z+mFAdQ8q1rIEMdE22la4rbaXX5c+xNs2aWgmUYnDIfZAZQLcCi8xAgyZXJqAogNea53mbMlAvE1C9nZUl5Q72htYYeA3DbwdjAAoaH0J9L4Tr6Uk4YkCLknJxYgTz/TbtzEYE2TczUE+EkVOuQMOBNpeCiFxDi5Nyp0sAxSn2Q/jBAogfDwHoMZQBLtT3YPtvq3BAu8AF+pVCDKAaZwBKqUlAxT0QX/kXa8YxHf0yUAQtBQWapNj9HWvnCF5OQmu0D/WjHba9eEDJKi4vbzIqaqBiMpkGGggorYRSI7WBXSlloGTs+gWbtvC55WA4HOEL6ffhaDxgdf46GozxPzt8dd7IXWqgZgevCHEmgPRsoDFZLuBDNO4gfDCpkwmomH2KDTEjjIJTQEUsVJiFha/WXBoY+UsNtE2WhFi/QlkNdAX3vQ8FH5brHASvNdiS8CP1VpMGiWEMeybeQJMvcKwhE9XgFTakgfqkyW81CwM0mg/oLyN/qYF6qS6MoByfAdTns44Y936zydba7+EySIz4DVxuBny1vrdE1SHBBVAzClhTUYAa3+fh+czIWUqgYpWGCa/bqoDSIUpBINgGCp74JMM2kEPqLBzCoxbiR7TeayaIowiYM6BUiDatFAaoOZ6DZ+4GmwyoQgj5gi5CouTz0mQT6nkxa4s8UUYoaev56eCR10sDiuHY5D0Rf490E4lyoStF4udbJUvomS+jPx5NsZW+I9tKiwee7nJb6Rt//xziQ0KMMn7RWltnAVCTrUOIH4sWrs9Xuvdn0C9TjiGeaZr+I83s3ZWfI91YLyNQyWZ7zs5awJ9XNYwyAtWlCuhMqoDmoQqoQhXQmVQBzUMVUIUqoDOpApqHKqBKXcrqJGvM3aje7fLMMcoIVF9niYeVhK10+tkZDbbSy8JWOmOMdUWMq+X+WZvL5+ys9AjVYiutjpHxyGkx/pcR+oe982lxGgjDuF8ggUBLpYRiNXVxKaY9eBCqojZC9qBuurKFhqWUHvagl8Wi0IOX9qQH2dOue/fizX+fz3eS+bM6w5hspt1G34eFvs1bnnbmR6ZptulTbLJK+B6KP6+qEwLNKgRqWgg0ixBoViFQ00KgWVRyoDdKLARKhMlKf5U6g3tbEystx1ubyeCu/M1DBnqT6iErrvKqfpU3r9PiunhYnVXbV2WP7Wweonkhj9+AGpysK/zrKQVipTN7dGihjJVuc48Gq7pV7qECypr6DG5tjrf8IpvidUgDNTRZ0jj0k7WVZbJKm8GNcZM6IdCsKs04EGg2lWYcpQOKQqD/lRCoGXmetRlCoIXFcqo3gykCNShvA6D+lsHdYJXI4G7ZrNnhzTqrWopIaNmj0hJPkNOjzT3amhep9xDNjnag8sMaNcUT6D284pNlF5osAGqrfvJGEQnNHiYyuEVytN7jjsKjInlURDOvx5al8WioPDQDrVxgoPf3Pu69HdovLBAsvtrJKjLh+skq8cVKG6ZPbqJ7z+l9j/xdihBoYRFye+7u+KULOrg3tECXhxSBGtFHd+w4hynTR28Z08tAikCLyyN76EuH6PDlrgv6UKOd9RNFoMUF1N647txJdUiX3vu0t2Yh0KJi4cZjCpQvvQevhtb6hUDN6ANdcznTXYL0ubV2IdDi8qwk7e2Q0RRL71PbWrf+nsG9I1+s1FZEQqs86szjfCoSVVcbKy3CglizsqPxsB/fYh5dyYMHhZ+PkGrJA31sSx6dhuShmqwH4CHWXIHUdWuWt/rJ6tBCk8GtTn2uaJoFcrz1HqzI+iJNeKjDxvUekPb2J9A5AF37ZOGSa0Ce5clrLnkbPRhCZ71CoKZEPopyzZMD3ad4UFRivXF35xznLsF5DdZC3ENLKs+yXXdMeZLj2w/J3olASyy+5o5d9x09UMFTfyUWOyyCg9tr6RY8OV9eeR7/KDomycaX+//QOi3PxzlrP56pIqGLe9gqD0vnYef0qGfzqOT0qNoJvnfpR1GIHidNb/2TJWdw17ZY1W2yh2sjoXcqzIufuNiiHpljpW8rYqW1GdxtyUOczmoqcrx3KAPlQFtNjUfrDveocg/1ZHlszT103efpQO0eUfdZj+rxPi2237NNnTar3jdosf/oNa2e6SdLPeG45BrUnjsmK+5Beq8XOEV19r1n5RQCNSg4/Tef8yz5fceAzvISRaAGBf8VBR0MSW0IqBPkJIpAjYm8i36EUwo1UhsD6ny1cgmBGpMHFIe1VzblaQqos2/lEQI1J48XRoF+sfIIgRqWx8AKoMFyNIpIEQYqYNHRQgv0rpVHCNSoPM5TAA1jf+L7U6j8IxWwvh8ZBique6k3WdXQXTbSkCKh9R52h3s0ZY8t7tHQeIgnqGb0EJd82Bf1aNR1A9VPFge68EdOOPGDYOafhgEhPAjJfhs6ARQJ0KSQOgxovskCoHabD13OvhbNKreocYuOiIQ24NHI5FGXPKBpK55A7yE37QwvMvtkcaCRf0QgBZEPGjnBCdxMCccp7Lh9UpykhTPiHSj6HGj2ycKLlVYoDjSI/bgPO9xsCrcLZ+pPByd+H7BN+svYj6CIj5ewB0NBO3QDvodulhhQJxzFyQ4XJu+hk0kYzqDqk02f/RMolmTnHDhx0jllG2YIdLMEQLmiif85BRr4iWLAtgDGCb8oBUo7fAMC3SwxoMsjIDf1I7aHxg5RuocOYBPjxzoIdEMlDoriwSIGPoE/WQ6AVH82jSPANomOYz8S/KZpB4FuqBhQAEUPWvvJUW4M947InVOf3Bf8glPSwT10U/XaYQoXx0FSBCG5HRzP0oU1XMzoRtERG/Aod8NkB45OAHRVJ+erigzulhQJLb76cT4SukKLrB4dhQdr1sWFRsKDX6x0W/7qR5t52MKjJXt0FR682d7WedQkjxyT9c0I0LO8k6XO4K7rIqGrGSOh6ZMXyuC2WbMuN/UeFckj80DNeOi/gxIOWFuvn/kmC5fcFep14BTWDyufEOgq1WsVxHm2b+UUAl2tek/uXlxfLoATgf5zQqD/mBDoPyYE+qu9c1lxGIah6HWcF52RV1MK2XVRykAW0y+YRf//n+bRYFFkRA0NjY3OMoYTSyEQTMStDD2DOzsSen1HeNBBuY6tFZrp0DO4L4kMbp6dOdPCVY2EvjlEfvYvPH+TjJWe2TFpjmN0fCoOHjS6xkJPotDAhX4rhT6jWftVm4Vu/SB8eoIjvMIhL22+WW/oyaiIHi0ZFdFiIKMiBviOjHrwwEhGNbQAHBnV4AB7RStixB++oRt7HvCRGdw8aDTFRZ4DkpHQ+Y5DwhFUh1hUHUE60pvUHRtuVuPxj1ueKMdKczT1KREJHe+UiqaWMVchLh7OimOaH3PIfYRLkA7549NHwjFP0vEVHbxJ4dCbdWSH3izFkd+sd4eFXUNG8TQ7RJw90eJpHMB4+zIqnNHjHmdngOXSjQ4SP7S9HRsVR9e3g0fkB3BRyEl/0lSgAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdAAAAEYCAMAAADbOFfrAAABvFBMVEUAAAD////////////////////////+///////c3d/////////19fWhoaFDQ0Ph4v/V/ur7yMT8/f35+vvg4OD3+Pju8PHx8/Tr6+u5ubm2trbn5+fr7e9wcHCtra2rq6vz8/Pp6+3g4+b9/f6GhobJycnj5elZWVna3eLm6OszKG2cnJyysrLd4OROTk77+/uzs7P5+fnx8f8FRidwCwvs7u/4+Pj6+vv7+/+np6eRkZHq//TU1NT29vbV2N393drT1tuKhbba3uLY29+FhYW9vb3W1/bLy+3qsa3/+fl7e3vx8fGBIiL4+P/a/u2759JlZWX81dO1s9ugnMi+vr7l5uih0Ll0bqRJP3/6//1Ti3AZWDrzvbk+NHbl5v/m/vL7zsqAea2HuaHYmZazZmR4FhbI8945dFhfV5G+dXPv//ff/vDAv+TN0NLhpaGTOjn2//qu3MX09f/t7v/p6f/+8fCrp9KVkL9glnykUlEsaUyKLi3+6un94uDI891tooignMl6rZXHgX9kZGT95+Xv0M/Iy8/Fyc1pYppUS4j82dfQjYpGgGT/9fT219WbRkWUxa3z9Pjp7e7gpaGiNOJrAAAAC3RSTlMAIN8Q75+Q0WD7MKYwUpIAAB1ASURBVHja7JzPb9owFMez9cemOTvwIpMLByASKocqipSFyxjVdgkqF+4cKgEHLvTEoaK7VN1l1bbD/uHFoc/OatdbaKtg5O+h8/zcjxN/9YxtkjpCB2+P3hwSK8N0+Obo7YEj69XxIXjYiAKWXCwA5UHRjAd5M0/B8HkzT8egJRmimatlEA1Df6M6xm4N1tGrB3YeHGe1H1rY6gSxcII91dsYbNexxIP0BKsUDO8LZ3RKMk6RQb8QBUO6SF91HVRmtDjD1zA69ccYOzhYx3+n52tiZbheF5L0nfVzD/T6nc3P/RLm6IH1c0/0erPaPSZWe6LjfMIlVnsjNukeEau9UZaiB8Rqf3R44Lz1+O7W97HUwI00dHEr69WlIOFBJcPDYBer6DMwXC2jgVV1lzcTHZRkNDijhcEXHyx44mC9dY5AMVYtzu9wvhgrn/M9aRD88gxFUMNwRTNpIMszGiL4X4ydH6wj5w2x2iO9cez3K3ulQ4dY7ZWsoXsma+ieyRqq1W2tnMaDIalS1tB/aFwrra+kQllDtWKGmuaoQ+hnLDcaWOKPfsBn+YmIbp03w629YLQEw9UwOoKBQfdUMKQOPOxAxRAd+G2ZcSIz5EdQ1Iw6GlpOqyoHyyk+s0Sx5AKWRFDxaBOORnkG1TJEUMGgz8lwQTAUN7qdoePqBstOuXptZ+gFqUzWUL2EoZPF7CZ91MLZVa2o6la61lCthKF38ziOR486OoqtoWYIDb2MF5NZnOdhOsGkZYU0vTd0klpDDdCYp+CyNpkua7WbLFXXaS2Nr2bzq9rvdZa3SxaesQS2hu680NBZPLqasoSMR4ur+DL7dx6PZszIxXzODF3PLuNf1tCdF18ULUZ5Zk6mWRrO58xQlo8sZ9dxmhmaheLRjhgKWAaPl3hcVIEcpFh4ZoYoqTooyfC2ZwhDmXmX8WWWqiO2PMoMvcxtXrP/pZtFUcHQFx0sPcMpvPfS6mDp1Ef8Gf5mgzdrN7D0CTsoMLoSg54RZLRlxhkyXM7ocMYJZ3xSMHzOAA3jE9UwxI0qGO0WGjq5mmU/MiNv4l/TKRrKJuC76UhhaP0JgwVPGyz1lAu6OrnqeRiwNYNszdB3UFwULdJFvK6xle6MG3qX/bxRZWhlg2U/Q7UShi5HcRzPl7VlNsWO1mjoZJRV/kJDd+Yz1OpxDdCj9G52k+87F4vJcsq2MHntzSJNs9XvdJqvkKyhO69be5ZruoIAMgVko+E2hg5IZbKGPlQAYS+KwhAXHV+3SNAKZ1xr6AMF0EsAQhqFmKPfS/v5g1Qna+gDQRix3Ay4o6VzdDwklcopvFhDfSzVPSzxoMeDvggCBgXDlRm+YMjBhoJBpQ6g/lwM/Y1CFJLh9ZCAGwE+KTC8Hnz7Ptjo57eBVPr2k5cGt6uKB4sZ2saaD7xVB3uCNiLcFm/Ge2p7SFUxKGfwLjmjpWB0FAxPy5Avsisz2gpGA0vdv2806FG2VRkT0qcQiBs9RUbpwVIxXnCw7JT7lwKIEkIu2EYycnsQEANlDS0oCCmQ6/xJzKCZWEONF/T6m2XtBSGuoSlqDRUKIAnvjxJWJDynoYmOWkNRfMZlGhPiNmkUgnGeWkOFIKL8+5UVIVHfTSLjstQaitrMuD+K53eQ9PsRADFJ1lAuCPtsE4ravBjITgGNytHiwYKv3G9jsIXBRh1LPOh1sKrOGR2KQQWjJTOoniFfZItfpJbR9pBxqmWEkOSbUKHx9TA/BYRAYrzYYMFTB8shoDuJAt7cw2aK06wig5ZkKIJuWUZdEVQwRDNXcR0B4JJI6CJLU+iHATIMGCw75aKgJ2ZcoQEBt2fSnGsNRUESyd9nj38QcI36ELWGosQmVEy4K8LmRWuoicJNKNd4xZa5AXUjo/Yt1tB7iWM/pvFt7mav2exHZh0tWEM3CkIa4MMJF19XrCrsnzfdpGfY6Z81dKMgjDab0IvvuZsBPT9v0qgXGjXfEmsoKugxQ3GqjZrnzX4SGZacuZzCOzzdDpZO+OHHGVbhX3tRvn/jf9EwvP9knGoYypeVkAFnnsxocQbVMHgH4Uc/IMMhK/bZVEujEOSLfPnBgqcOllN4R83Tv8CmbVaeIQcrYACWAjdK8opsqs3cZJ+cCoYBg2WnXHQ0jPpR4rKptmfg16D3soYKAUQJpZHRbpJnNfR9QcQ85S+1MDfNvjtraEFBYP7d/WHvfH6bhqE4znUi+EDdzVB8AMWYKcXqBaFEEZq09ZJTD92fwV+BNP5t4r6+2NTOG23DuqX+HibXP75Z36dxHK/LS0BH9u4S0JG9uwR0ZO+u/caC+/eYCZaCp47G00pnWGg9grcc8ZiQHlnYOI14uJFP55GFQI8M1uMBn+zngW/UfwDyt1hqaup5vF8m6PV1B+hsNnu4mIHuH+63pR8/Z1v9vMXSb2y86BpvbrD0wLcF/jBDjzrwuO88biMevyMeN53HBeVx63nsAD08WNGAf+08vpIe7gHIEQ+Le9Ap92z0+hnrPwF9PzqdOdBsdEpAR6YEdGQ6Q6AbvXvDs/Hq/ZvZ62euBDQBJZSAnlyv/HTOl1ii00pnWPqMjegxfqA//i1YH8hgUR7RZOOEx6Wfgxu2/oJc4/Ec32G+cj+t9LkAvT0wWEfl4J5SHlfOI025o5xyh1QCenIloAkooQT05EpAE1BCCejJlYAmoISOB1pKaQ2UlMtYs5TVPm5nCdRLCb1vDu4vQVrpR4GqqlnJpuztlDNm2xaMzWPNjMkBuBSr+aFAfx4erONzcDuPKyIHt/e/M11pSubgpr4URQPlkm1VnBCoYswcCvTTkMGaTCiP6Z4eV2+ffMrlmjGTF0XTEs2fHCjXGuZrYdhqxFPukAKgFM9KYKl8cqCM3W1LSiSg/yQaaO5mWm6YOQXQc1gUDSkSqGBM++AU1q8XivcDFfViXXtA7YA1jkWDnVOuXvNwLA0U+yuegDqRQJeMVVACYoW/TpI8DlQUxjbrogMKA3SJTgoMco497moNJzJvYOwc6kF34LI5BHoYJr1jSZ6AokigFZyUILFYbF7MjQ05azUPgOIyShsLbItL67/XySWzPeyPGnsY4FYbHFvEgArA2GoJB+PWBZwSUBQFVAIrVHctLQVwVRGguqUhINYKcG0qBPQHGLotiJar4dijWajajjH2FFQ4lgNNAAofMOF/iFawZGuttXjRQCPpnG0BNA0b31LPcKCBxuqWeG8oA6C2Nsfmuy2u0vUH4nDAeVuBPbBijl2LGFCFPTVroH+B53zRC/R+32BNiGAFjXsHPPTwc3B/uMZSJDX1I2mlDwPKARiukgKgfLHg7jKHKNBNIHFX4fWocawAkAFQ9FRwrF9Mu0sqsVM0YLCuQ4/pj0gO7kssYSOZg3sYHQa0hBN0G9aKuG3RDqg/tGKsdhVl/MamD2gBH4GcGcDeZKCGmRc95Q6ofYEiDwxoBCgvc9mK7QJdtvycJ/CqdoCqooGxUaA452qWw4tVDrLTeAIK2nNRlAMPjHIIVDQMFACFK6Nk2gHFFWywcRwHakfLjZGCI3ZKQFEUUMuqDqsECXTV1i54K70nUFgZN2s7thdoaQ+fg8Wircw7iQQURADFi5x/yawsPmLKhZWnlY5PuY1F4ghDj93D9QIVtotmOfqlrb9AFFDexRrALXG3pgMUAEVeAVDcpijsT7dK8ntIZqhFEc65ijGOv10CGogCmkkXfaE3qARGEUj2A+UGgRok7G5bugruw9IItG/KhcPkbBVc4kUCiiKB1rib4/7wUnl383kWAMVmsdpu7DPcDy62/SV0dBXu7MMNIt0PVBgG42F6Xwmw0suXDJTOwe1Sv7jGKZaClNAUUKDGcqVUafkIPFNzxVXVVvAQqNoMWBeGOaBstVbrHD8b3IBBAwYACwGZajMWqwwzc6VcHzgc424C0fOaryW1U3QxZLBoj1gjkcebzMF9Db/G/jm4aaBZadhWkndrUZCuY5vzBXb/hftAzQpq8MSqOwOe7V5lQZVhGk/i3Vsb5YqZyBmO6J9y60iwBkhYfj1Bj0hOsG+nzMFNA814buNvpHJVc0tIFwJeFVLa0lJKBa3S4pxnpZSWuJRlVmjrUDtLNHDfC/ScW59cSg6IDcDy+uC3C93BjFRpUYQCoLQEFwHmoIZuFZywJBrAixTnaZXrKX3R+uRKQBNQQgnoyZWAJqCEEtCTKwEdHVCXVtpL50yllf7Yn1Z6/EC7r6DQObjpYB0f8Gmvh5+De+LSOZPprSddyaWVPhegF0MGa0Lm4L6KeLymPNJjbcY55Q6pBPTkSo9XTY9XjSsBfR5KQBPQuBLQ56EEdHxA34a1b4kSFIIB5wt0z2ANFfB4/8dzcEO3eEroG7ypzb7sAOWj0y7Qj8cEC0QnLL+kPK7iHnCGfiewRxujn46zy6x0TLCwMKzH/7yGvhudXtA1dBi9nISMf9g7Y962YSAKez8OxqVMMxSF0oNTGC1Kcyg1OJo8CvCUDpq824v//9RaNUk1Elg1OqUgwzfRoHXy3QedTZjESzu7DDSx7DLQxLJbQFZSykATUwaamBaAQWtqPynsKGgJLf2VGIghXh5DhmKIUIwJidoYOFcMjmKFPLjtlUOW0OuRttLBGCNtpS29zsantR092BjoY/hzQB/cDWwMORSj75/93scIJDq2WPevWazcchNUdEBjWT78nzwy0LGKJo+ZgRJwKQMdo3mBYivigZqBjtF8QIkQlTZGl4jAoQx0jGYCSkSotKyMQiWNImBRvxAfI1ZEQIkQS12ZktpXrETT/Bsd2PR3D+6Hf7aVxvbhLNup87YBrD+RnRxpK91/280aBoDeRaxuHr1EJxRr4Y7HDNtKuwuld3128e97ltB4+700lWnv22z3y+UBsP5hgY61lRa9G9jPkc5WtGdAO4lOKRZby/WtVpqSWpqn5UVHUEXJ0XLTBsojXqAXnK7VHpZXNSBFBhojUEJl9LXVLp0OAHWlMtAIgWKpXav1OoOqDQKv0jm0yH08kRXohee5pem1B6iEJuBUBhoQH1BSGsDh9B2XaokZaKxA98+BNqALnYHGCBSVIWiOfyI9ARSiRGBVBhrUAsTOjjvnb7ytdH9nht8RsZN2cgeoNdkFi9URsJao3JaL2yGzoP75m/v+9hHsxEgRqD/wNKFYfQ9u77HlRn7ypv82AVaSEI1Q6FctvuMGY/hJHPs5UgTqEp1YLM51KKGWRVUCwLmzCOXvuLnlBsQHtCWqfiEtNMDRdlw1w2/cDDQgRqAeqYHGLkKF0AjMykCDWgCrCJUsCLbXjltU/A/oC4F678rxeto8MVBbbTZ30QIFwLLSv79Fz2CKGR7QMNDV6tEOH7vD1YCF5bsvX0VA1lltgpzRRcRACbUEOLUdtxDqtYF+8ww+u2Fr4NQC7dkLvyWgP9k7f9+mgSiOs9uqrPaCPGCJH7EMcjBBlqgSPCGyZIg7RJFChkgZEqksZEMZWlWsHRB/Me/5+d25vXC1Qwwm5Cu1vh/2Ob1P353v1Po7d6pqNJ8C0HP71LrMF6FvahhxjUCVW1rCHjvsnKcBHeZAB+BGeEhAdddnKho5O+j92YvTd+fWdDSCRaj9DqbQ0tbUrfKVOlDdM7jHbtxkeWcYcqFa/F2g5l4w94fuwZ3vFGm20gi0uuY4i77IXs7xlAJU2Uo/fk3Hh2yln3HqpbKmpqNxp4iDkWkUbdBcHSiqKUDlD3pWtbNeyc4ye3Az0Oqawiz6LgNpn9fyjGsCSo7oPG+eRFx2YUugrvsAUFEEKgv0E5RcLc8Jt0lz6I5A5y9g0G21YNfo7RurJpmNod3cj3Sc+xMmGLUE1M18ttp0dQ8ttDqeB0UeJlG+F4FdXkcBJa8uXyIKIQ8nSGaiD5fzFdia6AVE0EUfvaAt/nWgI1yMnvPfzNcgM1C2iEUn5ghAkk/hgIAiTlTg8liI55MEFZECkQPlgvC+957ICbI934XLppfUmDw18BoIdLmYlCeabRmBahpvjUDZ+p687/snHjt9s216e+x3AoxYBip8H45d388NDb2xgAK6MAvGLp6gvEj5hEDkd4t6QvjYJAEFef0+3C+Q1zYQaBp/qgLUQqa14TQDdaPMyztBBAMi+Q2nUALayT1HIwaq5lAK5aH0gyagQ67wpI8tKlTIRX7XyKXywJdtUaK5QK/SNMtdra/4yPXrItD6ZTaGjmjRAt2MBPF7OwfalwtQoQNVePCSj9QU5FWNAFx37afb7VCalSbUVIcKvkmMw6YCvZnF8QyQfo1jyFL+0xLqVps4Xi2bApSc970sgjzkMqAptLBsaW8HKjCoGEdQWLaw+/tAtoDJnj5104Efspu2U3QXKHzNFtfxypnEt5Pr2cJZxLObT/GtkwJWYHvTFKA4iVJsYpxGRLgEUFrD+iQIQAmUH5Q5DFUMU6obgrwiUGor/EtA+d8k7llC6xGaQhDOYgC6meBQu4onmF+m8cZxvuMJRaC/Y01t29b9Noof0gSUu3pAnegjAcJiBsrElRioctqXT1dFa2jh8fka0F4poPvsLAJ6ut0SWgd6PYtBNORuUmSLVNcpRK0z0YE+022lbaOt9Cv9czzbZk1tBkoY2vQcZEfQrTCFlgYaBVKlgIoIjmG32x3qQDulgO63s8oMuZPVwlkDr0V8m64BKGh9DflVDPPpJl4y0KYMuTgwgvl+P+9MD7u2NFCGgNKHXIWGgQYnEQEMmzPkbpcCikPs1/irAxCvrgHoDaQBLuRXUL5xGgcUH12wX4lRBNmkDFCmpgPlZyDe+Vd7xglGvwaUQ7qhQHGIxafbdAaHTewsZ1mey5sHlHZxZXrIVMxAeTGprYD4Cj+j5BUKeKbUgVLsug1btnxmQpPFYgmH9PtiuZ5wXh6XkzV+S9XWX70yAuUl4ElbMgGkDwNNiIoM0eQCazzK8wKUV5+qIGHCIroHVLUlGrOxMHd20merfpmB9k/UZBhS2gi0h33vYogG8Jsg4Eg0gB/l/SC/NIEYhgQW0OALHENhixCOUFAE6lKV6weNAfplN6CXVv0yA+0WutCHdPIAUFeuOhLs/SDgvXaP0iCO+A6mA8QX8txKuoDGGSjJj7iqKUBxzK2u+kdcM1DepWHhvq0RKIUo775DGSgKXRphPSqICJ9ad3qMbRBkiH0fH4IYKEnkVb3GAJ3uQHQ0tWoWAzVICFfRFUKlXJm6WyXG3YTr/K5KC5HVjd1i4353XLx7Atdm9xTyHsUqauWP7hR94PQTzRK68jQ6/7HFVvqDbiut/uHpNVe2nv/6c+CHlG0c4h9a76Wz2INbf1m0cn2eXr6voMtTrQ2ULW8gU/pboI2fo1hpHyJQzWZ7x876B1+valmHCHRfOgKtpCPQOnQEatARaCUdgdahI1CDjkAr6Qi0Dh2BGvWorJOstXOl+bSzym0cItD9dBYBbZlea3O2B1vplrKVLtnGK0MbTw77tTZnv9lZxQjd3Va6ehucKG9N/b9E6E/2zudFbSCK473PQGAkuz0E6jogdUBChEYvKdiF5CBelLK5KHjbg6fdxb322B77HzcTfRnbGaZJM7vq9n0vPufJV+d9yOSHxteuWBe4D8W/V7UJgdYVAnUtBFpHCLSuEKhrIdA6unCgHy5YCFQKOyv9ReYe3PYv0PX21m56cHf+5qED7R70FYJPVfT+U5WcHYKZetl7iAafdI9BPQ+V/CeP43m4LNY79fOUFm2l63oMIGlqK92vPAKIhn7lYQIKSXsPbmsfb/1DXqvPoU3UUbG0ediLdVOnWBfbgxvbTdqEQOvqYuaBQOvpYuZxcUBRCPS/EgJ9Y0KgTsQJ5+QshEAdiHMmdRZIf+vBHUCkenD3GCQHVZJC1DO0hNY9Oj31Bg09+pVH3/Ih7R4qObBOVH9ZcKV5GIuVsDCK4ziKhiHnrYvF2hRLAmWmv7wxtISGl6ke3KpztN0jMHh0NI+OSjb1uCEWj8DkYZlop/FE/TBmnMV+txeGjPFWxbIX3F6sC75Z6azEwngfjBNa/qnsCXenCNSBWMTIZPRQhiGl8Tg83e4UgbYXZzEjI89bP87lU+bT5HRMEagDSaBzT2r9MJEDYUz9KDzJ0otAHYjFESHeQU+HpTdJ4ugEWykCdSAWUU4ePRAsvXEShYy8shCoA/EwCcs1VzEdyaWX+dBY6vWEQB2Iszgh5AloqqWXJ+NTALX34L7Vb1bqG1pCmzwoeBx1RYJoaG0rrZoFQbJza/FgnzvgMdQ9bsHjqIVUT5/oZ6Z5DALNw1SsL1djysnI+0NrQuKYvXyxBhBZenAbuz53LMkWfbztHhDU/ZAWjzYTpVaPMEwiwg1A/ZhFr1ssXHJdiLNIW3OfRpywBHC+mhCoE7GQhuTBUyoPdDlNxnhQdJHiYRwfrbkjLsf8bjJmCPQyxSJKqlPReUFz3J3ReIwXFi5VPKQMTkVHhPizbnk9Fy/9Xar2p6Lrw8FtMuueCicCdSRWnYo+EjKjcNHvBHqnTrKO2zlbT89MLaHbezCTB7F5sIYetJ5Hp4EHTJQz/3AqOiHRzI+iExRL78F9dQPRUF1AsbWEvgUzX7vKU7ut9EdDW2lrD+6+5nF0OcvQx/sWGJgm2ru2ePT0K0XmYh2dij4R0qXjT8NiaCLVCyYH3fqH4OdHGLoZQPTx6hD4n+eHKLAXy1xwXHJdiYVJ+TX3A2EzX+4+J14rwTX+hkKgrsRZPCZ8vSaE0rHcjuaeA62bEkWgziQPi8rHrh9yANpeDYkiUGfiLC6PjnwaModAn0gjIVB34mGc+H43iSRPZ0C9OWkiBOpQjI1jP5Y7UJdAR6SJEKhTqRtcjoCmz3d3SxlkqQnY8n6HQM9WHHAqoFkuVkJsikjcm4BNxdIxUHXfC72GKLDdNhJoLaHtHmxQeVzrHjeVR2DxUG/g1/RQt3ywf/UIqHWi9mIB0J2487KVSNOt+JGlkvAik9tt5qUykEDLQMsA0EbFkkBZv5q63vtaJf3K4qqyGKiW0A48gloeVPdgfWZ4A7uHnmQ1PmSDYgHQpbiXkNKlKHTnpd+Lh43kuFkJMZXB933g3VUZIQcAaP1i4c1KLykAmuYin2aet90UjztvIzaL72JaYFtNn3OxLIL82/NKpEWwz8AA7kPPSwDUy+7ycoPLyn3oapVl2yKayqGF+F4Ez3LjXHh5mfkBA1sEel6ae0rLlVjsgaaiVF5g20nGkt9yDxQyMIBAz0sA9FmelmzEErbQvByFLfS+4gcZBHqmUgdF+WKXF3xSsXpeFKSm202+lPvQ5bdcLBW/zT6DQM9UALQAdThonZZHuXnx7F4++SHkc8Uv/SEzuIWeq9Q+NNt9S8sgzeTj4tt2v7Bmuy0MVhk1gEe5Zybu2SSBvtTFed/Qg7untYRWP/04bgkN57l1PQYGD0hSdaOR8qhuVvqi//SjDx5MefR0j6HBI6g8rm0eV5pHg2I9OgG6bloscw9uav1H65otoRlELXpwM0hSPWn36GgetSfqxmNiBZUt0lpAH5oVC5fcF9T8BF+eIdCX1OSxJc71nDQUAn1ZTR5GLfQPOBHomxMCfWNCoG9MCPRXe+ey2yAMRNFrjDGKWRlB1skCtYv8Qv7/s/pI6lE11ii0eWBrzsrC0sEzCAkB1q2Mf2Vwj2n0PEe80RHWOrZW6EqHnMF9ymRw096Zw8/oLEZCXxwsP/sT2n+TjZVeyDFIjn1yjIKDNhqdU6FHVmikQt+EQu/RrOmhzUL7+CD8cAdHfIWDH9p8s1r4oFSEhwtKRTj0QamIHrYNSj1YoAtKNTgAJijVYAC9RSuiwxe2CRcm2uCT+QifRkOanCObnMY/O+aMI4oONik6InfkFyk7NtysxuIbc72iFCtN0dTHTCR0OlMumprHXMU0OR8Ex7Dc5uDriKfIHfzHpzHjWAbueE8OWiRzyM3ak0NuluBY3yxvcGXXBKV4mh0SRq9o8TQGIKw+GRVOZ/Ebo+8Ay6XtDDi2d15fGxVH611vkfgA+eFyuk0gUWcAAAAASUVORK5CYII=";return r.jsx("div",{className:"cometchat-collaborative-whiteboard",children:r.jsx(l_,{title:o,URL:a,subtitle:s,buttonText:i,onClicked:this.launchCollaborativeWhiteboardDocument,bannerImage:c,isSentByMe:n==t.JxA.right})})}launchCollaborativeWhiteboardDocument(e){const t=dt.getLoggedInUser()?.getName();window.open(`${e}&username=${t}`,"","fullscreen=yes, scrollbars=auto")}getWhiteboardDocument(e){try{if(e?.getData()){const t=e.getData();if(t?.metadata){const e=t?.metadata;if(ht.checkHasOwnProperty(e,"@injected")){const t=e["@injected"];if(t?.extensions){const e=t.extensions;return e[Zt.whiteboard]?e[Zt.whiteboard].board_url:e[Zt.whiteboard].document_url}}}}}catch(e){console.log("error in getting whiteboard details",e)}}getAttachmentOptions(e,n){if(e?.parentMessageId||n?.hideCollaborativeWhiteboardOption)return super.getAttachmentOptions(e,n);{let r=n.messageToReplyRef;const a=r?r.current:null;let i=!!e?.user,s=i?pt.MessageReceiverType.user:pt.MessageReceiverType.group,c=i?e.user:e.group;const l=super.getAttachmentOptions(e,n);let u=new Ht({id:Zt.whiteboard,title:V("messsage_composer_collaborative_whiteboard"),iconURL:this.configuration?.getOptionIconURL()?this.configuration?.getOptionIconURL():"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19.4679%204H20.24C21.135%204%2021.887%204.61242%2022.0998%205.44108L16.6916%2010.8492C16.6549%2010.886%2016.6073%2010.9098%2016.5559%2010.9171L14.576%2011.2C14.4176%2011.2226%2014.2818%2011.0868%2014.3044%2010.9284L14.5873%208.94854C14.5946%208.89713%2014.6184%208.84949%2014.6552%208.81277L19.4679%204Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M17.3466%204L13.5945%207.75211C13.3283%208.01833%2013.1556%208.3637%2013.1024%208.7364L12.8195%2010.7163C12.6555%2011.8646%2013.6397%2012.8489%2014.7881%2012.6849L16.768%2012.402C17.1407%2012.3488%2017.4861%2012.1761%2017.7523%2011.9099L22.16%207.50218V17.92C22.16%2018.9804%2021.3004%2019.84%2020.24%2019.84H3.92C2.85962%2019.84%202%2018.9804%202%2017.92V14.03C2.13801%2014.0301%202.27769%2013.9922%202.40275%2013.9126L2.58606%2013.7959C3.58623%2013.1593%205.7211%2011.8003%206.3322%2011.4511C6.43421%2011.3928%206.63006%2011.3244%206.87351%2011.298C7.11445%2011.2719%207.33773%2011.2938%207.5019%2011.354C7.65327%2011.4095%207.73091%2011.4857%207.77426%2011.5815C7.82369%2011.6908%207.8772%2011.9357%207.75398%2012.4121C7.51412%2013.3396%207.26658%2014.4095%207.33946%2015.3038C7.37704%2015.765%207.50392%2016.2502%207.82249%2016.6542C8.15314%2017.0735%208.62627%2017.3246%209.19678%2017.4197C10.3338%2017.6092%2011.3768%2016.938%2012.107%2016.3036C12.8753%2015.6361%2013.5146%2014.8173%2013.8801%2014.3299C14.1286%2013.9985%2014.0615%2013.5284%2013.7301%2013.2799C13.3987%2013.0314%2012.9286%2013.0985%2012.6801%2013.4299C12.3256%2013.9025%2011.7649%2014.6137%2011.1232%2015.1712C10.4434%2015.7619%209.86635%2016.0106%209.4434%2015.9401C9.17392%2015.8952%209.06101%2015.8023%209.00036%2015.7254C8.92763%2015.6332%208.85796%2015.4699%208.8345%2015.182C8.78531%2014.5784%208.95777%2013.7483%209.2062%2012.7877C9.38299%2012.1041%209.37649%2011.484%209.14093%2010.9633C8.89928%2010.4291%208.46692%2010.1102%208.01829%209.94573C7.58246%209.78593%207.11574%209.76292%206.71167%209.80677C6.31013%209.85035%205.90598%209.967%205.58799%2010.1487C4.98422%2010.4937%203.05774%2011.7176%202%2012.3909V5.92C2%204.85961%202.85961%204%203.92%204H17.3466Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",onClick:()=>{const e={receiver:c,receiverType:s};a&&(e.quotedMessageId=a.getId()),n.closeReplyPreview&&n.closeReplyPreview(),o.CometChat.callExtension(Zt.whiteboard,Zt.post,Zt.v1_create,e).then(e=>{r&&Qf.ccReplyToMessage.next({message:r.current,status:t.qpt.success})},e=>{console.log("error in sending whiteboard",e)})}});return l.push(u),l}}getLastConversationMessage(e,t,n){const r=e.getLastMessage();return null!=r&&r.getType()===Zt.extension_whiteboard&&r.getCategory()===pt.MessageCategory.custom?r instanceof o.CometChat.CustomMessage&&r.getConversationText()||V("conversation_subtitle_collaborative_whiteboard"):super.getLastConversationMessage(e,t,n)}}const p_=Object.freeze({metadata:"metadata",injected:"@injected",extensions:"extensions",link_preview:"link-preview",links:"links"}),h_={favIconURL:"",title:"",description:"",URL:"",isSentByMe:!0},m_=e=>{const{URL:t,description:n,title:o,image:i,favIconURL:s,children:c,isSentByMe:l,ccLinkClicked:u}={...h_,...e},[d,p]=a.useState(!1);a.useEffect(()=>{const e=new Image;e.src=s,e.onload=()=>p(!0),e.onerror=()=>p(!1)},[s]);const h=e=>{u&&t&&u(t)};return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-link-bubble "+(l?"cometchat-link-bubble-outgoing":"cometchat-link-bubble-incoming"),children:[i&&r.jsx("img",{className:"cometchat-link-bubble__preview-image",src:i,alt:o,onClick:h}),r.jsxs("div",{className:"cometchat-link-bubble__preview-body "+(i?"":"cometchat-link-bubble__preview-body-rounded"),children:[r.jsxs("div",{className:"cometchat-link-bubble__preview-body-content",onClick:h,children:[r.jsx("div",{className:"cometchat-link-bubble__preview-body-content-title",children:o}),r.jsx("div",{className:"cometchat-link-bubble__preview-body-content-description",children:n}),r.jsx("div",{className:"cometchat-link-bubble__preview-body-content-link",children:t?.replace(/(^\w+:|^)\/\//,"").split("/")[0]})]}),s&&d&&!i&&r.jsx("img",{className:"cometchat-link-bubble__preview-body-fav-icon",src:s,alt:"icon",onClick:h})]}),r.jsx("div",{className:"cometchat-link-bubble__body",children:c})]})})};class g_ extends Vf{constructor(e){super(e),this.newDataSource=e}getId(){return"linkpreview"}getTextMessageContentView(e,n,a){const o=this.getLinkPreview(e);if(o&&!e.getDeletedAt()&&e.getType()!==pt.MessageTypes.groupMember){let i,s={...a,textFormatters:a?.textFormatters&&a?.textFormatters.length?[...a.textFormatters]:this.getAllTextFormatters({alignment:n,disableMentions:a.disableMentions})},c=s.textFormatters;if(s&&!s.disableMentions){let t;for(let n=0;n<c.length;n++){if(c[n]instanceof En){if(t=c[n],t.setMessage(e),e.getMentionedUsers().length&&t.setCometChatUserGroupMembers(e.getMentionedUsers()),!e.getDeletedAt()){const n=/<@all:(.*?)>/g,r=e.getText(),a=Array.from(r.matchAll(n)).map(e=>e[1]);t.setCometChatMentionedChannels(a)}if(t.setLoggedInUser(dt.getLoggedInUser()),i)break}if(c[n]instanceof Cn&&(i=c[n],t))break}t||(t=Gf.getDataSource().getMentionsTextFormatter({message:e,...s,alignment:n}),c.push(t))}else for(let e=0;e<c.length;e++)if(c[e]instanceof Cn){i=c[e];break}i||(i=Gf.getDataSource().getUrlTextFormatter({alignment:n}),c.push(i));for(let t=0;t<c.length;t++)c[t].setMessageBubbleAlignment(n),c[t].setMessage(e);return r.jsx(m_,{title:this.getLinkPreviewDetails(o,"title"),description:this.getLinkPreviewDetails(o,"description"),URL:this.getLinkPreviewDetails(o,"url"),image:this.getLinkPreviewDetails(o,"image"),favIconURL:this.getLinkPreviewDetails(o,"favicon"),ccLinkClicked:e=>this.openLink(e),isSentByMe:n==t.JxA.right,children:r.jsx(Pn,{text:e.getText(),isSentByMe:n==t.JxA.right,textFormatters:c})})}return super.getTextMessageContentView(e,n,a)}getLinkPreviewWrapperStyle(){return{height:"inherit",width:"inherit"}}openLink(e){window.open(e,"_blank")}getLinkPreview(e){try{if(!e?.getMetadata())return null;{const t=e.getMetadata()[p_.injected];if(t&&t?.extensions){const e=t.extensions;if(e&&ht.checkHasOwnProperty(e,p_.link_preview)){const t=e[p_.link_preview];return t&&ht.checkHasOwnProperty(t,p_.links)&&t[p_.links].length?t[p_.links][0]:null}return null}}}catch(e){console.log("error in getting link preview details",e)}}getLinkPreviewDetails(e,t){return Object.keys(e).length>0?e[t]:""}}const f_={translatedText:"",alignment:t.JxA.right,helpText:V("message_text_translated"),textFormatters:[],isSentByMe:!0},__=e=>{const{children:n,helpText:o,translatedText:i,alignment:s,textFormatters:c,isSentByMe:l}={...f_,...e},u=a.useRef(null),d=Y(),p=()=>d?.iframeDocument||document,h=a.useCallback((e,t)=>{try{let n=p().createElement("div");n.innerHTML=t;let r,a,o=p().createDocumentFragment();for(;r=n.firstChild;){if(r instanceof HTMLElement){if(c&&c.length)for(let e=0;e<c.length;e++)r=c[e].registerEventListeners(r,r.classList);o.appendChild(r)}a=o.appendChild(r)}e?.appendChild(o)}catch(e){console.log(e)}},[p,c]);return a.useEffect(()=>{if(c){const e=u.current;let n=i;c.length&&c.forEach(e=>{n=e.getFormattedText(n,{mentionsTargetElement:t.rnx.textbubble})}),e.textContent="",h(e,n)}},[c,h,i]),i&&i.trim().length?r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-tanslation-bubble "+(l?"cometchat-tanslation-bubble-outgoing":"cometchat-tanslation-bubble-incoming"),children:[r.jsxs("div",{style:{display:"flex",gap:"8px",flexDirection:"column",width:"100%"},children:[r.jsx("div",{className:"cometchat-tanslation-bubble__original-text",children:n}),r.jsx("div",{className:"cometchat-tanslation-bubble__separator"}),r.jsx("div",{ref:u,className:"cometchat-tanslation-bubble__translated-text"})]}),r.jsx("div",{className:"cometchat-tanslation-bubble__helper-text",children:o})]})}):null};class b_ extends Vf{constructor(e){super(e),this.newDataSource=e}getTextMessageOptions(e,n,r,a){let i=super.getTextMessageOptions(e,n,r,a);if(!this.checkIfOptionExist(i,pt.MessageOption.translateMessage)&&!a?.hideTranslateMessageOption){let e=new Gt({id:pt.MessageOption.translateMessage,title:V("message_list_translate"),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M14.6231%2018.45L13.6674%2021.0288C13.6135%2021.1673%2013.5241%2021.2804%2013.3991%2021.3683C13.2741%2021.4561%2013.1341%2021.5%2012.9789%2021.5C12.7226%2021.5%2012.5175%2021.3945%2012.3636%2021.1835C12.2098%2020.9727%2012.1835%2020.7423%2012.2846%2020.4923L16.1714%2010.4615C16.2354%2010.323%2016.3283%2010.2115%2016.4501%2010.127C16.572%2010.0423%2016.7072%2010%2016.8559%2010H17.4136C17.5623%2010%2017.6975%2010.0423%2017.8194%2010.127C17.941%2010.2115%2018.034%2010.323%2018.0981%2010.4615L21.9846%2020.5078C22.086%2020.7474%2022.0623%2020.9727%2021.9136%2021.1835C21.7648%2021.3945%2021.5622%2021.5%2021.3059%2021.5C21.1405%2021.5%2020.9979%2021.4561%2020.8779%2021.3683C20.758%2021.2804%2020.6661%2021.1622%2020.6021%2021.0135L19.6464%2018.45H14.6231ZM8.98288%2013.5903L4.53663%2018.0308C4.39813%2018.1756%204.22663%2018.2506%204.02213%2018.2558C3.8178%2018.2609%203.63805%2018.1859%203.48288%2018.0308C3.33805%2017.8859%203.26563%2017.7103%203.26563%2017.5038C3.26563%2017.2974%203.33805%2017.1218%203.48288%2016.977L7.92888%2012.5213C7.35205%2011.9379%206.80372%2011.2456%206.28388%2010.4443C5.76388%209.64293%205.33597%208.82818%205.00013%208.00002H6.59038C6.87888%208.60518%207.22988%209.21035%207.64338%209.81552C8.05688%2010.4205%208.50338%2010.9711%208.98288%2011.4673C9.69305%2010.7506%2010.3648%209.88043%2010.9981%208.85677C11.6315%207.8331%2012.079%206.88085%2012.3406%206.00002H2.44238C2.22955%206.00002%202.05138%205.92818%201.90788%205.78452C1.76422%205.64102%201.69238%205.46285%201.69238%205.25002C1.69238%205.03718%201.76422%204.85902%201.90788%204.71552C2.05138%204.57185%202.22955%204.50002%202.44238%204.50002H8.25013V3.63477C8.25013%203.42193%208.32197%203.24368%208.46563%203.10002C8.60913%202.95652%208.7873%202.88477%209.00013%202.88477C9.21297%202.88477%209.39113%202.95652%209.53463%203.10002C9.6783%203.24368%209.75013%203.42193%209.75013%203.63477V4.50002H15.5579C15.7707%204.50002%2015.9489%204.57185%2016.0924%204.71552C16.236%204.85902%2016.3079%205.03718%2016.3079%205.25002C16.3079%205.46285%2016.236%205.64102%2016.0924%205.78452C15.9489%205.92818%2015.7707%206.00002%2015.5579%206.00002H13.8596C13.5353%207.12302%2013.0184%208.29702%2012.3089%209.52202C11.5992%2010.747%2010.8418%2011.757%2010.0366%2012.552L12.5039%2015.0788L11.9366%2016.6193L8.98288%2013.5903ZM15.1039%2017.123H19.1654L17.1346%2011.6673L15.1039%2017.123Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",onClick:function(){const e=navigator.language||navigator.languages[0];o.CometChat.callExtension("message-translation","POST","v2/translate",{msgId:n.getId(),text:n.getText(),languages:[e]}).then(r=>{const a=r.translations.find(t=>t.language_translated.toLowerCase()===e.toLowerCase());let o=e.includes("-")?e.split("-")[0]:e;if(e===r.language_original||o==r.language_original)Qf.ccMessageTranslated.next({message:n,status:t.qpt.error});else{const e=a.message_translated;if(!a?.message_translated||a?.error)return;const r=n.getMetadata()||{};r.translated_message=e,n.setMetadata(r),Qf.ccMessageTranslated.next({message:n,status:t.qpt.success})}}).catch(e=>{console.log("error",e)})}});i.push(e)}return i}getTextMessageContentView(e,n,a){const o=e.getMetadata();if(o&&Object.prototype.hasOwnProperty.call(o,"translated_message")&&!e.getDeletedAt()&&e.getType()!==pt.MessageTypes.groupMember){const i=o.translated_message;let s,c={...a,textFormatters:a?.textFormatters&&a?.textFormatters.length?[...a.textFormatters]:this.getAllTextFormatters({alignment:n,disableMentions:a.disableMentions})},l=c.textFormatters;if(c&&!c.disableMentions){let t;for(let n=0;n<l.length;n++){if(l[n]instanceof En){if(t=l[n],t.setMessage(e),e.getMentionedUsers().length&&t.setCometChatUserGroupMembers(e.getMentionedUsers()),!e.getDeletedAt()){const n=/<@all:(.*?)>/g,r=e.getText(),a=Array.from(r.matchAll(n)).map(e=>e[1]);t.setCometChatMentionedChannels(a)}if(t.setLoggedInUser(dt.getLoggedInUser()),s)break}if(l[n]instanceof Cn&&(s=l[n],t))break}t||(t=Gf.getDataSource().getMentionsTextFormatter({message:e,...c,alignment:n}),l.push(t))}else for(let e=0;e<l.length;e++)if(l[e]instanceof Cn){s=l[e];break}s||(s=Gf.getDataSource().getUrlTextFormatter({alignment:n}),l.push(s));for(let t=0;t<l.length;t++)l[t].setMessageBubbleAlignment(n),l[t].setMessage(e);return r.jsx(__,{translatedText:i,alignment:n,textFormatters:l,isSentByMe:n==t.JxA.right,children:r.jsx(Pn,{text:e.getText(),isSentByMe:n==t.JxA.right,textFormatters:l})})}return super.getTextMessageContentView(e,n,a)}checkIfOptionExist(e,t){return e.some(e=>e.id===t)}getId(){return"messagetranslation"}}const v_={options:[],pollQuestion:"",pollId:"",loggedInUser:void 0,senderUid:"",metadata:{},alignment:t.JxA.right},y_=e=>{const{options:n,pollQuestion:i,pollId:s,loggedInUser:c,senderUid:l,metadata:u,alignment:d}={...v_,...e};!l||c?.getUid();const[p,h]=a.useState([]);function m(e){return(new Date).getTime()+String(e)}return a.useEffect(()=>{if(u){const e=u[$t.injected]?.extensions?.polls||{},t=e?.results?.total||0,r=Object.keys(e?.options||{}).map(n=>{const r=e?.results?.options[n],a=r?.count||0,o=t>0?Math.round(a/t*100):0,i=r?.voters?.hasOwnProperty(c?.getUid())||!1,s=e?.results.options[Number(n)].voters?Object.values(e?.results.options[Number(n)].voters).slice(0,3).map(e=>e):[];return{id:n,percent:`${o}%`,text:e?.options[n],selectedByLoggedInUser:i,votersObj:s,count:a}});h(n&&n.length>0?n:r)}},[u,n,c?.getUid()]),r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:`cometchat-polls-bubble ${d==t.JxA.left?"cometchat-polls-bubble-incoming":"cometchat-polls-bubble-outgoing"} `,children:[r.jsx("div",{className:"cometchat-polls-bubble__question",children:i}),r.jsx("ul",{className:"cometchat-polls-bubble__options",children:p.map(e=>r.jsxs("li",{onClick:()=>{return t=e,void o.CometChat.callExtension($t.polls,$t.post,$t.v2_vote,{vote:t.id,id:s}).catch(console.error);var t},className:"cometchat-polls-bubble__option-item",children:[r.jsx("div",{className:"cometchat-poll-bubble__option-item-leading-view",children:r.jsx(Z,{name:m(s),id:m(e.id),checked:!!e.selectedByLoggedInUser})}),r.jsxs("div",{className:"cometchat-poll-bubble__option-item-body",children:[r.jsxs("div",{className:"cometchat-poll-bubble__option-item-body-content",children:[r.jsx("div",{className:"cometchat-poll-bubble__option-item-body-content-title",children:e.text}),r.jsxs("div",{className:"cometchat-poll-bubble__option-item-body-content-tail",children:[r.jsx("div",{style:{display:"flex"},children:e?.votersObj&&e?.votersObj.map((t,n)=>{const{name:a,avatar:o}=t;let i=n==e?.votersObj.length-1;return r.jsx("div",{className:"cometchat-poll-bubble__option-item-body-content-tail-avatar "+(i?"last":""),style:{zIndex:n},children:r.jsx(W,{name:a,image:o})},n)})}),r.jsx("div",{className:"cometchat-poll-bubble__option-item-body-content-tail-count",children:e.count})]})]}),r.jsx("div",{className:"cometchat-poll-bubble__option-item-body-progress",children:r.jsx("div",{className:"cometchat-poll-bubble__option-item-body-progress-background",style:{width:e.percent}})})]})]},e.id))})]})})},E_=({title:e=V("polls_title"),user:n,group:i,ccCloseClicked:s,replyToMessage:c,defaultAnswers:l=2,questionPlaceholderText:u=V("polls_question_placeholder"),answerPlaceholderText:d=V("polls_add_placeholder"),answerHelpText:p=V("polls_options"),addAnswerText:h=V("polls_add_option_button"),createPollButtonText:m=V("polls_create_button")})=>{const[g,f]=a.useState(""),[_,b]=a.useState([]),[v,y]=a.useState(!1),[E,C]=a.useState(""),[S,w]=a.useState(!1),[k,x]=a.useState(!1),[T,A]=a.useState(""),R=a.useRef(null);return a.useEffect(()=>{n?A(pt.MessageReceiverType.user):i&&A(pt.MessageReceiverType.group),b(Array.from({length:l},()=>({key:"",value:""})))},[n,i,l]),a.useEffect(()=>{_.length>=12?(y(!0),C(V("polls_limit_reached"))):(y(!1),C(""))},[_.length]),a.useEffect(()=>{_.map(e=>e.value).filter(e=>""!==e).length>=2&&0!==g.trim().length?x(!0):x(!1)},[g,_]),r.jsx("div",{className:"cometchat",style:{width:"fit-content",height:"fit-content"},children:r.jsxs("div",{className:"cometchat-create-poll",children:[r.jsxs("div",{className:"cometchat-create-poll__header",children:[r.jsx("div",{className:"cometchat-create-poll__header-title",children:e}),r.jsx("button",{className:"cometchat-create-poll__header-close-icon",onClick:()=>s&&s()})]}),r.jsxs("div",{className:"cometchat-create-poll__body",children:[r.jsxs("div",{className:"cometchat-create-poll__body-question",children:[r.jsx("div",{className:"cometchat-create-poll__body-question-title",children:V("polls_question")}),r.jsx("input",{className:"cometchat-create-poll__body-question-input",type:"text",placeholder:u,value:g,onChange:e=>f(e.target.value)})]}),r.jsxs("div",{className:"cometchat-create-poll__body-options-wrapper",children:[r.jsx("div",{className:"cometchat-create-poll__body-options-title",children:p}),r.jsx("div",{className:"cometchat-create-poll__body-options",children:_.map((e,t)=>r.jsxs("div",{className:"cometchat-create-poll__body-option",children:[r.jsx("input",{className:"cometchat-create-poll__body-option-input",type:"text",placeholder:d,value:e.value,onChange:e=>b(n=>n.map((n,r)=>r===t?{...n,value:e.target.value}:n)),ref:t===_.length-1?R:null}),t>1&&r.jsx("button",{className:"cometchat-create-poll__body-option-remove-button",onClick:()=>(e=>{b(t=>t.filter((t,n)=>n!==e))})(t)})]},t))}),r.jsxs("button",{className:"cometchat-create-poll__body-options-add-button "+(_.length>=12?"cometchat-create-poll__body-options-add-button-disabled":""),disabled:_.length>=12,onClick:()=>{b(e=>[...e,{key:"",value:""}]),requestAnimationFrame(()=>{R.current?.scrollIntoView(),R.current?.focus()})},children:["+ ",h]})]})]}),r.jsxs("div",{className:"cometchat-create-poll__footer",children:[v&&r.jsxs("div",{className:"cometchat-create-poll__error",children:[r.jsx("div",{className:"cometchat-create-poll__error-icon"}),r.jsx("div",{className:"cometchat-create-poll__error-text",children:E})]}),r.jsx("div",{className:"cometchat-create-poll__button "+(k?" ":"cometchat-create-poll__button-disabled"),children:r.jsx(rn,{onClick:()=>{const e=_.map(e=>e.value).filter(e=>""!==e);if(0===g.trim().length||e.length!==_.length)return y(!0),C(V("polls_required_fields_warning")),!1;w(!0),y(!1);const r=T===o.CometChat.RECEIVER_TYPE.USER?n?.getUid()??n?.uid:i?.getGuid()??i?.guid;let a=[...e];const l={question:g,options:a,receiver:r,receiverType:T};return c&&(l.quotedMessageId=c.getId()),o.CometChat.callExtension($t.polls,$t.post,$t.v2_create,l).then(e=>{w(!1),e?.success&&(s?.(),c&&Qf.ccReplyToMessage.next({message:c,status:t.qpt.success}))}).catch(()=>{w(!1),y(!0),C(V("polls_error"))}),!0},disabled:!k,isLoading:S&&k,text:m})})]})]})})};class C_ extends Vf{constructor(e,t){super(e),this.loggedInUser=null,this.getLoggedInUser(),this.newDataSource=e,this.configuration=t}async getLoggedInUser(){this.loggedInUser=await o.CometChat.getLoggedinUser()}getId(){return"polls"}getAllMessageTypes(){const e=super.getAllMessageTypes();return e.includes($t.extension_poll)||e.push($t.extension_poll),e}getAllMessageCategories(e){const t=super.getAllMessageCategories(e);return t.includes(pt.MessageCategory.custom)||t.push(pt.MessageCategory.custom),t}checkIfTemplateExist(e,t){return e.some(e=>e.type===t)}getAllMessageTemplates(e){const t=super.getAllMessageTemplates(e);return this.checkIfTemplateExist(t,$t.extension_poll)||t.push(this.getPollsTemplate()),t}getPollsTemplate(){return new Yt({type:$t.extension_poll,category:pt.MessageCategory.custom,statusInfoView:super.getStatusInfoView,replyView:(e,t,n)=>{let r=e;return Gf.getDataSource().getReplyView(r,t,n)},contentView:(e,t)=>{let n=e;return n.getDeletedAt()?super.getDeleteMessageBubble(n,void 0,t):this.getPollsContentView(n,t)},options:(e,t,n,r)=>super.getCommonOptions(e,t,n,r),bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}getPollsContentView(e,t){return r.jsx(y_,{pollQuestion:this.getPollBubbleData(e,"question"),pollId:this.getPollBubbleData(e,"id"),senderUid:this.getPollBubbleData(e),loggedInUser:this.loggedInUser??void 0,metadata:e?.getMetadata(),alignment:t})}getPollBubbleData(e,t){let n=e.getCustomData();return t?"options"===t?Object.values(n[t]):n[t]:e.getSender().getUid()}getAttachmentOptions(e,t){if(e?.parentMessageId||t?.hidePollsOption)return super.getAttachmentOptions(e,t);{let n=t.messageToReplyRef;const r=n?n.current:null;this.replyToMessage=r;const a=super.getAttachmentOptions(e,t);let o=new Ht({id:$t.extension_poll,title:V("message_composer_polls"),iconURL:this.configuration?.getOptionIconURL()?this.configuration?.getOptionIconURL():"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2%205C2%204.44772%202.44772%204%203%204H21C21.5523%204%2022%204.44772%2022%205C22%205.55228%2021.5523%206%2021%206H3C2.44772%206%202%205.55228%202%205Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M2%2012C2%2011.4477%202.44772%2011%203%2011H21C21.5523%2011%2022%2011.4477%2022%2012C22%2012.5523%2021.5523%2013%2021%2013H3C2.44772%2013%202%2012.5523%202%2012Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M2%2019C2%2018.4477%202.44772%2018%203%2018H21C21.5523%2018%2022%2018.4477%2022%2019C22%2019.5523%2021.5523%2020%2021%2020H3C2.44772%2020%202%2019.5523%202%2019Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",onClick:(...e)=>{this.onPollsButtonClicked(...e)}});return a.push(o),a}}onPollsButtonClicked(...e){const[t]=e;let n=t[0],r=t[1],a={parentMessageId:null,user:n?n.getUid():null,group:r?r.getGuid():null};yn.ccShowModal.next({child:this.getPollView(n,r),composerId:a})}getPollView(e,t){return r.jsx("div",{className:"cometchat-backdrop cometchat-create-poll-backdrop",children:r.jsx(E_,{user:e,group:t,ccCloseClicked:this.triggerCloseEvent,replyToMessage:this.replyToMessage})})}triggerCloseEvent(){yn.ccHideModal.next()}getLastConversationMessage(e,t,n){const r=e.getLastMessage();return null!=r&&r.getType()===$t.extension_poll&&r.getCategory()===pt.MessageCategory.custom?r instanceof o.CometChat.CustomMessage&&r.getConversationText()||V("conversation_subtitle_poll"):super.getLastConversationMessage(e,t,n)}}const S_={errorStateText:V("sticker_error"),emptyStateText:V("sticker_empty")},w_=e=>{const{errorStateText:n,emptyStateText:i,ccStickerClicked:s}={...S_,...e},[c,l]=a.useState(t.DGz.loading),[u,d]=a.useState({}),[p,h]=a.useState([]),[m,g]=a.useState([]),[f,_]=a.useState(""),b=a.useRef(null),v=a.useCallback(async()=>{l(t.DGz.loading);try{const e=await o.CometChat.callExtension(Qt.stickers,Qt.get,Qt.v1_fetch);let n=null;const r=e?.customStickers?[e.customStickers]:[],a=e.defaultStickers||[];a.sort((e,t)=>(e.stickerOrder??0)-(t.stickerOrder??0)),r.sort((e,t)=>(e.stickerOrder??0)-(t.stickerOrder??0));const i=[...a,...r].flat();if(0===i.length)return void l(t.DGz.empty);const s=i.reduce((e,t,r)=>{const{stickerSetName:a}=t;return 0===r&&(n=a),e[a]=[...e[a]||[],{...t}],e},{});Object.keys(s).forEach(e=>{s[e].sort((e,t)=>(e.stickerOrder??0)-(t.stickerOrder??0))}),null!==n&&h(s[n]),d(s),l(t.DGz.loaded);const c=Object.keys(s).map(e=>s[e][0]);g(c),f||_(c?.[0]?.stickerSetName)}catch(e){console.error(e),l(t.DGz.error)}},[]);a.useEffect(()=>{v()},[v]);const y=a.useCallback(e=>{const t=b.current;if(t){const n=t.scrollLeft;let r=.5*e.deltaY;(1===e.deltaMode||e.deltaY>100)&&(r=.2*e.deltaY),t.scrollTo({top:0,left:n+r,behavior:"auto"})}},[]),E=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"cometchat-sticker-keyboard__shimmer-tabs",children:Array.from({length:7}).map((e,t)=>r.jsx("div",{className:"cometchat-sticker-keyboard__shimmer-tab"},t))}),r.jsx("div",{className:"cometchat-sticker-keyboard__list cometchat-sticker-keyboard__shimmer-list",children:Array.from({length:3}).map(e=>Array.from({length:3}).map((e,t)=>r.jsx("div",{className:"cometchat-sticker-keyboard__list-item cometchat-sticker-keyboard__shimmer-list-item"},t)))})]}),C=r.jsxs("div",{className:"cometchat-sticker-keyboard__empty-view",children:[r.jsx("div",{className:"cometchat-sticker-keyboard__empty-view-icon"}),i]}),S=r.jsx("div",{className:"cometchat-sticker-keyboard__error-view",children:n});return r.jsx("div",{className:"cometchat",style:{height:"100%",width:"100%"},children:r.jsxs("div",{className:"cometchat-sticker-keyboard",children:[c!==t.DGz.loaded&&r.jsx(r.Fragment,{children:(()=>{switch(c){case t.DGz.loading:return E;case t.DGz.empty:return C;case t.DGz.error:return S;default:return null}})()}),c===t.DGz.loaded&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"cometchat-sticker-keyboard__tabs",ref:b,onWheel:y,children:m.map((e,t)=>r.jsx(a.Fragment,{children:r.jsx("div",{className:"cometchat-sticker-keyboard__tab "+(f===e.stickerSetName?"cometchat-sticker-keyboard__tab-active":""),children:e.stickerUrl&&r.jsx("img",{onClick:()=>{return t=e.stickerSetName,h(u[t]||[]),void _(t);var t},src:e.stickerUrl})})},e.stickerSetName||`sticker-tab-${t}`))}),r.jsx("div",{className:"cometchat-sticker-keyboard__list",children:p.map((e,t)=>r.jsx("div",{onClick:()=>{var t;s({detail:{stickerURL:(t=e).stickerUrl,stickerName:t.stickerSetName}})},children:r.jsx("img",{src:e.stickerUrl,alt:e.stickerSetName,className:"cometchat-sticker-keyboard__list-item"})},e.stickerUrl||`sticker-item-${t}`))})]})]})})};class k_ extends Vf{constructor(e){super(e),this.showStickerKeyboard=!1,this.getStickerAuxiliaryButton=(e,n,o,i,s)=>{const c=a.createRef(),[l,u]=a.useState(!1);var d=null;const p=()=>{c&&c?.current?.closePopover(),u(!1),d&&d.unsubscribe()};return l&&(d=yn.ccActivePopover.subscribe(e=>{e!=Qt.sticker&&p()})),r.jsx("div",{className:"cometchat-message-composer__auxilary-button-view-sticker-button "+(l?"cometchat-message-composer__auxilary-button-view-sticker-button-active":""),children:r.jsx(Ft,{useParentContainer:!0,useParentHeight:!1,ref:c,placement:t.W.top,closeOnOutsideClick:!0,onOutsideClick:()=>u(!1),showOnHover:!1,debounceOnHover:0,content:r.jsx(w_,{ccStickerClicked:t=>this.sendSticker(t,p,e,i,s)}),children:r.jsx(rn,{hoverText:V("message_composer_sticker_hover"),iconURL:l?"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%2017.8667V6.13333C4%204.95513%204.95513%204%206.13333%204H17.8667C19.0449%204%2020%204.95513%2020%206.13333V12.5333H16.8C14.7381%2012.5333%2013.0667%2014.2048%2013.0667%2016.2667V20H6.13333C4.95513%2020%204%2019.0449%204%2017.8667Z%22%20fill%3D%22%23212121%22%2F%3E%3Cpath%20d%3D%22M19.9695%2013.6H16.8C15.3272%2013.6%2014.1333%2014.7939%2014.1333%2016.2667V20H14.1752L19.9695%2013.6Z%22%20fill%3D%22%23212121%22%2F%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.42541%203.53198C4.94956%203.84953%203.82566%204.99078%203.52746%206.47483C3.45601%206.83038%203.44886%207.46378%203.46296%2012.1748C3.47766%2017.0965%203.48521%2017.4962%203.56836%2017.7748C3.88646%2018.8403%204.62136%2019.7197%205.57396%2020.1745C6.31606%2020.5288%206.19271%2020.5178%209.60841%2020.5369C12.2688%2020.5517%2012.7376%2020.5434%2013.0283%2020.476C13.7571%2020.3069%2013.7108%2020.3468%2017.0291%2017.0285C20.3474%2013.7102%2020.3075%2013.7565%2020.4766%2013.0277C20.544%2012.737%2020.5523%2012.2682%2020.5375%209.60783C20.5183%206.18968%2020.5292%206.30943%2020.1734%205.57483C19.7047%204.60688%2018.8447%203.88703%2017.7754%203.56778C17.4962%203.48438%2017.1045%203.47743%2012.1254%203.46743C7.52016%203.45818%206.72671%203.46713%206.42541%203.53198ZM6.68181%205.00533C6.57531%205.03033%206.33286%205.13243%206.14306%205.23218C5.56891%205.53388%205.13371%206.10523%204.99936%206.73373C4.96531%206.89288%204.95251%208.73443%204.96161%2012.1536L4.97541%2017.3324L5.18781%2017.761C5.51596%2018.4232%206.05221%2018.8491%206.74036%2018.994C6.91436%2019.0307%207.83586%2019.0498%209.42486%2019.0498H11.8444L11.8635%2016.9873C11.8846%2014.7089%2011.8881%2014.6806%2012.2277%2013.9694C12.5812%2013.2291%2013.2312%2012.5798%2013.974%2012.2252C14.6807%2011.8877%2014.7113%2011.884%2016.9879%2011.8629L19.0504%2011.8438L19.0498%209.38433C19.0492%206.68873%2019.0469%206.66358%2018.7481%206.10313C18.468%205.57753%2017.8902%205.14013%2017.2948%205.00288C17.0151%204.93838%206.95691%204.94073%206.68181%205.00533ZM15.0818%2013.4053C14.4926%2013.5437%2013.8387%2014.0729%2013.5792%2014.6213C13.3666%2015.0709%2013.3474%2015.277%2013.3618%2016.9625L13.3754%2018.5502L15.9752%2015.95L18.5751%2013.3498L16.9252%2013.3548C16.0178%2013.3576%2015.1883%2013.3803%2015.0818%2013.4053Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",onClick:()=>{yn.ccActivePopover.next(Qt.sticker),u(e=>!e)}})})})},this.newDataSource=e}getDataSource(){return this.newDataSource}getAllMessageTemplates(e){let t=super.getAllMessageTemplates(e);return this.checkIfTemplateExist(t,Qt.sticker)||t.push(this.getStickerTemplate()),t}getStickerButton(e,t,n,r,a){return this.getStickerAuxiliaryButton(e,t,n,r,a)}sendSticker(e,n,r,a,i){try{if(n(),i&&i(),!r.group&&!r.user)return;let s=e?.detail,c={name:s?.stickerName,URL:s?.stickerURL};const l=r.user||r.group,u=r.user?pt.MessageReceiverType.user:pt.MessageReceiverType.group,{parentMessageId:d}=r,p={sticker_url:c.URL,sticker_name:c.name},h=Qt.sticker,m=new o.CometChat.CustomMessage(l,u,h,p);d&&m.setParentMessageId(d),m.setMetadata({incrementUnreadCount:!0}),m.shouldUpdateConversation(!0),m.setSentAt(ht.getUnixTimestamp()),m.setMuid(ht.ID()),Qf.ccMessageSent.next({message:m,status:t.qpt.inprogress}),a&&(m.setQuotedMessage(a),m.setQuotedMessageId(a.getId())),o.CometChat.sendCustomMessage(m).then(e=>{Qf.ccMessageSent.next({message:e,status:t.qpt.success}),a&&Qf.ccReplyToMessage.next({message:a,status:t.qpt.success})},e=>{m.setMetadata({error:!0}),Qf.ccMessageSent.next({message:m,status:t.qpt.error})})}catch(e){console.log("error in sending sticker",e)}}getSticker(e){let t;return ht.checkHasOwnProperty(e,Qt.data)&&ht.checkHasOwnProperty(e.getData(),Qt.custom_data)?(t=e.getCustomData(),ht.checkHasOwnProperty(t,Qt.sticker_url)?t?.sticker_url:""):""}getStickerMessageContentView(e){let t=!e.getSender()||e.getSender().getUid()==dt.getLoggedInUser()?.getUid();return r.jsx(Ln,{src:this.getSticker(e),isSentByMe:t,disableLoadingState:!0})}getStickerTemplate(){return new Yt({type:Qt.sticker,category:pt.MessageCategory.custom,statusInfoView:super.getStatusInfoView,replyView:(e,t,n)=>{let r=e;return Gf.getDataSource().getReplyView(r,t,n)},contentView:(e,t)=>{let n=e;return n.getDeletedAt()?super.getDeleteMessageBubble(n,void 0,t):this.getStickerMessageContentView(n)},options:(e,t,n,r)=>super.getCommonOptions(e,t,n,r),bottomView:(e,t)=>Gf.getDataSource().getBottomView(e,t)})}checkIfTemplateExist(e,t){return e.some(e=>e.type===t)}getAllMessageCategories(e){let t=super.getAllMessageCategories(e);return t.some(e=>e===pt.MessageCategory.custom)||t.push(pt.MessageCategory.custom),t}getAllMessageTypes(){let e=super.getAllMessageTypes();return e.some(e=>e===Qt.sticker)||e.push(Qt.sticker),e}getId(){return"stickers"}getLastConversationMessage(e,t,n){const r=e.getLastMessage();return null!=r&&r.getType()===Qt.sticker&&r.getCategory()===pt.MessageCategory.custom?r instanceof o.CometChat.CustomMessage&&r.getConversationText()||V("conversation_subtitle_sticker"):super.getLastConversationMessage(e,t,n)}}class x_ extends Vf{getId(){return"thumbnailgeneration"}getImageMessageBubble(e,t,n,r){if(Gf.names.includes("imagemoderation"))return super.getImageMessageBubble(e,t,n);{let e=n.getAttachments()?n?.getAttachments()[0]?.getUrl():n.getData()?.url,t=n.getMetadata();return t&&t.hasOwnProperty("@injected")&&t["@injected"].hasOwnProperty("extensions")&&t["@injected"].extensions.hasOwnProperty("thumbnail-generation")&&t["@injected"].extensions["thumbnail-generation"].url_medium&&(e=t["@injected"].extensions["thumbnail-generation"].url_medium),super.getImageMessageBubble(e,Dn,n)}}getVideoMessageBubble(e,t,n,r){let a=t.getMetadata(),o=n;return a&&a.hasOwnProperty("@injected")&&a["@injected"].hasOwnProperty("extensions")&&a["@injected"].extensions.hasOwnProperty("thumbnail-generation")&&a["@injected"].extensions["thumbnail-generation"].url_small&&(o=a["@injected"].extensions["thumbnail-generation"].url_small),super.getVideoMessageBubble(e,t,o)}}class T_{static attachListeners(){o.CometChat.addMessageListener(this.messageListenerId,this.getMessageListenerObject())}static detachListeners(){o.CometChat.removeMessageListener(this.messageListenerId)}static getMessageListenerObject(){return new o.CometChat.MessageListener({onTextMessageReceived:e=>{Qf.onTextMessageReceived.next(e)},onMediaMessageReceived:e=>{Qf.onMediaMessageReceived.next(e)},onMessageModerated:e=>{Qf.onMessageModerated.next(e)},onCustomMessageReceived:e=>{Qf.onCustomMessageReceived.next(e)},onTypingStarted:e=>{Qf.onTypingStarted.next(e)},onTypingEnded:e=>{Qf.onTypingEnded.next(e)},onMessagesDelivered:e=>{Qf.onMessagesDelivered.next(e)},onMessagesRead:e=>{Qf.onMessagesRead.next(e)},onMessagesDeliveredToAll:e=>{Qf.onMessagesDeliveredToAll.next(e)},onMessagesReadByAll:e=>{Qf.onMessagesReadByAll.next(e)},onMessageEdited:e=>{Qf.onMessageEdited.next(e)},onMessageDeleted:e=>{Qf.onMessageDeleted.next(e)},onMessageReactionAdded:e=>{Qf.onMessageReactionAdded.next(e)},onMessageReactionRemoved:e=>{Qf.onMessageReactionRemoved.next(e)},onSchedulerMessageReceived:e=>{Qf.onSchedulerMessageReceived.next(e)},onInteractiveMessageReceived:e=>{switch(e.getType()){case pt.MessageTypes.form:Qf.onFormMessageReceived.next(e);break;case pt.MessageTypes.card:Qf.onCardMessageReceived.next(e);break;default:Qf.onCustomInteractiveMessageReceived.next(e)}},onAIAssistantMessageReceived:e=>{Qf.onAIAssistantMessageReceived.next(e)},onAIToolResultReceived:e=>{Qf.onAIToolResultReceived.next(e)},onAIToolArgumentsReceived:e=>{Qf.onAIToolArgumentsReceived.next(e)}})}}T_.messageListenerId=`message_listener_${(new Date).getTime()}`;class A_{static init(e){if(A_.uiKitSettings=e,!A_.checkAuthSettings())return;const t=new o.CometChat.AppSettingsBuilder;e.getRoles()?t.subscribePresenceForRoles(e.getRoles()):"ALL_USERS"===e.getSubscriptionType()?t.subscribePresenceForAllUsers():"FRIENDS"===e.getSubscriptionType()&&t.subscribePresenceForFriends(),t.autoEstablishSocketConnection(e.isAutoEstablishSocketConnection()),t.setRegion(e.getRegion()),t.overrideAdminHost(e.getAdminHost()),t.overrideClientHost(e.getClientHost()),t.setStorageMode(e.getStorageMode());const n=t.build();return o.CometChat.setSource&&o.CometChat.setSource("uikit-v6","web","reactjs"),G.setCurrentLanguage(G.getBrowserLanguage()),new Promise((t,r)=>{window.CometChatUiKit={name:"@cometchat/chat-uikit-react",version:"6.4.2"},o.CometChat.init(e?.appId,n).then(()=>{o.CometChat.getLoggedinUser().then(e=>(e&&(dt.setLoggedInUser(e),Gf.init(),this.initiateAfterLogin()),t(e))).catch(e=>(console.log(e),r(e)))}).catch(e=>r(e))})}static isInitialized(){try{return o.CometChat.isInitialized()}catch(e){console.log(e)}}static enableCalling(){try{if(zf){const e=(new zf.CallAppSettingsBuilder).setAppId(A_.uiKitSettings?.appId).setRegion(A_.uiKitSettings?.region).build();zf.init(e).then(()=>{this.uiKitSettings?.getCallsExtension()?this.uiKitSettings?.getCallsExtension().enable():this.defaultCallingExtension.enable()},e=>{console.log("CometChatCalls initialization failed with error:",e)})}}catch(e){console.log(e)}}static initiateAfterLogin(){if(null!=A_.uiKitSettings){o.CometChat.getConversationUpdateSettings().then(e=>{this.conversationUpdateSettings=e});let e=this.uiKitSettings?.extensions||this.defaultExtensions;T_.attachListeners(),dt.attachListener(),e.length>0&&e.forEach(e=>{e?.enable()}),this.enableCalling()}}static login(e){return new Promise((t,n)=>{if(!A_.checkAuthSettings())return n("uiKitSettings not available");A_.getLoggedinUser()?.then(r=>{if(r)return dt.setLoggedInUser(r),this.initiateAfterLogin(),t(r);o.CometChat.login(e,A_.uiKitSettings.authKey).then(e=>(dt.setLoggedInUser(e),Gf.init(),dt.setLoggedInUser(e),this.initiateAfterLogin(),t(e))).catch(e=>n(e))})})}static loginWithAuthToken(e){return new Promise((t,n)=>{if(!A_.checkAuthSettings())return n("uiKitSettings not available");o.CometChat.login(e).then(e=>(dt.setLoggedInUser(e),Gf.init(),this.initiateAfterLogin(),t(e))).catch(e=>n(e))})}static getLoggedinUser(){return new Promise((e,t)=>{if(!A_.checkAuthSettings())return t("uiKitSettings not available");o.CometChat.getLoggedinUser().then(t=>(t&&dt.setLoggedInUser(t),e(t))).catch(e=>t(e))})}static createUser(e){return new Promise((t,n)=>{if(!A_.checkAuthSettings())return n("uiKitSettings not available");o.CometChat.createUser(e,A_.uiKitSettings.authKey).then(e=>t(e)).catch(e=>n(e))})}static updateUser(e){return new Promise((t,n)=>{if(!A_.checkAuthSettings())return n("uiKitSettings not available");o.CometChat.updateUser(e,A_.uiKitSettings.authKey).then(e=>t(e)).catch(e=>n(e))})}static logout(){return new Promise((e,t)=>{if(!A_.checkAuthSettings())return t({code:"ERROR_UIKIT_NOT_INITIALISED",message:"UIKItSettings not available"});o.CometChat.logout().then(t=>(dt.removeLoggedInUser(),e(t))).catch(e=>t(e))})}static checkAuthSettings(){return null!=A_.uiKitSettings&&null!=A_.uiKitSettings.appId}static sendCustomMessage(e){return new Promise((n,r)=>{e.setSentAt(ht.getUnixTimestamp()),e?.getMuid()||e.setMuid(ht.ID()),Qf.ccMessageSent.next({message:e,status:t.qpt.inprogress}),o.CometChat.sendCustomMessage(e).then(e=>(Qf.ccMessageSent.next({message:e,status:t.qpt.success}),n(e))).catch(n=>(e.setMetadata({error:n}),Qf.ccMessageSent.next({message:e,status:t.qpt.error}),r(n)))})}static sendTextMessage(e){return new Promise((n,r)=>{e.setSentAt(ht.getUnixTimestamp()),e?.getMuid()||e.setMuid(ht.ID()),Qf.ccMessageSent.next({message:e,status:t.qpt.inprogress}),o.CometChat.sendMessage(e).then(e=>(Qf.ccMessageSent.next({message:e,status:t.qpt.success}),n(e))).catch(n=>(e.setMetadata({error:n}),Qf.ccMessageSent.next({message:e,status:t.qpt.error}),r(n)))})}static sendMediaMessage(e){return e.setSentAt(ht.getUnixTimestamp()),e?.getMuid()||e.setMuid(ht.ID()),new Promise((n,r)=>{Qf.ccMessageSent.next({message:e,status:t.qpt.inprogress}),o.CometChat.sendMediaMessage(e).then(e=>(Qf.ccMessageSent.next({message:e,status:t.qpt.success}),n(e))).catch(n=>(e.setMetadata({error:n}),Qf.ccMessageSent.next({message:e,status:t.qpt.error}),r(n)))})}static getDataSource(){return Gf.getDataSource()}}A_.SoundManager=Jf,A_.Localize=G,A_.themeMode="light",A_.defaultExtensions=[new class extends s_{constructor(){super()}addExtension(){Gf.enable(e=>new k_(e))}getExtensionId(){return c_.stickers}},new class extends s_{constructor(e){super(),this.configuration=e}addExtension(){Gf.enable(e=>new d_(e,this.configuration))}getExtensionId(){return c_.whiteboard}},new class extends s_{constructor(e){super(),this.configuration=e}addExtension(){Gf.enable(e=>new u_(e,this.configuration))}getExtensionId(){return c_.document}},new class extends s_{constructor(){super()}addExtension(){Gf.enable(e=>new b_(e))}getExtensionId(){return c_.messageTranslation}},new class extends s_{addExtension(){Gf.enable(e=>new x_(e))}getExtensionId(){return c_.thumbnailGeneration}},new class extends s_{constructor(){super()}addExtension(){Gf.enable(e=>new g_(e))}getExtensionId(){return c_.linkPreview}},new class extends s_{constructor(e){super(),this.configuration=e}addExtension(){Gf.enable(e=>new C_(e,this.configuration))}getExtensionId(){return c_.polls}}],A_.defaultCallingExtension=new class extends s_{constructor(e){super(),this.configuration=e}enable(){Gf.enable(e=>new i_(e,this.configuration))}addExtension(){Gf.enable((e,t)=>new i_(e,t))}getExtensionId(){return"calling"}};class R_{constructor(e){this.appId=e.appId,this.region=e.region,this.subscriptionType=e.subscriptionType,this.autoEstablishSocketConnection=e.autoEstablishSocketConnection??!0,this.authKey=e.authKey,this.deviceToken=e.deviceToken,this.googleApiKey=e.googleApiKey,this.disableCalling=e.disableCalling,this.adminHost=e.adminHost,this.clientHost=e.clientHost,this.extensions=e.extensions,this.callingExtension=e.callingExtension,this.roles=e.roles,this.storageMode=e.storageMode||o.CometChat.StorageMode.LOCAL}static fromBuilder(e){return new R_(e)}getAppId(){return this.appId}getRegion(){return this.region}getRoles(){return this.roles}getSubscriptionType(){return this.subscriptionType}getAuthKey(){return this.authKey}isAutoEstablishSocketConnection(){return this.autoEstablishSocketConnection}getAdminHost(){return this.adminHost}getClientHost(){return this.clientHost}getExtensions(){return this.extensions}getCallsExtension(){return this.callingExtension}getStorageMode(){return this.storageMode}}var I_;class O_{}function N_(e,t){let n="";try{n=e.getCallInitiator&&e.getCallInitiator()?.getUid()||e?.getInitiator()?.getUid()}catch(e){console.error(e)}return!n||n===t?.getUid()}function M_(e,t){const n=e.getStatus(),r=N_(e,t);if(r)return!1;const a=[pt.calls.unanswered,pt.calls.cancelled,pt.calls.busy,pt.calls.rejected];return!r&&a.includes(n)}function D_(e,t){return e.getInitiator().getUid()===t.getUid()?e.getReceiver():e.getInitiator()}I_=O_,O_.isWindowListenerAttached=!1,O_.storageKeyToRemove=null,O_.handleBeforeUnload=()=>{I_.storageKeyToRemove&&(I_.removeItem(I_.storageKeyToRemove),I_.isWindowListenerAttached&&(window.removeEventListener("beforeunload",I_.handleBeforeUnload),I_.isWindowListenerAttached=!1,I_.storageKeyToRemove=""))},O_.attachChangeDetection=e=>{window.addEventListener("storage",e),I_.isWindowListenerAttached||(window.addEventListener("beforeunload",I_.handleBeforeUnload),I_.isWindowListenerAttached=!0)},O_.detachChangeDetection=e=>{window.removeEventListener("storage",e)},O_.setItem=(e,t)=>{localStorage.setItem(e,JSON.stringify(t)),I_.storageKeyToRemove||e!=pt.calls.activecall||(I_.storageKeyToRemove=pt.calls.activecall)},O_.getItem=e=>JSON.parse(localStorage.getItem(e)),O_.removeItem=e=>{localStorage.removeItem(e)};const L_={itemView:void 0,subtitleView:void 0,trailingView:void 0,emptyView:void 0,errorView:void 0,loadingView:void 0,callLogRequestBuilder:void 0,onItemClick:void 0,onCallButtonClicked:void 0,onError:e=>{console.log(e)},activeCall:void 0,showScrollbar:!1};var P_;class j_{constructor(e){const{conversationsRequestBuilder:t,errorHandler:n}=e;P_.errorHandler=n;const r=t||(new o.CometChat.ConversationsRequestBuilder).setLimit(P_.limit);this.conversationsRequest=r.build(),t&&(P_.conversationType=t.build().getConversationType())}fetchNext(){return this.conversationsRequest.fetchNext()}static attachUserListener(e){try{const t="ConversationList_User_"+String(Date.now());return o.CometChat.addUserListener(t,new o.CometChat.UserListener({onUserOnline:e,onUserOffline:e})),()=>o.CometChat.removeUserListener(t)}catch(e){P_.errorHandler(e,"attachUserListener")}}static attachGroupListener(e,t){try{const n="ConversationList_Group_"+String(Date.now());return o.CometChat.addGroupListener(n,new o.CometChat.GroupListener({onGroupMemberJoined:t=>{e(t)},onGroupMemberLeft:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberKicked:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberBanned:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberUnbanned:t=>{e(t)},onMemberAddedToGroup:t=>{e(t)},onGroupMemberScopeChanged:t=>{e(t)}})),()=>o.CometChat.removeGroupListener(n)}catch(e){P_.errorHandler(e,"attachGroupListener")}}static attachMessageReceivedListener(e){try{const t="message_"+(new Date).getTime();return o.CometChat.addMessageListener(t,new o.CometChat.MessageListener({onTextMessageReceived:t=>{e(t)},onMediaMessageReceived:t=>{e(t)},onCustomMessageReceived:t=>{e(t)},onSchedulerMessageReceived:t=>{e(t)},onInteractiveMessageReceived:t=>{e(t)}})),()=>{o.CometChat.removeMessageListener(t)}}catch(e){P_.errorHandler(e,"attachMessageReceivedListener")}}static attachMessageReceiptListener(e){try{const t=Qf.onMessagesDelivered.subscribe(t=>{t.getReceiverType()==pt.MessageReceiverType.user&&e(t,!1)}),n=Qf.onMessagesRead.subscribe(t=>{t.getReceiverType()==pt.MessageReceiverType.user&&e(t,!0)}),r=Qf.onMessagesDeliveredToAll.subscribe(t=>{e(t,!1)}),a=Qf.onMessagesReadByAll.subscribe(t=>{e(t,!0)});return()=>{t?.unsubscribe(),n?.unsubscribe(),r?.unsubscribe(),a?.unsubscribe()}}catch(e){P_.errorHandler(e,"attachMessageReceiptListener")}}static attachMessageTypingListener(e){try{const t="typing_"+(new Date).getTime();return o.CometChat.addMessageListener(t,new o.CometChat.MessageListener({onTypingStarted:t=>{e(t,!0)},onTypingEnded:t=>{e(t,!1)}})),()=>{o.CometChat.removeMessageListener(t)}}catch(e){P_.errorHandler(e,"attachMessageTypingListener")}}static attachMessageModifiedListener(e){try{const t="delete_"+(new Date).getTime();return o.CometChat.addMessageListener(t,new o.CometChat.MessageListener({onMessageEdited:t=>{e(t)},onMessageDeleted:t=>{e(t)},onMessageModerated:t=>{e(t)}})),()=>{o.CometChat.removeMessageListener(t)}}catch(e){P_.errorHandler(e,"attachMessageModifiedListener")}}static attachCallListener(e){try{const t="ConversationList_Call_"+String(Date.now());return o.CometChat.addCallListener(t,new o.CometChat.CallListener({onIncomingCallReceived:e,onOutgoingCallAccepted:e,onOutgoingCallRejected:e,onIncomingCallCancelled:e})),()=>o.CometChat.removeCallListener(t)}catch(e){P_.errorHandler(e,"attachCallListener")}}static attachConnestionListener(e){try{const t="ConversationList_connection_"+String(Date.now());return o.CometChat.addConnectionListener(t,new o.CometChat.ConnectionListener({onConnected:()=>{console.log("ConnectionListener =>connected"),e&&e()},onDisconnected:()=>{console.log("ConnectionListener => On Disconnected")}})),()=>o.CometChat.removeConnectionListener(t)}catch(e){P_.errorHandler(e,"attachConnestionListener")}}static shouldIncrementForCustomMessage(e){try{const t=e?.getMetadata();return e?.willUpdateConversation()||t&&t.hasOwnProperty("incrementUnreadCount")&&t.incrementUnreadCount||A_.conversationUpdateSettings?.shouldUpdateOnCustomMessages()}catch(e){P_.errorHandler(e,"shouldIncrementForCustomMessage")}}}P_=j_,j_.limit=30,j_.conversationType=void 0,j_.errorHandler=(e,t)=>{console.log(e)},j_.shouldLastMessageAndUnreadCountBeUpdated=e=>{try{let t=e?.getCategory()===pt.MessageCategory.custom;return!(e?.getParentMessageId()&&!A_.conversationUpdateSettings?.shouldUpdateOnMessageReplies())&&(t?!!(e?.getParentMessageId()&&A_.conversationUpdateSettings?.shouldUpdateOnMessageReplies()&&P_.shouldIncrementForCustomMessage(e))||P_.shouldIncrementForCustomMessage(e):e?.getCategory()===pt.MessageCategory.action?e?.getType()!==pt.MessageTypes.groupMember||A_.conversationUpdateSettings?.shouldUpdateOnGroupActions():e?.getCategory()!==pt.MessageCategory.call||e?.getType()!==pt.MessageTypes.audio&&e?.getType()!==pt.MessageTypes.video||A_.conversationUpdateSettings?.shouldUpdateOnCallActivities())}catch(e){P_.errorHandler(e,"shouldLastMessageAndUnreadCountBeUpdated")}};class U_{static publishEvent(e,t){e.next(t)}}U_.ccConversationDeleted=new Ie,U_.ccUpdateConversation=new Ie,U_.ccMarkConversationAsRead=new Ie;var F_="data:image/svg+xml,%3Csvg%20width%3D%22220%22%20height%3D%22140%22%20viewBox%3D%220%200%20220%20140%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M31.5%2020.9948C31.5%2015.3799%2036.0518%2010.8281%2041.6667%2010.8281H180.333C185.948%2010.8281%20190.5%2015.3799%20190.5%2020.9948V36.9948C190.5%2042.6097%20185.948%2047.1615%20180.333%2047.1615H41.6667C36.0518%2047.1615%2031.5%2042.6097%2031.5%2036.9948V20.9948Z%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Cpath%20d%3D%22M31.5%2020.9948C31.5%2015.3799%2036.0518%2010.8281%2041.6667%2010.8281H180.333C185.948%2010.8281%20190.5%2015.3799%20190.5%2020.9948V36.9948C190.5%2042.6097%20185.948%2047.1615%20180.333%2047.1615H41.6667C36.0518%2047.1615%2031.5%2042.6097%2031.5%2036.9948V20.9948Z%22%20stroke%3D%22%23F5F5F5%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M55.0001%2042.3307C62.3639%2042.3307%2068.3334%2036.3612%2068.3334%2028.9974C68.3334%2021.6336%2062.3639%2015.6641%2055.0001%2015.6641C47.6363%2015.6641%2041.6667%2021.6336%2041.6667%2028.9974C41.6667%2036.3612%2047.6363%2042.3307%2055.0001%2042.3307Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3Cpath%20d%3D%22M53.245%2031.6797C53.245%2031.5443%2053.2241%2031.4227%2053.1825%2031.3151C53.1443%2031.204%2053.0713%2031.1033%2052.9637%2031.013C52.8561%2030.9193%2052.705%2030.8273%2052.5106%2030.737C52.3161%2030.6467%2052.0644%2030.553%2051.7554%2030.4557C51.4116%2030.3446%2051.0852%2030.2196%2050.7762%2030.0807C50.4706%2029.9418%2050.1998%2029.7804%2049.9637%2029.5964C49.7311%2029.4089%2049.547%2029.1918%2049.4116%2028.9453C49.2797%2028.6988%2049.2137%2028.4123%2049.2137%2028.0859C49.2137%2027.77%2049.2831%2027.4835%2049.422%2027.2266C49.5609%2026.9661%2049.7554%2026.7439%2050.0054%2026.5599C50.2554%2026.3724%2050.5505%2026.2283%2050.8908%2026.1276C51.2345%2026.0269%2051.6113%2025.9766%2052.021%2025.9766C52.58%2025.9766%2053.0679%2026.0773%2053.4845%2026.2786C53.9012%2026.48%2054.2241%2026.7561%2054.4533%2027.1068C54.6859%2027.4575%2054.8022%2027.8585%2054.8022%2028.3099H53.2502C53.2502%2028.0877%2053.2033%2027.8932%2053.1095%2027.7266C53.0193%2027.5564%2052.8804%2027.4227%2052.6929%2027.3255C52.5088%2027.2283%2052.2762%2027.1797%2051.995%2027.1797C51.7241%2027.1797%2051.4984%2027.2214%2051.3179%2027.3047C51.1373%2027.3845%2051.0019%2027.4939%2050.9116%2027.6328C50.8213%2027.7682%2050.7762%2027.921%2050.7762%2028.0911C50.7762%2028.2196%2050.8075%2028.3359%2050.87%2028.4401C50.9359%2028.5443%2051.0331%2028.6415%2051.1616%2028.7318C51.2901%2028.822%2051.4481%2028.9071%2051.6356%2028.987C51.8231%2029.0668%2052.0401%2029.145%2052.2866%2029.2214C52.6998%2029.3464%2053.0627%2029.487%2053.3752%2029.6432C53.6911%2029.7995%2053.955%2029.9748%2054.1668%2030.1693C54.3786%2030.3637%2054.5384%2030.5842%2054.646%2030.8307C54.7536%2031.0773%2054.8075%2031.3568%2054.8075%2031.6693C54.8075%2031.9991%2054.7432%2032.2943%2054.6147%2032.5547C54.4863%2032.8151%2054.3005%2033.0356%2054.0575%2033.2161C53.8144%2033.3967%2053.5245%2033.5339%2053.1877%2033.6276C52.8509%2033.7214%2052.4741%2033.7682%2052.0575%2033.7682C51.6825%2033.7682%2051.3127%2033.7196%2050.9481%2033.6224C50.5835%2033.5217%2050.2519%2033.3707%2049.9533%2033.1693C49.6581%2032.9679%2049.422%2032.7109%2049.245%2032.3984C49.0679%2032.0859%2048.9793%2031.7161%2048.9793%2031.2891H50.547C50.547%2031.5252%2050.5835%2031.7248%2050.6564%2031.888C50.7293%2032.0512%2050.8318%2032.1832%2050.9637%2032.2839C51.0991%2032.3845%2051.2588%2032.4575%2051.4429%2032.5026C51.6304%2032.5477%2051.8352%2032.5703%2052.0575%2032.5703C52.3283%2032.5703%2052.5505%2032.5321%2052.7241%2032.4557C52.9012%2032.3793%2053.0314%2032.2734%2053.1147%2032.138C53.2016%2032.0026%2053.245%2031.8498%2053.245%2031.6797ZM57.4325%2026.0807V33.6641H55.87V26.0807H57.4325ZM60.4533%2029.3203V30.5391H57.0054V29.3203H60.4533ZM60.8179%2026.0807V27.3047H57.0054V26.0807H60.8179Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M117.667%2018.3281H83C80.7909%2018.3281%2079%2020.119%2079%2022.3281C79%2024.5373%2080.7909%2026.3281%2083%2026.3281H117.667C119.876%2026.3281%20121.667%2024.5373%20121.667%2022.3281C121.667%2020.119%20119.876%2018.3281%20117.667%2018.3281Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Cpath%20d%3D%22M174.253%2031.6641H85.08C81.7221%2031.6641%2079%2033.4549%2079%2035.6641C79%2037.8732%2081.7221%2039.6641%2085.08%2039.6641H174.253C177.611%2039.6641%20180.333%2037.8732%20180.333%2035.6641C180.333%2033.4549%20177.611%2031.6641%20174.253%2031.6641Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3Cpath%20d%3D%22M51.5%2062.9948C51.5%2057.3799%2056.0518%2052.8281%2061.6667%2052.8281H200.333C205.948%2052.8281%20210.5%2057.3799%20210.5%2062.9948V78.9948C210.5%2084.6097%20205.948%2089.1615%20200.333%2089.1615H61.6667C56.0518%2089.1615%2051.5%2084.6097%2051.5%2078.9948V62.9948Z%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Cpath%20d%3D%22M51.5%2062.9948C51.5%2057.3799%2056.0518%2052.8281%2061.6667%2052.8281H200.333C205.948%2052.8281%20210.5%2057.3799%20210.5%2062.9948V78.9948C210.5%2084.6097%20205.948%2089.1615%20200.333%2089.1615H61.6667C56.0518%2089.1615%2051.5%2084.6097%2051.5%2078.9948V62.9948Z%22%20stroke%3D%22%23F5F5F5%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M75.0001%2084.3307C82.3639%2084.3307%2088.3334%2078.3612%2088.3334%2070.9974C88.3334%2063.6336%2082.3639%2057.6641%2075.0001%2057.6641C67.6363%2057.6641%2061.6667%2063.6336%2061.6667%2070.9974C61.6667%2078.3612%2067.6363%2084.3307%2075.0001%2084.3307Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3Cpath%20d%3D%22M70.995%2074.0807L72.7814%2068.0807H74.521L71.8804%2075.6641H70.7345L70.995%2074.0807ZM69.3491%2068.0807L71.1304%2074.0807L71.4012%2075.6641H70.245L67.62%2068.0807H69.3491ZM81.4012%2068.0807V75.6641H79.8387L76.7918%2070.5807V75.6641H75.2293V68.0807H76.7918L79.8439%2073.1693V68.0807H81.4012Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M137.667%2060.3281H103C100.791%2060.3281%2099%2062.119%2099%2064.3281C99%2066.5373%20100.791%2068.3281%20103%2068.3281H137.667C139.876%2068.3281%20141.667%2066.5373%20141.667%2064.3281C141.667%2062.119%20139.876%2060.3281%20137.667%2060.3281Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Cpath%20d%3D%22M194.253%2073.6641H105.08C101.722%2073.6641%2099%2075.4549%2099%2077.6641C99%2079.8732%20101.722%2081.6641%20105.08%2081.6641H194.253C197.611%2081.6641%20200.333%2079.8732%20200.333%2077.6641C200.333%2075.4549%20197.611%2073.6641%20194.253%2073.6641Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3Cpath%20d%3D%22M21.5%20104.995C21.5%2099.3799%2026.0518%2094.8281%2031.6667%2094.8281H170.333C175.948%2094.8281%20180.5%2099.3799%20180.5%20104.995V120.995C180.5%20126.61%20175.948%20131.161%20170.333%20131.161H31.6667C26.0518%20131.161%2021.5%20126.61%2021.5%20120.995V104.995Z%22%20fill%3D%22%23FAFAFA%22%2F%3E%3Cpath%20d%3D%22M21.5%20104.995C21.5%2099.3799%2026.0518%2094.8281%2031.6667%2094.8281H170.333C175.948%2094.8281%20180.5%2099.3799%20180.5%20104.995V120.995C180.5%20126.61%20175.948%20131.161%20170.333%20131.161H31.6667C26.0518%20131.161%2021.5%20126.61%2021.5%20120.995V104.995Z%22%20stroke%3D%22%23F5F5F5%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M45.0001%20126.331C52.3639%20126.331%2058.3334%20120.361%2058.3334%20112.997C58.3334%20105.634%2052.3639%2099.6641%2045.0001%2099.6641C37.6363%2099.6641%2031.6667%20105.634%2031.6667%20112.997C31.6667%20120.361%2037.6363%20126.331%2045.0001%20126.331Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3Cpath%20d%3D%22M37.7658%20110.081H39.0887L41.0366%20115.648L42.9845%20110.081H44.3075L41.5679%20117.664H40.5054L37.7658%20110.081ZM37.0522%20110.081H38.37L38.6095%20115.508V117.664H37.0522V110.081ZM43.7033%20110.081H45.0262V117.664H43.4637V115.508L43.7033%20110.081ZM50.3439%20115.68C50.3439%20115.544%2050.3231%20115.423%2050.2814%20115.315C50.2432%20115.204%2050.1703%20115.103%2050.0627%20115.013C49.955%20114.919%2049.804%20114.827%2049.6095%20114.737C49.4151%20114.647%2049.1634%20114.553%2048.8543%20114.456C48.5106%20114.345%2048.1842%20114.22%2047.8752%20114.081C47.5696%20113.942%2047.2988%20113.78%2047.0627%20113.596C46.83%20113.409%2046.646%20113.192%2046.5106%20112.945C46.3786%20112.699%2046.3127%20112.412%2046.3127%20112.086C46.3127%20111.77%2046.3821%20111.484%2046.521%20111.227C46.6599%20110.966%2046.8543%20110.744%2047.1043%20110.56C47.3543%20110.372%2047.6495%20110.228%2047.9897%20110.128C48.3335%20110.027%2048.7102%20109.977%2049.12%20109.977C49.679%20109.977%2050.1668%20110.077%2050.5835%20110.279C51.0002%20110.48%2051.3231%20110.756%2051.5522%20111.107C51.7849%20111.457%2051.9012%20111.859%2051.9012%20112.31H50.3491C50.3491%20112.088%2050.3022%20111.893%2050.2085%20111.727C50.1182%20111.556%2049.9793%20111.423%2049.7918%20111.326C49.6078%20111.228%2049.3752%20111.18%2049.0939%20111.18C48.8231%20111.18%2048.5974%20111.221%2048.4168%20111.305C48.2363%20111.385%2048.1009%20111.494%2048.0106%20111.633C47.9203%20111.768%2047.8752%20111.921%2047.8752%20112.091C47.8752%20112.22%2047.9064%20112.336%2047.9689%20112.44C48.0349%20112.544%2048.1321%20112.641%2048.2606%20112.732C48.3891%20112.822%2048.547%20112.907%2048.7345%20112.987C48.922%20113.067%2049.1391%20113.145%2049.3856%20113.221C49.7988%20113.346%2050.1616%20113.487%2050.4741%20113.643C50.7901%20113.799%2051.054%20113.975%2051.2658%20114.169C51.4776%20114.364%2051.6373%20114.584%2051.745%20114.831C51.8526%20115.077%2051.9064%20115.357%2051.9064%20115.669C51.9064%20115.999%2051.8422%20116.294%2051.7137%20116.555C51.5852%20116.815%2051.3995%20117.036%2051.1564%20117.216C50.9134%20117.397%2050.6234%20117.534%2050.2866%20117.628C49.9498%20117.721%2049.5731%20117.768%2049.1564%20117.768C48.7814%20117.768%2048.4116%20117.72%2048.047%20117.622C47.6825%20117.522%2047.3509%20117.371%2047.0522%20117.169C46.7571%20116.968%2046.521%20116.711%2046.3439%20116.398C46.1668%20116.086%2046.0783%20115.716%2046.0783%20115.289H47.646C47.646%20115.525%2047.6825%20115.725%2047.7554%20115.888C47.8283%20116.051%2047.9307%20116.183%2048.0627%20116.284C48.1981%20116.385%2048.3578%20116.457%2048.5418%20116.503C48.7293%20116.548%2048.9342%20116.57%2049.1564%20116.57C49.4272%20116.57%2049.6495%20116.532%2049.8231%20116.456C50.0002%20116.379%2050.1304%20116.273%2050.2137%20116.138C50.3005%20116.003%2050.3439%20115.85%2050.3439%20115.68Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M107.667%20102.328H73C70.7909%20102.328%2069%20104.119%2069%20106.328C69%20108.537%2070.7909%20110.328%2073%20110.328H107.667C109.876%20110.328%20111.667%20108.537%20111.667%20106.328C111.667%20104.119%20109.876%20102.328%20107.667%20102.328Z%22%20fill%3D%22%23DCDCDC%22%2F%3E%3Cpath%20d%3D%22M164.253%20115.664H75.08C71.7221%20115.664%2069%20117.455%2069%20119.664C69%20121.873%2071.7221%20123.664%2075.08%20123.664H164.253C167.611%20123.664%20170.333%20121.873%20170.333%20119.664C170.333%20117.455%20167.611%20115.664%20164.253%20115.664Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3C%2Fsvg%3E",B_="data:image/svg+xml,%3Csvg%20width%3D%22190%22%20height%3D%22123%22%20viewBox%3D%220%200%20190%20123%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2011.9987C10.5%206.3838%2015.0518%201.83203%2020.6667%201.83203H159.333C164.948%201.83203%20169.5%206.3838%20169.5%2011.9987V27.9987C169.5%2033.6136%20164.948%2038.1654%20159.333%2038.1654H20.6667C15.0518%2038.1654%2010.5%2033.6136%2010.5%2027.9987V11.9987Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M10.5%2011.9987C10.5%206.3838%2015.0518%201.83203%2020.6667%201.83203H159.333C164.948%201.83203%20169.5%206.3838%20169.5%2011.9987V27.9987C169.5%2033.6136%20164.948%2038.1654%20159.333%2038.1654H20.6667C15.0518%2038.1654%2010.5%2033.6136%2010.5%2027.9987V11.9987Z%22%20stroke%3D%22%23272727%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M34.0003%2033.3327C41.3641%2033.3327%2047.3337%2027.3631%2047.3337%2019.9993C47.3337%2012.6356%2041.3641%206.66602%2034.0003%206.66602C26.6365%206.66602%2020.667%2012.6356%2020.667%2019.9993C20.667%2027.3631%2026.6365%2033.3327%2034.0003%2033.3327Z%22%20fill%3D%22%23858585%22%2F%3E%3Cpath%20d%3D%22M32.2454%2022.6816C32.2454%2022.5462%2032.2246%2022.4247%2032.1829%2022.3171C32.1447%2022.2059%2032.0718%2022.1053%2031.9642%2022.015C31.8566%2021.9212%2031.7055%2021.8292%2031.5111%2021.7389C31.3166%2021.6487%2031.0649%2021.5549%2030.7559%2021.4577C30.4121%2021.3466%2030.0857%2021.2216%2029.7767%2021.0827C29.4711%2020.9438%2029.2003%2020.7823%2028.9642%2020.5983C28.7316%2020.4108%2028.5475%2020.1938%2028.4121%2019.9473C28.2802%2019.7007%2028.2142%2019.4143%2028.2142%2019.0879C28.2142%2018.7719%2028.2836%2018.4855%2028.4225%2018.2285C28.5614%2017.9681%2028.7559%2017.7459%2029.0059%2017.5618C29.2559%2017.3743%2029.551%2017.2303%2029.8913%2017.1296C30.235%2017.0289%2030.6118%2016.9785%2031.0215%2016.9785C31.5805%2016.9785%2032.0684%2017.0792%2032.485%2017.2806C32.9017%2017.482%2033.2246%2017.758%2033.4538%2018.1087C33.6864%2018.4594%2033.8027%2018.8605%2033.8027%2019.3118H32.2507C32.2507%2019.0896%2032.2038%2018.8952%2032.11%2018.7285C32.0197%2018.5584%2031.8809%2018.4247%2031.6934%2018.3275C31.5093%2018.2303%2031.2767%2018.1816%2030.9954%2018.1816C30.7246%2018.1816%2030.4989%2018.2233%2030.3184%2018.3066C30.1378%2018.3865%2030.0024%2018.4959%2029.9121%2018.6348C29.8218%2018.7702%2029.7767%2018.923%2029.7767%2019.0931C29.7767%2019.2216%2029.8079%2019.3379%2029.8704%2019.4421C29.9364%2019.5462%2030.0336%2019.6434%2030.1621%2019.7337C30.2906%2019.824%2030.4486%2019.9091%2030.6361%2019.9889C30.8236%2020.0688%2031.0406%2020.1469%2031.2871%2020.2233C31.7003%2020.3483%2032.0632%2020.4889%2032.3757%2020.6452C32.6916%2020.8014%2032.9555%2020.9768%2033.1673%2021.1712C33.3791%2021.3657%2033.5388%2021.5862%2033.6465%2021.8327C33.7541%2022.0792%2033.8079%2022.3587%2033.8079%2022.6712C33.8079%2023.0011%2033.7437%2023.2962%2033.6152%2023.5566C33.4868%2023.8171%2033.301%2024.0375%2033.0579%2024.2181C32.8149%2024.3987%2032.525%2024.5358%2032.1882%2024.6296C31.8513%2024.7233%2031.4746%2024.7702%2031.0579%2024.7702C30.6829%2024.7702%2030.3132%2024.7216%2029.9486%2024.6243C29.584%2024.5237%2029.2524%2024.3726%2028.9538%2024.1712C28.6586%2023.9698%2028.4225%2023.7129%2028.2454%2023.4004C28.0684%2023.0879%2027.9798%2022.7181%2027.9798%2022.291H29.5475C29.5475%2022.5271%2029.584%2022.7268%2029.6569%2022.89C29.7298%2023.0532%2029.8322%2023.1851%2029.9642%2023.2858C30.0996%2023.3865%2030.2593%2023.4594%2030.4434%2023.5046C30.6309%2023.5497%2030.8357%2023.5723%2031.0579%2023.5723C31.3288%2023.5723%2031.551%2023.5341%2031.7246%2023.4577C31.9017%2023.3813%2032.0319%2023.2754%2032.1152%2023.14C32.202%2023.0046%2032.2454%2022.8518%2032.2454%2022.6816ZM36.4329%2017.0827V24.666H34.8704V17.0827H36.4329ZM39.4538%2020.3223V21.541H36.0059V20.3223H39.4538ZM39.8184%2017.0827V18.3066H36.0059V17.0827H39.8184Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M96.6667%209.33203H62C59.7909%209.33203%2058%2011.1229%2058%2013.332C58%2015.5412%2059.7909%2017.332%2062%2017.332H96.6667C98.8758%2017.332%20100.667%2015.5412%20100.667%2013.332C100.667%2011.1229%2098.8758%209.33203%2096.6667%209.33203Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Cpath%20d%3D%22M153.253%2022.666H64.08C60.7221%2022.666%2058%2024.4569%2058%2026.666C58%2028.8752%2060.7221%2030.666%2064.08%2030.666H153.253C156.611%2030.666%20159.333%2028.8752%20159.333%2026.666C159.333%2024.4569%20156.611%2022.666%20153.253%2022.666Z%22%20fill%3D%22%23383838%22%2F%3E%3Cpath%20d%3D%22M30.5%2053.9987C30.5%2048.3838%2035.0518%2043.832%2040.6667%2043.832H179.333C184.948%2043.832%20189.5%2048.3838%20189.5%2053.9987V69.9987C189.5%2075.6136%20184.948%2080.1654%20179.333%2080.1654H40.6667C35.0518%2080.1654%2030.5%2075.6136%2030.5%2069.9987V53.9987Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M30.5%2053.9987C30.5%2048.3838%2035.0518%2043.832%2040.6667%2043.832H179.333C184.948%2043.832%20189.5%2048.3838%20189.5%2053.9987V69.9987C189.5%2075.6136%20184.948%2080.1654%20179.333%2080.1654H40.6667C35.0518%2080.1654%2030.5%2075.6136%2030.5%2069.9987V53.9987Z%22%20stroke%3D%22%23272727%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M54.0003%2075.3327C61.3641%2075.3327%2067.3337%2069.3631%2067.3337%2061.9993C67.3337%2054.6356%2061.3641%2048.666%2054.0003%2048.666C46.6365%2048.666%2040.667%2054.6356%2040.667%2061.9993C40.667%2069.3631%2046.6365%2075.3327%2054.0003%2075.3327Z%22%20fill%3D%22%23858585%22%2F%3E%3Cpath%20d%3D%22M49.9954%2065.0827L51.7819%2059.0827H53.5215L50.8809%2066.666H49.735L49.9954%2065.0827ZM48.3496%2059.0827L50.1309%2065.0827L50.4017%2066.666H49.2454L46.6204%2059.0827H48.3496ZM60.4017%2059.0827V66.666H58.8392L55.7923%2061.5827V66.666H54.2298V59.0827H55.7923L58.8444%2064.1712V59.0827H60.4017Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M116.667%2051.332H82C79.7909%2051.332%2078%2053.1229%2078%2055.332C78%2057.5412%2079.7909%2059.332%2082%2059.332H116.667C118.876%2059.332%20120.667%2057.5412%20120.667%2055.332C120.667%2053.1229%20118.876%2051.332%20116.667%2051.332Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Cpath%20d%3D%22M173.253%2064.666H84.08C80.7221%2064.666%2078%2066.4569%2078%2068.666C78%2070.8752%2080.7221%2072.666%2084.08%2072.666H173.253C176.611%2072.666%20179.333%2070.8752%20179.333%2068.666C179.333%2066.4569%20176.611%2064.666%20173.253%2064.666Z%22%20fill%3D%22%23383838%22%2F%3E%3Cpath%20d%3D%22M0.5%2095.9987C0.5%2090.3838%205.05177%2085.832%2010.6667%2085.832H149.333C154.948%2085.832%20159.5%2090.3838%20159.5%2095.9987V111.999C159.5%20117.614%20154.948%20122.165%20149.333%20122.165H10.6667C5.05178%20122.165%200.5%20117.614%200.5%20111.999V95.9987Z%22%20fill%3D%22%23141414%22%2F%3E%3Cpath%20d%3D%22M0.5%2095.9987C0.5%2090.3838%205.05177%2085.832%2010.6667%2085.832H149.333C154.948%2085.832%20159.5%2090.3838%20159.5%2095.9987V111.999C159.5%20117.614%20154.948%20122.165%20149.333%20122.165H10.6667C5.05178%20122.165%200.5%20117.614%200.5%20111.999V95.9987Z%22%20stroke%3D%22%23272727%22%2F%3E%3Cpath%20opacity%3D%220.6%22%20d%3D%22M24.0003%20117.333C31.3641%20117.333%2037.3337%20111.363%2037.3337%20103.999C37.3337%2096.6356%2031.3641%2090.666%2024.0003%2090.666C16.6365%2090.666%2010.667%2096.6356%2010.667%20103.999C10.667%20111.363%2016.6365%20117.333%2024.0003%20117.333Z%22%20fill%3D%22%23858585%22%2F%3E%3Cpath%20d%3D%22M16.7663%20101.083H18.0892L20.0371%20106.65L21.985%20101.083H23.3079L20.5684%20108.666H19.5059L16.7663%20101.083ZM16.0527%20101.083H17.3704L17.61%20106.51V108.666H16.0527V101.083ZM22.7038%20101.083H24.0267V108.666H22.4642V106.51L22.7038%20101.083ZM29.3444%20106.682C29.3444%20106.546%2029.3236%20106.425%2029.2819%20106.317C29.2437%20106.206%2029.1708%20106.105%2029.0632%20106.015C28.9555%20105.921%2028.8045%20105.829%2028.61%20105.739C28.4156%20105.649%2028.1638%20105.555%2027.8548%20105.458C27.5111%20105.347%2027.1847%20105.222%2026.8757%20105.083C26.5701%20104.944%2026.2993%20104.782%2026.0632%20104.598C25.8305%20104.411%2025.6465%20104.194%2025.5111%20103.947C25.3791%20103.701%2025.3132%20103.414%2025.3132%20103.088C25.3132%20102.772%2025.3826%20102.485%2025.5215%20102.229C25.6604%20101.968%2025.8548%20101.746%2026.1048%20101.562C26.3548%20101.374%2026.65%20101.23%2026.9902%20101.13C27.334%20101.029%2027.7107%20100.979%2028.1204%20100.979C28.6795%20100.979%2029.1673%20101.079%2029.584%20101.281C30.0007%20101.482%2030.3236%20101.758%2030.5527%20102.109C30.7854%20102.459%2030.9017%20102.86%2030.9017%20103.312H29.3496C29.3496%20103.09%2029.3027%20102.895%2029.209%20102.729C29.1187%20102.558%2028.9798%20102.425%2028.7923%20102.327C28.6083%20102.23%2028.3757%20102.182%2028.0944%20102.182C27.8236%20102.182%2027.5979%20102.223%2027.4173%20102.307C27.2368%20102.387%2027.1013%20102.496%2027.0111%20102.635C26.9208%20102.77%2026.8757%20102.923%2026.8757%20103.093C26.8757%20103.222%2026.9069%20103.338%2026.9694%20103.442C27.0354%20103.546%2027.1326%20103.643%2027.2611%20103.734C27.3895%20103.824%2027.5475%20103.909%2027.735%20103.989C27.9225%20104.069%2028.1395%20104.147%2028.3861%20104.223C28.7993%20104.348%2029.1621%20104.489%2029.4746%20104.645C29.7906%20104.801%2030.0545%20104.977%2030.2663%20105.171C30.4781%20105.366%2030.6378%20105.586%2030.7454%20105.833C30.8531%20106.079%2030.9069%20106.359%2030.9069%20106.671C30.9069%20107.001%2030.8427%20107.296%2030.7142%20107.557C30.5857%20107.817%2030.4%20108.038%2030.1569%20108.218C29.9138%20108.399%2029.6239%20108.536%2029.2871%20108.63C28.9503%20108.723%2028.5736%20108.77%2028.1569%20108.77C27.7819%20108.77%2027.4121%20108.722%2027.0475%20108.624C26.6829%20108.524%2026.3513%20108.373%2026.0527%20108.171C25.7576%20107.97%2025.5215%20107.713%2025.3444%20107.4C25.1673%20107.088%2025.0788%20106.718%2025.0788%20106.291H26.6465C26.6465%20106.527%2026.6829%20106.727%2026.7559%20106.89C26.8288%20107.053%2026.9312%20107.185%2027.0632%20107.286C27.1986%20107.387%2027.3583%20107.459%2027.5423%20107.505C27.7298%20107.55%2027.9347%20107.572%2028.1569%20107.572C28.4277%20107.572%2028.65%20107.534%2028.8236%20107.458C29.0007%20107.381%2029.1309%20107.275%2029.2142%20107.14C29.301%20107.005%2029.3444%20106.852%2029.3444%20106.682Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M86.6667%2093.332H52C49.7909%2093.332%2048%2095.1229%2048%2097.332C48%2099.5412%2049.7909%20101.332%2052%20101.332H86.6667C88.8758%20101.332%2090.6667%2099.5412%2090.6667%2097.332C90.6667%2095.1229%2088.8758%2093.332%2086.6667%2093.332Z%22%20fill%3D%22%234C4C4C%22%2F%3E%3Cpath%20d%3D%22M143.253%20106.666H54.08C50.7221%20106.666%2048%20108.457%2048%20110.666C48%20112.875%2050.7221%20114.666%2054.08%20114.666H143.253C146.611%20114.666%20149.333%20112.875%20149.333%20110.666C149.333%20108.457%20146.611%20106.666%20143.253%20106.666Z%22%20fill%3D%22%23383838%22%2F%3E%3C%2Fsvg%3E";const G_=e=>{const{title:t=V("conversation_delete_title"),messageText:n=V("conversation_delete_subtitle"),cancelButtonText:o=V("conversation_delete_confirm_no"),confirmButtonText:i=V("conversation_delete_confirm_yes"),onSubmitClick:s,onCancelClick:c}=e,[l,u]=a.useState(!1),[d,p]=a.useState(!1);return r.jsxs("div",{className:"cometchat",style:{width:"fit-content",height:"fit-content"},children:[d?r.jsx("div",{className:"cometchat-dialog-error-view cometchat-confirm-dialog-error-view",children:V("conversation_delete_error")}):null,r.jsxs("div",{className:"cometchat-confirm-dialog",children:[r.jsx("div",{className:"cometchat-confirm-dialog__icon-wrapper",children:r.jsx("div",{className:"cometchat-confirm-dialog__icon-wrapper-icon"})}),r.jsxs("div",{className:"cometchat-confirm-dialog__content",children:[r.jsx("div",{className:"cometchat-confirm-dialog__content-title",children:t}),r.jsx("div",{className:"cometchat-confirm-dialog__content-description\n    ",children:n})]}),r.jsxs("div",{className:"cometchat-confirm-dialog__button-group",children:[r.jsx("div",{className:"cometchat-confirm-dialog__button-group-cancel",children:r.jsx(rn,{onClick:c,text:o})}),r.jsx("div",{className:"cometchat-confirm-dialog__button-group-submit",children:r.jsx(rn,{isLoading:l,onClick:()=>{s&&(u(!0),p(!1),s().then(()=>{}).then(()=>{u(!1),p(!1),c&&c()}).catch(e=>{p(!0),u(!1)}))},text:i})})]})]})]})};function V_(e){return e instanceof o.CometChat.TextMessage||e instanceof o.CometChat.MediaMessage||e instanceof o.CometChat.CustomMessage||e instanceof o.CometChat.InteractiveMessage||e instanceof o.CometChat.Action||e instanceof o.CometChat.Call}function H_(e,n){let r=e;const{type:a}=n;switch(a){case"appendConversations":if(n.conversations.length>0){let t=[];n.removeOldConversation?(e.conversationList=[],t=n.conversations):t=[...e.conversationList,...n.conversations.filter(t=>!e.conversationList.some(e=>e.getConversationId()===t.getConversationId()))],r={...e,conversationList:t}}break;case"setConversationList":{const{typingIndicatorMap:t}=e,{conversationList:a}=n,i=new Map;for(let e=0;e<a.length;e++){const n=a[e].getConversationWith(),r=n instanceof o.CometChat.User?n?.getUid():n.getGuid();t.has(r)&&i.set(r,t.get(r))}r={...e,conversationList:a,typingIndicatorMap:i};break}case"setFetchState":r={...e,fetchState:n.fetchState};break;case"setConversationToBeDeleted":r={...e,conversationToBeDeleted:n.conversation};break;case"removeConversation":{const{typingIndicatorMap:a,conversationList:i}=e,s=n.conversation.getConversationId(),c=i.findIndex(e=>e.getConversationId()===s);if(c>-1){const n=i[c].getConversationWith(),s=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let l;a.has(s)?(l=new Map(a),l.delete(s)):l=a;const u=e.conversationList.filter((e,t)=>t!==c);r={...e,conversationList:u,typingIndicatorMap:l,fetchState:0==u.length?t.DGz.empty:t.DGz.loaded}}break}case"updateConversationWithUser":{const{user:t}=n,{conversationList:a}=e,i=t.getUid(),s=a.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.User&&t?.getUid()===i});if(s>-1){const n=a.map((e,n)=>{if(n===s){const n=ht.clone(e),r=e.getConversationWith();return!t.getHasBlockedMe()&&r.getHasBlockedMe()&&t.setHasBlockedMe(!0),!t.getBlockedByMe()&&r.getBlockedByMe()&&t.setBlockedByMe(!0),n.setConversationWith(t),n}return e});r={...e,conversationList:n}}break}case"addConversationOfTheGroupAtTheTop":{const{conversation:t}=n,{conversationList:a}=e;t&&(r={...e,conversationList:[t,...a]});break}case"fromUpdateConversationListFn":{const{conversation:t}=n,a=t.getConversationId(),o=e.conversationList.filter(e=>e.getConversationId()!==a);r={...e,conversationList:[t,...o]};break}case"setLastMessageReadOrDeliveredAt":{const{conversationList:t}=e,{messageReceipt:a,updateReadAt:i}=n;let s="";a&&"function"==typeof a.getMessageId&&(s=a.getMessageId());const c=t.findIndex(e=>{if(e.getConversationWith()instanceof o.CometChat.User){const t=e.getLastMessage();if(V_(t)&&String(t.getId())===s)return!i||!t.getReadAt()}return!1});c>-1&&(r={...e,conversationList:t.map((e,t)=>{if(t===c){const t=ht.clone(e),n=t.getLastMessage();return V_(n)&&(i?(n.setReadAt(a?.getReadAt()),t.setUnreadMessageCount(0)):n.setDeliveredAt(a?.getDeliveredAt())),t}return e})});break}case"addTypingIndicator":{const{typingIndicator:t}=n,a=t.getSender()?.getUid(),i=t.getReceiverType()===pt.MessageReceiverType.group,s=t.getReceiverId();let c;const{conversationList:l,typingIndicatorMap:u}=e;for(let e=0;e<l.length;e++){const t=l[e].getConversationWith();if(i){if(t instanceof o.CometChat.Group&&t.getGuid()===s){c=t.getGuid();break}}else if(t instanceof o.CometChat.User&&t?.getUid()===a&&!t.getBlockedByMe()&&!t.getHasBlockedMe()){c=t?.getUid();break}}if(void 0!==c){const n=new Map(u);n.set(c,t),r={...e,typingIndicatorMap:n}}break}case"removeTypingIndicator":{const{typingIndicatorMap:t}=e,{typingIndicator:a}=n,o=a.getSender()?.getUid(),i=a.getReceiverId();let s;if(a.getReceiverType()===pt.MessageReceiverType.user?t.has(o)&&(s=o):t.get(i)?.getSender()?.getUid()===o&&(s=i),void 0!==s){const n=new Map(t);n.delete(s),r={...e,typingIndicatorMap:n}}break}case"updateConversationLastMessage":{const{message:t}=n,a=t?.getId(),{conversationList:o}=e,i=o.findIndex(e=>{const t=e.getLastMessage();return V_(t)&&t.getId()===a});i>-1&&(r={...e,conversationList:o.map((e,n)=>{if(n===i){const n=ht.clone(e);return n.setLastMessage(t),n}return e})});break}case"updateConversationLastMessageAndGroupAndPlaceAtTheTop":{const{conversationList:t}=e,{group:a,message:o}=n,i=o.getConversationId();if(!j_.shouldLastMessageAndUnreadCountBeUpdated(o))return e;const s=t.findIndex(e=>e.getConversationId()===i);if(s>-1){const n=ht.clone(t[s]);n.setConversationWith(a),n.setLastMessage(o),r={...e,conversationList:[n,...t.filter((e,t)=>t!==s)]}}break}case"removeConversationOfTheGroup":{const{conversationList:t,typingIndicatorMap:a}=e,i=n.group.getGuid(),s=t.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.Group&&t.getGuid()===i});if(s>-1){const n=t[s].getConversationWith(),i=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let c;a.has(i)?(c=new Map(a),c.delete(i)):c=a;const l=t.filter((e,t)=>t!==s);r={...e,conversationList:l,typingIndicatorMap:c}}break}case"removeConversationOfTheUser":{const{conversationList:t,typingIndicatorMap:a}=e,i=n.user.getUid(),s=t.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.User&&t?.getUid()===i});if(s>-1){const n=t[s].getConversationWith(),i=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let c;a.has(i)?(c=new Map(a),c.delete(i)):c=a;const l=t.filter((e,t)=>t!==s);r={...e,conversationList:l,typingIndicatorMap:c}}break}case"updateConversationLastMessageResetUnreadCountAndPlaceAtTheTop":{const{conversationList:t}=e,{message:a,conversation:o}=n,i=a.getConversationId();if(!j_.shouldLastMessageAndUnreadCountBeUpdated(a))return e;const s=t.findIndex(e=>e.getConversationId()===i);if(s>-1){const n=ht.clone(t[s]);n.setLastMessage(a),n.setUnreadMessageCount(0);const o=t.filter((e,t)=>t!==s);r={...e,conversationList:[n,...o]}}else{o.setUnreadMessageCount(0);const n=[o,...t];r={...e,conversationList:n}}break}case"resetUnreadCountAndSetReadAtIfLastMessage":{const{conversationList:t}=e,{message:a}=n,o=a.getReadAt()||Date.now(),i=t.findIndex(e=>e.getConversationId()===a.getConversationId());if(i>-1){let n=t[i].getLastMessage();r={...e,conversationList:t.map((e,t)=>{if(t===i&&n?.getId()==a?.getId()){const t=ht.clone(e);return t.setUnreadMessageCount(0),t.getLastMessage()&&t.getLastMessage().setReadAt(o),t}return e})}}break}case"resetUnreadCount":{const{conversationList:t}=e,{conversation:a}=n,o=t.findIndex(e=>e.getConversationId()===a.getConversationId());o>-1&&(r={...e,conversationList:t.map((e,t)=>{if(t===o){const t=ht.clone(e);return t.setUnreadMessageCount(0),t}return e})});break}case"updateConversationLastMessageAndPlaceAtTheTop":{const{message:t}=n,a=t?.getId(),{conversationList:o}=e;if(!j_.shouldLastMessageAndUnreadCountBeUpdated(t))return e;const i=o.findIndex(e=>{const t=e.getLastMessage();return V_(t)&&t.getId()===a});if(i>-1){const n=ht.clone(o[i]);n.setLastMessage(t),r={...e,conversationList:[n,...o.filter((e,t)=>t!==i)]}}break}case"setLoggedInUser":r={...e,loggedInUser:n.loggedInUser};break;case"setIsFirstReload":r={...e,isFirstReload:n.isFirstReload};break;case"updateConversation":{const{conversation:t}=n,{conversationList:a}=e,o=a.findIndex(e=>e.getConversationId()===t.getConversationId());o>-1&&(r={...e,conversationList:a.map((e,n)=>n===o?t:e)});break}}return r}class z_{constructor(e){const{searchText:t,groupsRequestBuilder:n,searchRequestBuilder:r,groupsSearchText:a}=e;let o=n||this.getDefaultRequestBuilder();t&&r?(o=r,o.setSearchKeyword(t)):t&&!r&&n?(o=n,o.setSearchKeyword(t)):!t&&n&&r?(o=n,o.setSearchKeyword(a.current)):t||!n||r?t||n||!r?o.setSearchKeyword(t):(o=this.getDefaultRequestBuilder(),o.setSearchKeyword(a.current)):(o=n,o.setSearchKeyword(a.current)),this.groupsRequest=o.build()}fetchNext(){return this.groupsRequest.fetchNext()}getDefaultRequestBuilder(){return(new o.CometChat.GroupsRequestBuilder).setLimit(z_.defaultLimit)}static async getLoggedInUser(){return void 0===this.loggedInUser&&(this.loggedInUser=await dt.getLoggedInUser()),this.loggedInUser}static createGroupListener(e){return new o.CometChat.GroupListener({onGroupMemberJoined:async(t,n,r)=>{const a=await z_.getLoggedInUser(),o=r.getMembersCount();n.getUid()===a?.getUid()&&r.setHasJoined(!0),e({type:"updateGroupForSDKEvents",group:r,hasJoined:!0,newCount:o})},onGroupMemberLeft:async(t,n,r)=>{const a=r.getMembersCount(),o=await z_.getLoggedInUser();n.getUid()===o?.getUid()&&r.setHasJoined(!1),e({type:"updateGroupForSDKEvents",group:r,hasJoined:!1,newCount:a})},onMemberAddedToGroup:async(t,n,r,a)=>{const o=a.getMembersCount(),i=await z_.getLoggedInUser();n.getUid()===i?.getUid()&&a.setHasJoined(!0),e({type:"updateGroupForSDKEvents",group:a,hasJoined:!0,newCount:o,addGroup:!0})},onGroupMemberKicked:async(t,n,r,a)=>{const o=a.getMembersCount(),i=await z_.getLoggedInUser();n.getUid()===i?.getUid()?(a.setHasJoined(!1),e({type:"updateGroupForSDKEvents",group:a,hasJoined:!1,newCount:o})):e({type:"updateGroupForSDKEvents",group:a,newCount:o})},onGroupMemberBanned:async(t,n,r,a)=>{const o=a.getMembersCount(),i=await z_.getLoggedInUser();n.getUid()===i?.getUid()?e({type:"removeGroup",guid:a.getGuid()}):e({type:"updateGroupForSDKEvents",group:a,newCount:o})},onGroupMemberScopeChanged:async(t,n,r,a,o)=>{const i=await z_.getLoggedInUser(),s=o.getMembersCount();n.getUid()===i?.getUid()&&o.setScope(r),e({type:"updateGroupForSDKEvents",group:o,newScope:r,newCount:s})}})}static attachListeners(e){const t="GroupsList_"+String(Date.now());return o.CometChat.addGroupListener(t,z_.createGroupListener(e)),()=>o.CometChat.removeGroupListener(t)}static attachConnestionListener(e){const t="GroupsList_connection_"+String(Date.now());return o.CometChat.addConnectionListener(t,new o.CometChat.ConnectionListener({onConnected:()=>{console.log("ConnectionListener =>connected"),e&&e()},onDisconnected:()=>{console.log("ConnectionListener => On Disconnected")}})),()=>o.CometChat.removeConnectionListener(t)}}z_.defaultLimit=30;var Y_=(e,t)=>{let n=e;const{type:r}=t;switch(r){case"appendGroups":if(t.groups.length>0){let r=[];t.removeOldGroups?(e.groupList=[],r=t.groups):r=[...e.groupList,...t.groups];const a=Array.from(new Map(r.map(e=>[e.getGuid(),e])).values());n={...e,groupList:a}}else n={...e,groupList:Array.from(new Map([...e.groupList,...t.groups].map(e=>[e.getGuid(),e])).values())};break;case"setGroupList":n={...e,groupList:t.groupList};break;case"setFetchState":n={...e,fetchState:t.fetchState};break;case"updateGroup":{const{groupList:r}=e,{group:a}=t,o=a.getGuid(),i=r.findIndex(e=>e.getGuid()===o);i>-1&&(n={...e,groupList:r.map((e,t)=>t===i?a:e)});break}case"removeGroup":{const{groupList:r}=e,a=t.guid,o=r.findIndex(e=>e.getGuid()===a);o>-1&&(n={...e,groupList:r.filter((e,t)=>t!==o)});break}case"prependGroup":n={...e,groupList:[t.group,...e.groupList]};break;case"setSearchText":n={...e,searchText:t.searchText};break;case"setIsFirstReload":n={...e,isFirstReload:t.isFirstReload};break;case"updateGroupForSDKEvents":{const{groupList:r,searchText:a}=e,{group:o,hasJoined:i,newScope:s,newCount:c,addGroup:l}=t,u=o.getGuid(),d=r.findIndex(e=>e.getGuid()===u);if(l&&a&&a.length>0)return e;if(d>-1){const t=r[d];void 0!==i&&t.setHasJoined(i),void 0!==s&&t.setScope(s),void 0!==c&&t.setMembersCount(c),n={...e,groupList:r.map((e,n)=>n===d?t:e)}}else l&&(void 0!==i&&o.setHasJoined(i),void 0!==s&&o.setScope(s),void 0!==c&&o.setMembersCount(c),n={...e,groupList:[o,...r]});break}}return n};function q_(e){const{dispatch:n,mySetAddToMsgInputText:r,errorHandler:i,pasteHtmlAtCaret:s,renderSanitizedHtml:c,propsText:l,text:u,textFormatterArray:d,currentSelectionForRegex:p,currentSelectionForRegexRange:h,mentionsTextFormatterInstanceRef:m,setTextFormatters:g,textFormatters:f,emptyInputField:_,createPollViewRef:b,CometChatUIKitLoginListener:v,group:y,user:E,userPropRef:C,textInputRef:S,groupPropRef:w,setShowListForMentions:k,setSelection:x,searchMentions:T,mentionsFormatterInstanceId:A,setUsersRequestBuilder:R,setGroupMembersRequestBuilder:I,setUserMemberListType:O,getComposerId:N,isPartOfCurrentChatForUIEvent:M,parentMessageIdPropRef:D,getCurrentInput:L,textMessageToEdit:P,getCurrentWindow:j,getCurrentDocument:U,onTextChange:F,messageToReplyRef:B,mentionsUsersRequestBuilder:G,mentionsGroupMembersRequestBuilder:V}=e,H=a.useRef(!1),z=a.useRef(!1);function Y(e){let t=v.getLoggedInUser();P&&P.getId()==e.getId()&&e.getSender().getUid()==t?.getUid()&&(n({type:"setTextMessageToEdit",textMessageToEdit:null}),n({type:"setText",text:""}),_(),r(""))}a.useEffect(()=>{const e=Qf.ccMessageDeleted.subscribe(e=>{Y(e)}),t=Qf.onMessageDeleted.subscribe(e=>{Y(e)});return()=>{e?.unsubscribe(),t?.unsubscribe()}},[E,y,P]),a.useEffect(()=>{try{const e=Qf.ccMessageEdited.subscribe(e=>{let r=e?.message?.getParentMessageId();if((D.current&&r&&r===D.current||!D.current&&!r)&&M(e.message)){if(e.status===t.qpt.inprogress&&e.message instanceof o.CometChat.TextMessage&&(H.current=!0,n({type:"setMessageToReply",messageToReply:null}),n({type:"setTextMessageToEdit",textMessageToEdit:e.message}),n({type:"setText",text:e.message.getData().text}),_(),c)){const n=L();if(n){n.focus();const e=j(),t=e?.getSelection();if(t){const e=U()?.createRange();e&&(e.selectNodeContents(n),e.collapse(!0),t.removeAllRanges(),t.addRange(e)),x(t)}}let r=e.message.getText();if(d&&d.length)for(let n=0;n<d.length;n++){if(d[n]instanceof En&&(d[n].setCometChatUserGroupMembers(e.message.getMentionedUsers()),!e.message.getDeletedAt())){const t=/<@all:(.*?)>/g,r=e.message.getText(),a=Array.from(r.matchAll(t)).map(e=>e[1]);d[n].setCometChatMentionedChannels(a)}const a=L();a&&d[n].setInputElementReference(a),d[n].setCaretPositionAndRange(p.current,h.current),r=d[n].getFormattedText(r,{mentionsTargetElement:t.rnx.textinput})}c(r)}e.status===t.qpt.success&&e.message instanceof o.CometChat.TextMessage||e.status===t.qpt.cancelled?(n({type:"setTextMessageToEdit",textMessageToEdit:null}),_(),H.current=!1):H.current=!0}}),r=yn.ccComposeMessage.subscribe(e=>{n({type:"setText",text:""}),_(),s(e),F&&F(e),n({type:"setText",text:e})});m.current.setId(A);const a=yn.ccShowMentionsCountWarning.subscribe(e=>{if(e.id===A){if(e.showWarning)return void n({type:"setShowMentionsCountWarning",showMentionsCountWarning:!0});n({type:"setShowMentionsCountWarning",showMentionsCountWarning:!1})}});return()=>{e.unsubscribe(),r.unsubscribe(),a.unsubscribe()}}catch(e){i(e,"useEffect")}},[r,n,S,A,u,d]),a.useEffect(()=>{const e=Qf.ccReplyToMessage.subscribe(e=>{let r=e?.message?.getParentMessageId();if(D.current&&r&&r===D.current||!D.current&&!r){if(e.status===t.qpt.inprogress&&e.message&&(n({type:"setTextMessageToEdit",textMessageToEdit:null}),n({type:"setMessageToReply",messageToReply:e.message}),s)){const e=j()?.getSelection();x(e),s("")}e.status===t.qpt.success&&e.message||e.status===t.qpt.cancelled?(n({type:"setMessageToReply",messageToReply:null}),B.current=null,H.current=!1):H.current=!0}});return()=>{e.unsubscribe()}},[]),a.useEffect(()=>{try{l&&(E?.getUid()||y?.getGuid())&&n({type:"setAddToMsgInputText",addToMsgInputText:l})}catch(e){i(e,"setAddToMsgInputText")}},[E,y,l,n]),a.useEffect(()=>{try{const e=yn.ccShowModal.subscribe(e=>{const{composerId:t}=e,r=D?.current,a=C.current?.getUid(),o=w.current?.getGuid();t?(t.parentMessageId&&r&&t.parentMessageId===r||!r&&(t.user===a||t.group===o)||!t.parentMessageId&&!t.user&&!t.group)&&(n({type:"setShowPoll",showPoll:!0}),b.current=e.child):(n({type:"setShowPoll",showPoll:!0}),b.current=e.child)}),t=yn.ccHideModal.subscribe(()=>{n({type:"setShowPoll",showPoll:!1}),b.current=null});return()=>{e.unsubscribe(),t.unsubscribe()}}catch(e){i(e,"ccShowModal")}},[b,n]),a.useEffect(()=>{function e(){try{let e=j()?.getSelection();x(e)}catch(e){i(e,"triggerSelection")}}try{const t=L(),r=e=>{e.preventDefault();let t=e.clipboardData.getData("text/plain");const r=ht.sanitizeText(t);r&&(s(r),F&&F(t),n({type:"setText",text:t}))};if(t.addEventListener("paste",r),U()?.addEventListener("selectionchange",e),wt()||z.current||(t?.focus(),z.current=!0),d.length){let e=d.find(e=>e instanceof En);e&&(m.current=e),m.current.setLoggedInUser(v.getLoggedInUser()),void 0===m.current.getKeyDownCallBack()&&(m.current.setKeyDownCallBack(T),m.current.setKeyUpCallBack(T)),g(e=>{const t=m.current,n=e.some(e=>e instanceof Cn);let r=e;if(r.includes(t)||(r=[...r,t]),!n){const e=Gf.getDataSource().getUrlTextFormatter({});r=[...r,e]}return r===e?e:r})}else m.current.setLoggedInUser(v.getLoggedInUser()),void 0===m.current.getKeyDownCallBack()&&(m.current.setKeyDownCallBack(T),m.current.setKeyUpCallBack(T)),g(e=>{const t=m.current,n=e.some(e=>e instanceof Cn);let r=e;if(r.includes(t)||(r=[...r,t]),!n){const e=Gf.getDataSource().getUrlTextFormatter({});r=[...r,e]}return r===e?e:r});return j()?.getSelection()&&x(j()?.getSelection()),()=>{t.removeEventListener("paste",r),U()?.removeEventListener("selectionchange",e)}}catch(e){i(e,"preventPaste")}},[g,f]),a.useEffect(()=>{try{(C.current&&E&&C.current.getUid()!==E.getUid()||w.current&&y&&w?.current.getGuid()!==y.getGuid())&&(n({type:"setText",text:""}),r("")),C.current&&k(E&&C.current.getUid()!==E.getUid()),w.current&&k(y&&w?.current.getGuid()!==y.getGuid());for(let e=0;e<d.length;e++)d[e].setComposerConfig(E,y,N())}catch(e){i(e,"useEffect")}},[E,y,C,w,n,S,r]),a.useEffect(()=>{try{S.current&&(n({type:"setTextMessageToEdit",textMessageToEdit:null}),n({type:"setText",text:""}),wt()?L().textContent="":_(),r(""),H.current=!1)}catch(e){i(e,"useEffect")}},[E,y,D]),a.useEffect(()=>{try{if(s&&l&&s(l),y){const e=t.Okh.groupmembers;O(e);const n=V||new o.CometChat.GroupMembersRequestBuilder(y.getGuid()).setLimit(15);I(n)}if(E){const e=t.Okh.users;O(e);const n=G||(new o.CometChat.UsersRequestBuilder).setLimit(15);R(n)}}catch(e){i(e,"useEffect")}},[E,y,G,V])}var K_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.9995%2013.5332C11.2716%2013.5332%2010.6591%2013.2719%2010.162%2012.7492C9.6648%2012.2266%209.41622%2011.5935%209.41622%2010.85V4.73325C9.41622%204.02042%209.66722%203.41441%2010.1692%202.91525C10.6714%202.41625%2011.2811%202.16675%2011.9985%202.16675C12.7158%202.16675%2013.3259%202.41625%2013.8287%202.91525C14.3314%203.41441%2014.5827%204.02042%2014.5827%204.73325V10.85C14.5827%2011.5935%2014.3341%2012.2266%2013.837%2012.7492C13.3398%2013.2719%2012.7273%2013.5332%2011.9995%2013.5332ZM11.212%2020.0707V17.577C9.64813%2017.4007%208.30022%2016.766%207.16822%2015.673C6.03622%2014.5798%205.3758%2013.2416%205.18697%2011.6582C5.15363%2011.4349%205.21055%2011.2444%205.35772%2011.0867C5.50488%2010.9289%205.6943%2010.85%205.92597%2010.85C6.14713%2010.85%206.33413%2010.9271%206.48697%2011.0812C6.6398%2011.2354%206.73705%2011.4264%206.77872%2011.6542C6.98139%2012.9459%207.5818%2014.0014%208.57997%2014.8207C9.57813%2015.6402%2010.7174%2016.05%2011.9977%2016.05C13.2961%2016.05%2014.4404%2015.6382%2015.4307%2014.8145C16.4211%2013.991%2017.0204%2012.9376%2017.2287%2011.6542C17.2656%2011.4272%2017.3611%2011.2364%2017.5155%2011.0817C17.6698%2010.9272%2017.8592%2010.85%2018.0837%2010.85C18.3081%2010.85%2018.4939%2010.9289%2018.6412%2011.0867C18.7884%2011.2444%2018.8481%2011.4349%2018.8202%2011.6582C18.6259%2013.2222%2017.9672%2014.5552%2016.8442%2015.6572C15.7214%2016.7592%2014.3717%2017.3999%2012.7952%2017.5792V20.0707C12.7952%2020.2931%2012.7179%2020.4813%2012.5632%2020.6355C12.4086%2020.7897%2012.2196%2020.8667%2011.9965%2020.8667C11.7735%2020.8667%2011.587%2020.7897%2011.437%2020.6355C11.287%2020.4813%2011.212%2020.2931%2011.212%2020.0707ZM11.9995%2011.95C12.2925%2011.95%2012.5324%2011.8431%2012.7192%2011.6292C12.9061%2011.4152%2012.9995%2011.1555%2012.9995%2010.85V4.7405C12.9995%204.46066%2012.9038%204.22566%2012.7125%204.0355C12.521%203.84516%2012.2837%203.75%2012.0007%203.75C11.7177%203.75%2011.4801%203.84425%2011.288%204.03275C11.0956%204.22125%2010.9995%204.45475%2010.9995%204.73325V10.8477C10.9995%2011.1547%2011.0929%2011.4152%2011.2797%2011.6292C11.4666%2011.8431%2011.7065%2011.95%2011.9995%2011.95Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",W_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8304%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8304%29%22%3E%3Cpath%20d%3D%22M11.9996%2013.5C11.301%2013.5%2010.7096%2013.258%2010.2256%2012.774C9.74162%2012.29%209.49962%2011.6987%209.49962%2011V5C9.49962%204.30133%209.74162%203.71%2010.2256%203.226C10.7096%202.742%2011.301%202.5%2011.9996%202.5C12.6983%202.5%2013.2896%202.742%2013.7736%203.226C14.2576%203.71%2014.4996%204.30133%2014.4996%205V11C14.4996%2011.6987%2014.2576%2012.29%2013.7736%2012.774C13.2896%2013.258%2012.6983%2013.5%2011.9996%2013.5ZM11.2496%2020V17.4538C9.76112%2017.2819%208.48545%2016.6704%207.42262%2015.6193C6.35995%2014.5679%205.73753%2013.2865%205.55537%2011.775C5.52853%2011.5622%205.58428%2011.3798%205.72262%2011.228C5.86112%2011.076%206.03678%2011%206.24962%2011C6.46245%2011%206.64062%2011.0734%206.78412%2011.2203C6.92778%2011.3669%207.02337%2011.5467%207.07087%2011.7595C7.25287%2012.984%207.81278%2013.9968%208.75062%2014.798C9.68845%2015.5993%2010.7715%2016%2011.9996%2016C13.2445%2016%2014.3316%2015.5952%2015.2611%2014.7855C16.1906%2013.976%2016.7464%2012.9673%2016.9284%2011.7595C16.9759%2011.5467%2017.0715%2011.3669%2017.2151%2011.2203C17.3586%2011.0734%2017.5368%2011%2017.7496%2011C17.9625%2011%2018.1381%2011.076%2018.2766%2011.228C18.415%2011.3798%2018.4707%2011.5622%2018.4439%2011.775C18.2617%2013.2532%2017.6435%2014.5247%2016.5891%2015.5895C15.5346%2016.6542%2014.2548%2017.2756%2012.7496%2017.4538V20C12.7496%2020.2128%2012.6778%2020.391%2012.5341%2020.5345C12.3906%2020.6782%2012.2125%2020.75%2011.9996%2020.75C11.7868%2020.75%2011.6086%2020.6782%2011.4651%2020.5345C11.3215%2020.391%2011.2496%2020.2128%2011.2496%2020Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",J_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.25%2012.75V16C11.25%2016.2125%2011.3219%2016.3906%2011.4658%2016.5343C11.6096%2016.6781%2011.7878%2016.75%2012.0003%2016.75C12.2129%2016.75%2012.391%2016.6781%2012.5345%2016.5343C12.6782%2016.3906%2012.75%2016.2125%2012.75%2016V12.75H16C16.2125%2012.75%2016.3906%2012.6781%2016.5343%2012.5343C16.6781%2012.3904%2016.75%2012.2122%2016.75%2011.9998C16.75%2011.7871%2016.6781%2011.609%2016.5343%2011.4655C16.3906%2011.3218%2016.2125%2011.25%2016%2011.25H12.75V8C12.75%207.7875%2012.6781%207.60942%2012.5343%207.46575C12.3904%207.32192%2012.2122%207.25%2011.9998%207.25C11.7871%207.25%2011.609%207.32192%2011.4655%207.46575C11.3218%207.60942%2011.25%207.7875%2011.25%208V11.25H8C7.7875%2011.25%207.60942%2011.3219%207.46575%2011.4658C7.32192%2011.6096%207.25%2011.7878%207.25%2012.0003C7.25%2012.2129%207.32192%2012.391%207.46575%2012.5345C7.60942%2012.6782%207.7875%2012.75%208%2012.75H11.25ZM12.0017%2021.5C10.6877%2021.5%209.45267%2021.2507%208.2965%2020.752C7.14033%2020.2533%206.13467%2019.5766%205.2795%2018.7218C4.42433%2017.8669%203.74725%2016.8617%203.24825%2015.706C2.74942%2014.5503%202.5%2013.3156%202.5%2012.0017C2.5%2010.6877%202.74933%209.45267%203.248%208.2965C3.74667%207.14033%204.42342%206.13467%205.27825%205.2795C6.13308%204.42433%207.13833%203.74725%208.294%203.24825C9.44967%202.74942%2010.6844%202.5%2011.9983%202.5C13.3123%202.5%2014.5473%202.74933%2015.7035%203.248C16.8597%203.74667%2017.8653%204.42342%2018.7205%205.27825C19.5757%206.13308%2020.2528%207.13833%2020.7518%208.294C21.2506%209.44967%2021.5%2010.6844%2021.5%2011.9983C21.5%2013.3123%2021.2507%2014.5473%2020.752%2015.7035C20.2533%2016.8597%2019.5766%2017.8653%2018.7218%2018.7205C17.8669%2019.5757%2016.8617%2020.2528%2015.706%2020.7518C14.5503%2021.2506%2013.3156%2021.5%2012.0017%2021.5ZM12%2020C14.2333%2020%2016.125%2019.225%2017.675%2017.675C19.225%2016.125%2020%2014.2333%2020%2012C20%209.76667%2019.225%207.875%2017.675%206.325C16.125%204.775%2014.2333%204%2012%204C9.76667%204%207.875%204.775%206.325%206.325C4.775%207.875%204%209.76667%204%2012C4%2014.2333%204.775%2016.125%206.325%2017.675C7.875%2019.225%209.76667%2020%2012%2020Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",Z_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.25%2012.75V16C11.25%2016.2125%2011.3219%2016.3906%2011.4658%2016.5343C11.6096%2016.6781%2011.7878%2016.75%2012.0003%2016.75C12.2129%2016.75%2012.391%2016.6781%2012.5345%2016.5343C12.6782%2016.3906%2012.75%2016.2125%2012.75%2016V12.75H16C16.2125%2012.75%2016.3906%2012.6781%2016.5343%2012.5343C16.6781%2012.3904%2016.75%2012.2122%2016.75%2011.9998C16.75%2011.7871%2016.6781%2011.609%2016.5343%2011.4655C16.3906%2011.3218%2016.2125%2011.25%2016%2011.25H12.75V8C12.75%207.7875%2012.6781%207.60942%2012.5343%207.46575C12.3904%207.32192%2012.2122%207.25%2011.9998%207.25C11.7871%207.25%2011.609%207.32192%2011.4655%207.46575C11.3218%207.60942%2011.25%207.7875%2011.25%208V11.25H8C7.7875%2011.25%207.60942%2011.3219%207.46575%2011.4658C7.32192%2011.6096%207.25%2011.7878%207.25%2012.0003C7.25%2012.2129%207.32192%2012.391%207.46575%2012.5345C7.60942%2012.6782%207.7875%2012.75%208%2012.75H11.25ZM12.0017%2021.5C10.6877%2021.5%209.45267%2021.2507%208.2965%2020.752C7.14033%2020.2533%206.13467%2019.5766%205.2795%2018.7218C4.42433%2017.8669%203.74725%2016.8617%203.24825%2015.706C2.74942%2014.5503%202.5%2013.3156%202.5%2012.0017C2.5%2010.6877%202.74933%209.45267%203.248%208.2965C3.74667%207.14033%204.42342%206.13467%205.27825%205.2795C6.13308%204.42433%207.13833%203.74725%208.294%203.24825C9.44967%202.74942%2010.6844%202.5%2011.9983%202.5C13.3123%202.5%2014.5473%202.74933%2015.7035%203.248C16.8597%203.74667%2017.8653%204.42342%2018.7205%205.27825C19.5757%206.13308%2020.2528%207.13833%2020.7518%208.294C21.2506%209.44967%2021.5%2010.6844%2021.5%2011.9983C21.5%2013.3123%2021.2507%2014.5473%2020.752%2015.7035C20.2533%2016.8597%2019.5766%2017.8653%2018.7218%2018.7205C17.8669%2019.5757%2016.8617%2020.2528%2015.706%2020.7518C14.5503%2021.2506%2013.3156%2021.5%2012.0017%2021.5Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",$_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8291%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8291%29%22%3E%3Cpath%20d%3D%22M6.7665%2018.7228C6.4645%2018.8434%206.17792%2018.8178%205.90675%2018.6458C5.63558%2018.4738%205.5%2018.2233%205.5%2017.8943V13.673L12.423%2012L5.5%2010.327V6.10576C5.5%205.77676%205.63558%205.52626%205.90675%205.35426C6.17792%205.18226%206.4645%205.1566%206.7665%205.27726L20.723%2011.1615C21.0948%2011.328%2021.2807%2011.6081%2021.2807%2012.0018C21.2807%2012.3954%2021.0948%2012.6743%2020.723%2012.8385L6.7665%2018.7228Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",Q_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.5492%2010.7667C15.9284%2010.7667%2016.2513%2010.634%2016.518%2010.3685C16.7846%2010.1032%2016.918%209.781%2016.918%209.402C16.918%209.02283%2016.7853%208.69992%2016.52%208.43325C16.2545%208.16658%2015.9322%208.03325%2015.5532%208.03325C15.1741%208.03325%2014.8511%208.16592%2014.5845%208.43125C14.3178%208.69675%2014.1845%209.019%2014.1845%209.398C14.1845%209.77717%2014.3172%2010.1001%2014.5827%2010.3667C14.8481%2010.6334%2015.1702%2010.7667%2015.5492%2010.7667ZM8.44922%2010.7667C8.82839%2010.7667%209.1513%2010.634%209.41797%2010.3685C9.68464%2010.1032%209.81797%209.781%209.81797%209.402C9.81797%209.02283%209.68522%208.69992%209.41972%208.43325C9.15439%208.16658%208.83222%208.03325%208.45322%208.03325C8.07405%208.03325%207.75114%208.16592%207.48447%208.43125C7.2178%208.69675%207.08447%209.019%207.08447%209.398C7.08447%209.77717%207.21714%2010.1001%207.48247%2010.3667C7.74797%2010.6334%208.07022%2010.7667%208.44922%2010.7667ZM12.0022%2021.8333C10.6421%2021.8333%209.36339%2021.5748%208.16622%2021.058C6.96905%2020.5413%205.92764%2019.84%205.04197%2018.954C4.15647%2018.068%203.45605%2017.0274%202.94072%2015.8322C2.42555%2014.6371%202.16797%2013.36%202.16797%2012.001C2.16797%2010.6408%202.42639%209.36216%202.94322%208.165C3.45989%206.96783%204.16122%205.92642%205.04722%205.04075C5.93322%204.15525%206.9738%203.45483%208.16897%202.9395C9.36414%202.42433%2010.6412%202.16675%2012.0002%202.16675C13.3604%202.16675%2014.6391%202.42516%2015.8362%202.942C17.0334%203.45867%2018.0748%204.16%2018.9605%205.046C19.846%205.932%2020.5464%206.97258%2021.0617%208.16775C21.5769%209.36292%2021.8345%2010.64%2021.8345%2011.999C21.8345%2013.3592%2021.5761%2014.6378%2021.0592%2015.835C20.5426%2017.0322%2019.8412%2018.0736%2018.9552%2018.9592C18.0692%2019.8447%2017.0286%2020.5452%2015.8335%2021.0605C14.6383%2021.5757%2013.3612%2021.8333%2012.0022%2021.8333ZM12.0012%2020.25C14.3026%2020.25%2016.2529%2019.4503%2017.8522%2017.851C19.4516%2016.2517%2020.2512%2014.3013%2020.2512%2012C20.2512%209.69867%2019.4516%207.74833%2017.8522%206.149C16.2529%204.54967%2014.3026%203.75%2012.0012%203.75C9.69989%203.75%207.74955%204.54967%206.15022%206.149C4.55089%207.74833%203.75122%209.69867%203.75122%2012C3.75122%2014.3013%204.55089%2016.2517%206.15022%2017.851C7.74955%2019.4503%209.69989%2020.25%2012.0012%2020.25ZM11.991%2017.3833C12.931%2017.3833%2013.7981%2017.1667%2014.5925%2016.7335C15.3868%2016.3005%2016.033%2015.7016%2016.531%2014.9367C16.6306%2014.7456%2016.6245%2014.5583%2016.5125%2014.375C16.4005%2014.1917%2016.2325%2014.1%2016.0085%2014.1H7.99822C7.76689%2014.1%207.59639%2014.1917%207.48672%2014.375C7.37689%2014.5583%207.3748%2014.7436%207.48047%2014.9307C7.97214%2015.6991%208.61589%2016.2999%209.41172%2016.7333C10.2076%2017.1666%2011.0673%2017.3833%2011.991%2017.3833Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E",X_="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8417%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8417%29%22%3E%3Cpath%20d%3D%22M15.406%2010.8077C15.77%2010.8077%2016.0786%2010.6803%2016.3318%2010.4255C16.5849%2010.1708%2016.7115%209.86158%2016.7115%209.49775C16.7115%209.13392%2016.5842%208.82542%2016.3295%208.57225C16.0748%208.31892%2015.7655%208.19225%2015.4015%208.19225C15.0377%208.19225%2014.7292%208.31967%2014.476%208.5745C14.2228%208.82917%2014.0962%209.13842%2014.0962%209.50225C14.0962%209.86608%2014.2236%2010.1746%2014.4783%2010.4277C14.7329%2010.6811%2015.0422%2010.8077%2015.406%2010.8077ZM8.5985%2010.8077C8.96233%2010.8077%209.27083%2010.6803%209.524%2010.4255C9.77717%2010.1708%209.90375%209.86158%209.90375%209.49775C9.90375%209.13392%209.77642%208.82542%209.52175%208.57225C9.26708%208.31892%208.95783%208.19225%208.594%208.19225C8.23%208.19225%207.92142%208.31967%207.66825%208.5745C7.41508%208.82917%207.2885%209.13842%207.2885%209.50225C7.2885%209.86608%207.41583%2010.1746%207.6705%2010.4277C7.92517%2010.6811%208.2345%2010.8077%208.5985%2010.8077ZM12.0017%2021.5C10.6877%2021.5%209.45267%2021.2507%208.2965%2020.752C7.14033%2020.2533%206.13467%2019.5766%205.2795%2018.7218C4.42433%2017.8669%203.74725%2016.8617%203.24825%2015.706C2.74942%2014.5503%202.5%2013.3156%202.5%2012.0017C2.5%2010.6877%202.74933%209.45267%203.248%208.2965C3.74667%207.14033%204.42342%206.13467%205.27825%205.2795C6.13308%204.42433%207.13833%203.74725%208.294%203.24825C9.44967%202.74942%2010.6844%202.5%2011.9983%202.5C13.3123%202.5%2014.5473%202.74933%2015.7035%203.248C16.8597%203.74667%2017.8653%204.42342%2018.7205%205.27825C19.5757%206.13308%2020.2528%207.13833%2020.7518%208.294C21.2506%209.44967%2021.5%2010.6844%2021.5%2011.9983C21.5%2013.3123%2021.2507%2014.5473%2020.752%2015.7035C20.2533%2016.8597%2019.5766%2017.8653%2018.7218%2018.7205C17.8669%2019.5757%2016.8617%2020.2528%2015.706%2020.7518C14.5503%2021.2506%2013.3156%2021.5%2012.0017%2021.5ZM12%2017.1923C12.8975%2017.1923%2013.7254%2016.9798%2014.4837%2016.5548C15.2421%2016.1298%2015.8578%2015.5532%2016.331%2014.825C16.4257%2014.643%2016.4227%2014.46%2016.322%2014.276C16.2215%2014.092%2016.0642%2014%2015.85%2014H8.15C7.93583%2014%207.7785%2014.092%207.678%2014.276C7.57733%2014.46%207.57433%2014.643%207.669%2014.825C8.14217%2015.5532%208.76183%2016.1298%209.528%2016.5548C10.294%2016.9798%2011.118%2017.1923%2012%2017.1923Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";const eb=({autoRecording:e=!1,onCloseRecording:t,onSubmitRecording:n})=>{const[o,i]=a.useState(),[s,c]=a.useState(!1),[l,u]=a.useState(),[d,p]=a.useState(0),[h,m]=a.useState(!1),g=a.useRef(void 0),f=a.useRef(void 0),_=a.useRef(void 0),b=a.useRef([]),v=a.useRef(!0),y=a.useRef(!1),E=a.useRef(!1),C=a.useRef(!1),[S,w]=a.useState(!1),[k,x]=a.useState("prompt"),T=a.useRef(null);function A(){gt.instance&&gt.setIsPlaying&&(gt.instance.pause(),gt.setIsPlaying(!1)),mt.video&&!mt.video.paused&&mt.video.pause()}a.useEffect(()=>{let t=null;return e&&(t=setTimeout(()=>{O()},100)),()=>{t&&clearTimeout(t),N(),clearInterval(_.current),L(),E.current=!1,T.current&&(T.current.onchange=null)}},[]);const R=()=>{_.current&&clearInterval(_.current),_.current=window.setInterval(()=>{v.current&&p(e=>e+1)},1e3)},I=()=>{clearInterval(_.current),p(0)},O=async()=>{if(A(),!await navigator.mediaDevices.enumerateDevices().then(e=>e.some(e=>"audioinput"===e.kind)))return;if("denied"===await(async()=>{try{return(await navigator.permissions.query({name:"microphone"})).state}catch(e){try{return(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(e=>e.stop()),"granted"}catch(e){return"NotAllowedError"===e.name||"PermissionDeniedError"===e.name?"denied":"prompt"}}})())return w(!0),void x("denied");v.current=!0,y.current=!0;const e=o;if(h){mt.mediaRecorder=e;try{e?.resume(),m(!1),R(),c(!0)}catch(e){console.error("Failed to resume recording:",e),w(!0)}}else{D();const e=await(async()=>{try{if(E.current)return null;L();const e=await navigator.mediaDevices.getUserMedia({audio:!0});E.current=!0,g.current=e;const t=new MediaRecorder(e);return t.ondataavailable=e=>{e.data.size>0&&b.current?.push(e.data)},t.onstop=()=>{if(y.current&&b.current.length>0){const e=new Blob(b.current,{type:b.current[0]?.type||"audio/webm"});f.current=e;const t=URL.createObjectURL(e);u(t),b.current=[]}},t.onerror=e=>{console.error("MediaRecorder error:",e.error),w(!0),c(!1),m(!1),L(),E.current=!1},e.getTracks().forEach(e=>{e.onended=()=>{w(!0),c(!1)}}),t.start(),i(t),w(!1),t}catch(e){return"NotAllowedError"!==e.name&&"PermissionDeniedError"!==e.name||(w(!0),x("denied")),E.current=!1,null}})();e?(mt.mediaRecorder=e,p(0),R(),c(!0),w(!1),x("granted")):(c(!1),y.current=!1)}},N=()=>{m(!1),A(),o?.stop(),c(!1),I(),L(),i(void 0),E.current=!1},M=()=>{A(),mt.mediaRecorder=null,y.current=!1,C.current=!0;const e=o;if(e&&"inactive"!==e.state)try{e.stop()}catch(e){console.error("Error stopping recorder during close:",e)}I(),t?.(),D()},D=()=>{A(),i(void 0),u(void 0),c(!1),m(!1),L(),b.current=[],f.current=void 0,E.current=!1},L=()=>{g.current&&(g.current.getTracks().forEach(e=>{e.stop(),e.onended=null}),g.current=void 0)},P=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`};return a.useEffect(()=>((async()=>{try{const e=await navigator.permissions.query({name:"microphone"});T.current=e;const t=o;e.onchange=async()=>{const n=e.state;if(x(n),"granted"===n)w(!1);else if("denied"===n&&(w(!0),c(!1),m(!1),L(),I(),o)){try{"inactive"!==t.state&&t.stop()}catch(e){console.error("Error stopping recorder on permission denial:",e)}i(void 0)}}}catch(e){console.error("Permission monitoring setup failed:",e)}})(),()=>{T.current&&(T.current.onchange=null)}),[]),a.useEffect(()=>{if("granted"===k&&!S&&!l&&!s&&e&&!C.current){const e=setTimeout(()=>{O()},100);return()=>clearTimeout(e)}},[k,S,l,s,e]),r.jsxs("div",{className:"cometchat",style:{height:"inherit",width:"fit-content"},children:[S?r.jsxs("div",{className:"cometchat-media-recorder__error",children:[r.jsx("div",{className:"cometchat-media-recorder__error-icon-wrapper",children:r.jsx("div",{className:"cometchat-media-recorder__error-icon"})}),r.jsxs("div",{className:"cometchat-media-recorder__error-content",children:[r.jsx("div",{className:"cometchat-media-recorder__error-content-title",children:V("media_recorder_error_title")}),r.jsx("div",{className:"cometchat-media-recorder__error-content-subtitle",children:V("media_recorder_error_subtitle")})]})]}):null,r.jsx("div",{className:"cometchat-media-recorder",style:{...S&&{borderRadius:`0px 0px ${yt("--cometchat-radius-4")} ${yt("--cometchat-radius-4")}`}},children:l?r.jsxs("div",{className:"cometchat-media-recorder__recorded",children:[r.jsx(Jn,{src:l,isSentByMe:!0}),r.jsxs("div",{className:"cometchat-media-recorder__recorded-control",children:[r.jsx("div",{className:"cometchat-media-recorder__recorded-control-delete",onClick:M,children:r.jsx("div",{className:"cometchat-media-recorder__recorded-control-delete-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recorded-control-send",onClick:()=>{A(),f.current&&(n?.(f.current),D())},children:r.jsx("div",{className:"cometchat-media-recorder__recorded-control-send-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recorded-control-record",onClick:O,children:r.jsx("div",{className:"cometchat-media-recorder__recorded-control-record-icon"})})]})]}):r.jsxs("div",{className:"cometchat-media-recorder__recording",style:{...S&&{borderRadius:`0px 0px ${yt("--cometchat-radius-4")} ${yt("--cometchat-radius-4")}`}},children:[s?r.jsxs("div",{className:"cometchat-media-recorder__recording-preview",children:[r.jsx("div",{className:"cometchat-media-recorder__recording-preview-recording",children:r.jsx("div",{className:"cometchat-media-recorder__recording-preview-recording-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recording-preview-duration",children:P(d)})]}):h?r.jsxs("div",{className:"cometchat-media-recorder__recording-preview",children:[r.jsx("div",{className:"cometchat-media-recorder__recording-preview-paused",children:r.jsx("div",{className:"cometchat-media-recorder__recording-preview-paused-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recording-preview-duration",children:P(d)})]}):r.jsx("div",{className:"cometchat-media-recorder__recording-preview",children:r.jsx("div",{className:"cometchat-media-recorder__recording-preview-disabled",children:r.jsx("div",{className:"cometchat-media-recorder__recording-preview-disabled-icon"})})}),r.jsx("div",{className:"cometchat-media-recorder__recording-control",children:s?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"cometchat-media-recorder__recording-control-delete",onClick:M,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-delete-icon"})}),h?r.jsx("div",{className:"cometchat-media-recorder__recording-control-record",onClick:O,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-record-icon"})}):r.jsx("div",{className:"cometchat-media-recorder__recording-control-pause",onClick:()=>{m(!0),clearInterval(_.current),p(d),o&&o.pause(),v.current=!1,E.current=!1},children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-pause-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recording-control-stop",onClick:N,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-stop-icon"})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"cometchat-media-recorder__recording-control-delete",onClick:M,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-delete-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recording-control-record "+(S?"cometchat-media-recorder__recording-control-error":""),onClick:O,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-record-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__recording-control-stop",onClick:N,children:r.jsx("div",{className:"cometchat-media-recorder__recording-control-stop-icon"})})]})})]})})]})},tb=({previewTitle:e=V("message_composer_edit_message"),previewSubtitle:t="",onClose:n})=>r.jsx("div",{className:"cometchat",style:{width:"100%"},children:r.jsxs("div",{className:"cometchat-edit-preview",children:[r.jsx("p",{className:"cometchat-edit-preview__title",children:e}),r.jsx("p",{className:"cometchat-edit-preview__subtitle",children:t}),r.jsx("div",{className:"cometchat-edit-preview__close",onClick:n})]})}),nb=e=>{const{actions:t=[],onActionItemClick:n=()=>{}}=e;return r.jsx("div",{className:"cometchat",style:{height:"inherit",width:"max-content"},children:r.jsx("div",{className:"cometchat-action-sheet",children:t?.map((e,t)=>r.jsxs("div",{className:"cometchat-action-sheet__item",onClick:()=>{n(e)},children:[r.jsx("div",{className:"cometchat-action-sheet__item-icon",style:e.iconURL?{WebkitMask:`url(${e.iconURL}) center center no-repeat`}:void 0}),r.jsx("div",{className:"cometchat-action-sheet__item-body",children:e.title},e.title||`action-${t}`)]},`cometchat-action-sheet__item-${t}`))})})};class rb{constructor({char:e="",keywords:t=[]}){this.char="",this.keywords=[],this.char=e,this.keywords=t}}class ab{constructor({id:e="",symbolURL:t="",name:n="",emojies:r={}}){this.id=e,this.symbolURL=t,this.name=n,this.emojies=r}}const ob=e=>{const{emojiData:t=[],onEmojiClick:n}=e,{emojiDataState:o,activeCategory:i,setActiveCategory:s,searchEmojiData:c,searchString:l,getEmojiData:u,getEmojiCategory:d,scrollToElement:p,filterEmojis:h}=(({emojiData:e=[]})=>{const[t,n]=a.useState(),[r,o]=a.useState(e),[i,s]=a.useState({}),[c,l]=a.useState(""),u=a.useRef(e),d=Y();return a.useEffect(()=>{u.current=r},[r]),{emojiDataState:r,activeCategory:t,setActiveCategory:n,searchEmojiData:i,searchString:c,getEmojiData:e=>new rb({char:e.char,keywords:e.keywords}).char,getEmojiCategory:()=>{e&&0==e?.length&&o(()=>Sn.map(e=>{const t=Object.values(e)[0];return new ab({id:t.id,name:t.name,symbolURL:t.symbol,emojies:t.emojis})}))},scrollToElement:e=>{n(e),l(""),s({}),(d?.iframeDocument||document).getElementById(e)?.scrollIntoView({behavior:"smooth",block:"start"})},filterEmojis:e=>{const t={};l(e.value),e.value?.length>0?(u.current.forEach(n=>{Object.keys(n.emojies).forEach(r=>{n.emojies[r].keywords.every(a=>!a.includes(e.value?.toLowerCase())||(t[r]=n.emojies[r],!1))})}),s(t)):s({})}}})({emojiData:t}),m=a.useRef(null);a.useEffect(()=>{d()},[]),a.useEffect(()=>{i||s(o[0]?.id)},[o]);const g=e=>r.jsx("div",{className:"cometchat-emoji-keyboard__emoji-list",children:Object.keys(e).map((t,a)=>r.jsx("div",{className:"cometchat-emoji-keyboard__list-item",title:t,onClick:()=>{n?.(e[t].char)},children:u(e[t])},t+a))}),f=a.useCallback(e=>{const t=m.current;if(t){const n=t.scrollLeft;let r=.5*e.deltaY;(1===e.deltaMode||e.deltaY>100)&&(r=.2*e.deltaY),t.scrollTo({top:0,left:n+r,behavior:"auto"})}},[]);return r.jsx("div",{className:"cometchat",style:{height:"inherit",width:"inherit"},children:r.jsxs("div",{className:"cometchat-emoji-keyboard",children:[r.jsx("div",{className:"cometchat-emoji-keyboard__tabs",ref:m,onWheel:f,children:o.map((e,t)=>r.jsx("div",{onClick:()=>{p(e.id)},title:V(e.name),className:i==e.id?"cometchat-emoji-keyboard__tab-active cometchat-emoji-keyboard__tab":"cometchat-emoji-keyboard__tab",children:r.jsx("div",{title:V(e.name),children:r.jsx("div",{style:e.symbolURL?{WebkitMask:`url(${e.symbolURL}) center center no-repeat`}:void 0,className:"cometchat-emoji-keyboard__tab-icon"})})},t+e.id))}),r.jsx("div",{className:"cometchat-emoji-keyboard__search",children:r.jsx(H,{placeholderText:V("emoji_search_placeholder"),onChange:h,searchText:l})}),Object.keys(c).length>0?r.jsx("div",{className:"cometchat-emoji-keyboard__list",children:g(c)}):r.jsx("div",{className:"cometchat-emoji-keyboard__list",children:o.map(e=>r.jsxs("div",{className:"cometchat-emoji-keyboard__list-content",children:[r.jsx("div",{className:"cometchat-emoji-keyboard__list-title",id:e.id,children:r.jsx("div",{title:V(e.name),children:V(e.name)})}),g(e.emojies)]},e.id))})]})})};function ib(e){const{textInputRef:t,richTextFormatter:n,isFloating:o=!1,position:s,activeFormats:c=[],onLinkClick:l,onFormatApplied:u}=e,[d,p]=a.useState(!1),[h,m]=a.useState(""),[g,f]=a.useState(""),_=a.useRef(null),b=Y(),v=a.useCallback(()=>b?.iframeDocument?.body||document.body,[b]),y=a.useCallback((e,t)=>{let n=e.startContainer;for(;n;){if(n===t)return!0;n=n.parentNode}return!1},[]),E=a.useCallback(e=>{if(e.preventDefault(),n&&t.current){const e=n.saveSelection(),r=!!e&&y(e,t.current);_.current=e&&r?e:null}},[n,t,y]),C=a.useCallback(e=>{const r=t.current;if(r&&n){if(!_.current){const e=n.saveSelection(),t=!!e&&y(e,r);e&&t&&(_.current=e)}switch(r.focus(),_.current&&(n.restoreSelection(_.current),_.current=null),e){case"bold":n.toggleBold(r);break;case"italic":n.toggleItalic(r);break;case"underline":n.toggleUnderline(r);break;case"strikethrough":n.toggleStrikethrough(r);break;case"link":return void(l?l():p(!0));case"orderedList":n.toggleOrderedList(r);break;case"unorderedList":n.toggleUnorderedList(r);break;case"blockquote":n.toggleBlockquote(r);break;case"codeInline":n.toggleCodeInline(r);break;case"codeBlock":n.toggleCodeBlock(r)}u&&setTimeout(()=>{u()},0)}},[t,n,l,u]),S=a.useCallback(e=>e.trim()?(f(""),!0):(f(V("link_url_required")||"URL is required"),!1),[]),w=a.useCallback(e=>{if(!S(h))return;const r=t.current;if(!r||!n)return;let a=h.trim();/^https?:\/\//i.test(a)||a.startsWith("/")||(a="https://"+a),n.insertLink(a,void 0,r),p(!1),m(""),f("")},[h,S,t,n]),k=a.useCallback(e=>{p(!1),m(""),f("")},[]),x=a.useCallback(e=>{"Enter"===e.key?(e.preventDefault(),w()):"Escape"===e.key&&k()},[w,k]),T=a.useCallback(e=>c.includes(e),[c]),A=a.useCallback(e=>!(!c.includes("codeBlock")||!["bold","italic","underline","strikethrough","link","codeInline"].includes(e)),[c]);if(!n)return null;const R=[{format:"bold",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%287%2C%205%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M1.51925%2013.25C1.09742%2013.25%200.73875%2013.1023%200.44325%2012.8068C0.14775%2012.5113%200%2012.1526%200%2011.7308V1.51925C0%201.09742%200.14775%200.73875%200.44325%200.44325C0.73875%200.14775%201.09742%200%201.51925%200H4.8615C5.88067%200%206.80217%200.317334%207.626%200.952C8.44967%201.5865%208.8615%202.441%208.8615%203.5155C8.8615%204.26283%208.681%204.87208%208.32%205.34325C7.95917%205.81442%207.57042%206.15642%207.15375%206.36925C7.66658%206.54608%208.15633%206.89575%208.623%207.41825C9.08967%207.94075%209.323%208.64425%209.323%209.52875C9.323%2010.8069%208.85183%2011.7467%207.9095%2012.348C6.96717%2012.9493%206.01783%2013.25%205.0615%2013.25H1.51925ZM2.15%2011.2578H4.98075C5.76792%2011.2578%206.32433%2011.0392%206.65%2010.602C6.97567%2010.1648%207.1385%209.74558%207.1385%209.34425C7.1385%208.94292%206.97567%208.52367%206.65%208.0865C6.32433%207.64933%205.7525%207.43075%204.9345%207.43075H2.15V11.2578ZM2.15%205.5H4.74425C5.35192%205.5%205.83367%205.32625%206.1895%204.97875C6.54517%204.63142%206.723%204.21542%206.723%203.73075C6.723%203.21542%206.53492%202.79425%206.15875%202.46725C5.78242%202.14042%205.32117%201.977%204.775%201.977H2.15V5.5Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_bold")||"Bold"},{format:"italic",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M6.29828%2018.625C6.04528%2018.625%205.83136%2018.5376%205.65653%2018.3628C5.48186%2018.1878%205.39453%2017.9736%205.39453%2017.7203C5.39453%2017.4671%205.48186%2017.2533%205.65653%2017.0787C5.83136%2016.9044%206.04528%2016.8173%206.29828%2016.8173H9.21178L12.4523%207.18275H9.53878C9.28578%207.18275%209.07186%207.09525%208.89703%206.92025C8.72236%206.74542%208.63503%206.53133%208.63503%206.278C8.63503%206.02467%208.72236%205.81083%208.89703%205.6365C9.07186%205.46217%209.28578%205.375%209.53878%205.375H16.885C17.138%205.375%2017.3519%205.46242%2017.5265%205.63725C17.7014%205.81225%2017.7888%206.02642%2017.7888%206.27975C17.7888%206.53292%2017.7014%206.74675%2017.5265%206.92125C17.3519%207.09558%2017.138%207.18275%2016.885%207.18275H14.279L11.0388%2016.8173H13.6445C13.8975%2016.8173%2014.1114%2016.9047%2014.2863%2017.0798C14.4609%2017.2546%2014.5483%2017.4687%2014.5483%2017.722C14.5483%2017.9753%2014.4609%2018.1892%2014.2863%2018.3635C14.1114%2018.5378%2013.8975%2018.625%2013.6445%2018.625H6.29828Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_italic")||"Italic"},{format:"underline",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%285%2C%203.5%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M0.75%2016.7115C0.5375%2016.7115%200.359333%2016.6396%200.2155%2016.4957C0.0718332%2016.3519%200%2016.1737%200%2015.961C0%2015.7485%200.0718332%2015.5704%200.2155%2015.4267C0.359333%2015.2832%200.5375%2015.2115%200.75%2015.2115H12.5575C12.77%2015.2115%2012.9482%2015.2834%2013.092%2015.4272C13.2357%2015.5711%2013.3075%2015.7492%2013.3075%2015.9618C13.3075%2016.1744%2013.2357%2016.3525%2013.092%2016.496C12.9482%2016.6397%2012.77%2016.7115%2012.5575%2016.7115H0.75ZM6.65375%2013.1152C5.09858%2013.1152%203.88483%2012.6432%203.0125%2011.699C2.14%2010.7548%201.70375%209.48975%201.70375%207.90375V0.91925C1.70375%200.666917%201.79683%200.450583%201.983%200.27025C2.16917%200.0900833%202.38842%200%202.64075%200C2.89292%200%203.10875%200.0900833%203.28825%200.27025C3.46775%200.450583%203.5575%200.666917%203.5575%200.91925V7.996C3.5575%209.00633%203.82608%209.816%204.36325%2010.425C4.90042%2011.034%205.66392%2011.3385%206.65375%2011.3385C7.64358%2011.3385%208.40708%2011.034%208.94425%2010.425C9.48142%209.816%209.75%209.00633%209.75%207.996V0.91925C9.75%200.666917%209.84308%200.450583%2010.0293%200.27025C10.2154%200.0900833%2010.4347%200%2010.687%200C10.9392%200%2011.155%200.0900833%2011.3345%200.27025C11.514%200.450583%2011.6038%200.666917%2011.6038%200.91925V7.90375C11.6038%209.48975%2011.1675%2010.7548%2010.295%2011.699C9.42267%2012.6432%208.20892%2013.1152%206.65375%2013.1152Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_underline")||"Underline"},{format:"strikethrough",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%282%2C%204%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M9.9%2015.496C8.90133%2015.496%207.97858%2015.2313%207.13175%2014.7018C6.28492%2014.1723%205.61925%2013.4633%205.13475%2012.575C5.02958%2012.3788%205.01675%2012.1733%205.09625%2011.9585C5.17575%2011.7438%205.31867%2011.5839%205.525%2011.4788C5.74167%2011.3634%205.96758%2011.3455%206.20275%2011.425C6.43808%2011.5045%206.62175%2011.6526%206.75375%2011.8693C7.08592%2012.4461%207.53342%2012.9038%208.09625%2013.2423C8.65892%2013.5808%209.27042%2013.75%209.93075%2013.75C10.7603%2013.75%2011.4875%2013.5058%2012.1125%2013.0173C12.7375%2012.5288%2013.05%2011.8961%2013.05%2011.1193C13.05%2011.0103%2013.0404%2010.9013%2013.0212%2010.7923C13.0019%2010.6833%2012.9634%2010.5807%2012.9057%2010.4845C12.8866%2010.2473%2012.9552%2010.0409%2013.1115%209.86525C13.268%209.68958%2013.4648%209.59217%2013.702%209.573C13.9392%209.55367%2014.1497%209.62225%2014.3335%209.77875C14.5175%209.93508%2014.6192%2010.1318%2014.6385%2010.369C14.709%2010.5088%2014.7554%2010.6598%2014.7778%2010.822C14.8003%2010.9842%2014.8115%2011.1448%2014.8115%2011.3038C14.8115%2012.5371%2014.3179%2013.5442%2013.3307%2014.325C12.3436%2015.1057%2011.2%2015.496%209.9%2015.496ZM0.75%207.55375C0.537167%207.55375%200.359%207.48192%200.2155%207.33825C0.0718334%207.19475%200%207.01658%200%206.80375C0%206.59092%200.0718334%206.41275%200.2155%206.26925C0.359%206.12558%200.537167%206.05375%200.75%206.05375H18.75C18.9628%206.05375%2019.141%206.12558%2019.2845%206.26925C19.4282%206.41275%2019.5%206.59092%2019.5%206.80375C19.5%207.01658%2019.4282%207.19475%2019.2845%207.33825C19.141%207.48192%2018.9628%207.55375%2018.75%207.55375H0.75ZM5.998%203.97675C5.78517%203.87425%205.63517%203.71017%205.548%203.4845C5.46083%203.25883%205.46858%203.03967%205.57125%202.827C5.81475%201.9475%206.33617%201.25642%207.1355%200.753751C7.93483%200.251251%208.823%200%209.8%200C10.5552%200%2011.2661%200.158668%2011.9327%200.476001C12.5994%200.793168%2013.1583%201.24925%2013.6095%201.84425C13.7417%202.01975%2013.7856%202.2175%2013.7413%202.4375C13.6971%202.65733%2013.5821%202.83325%2013.3962%202.96525C13.1897%203.10758%2012.9689%203.16017%2012.7337%203.123C12.4984%203.08583%2012.2962%202.96917%2012.127%202.773C11.8448%202.4255%2011.5051%202.1675%2011.1077%201.999C10.7102%201.83033%2010.2846%201.746%209.83075%201.746C9.20775%201.746%208.63817%201.90342%208.122%202.21825C7.606%202.53292%207.28133%202.97167%207.148%203.5345C7.0455%203.75767%206.88142%203.91283%206.65575%204C6.43008%204.08717%206.21083%204.07942%205.998%203.97675Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_strikethrough")||"Strikethrough"},{format:"separator",label:""},{format:"link",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M7.04822%2016.8837C5.69739%2016.8837%204.5463%2016.408%203.59497%2015.4567C2.64364%2014.5054%202.16797%2013.3533%202.16797%2012.0004C2.16797%2010.6476%202.64364%209.49552%203.59497%208.54419C4.5463%207.59285%205.69739%207.11719%207.04822%207.11719H10.3637C10.5796%207.11719%2010.7648%207.19477%2010.9195%207.34994C11.074%207.50494%2011.1512%207.69077%2011.1512%207.90744C11.1512%208.13061%2011.074%208.31852%2010.9195%208.47119C10.7648%208.62402%2010.5796%208.70044%2010.3637%208.70044H7.05122C6.13739%208.70044%205.35889%209.02169%204.71572%209.66419C4.07272%2010.3067%203.75122%2011.0844%203.75122%2011.9974C3.75122%2012.9106%204.07272%2013.6894%204.71572%2014.3337C5.35889%2014.9782%206.13739%2015.3004%207.05122%2015.3004H10.3637C10.5796%2015.3004%2010.7648%2015.378%2010.9195%2015.5332C11.074%2015.6884%2011.1512%2015.8743%2011.1512%2016.0909C11.1512%2016.3139%2011.074%2016.5019%2010.9195%2016.6547C10.7648%2016.8074%2010.5796%2016.8837%2010.3637%2016.8837H7.04822ZM8.94697%2012.7837C8.7248%2012.7837%208.53664%2012.7064%208.38247%2012.5517C8.2283%2012.397%208.15122%2012.2095%208.15122%2011.9892C8.15122%2011.7689%208.2283%2011.5824%208.38247%2011.4297C8.53664%2011.2769%208.7248%2011.2004%208.94697%2011.2004H15.0637C15.2796%2011.2004%2015.4647%2011.278%2015.6192%2011.4332C15.7739%2011.5884%2015.8512%2011.7743%2015.8512%2011.9909C15.8512%2012.2139%2015.7739%2012.4019%2015.6192%2012.5547C15.4647%2012.7074%2015.2796%2012.7837%2015.0637%2012.7837H8.94697ZM13.647%2016.8837C13.4248%2016.8837%2013.2366%2016.8064%2013.0825%2016.6517C12.9283%2016.497%2012.8512%2016.3095%2012.8512%2016.0892C12.8512%2015.8689%2012.9283%2015.6824%2013.0825%2015.5297C13.2366%2015.3769%2013.4248%2015.3004%2013.647%2015.3004H16.9555C17.8681%2015.3004%2018.6456%2014.9792%2019.288%2014.3367C19.9301%2013.6942%2020.2512%2012.9164%2020.2512%2012.0034C20.2512%2011.0903%2019.9301%2010.3115%2019.288%209.66719C18.6456%209.02269%2017.8681%208.70044%2016.9555%208.70044H13.647C13.4248%208.70044%2013.2366%208.6231%2013.0825%208.46844C12.9283%208.3136%2012.8512%208.1261%2012.8512%207.90594C12.8512%207.6856%2012.9283%207.49902%2013.0825%207.34619C13.2366%207.19352%2013.4248%207.11719%2013.647%207.11719H16.9512C18.3041%207.11719%2019.4561%207.59285%2020.4075%208.54419C21.3588%209.49552%2021.8345%2010.6476%2021.8345%2012.0004C21.8345%2013.3533%2021.3588%2014.5054%2020.4075%2015.4567C19.4561%2016.408%2018.3041%2016.8837%2016.9512%2016.8837H13.647Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_link")||"Link"},{format:"orderedList",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%283.5%2C%202.5%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M0.59625%2019C0.423917%2019%200.2815%2018.9438%200.169%2018.8313C0.0563332%2018.7188%200%2018.5764%200%2018.4042C0%2018.2323%200.0563332%2018.0898%200.169%2017.977C0.2815%2017.8642%200.423917%2017.8078%200.59625%2017.8078H2.5V16.75H1.59625C1.42392%2016.75%201.2815%2016.6938%201.169%2016.5813C1.05633%2016.4688%201%2016.3264%201%2016.1542C1%2015.9823%201.05633%2015.8398%201.169%2015.727C1.2815%2015.6142%201.42392%2015.5577%201.59625%2015.5577H2.5V14.5H0.59625C0.423917%2014.5%200.2815%2014.4438%200.169%2014.3313C0.0563332%2014.2188%200%2014.0764%200%2013.9043C0%2013.7323%200.0563332%2013.5898%200.169%2013.477C0.2815%2013.3642%200.423917%2013.3077%200.59625%2013.3077H2.84625C3.08592%2013.3077%203.28683%2013.3888%203.449%2013.551C3.61117%2013.7132%203.69225%2013.9141%203.69225%2014.1538V15.3462C3.69225%2015.5859%203.61117%2015.7868%203.449%2015.949C3.28683%2016.1112%203.08592%2016.1923%202.84625%2016.1923C3.08592%2016.1923%203.28683%2016.2733%203.449%2016.4355C3.61117%2016.5977%203.69225%2016.7987%203.69225%2017.0385V18.1538C3.69225%2018.3936%203.61117%2018.5946%203.449%2018.7568C3.28683%2018.9189%203.08592%2019%202.84625%2019H0.59625ZM0.68275%2012.3463C0.49175%2012.3463%200.330167%2012.2802%200.198%2012.148C0.0659999%2012.016%200%2011.8545%200%2011.6635V9.75C0%209.51033%200.0810832%209.30933%200.24325%209.147C0.405417%208.98483%200.606417%208.90375%200.84625%208.90375H2.5V7.84625H0.59625C0.423917%207.84625%200.2815%207.78992%200.169%207.67725C0.0563332%207.56475%200%207.4225%200%207.2505C0%207.07833%200.0563332%206.93583%200.169%206.823C0.2815%206.71017%200.423917%206.65375%200.59625%206.65375H2.84625C3.08592%206.65375%203.28683%206.73483%203.449%206.897C3.61117%207.05933%203.69225%207.26033%203.69225%207.5V9.25C3.69225%209.48967%203.61117%209.69067%203.449%209.853C3.28683%2010.0152%203.08592%2010.0963%202.84625%2010.0963H1.19225V11.1538H3.09625C3.26842%2011.1538%203.41083%2011.2101%203.5235%2011.3228C3.636%2011.4353%203.69225%2011.5775%203.69225%2011.7495C3.69225%2011.9217%203.636%2012.0642%203.5235%2012.177C3.41083%2012.2898%203.26842%2012.3463%203.09625%2012.3463H0.68275ZM2.09675%205.69225C1.92458%205.69225%201.78208%205.636%201.66925%205.5235C1.55642%205.41083%201.5%205.26842%201.5%205.09625V1.19225H0.59625C0.423917%201.19225%200.2815%201.136%200.169%201.0235C0.0563332%200.911%200%200.76875%200%200.59675C0%200.424583%200.0563332%200.282084%200.169%200.16925C0.2815%200.0564172%200.423917%200%200.59625%200H2.01925C2.21025%200%202.37017%200.0644162%202.499%200.19325C2.62783%200.322083%202.69225%200.482%202.69225%200.673V5.09625C2.69225%205.26842%202.636%205.41083%202.5235%205.5235C2.411%205.636%202.26875%205.69225%202.09675%205.69225ZM6.55775%2016.25C6.34525%2016.25%206.16708%2016.1781%206.02325%2016.0343C5.87958%2015.8904%205.80775%2015.7122%205.80775%2015.4998C5.80775%2015.2871%205.87958%2015.109%206.02325%2014.9655C6.16708%2014.8218%206.34525%2014.75%206.55775%2014.75H16.25C16.4625%2014.75%2016.6406%2014.8219%2016.7843%2014.9658C16.9281%2015.1096%2017%2015.2878%2017%2015.5003C17%2015.7129%2016.9281%2015.891%2016.7843%2016.0345C16.6406%2016.1782%2016.4625%2016.25%2016.25%2016.25H6.55775ZM6.55775%2010.25C6.34525%2010.25%206.16708%2010.1781%206.02325%2010.0343C5.87958%209.89042%205.80775%209.71225%205.80775%209.49975C5.80775%209.28708%205.87958%209.109%206.02325%208.9655C6.16708%208.82183%206.34525%208.75%206.55775%208.75H16.25C16.4625%208.75%2016.6406%208.82192%2016.7843%208.96575C16.9281%209.10958%2017%209.28775%2017%209.50025C17%209.71292%2016.9281%209.891%2016.7843%2010.0345C16.6406%2010.1782%2016.4625%2010.25%2016.25%2010.25H6.55775ZM6.55775%204.25C6.34525%204.25%206.16708%204.17808%206.02325%204.03425C5.87958%203.89042%205.80775%203.71225%205.80775%203.49975C5.80775%203.28708%205.87958%203.109%206.02325%202.9655C6.16708%202.82183%206.34525%202.75%206.55775%202.75H16.25C16.4625%202.75%2016.6406%202.82192%2016.7843%202.96575C16.9281%203.10958%2017%203.28775%2017%203.50025C17%203.71292%2016.9281%203.891%2016.7843%204.0345C16.6406%204.17817%2016.4625%204.25%2016.25%204.25H6.55775Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_numbered_list")||"Numbered List"},{format:"unorderedList",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%283.5%2C%204%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M6.55775%2014.4135C6.34525%2014.4135%206.16708%2014.3416%206.02325%2014.1977C5.87958%2014.0539%205.80775%2013.8757%205.80775%2013.6632C5.80775%2013.4506%205.87958%2013.2725%206.02325%2013.129C6.16708%2012.9853%206.34525%2012.9135%206.55775%2012.9135H16.25C16.4625%2012.9135%2016.6406%2012.9854%2016.7843%2013.1292C16.9281%2013.2731%2017%2013.4513%2017%2013.6637C17%2013.8764%2016.9281%2014.0545%2016.7843%2014.198C16.6406%2014.3417%2016.4625%2014.4135%2016.25%2014.4135H6.55775ZM6.55775%208.4135C6.34525%208.4135%206.16708%208.34158%206.02325%208.19775C5.87958%208.05392%205.80775%207.87575%205.80775%207.66325C5.80775%207.45058%205.87958%207.2725%206.02325%207.129C6.16708%206.98533%206.34525%206.9135%206.55775%206.9135H16.25C16.4625%206.9135%2016.6406%206.98542%2016.7843%207.12925C16.9281%207.27308%2017%207.45125%2017%207.66375C17%207.87642%2016.9281%208.0545%2016.7843%208.198C16.6406%208.34167%2016.4625%208.4135%2016.25%208.4135H6.55775ZM6.55775%202.4135C6.34525%202.4135%206.16708%202.34158%206.02325%202.19775C5.87958%202.05392%205.80775%201.87575%205.80775%201.66325C5.80775%201.45058%205.87958%201.2725%206.02325%201.129C6.16708%200.985333%206.34525%200.913499%206.55775%200.913499H16.25C16.4625%200.913499%2016.6406%200.985416%2016.7843%201.12925C16.9281%201.27308%2017%201.45125%2017%201.66375C17%201.87642%2016.9281%202.0545%2016.7843%202.198C16.6406%202.34167%2016.4625%202.4135%2016.25%202.4135H6.55775ZM1.6635%2015.327C1.206%2015.327%200.814417%2015.1641%200.48875%2014.8382C0.162917%2014.5126%200%2014.121%200%2013.6635C0%2013.206%200.162917%2012.8144%200.48875%2012.4887C0.814417%2012.1629%201.206%2012%201.6635%2012C2.121%2012%202.51258%2012.1629%202.83825%2012.4887C3.16408%2012.8144%203.327%2013.206%203.327%2013.6635C3.327%2014.121%203.16408%2014.5126%202.83825%2014.8382C2.51258%2015.1641%202.121%2015.327%201.6635%2015.327ZM1.6635%209.327C1.206%209.327%200.814417%209.16408%200.48875%208.83825C0.162917%208.51258%200%208.121%200%207.6635C0%207.206%200.162917%206.81442%200.48875%206.48875C0.814417%206.16292%201.206%206%201.6635%206C2.121%206%202.51258%206.16292%202.83825%206.48875C3.16408%206.81442%203.327%207.206%203.327%207.6635C3.327%208.121%203.16408%208.51258%202.83825%208.83825C2.51258%209.16408%202.121%209.327%201.6635%209.327ZM1.6635%203.327C1.206%203.327%200.814417%203.16408%200.48875%202.83825C0.162917%202.51258%200%202.121%200%201.6635C0%201.206%200.162917%200.814416%200.48875%200.48875C0.814417%200.162916%201.206%200%201.6635%200C2.121%200%202.51258%200.162916%202.83825%200.48875C3.16408%200.814416%203.327%201.206%203.327%201.6635C3.327%202.121%203.16408%202.51258%202.83825%202.83825C2.51258%203.16408%202.121%203.327%201.6635%203.327Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_bulleted_list")||"Bulleted List"},{format:"separator",label:""},{format:"blockquote",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M4.25%2020.5C4.0375%2020.5%203.85942%2020.4281%203.71575%2020.2843C3.57192%2020.1404%203.5%2019.9622%203.5%2019.7498C3.5%2019.5371%203.57192%2019.359%203.71575%2019.2155C3.85942%2019.0718%204.0375%2019%204.25%2019H19.75C19.9625%2019%2020.1406%2019.0719%2020.2843%2019.2158C20.4281%2019.3596%2020.5%2019.5378%2020.5%2019.7502C20.5%2019.9629%2020.4281%2020.141%2020.2843%2020.2845C20.1406%2020.4282%2019.9625%2020.5%2019.75%2020.5H4.25ZM4.25%2016.625C4.0375%2016.625%203.85942%2016.5531%203.71575%2016.4093C3.57192%2016.2654%203.5%2016.0872%203.5%2015.8748C3.5%2015.6621%203.57192%2015.484%203.71575%2015.3405C3.85942%2015.1968%204.0375%2015.125%204.25%2015.125H13.75C13.9625%2015.125%2014.1406%2015.1969%2014.2843%2015.3408C14.4281%2015.4846%2014.5%2015.6628%2014.5%2015.8753C14.5%2016.0879%2014.4281%2016.266%2014.2843%2016.4095C14.1406%2016.5532%2013.9625%2016.625%2013.75%2016.625H4.25ZM4.25%2012.75C4.0375%2012.75%203.85942%2012.6781%203.71575%2012.5343C3.57192%2012.3904%203.5%2012.2122%203.5%2011.9998C3.5%2011.7871%203.57192%2011.609%203.71575%2011.4655C3.85942%2011.3218%204.0375%2011.25%204.25%2011.25H19.75C19.9625%2011.25%2020.1406%2011.3219%2020.2843%2011.4658C20.4281%2011.6096%2020.5%2011.7878%2020.5%2012.0003C20.5%2012.2129%2020.4281%2012.391%2020.2843%2012.5345C20.1406%2012.6782%2019.9625%2012.75%2019.75%2012.75H4.25ZM4.25%208.875C4.0375%208.875%203.85942%208.80308%203.71575%208.65925C3.57192%208.51542%203.5%208.33725%203.5%208.12475C3.5%207.91208%203.57192%207.734%203.71575%207.5905C3.85942%207.44683%204.0375%207.375%204.25%207.375H13.75C13.9625%207.375%2014.1406%207.44692%2014.2843%207.59075C14.4281%207.73458%2014.5%207.91275%2014.5%208.12525C14.5%208.33792%2014.4281%208.516%2014.2843%208.6595C14.1406%208.80317%2013.9625%208.875%2013.75%208.875H4.25ZM4.25%205C4.0375%205%203.85942%204.92808%203.71575%204.78425C3.57192%204.64042%203.5%204.46225%203.5%204.24975C3.5%204.03708%203.57192%203.859%203.71575%203.7155C3.85942%203.57183%204.0375%203.5%204.25%203.5H19.75C19.9625%203.5%2020.1406%203.57192%2020.2843%203.71575C20.4281%203.85958%2020.5%204.03775%2020.5%204.25025C20.5%204.46292%2020.4281%204.641%2020.2843%204.7845C20.1406%204.92817%2019.9625%205%2019.75%205H4.25Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_blockquote")||"Blockquote"},{format:"codeInline",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M4.46891%2012.0149L8.52666%2016.0724C8.66499%2016.2109%208.73582%2016.385%208.73916%2016.5946C8.74232%2016.8041%208.67149%2016.9814%208.52666%2017.1264C8.38166%2017.2712%208.20599%2017.3436%207.99966%2017.3436C7.79332%2017.3436%207.61766%2017.2712%207.47266%2017.1264L2.97841%2012.6321C2.88491%2012.5385%202.81891%2012.4397%202.78041%2012.3359C2.74191%2012.232%202.72266%2012.1199%202.72266%2011.9994C2.72266%2011.8789%202.74191%2011.7667%202.78041%2011.6629C2.81891%2011.559%202.88491%2011.4603%202.97841%2011.3666L7.47266%206.87238C7.62149%206.72371%207.79816%206.64779%208.00266%206.64463C8.20699%206.64146%208.38674%206.71738%208.54191%206.87238C8.69707%207.02754%208.77466%207.20579%208.77466%207.40713C8.77466%207.60829%208.69707%207.78646%208.54191%207.94163L4.46891%2012.0149ZM19.5304%2011.9839L15.4727%207.92638C15.3343%207.78788%2015.2635%207.61379%2015.2602%207.40413C15.257%207.19463%2015.3278%207.01738%2015.4727%206.87238C15.6177%206.72754%2015.7933%206.65513%2015.9997%206.65513C16.206%206.65513%2016.3817%206.72754%2016.5267%206.87238L21.0209%2011.3666C21.1144%2011.4603%2021.1804%2011.559%2021.2189%2011.6629C21.2574%2011.7667%2021.2767%2011.8789%2021.2767%2011.9994C21.2767%2012.1199%2021.2574%2012.232%2021.2189%2012.3359C21.1804%2012.4397%2021.1144%2012.5385%2021.0209%2012.6321L16.5267%2017.1264C16.3778%2017.275%2016.2037%2017.3484%2016.0044%2017.3464C15.8051%2017.3445%2015.6278%2017.266%2015.4727%2017.1109C15.3177%2016.9557%2015.2402%2016.7775%2015.2402%2016.5764C15.2402%2016.375%2015.3177%2016.1968%2015.4727%2016.0416L19.5304%2011.9839Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_code")||"Code"},{format:"codeBlock",icon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%20%3Cg%20transform%3D%22translate%283.5%2C%203.5%29%22%3E%20%20%20%20%3Cpath%20d%3D%22M4.96925%208.5L6.61725%206.852C6.76592%206.70317%206.84192%206.52908%206.84525%206.32975C6.84842%206.13042%206.77242%205.95317%206.61725%205.798C6.46208%205.643%206.28392%205.5655%206.08275%205.5655C5.88142%205.5655%205.70317%205.643%205.548%205.798L3.47875%207.86725C3.38525%207.96092%203.31925%208.05967%203.28075%208.1635C3.24225%208.26733%203.223%208.3795%203.223%208.5C3.223%208.6205%203.24225%208.73267%203.28075%208.8365C3.31925%208.94033%203.38525%209.03908%203.47875%209.13275L5.55775%2011.2115C5.70642%2011.3602%205.883%2011.4362%206.0875%2011.4395C6.292%2011.4427%206.47183%2011.3667%206.627%2011.2115C6.782%2011.0563%206.8595%2010.8807%206.8595%2010.6845C6.8595%2010.4885%206.782%2010.3129%206.627%2010.1578L4.96925%208.5ZM12.0307%208.5L10.373%2010.1578C10.2243%2010.3064%2010.1484%2010.4804%2010.1453%2010.6798C10.1421%2010.8791%2010.218%2011.0563%2010.373%2011.2115C10.5282%2011.3667%2010.7064%2011.4443%2010.9078%2011.4443C11.1089%2011.4443%2011.2871%2011.3667%2011.4423%2011.2115L13.5212%209.13275C13.6147%209.03908%2013.6808%208.94033%2013.7193%208.8365C13.7578%208.73267%2013.777%208.6205%2013.777%208.5C13.777%208.3795%2013.7578%208.26733%2013.7193%208.1635C13.6808%208.05967%2013.6147%207.96092%2013.5212%207.86725L11.4423%205.7885C11.3679%205.71417%2011.2843%205.65842%2011.1913%205.62125C11.0984%205.58408%2011.0055%205.5655%2010.9125%205.5655C10.8195%205.5655%2010.7249%205.58408%2010.6288%205.62125C10.5328%205.65842%2010.4475%205.71417%2010.373%205.7885C10.218%205.94367%2010.1405%206.11933%2010.1405%206.3155C10.1405%206.5115%2010.218%206.68708%2010.373%206.84225L12.0307%208.5ZM1.80775%2017C1.30258%2017%200.875%2016.825%200.525%2016.475C0.175%2016.125%200%2015.6974%200%2015.1923V1.80775C0%201.30258%200.175%200.875%200.525%200.525C0.875%200.175%201.30258%200%201.80775%200H15.1923C15.6974%200%2016.125%200.175%2016.475%200.525C16.825%200.875%2017%201.30258%2017%201.80775V15.1923C17%2015.6974%2016.825%2016.125%2016.475%2016.475C16.125%2016.825%2015.6974%2017%2015.1923%2017H1.80775ZM1.80775%2015.5H15.1923C15.2692%2015.5%2015.3398%2015.4679%2015.4038%2015.4038C15.4679%2015.3398%2015.5%2015.2692%2015.5%2015.1923V1.80775C15.5%201.73075%2015.4679%201.66025%2015.4038%201.59625C15.3398%201.53208%2015.2692%201.5%2015.1923%201.5H1.80775C1.73075%201.5%201.66025%201.53208%201.59625%201.59625C1.53208%201.66025%201.5%201.73075%201.5%201.80775V15.1923C1.5%2015.2692%201.53208%2015.3398%201.59625%2015.4038C1.66025%2015.4679%201.73075%2015.5%201.80775%2015.5Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E",label:V("formatting_toolbar_code_block")||"Code Block"}],I="cometchat-formatting-toolbar"+(o?" cometchat-formatting-toolbar--floating":""),O=o&&s?{top:s.top,left:s.left}:void 0,N=r.jsxs("div",{className:I,style:O,onMouseDown:E,children:[R.map((e,t)=>{if("separator"===e.format)return r.jsx("div",{className:"cometchat-formatting-toolbar__separator"},`separator-${t}`);const n=T(e.format),a=A(e.format),o=`cometchat-formatting-toolbar__button${n?" cometchat-formatting-toolbar__button--active":""}${a?" cometchat-formatting-toolbar__button--disabled":""}`;return r.jsx("div",{className:o,onMouseDown:E,"aria-pressed":n,"aria-label":e.label,"aria-disabled":a,children:r.jsx(rn,{iconURL:e.icon,hoverText:e.label,disabled:a,onClick:t=>{a||C(e.format)}})},e.format)}),d&&r.jsxs("div",{className:"cometchat-formatting-toolbar__link-input",children:[r.jsx("input",{type:"url",placeholder:V("formatting_toolbar_enter_url")||"Enter URL",value:h,onChange:e=>m(e.target.value),onKeyDown:x,autoFocus:!0,"aria-label":V("formatting_toolbar_link_url")||"Link URL","aria-invalid":!!g}),g&&r.jsx("span",{className:"cometchat-formatting-toolbar__link-input-error",children:g}),r.jsxs("div",{className:"cometchat-formatting-toolbar__link-input-actions",children:[r.jsx("div",{className:"cometchat-formatting-toolbar__link-input-button cometchat-formatting-toolbar__link-input-button--primary",children:r.jsx(rn,{text:V("formatting_toolbar_insert")||"Insert",onClick:w})}),r.jsx("div",{className:"cometchat-formatting-toolbar__link-input-button",children:r.jsx(rn,{text:V("cancel")||"Cancel",onClick:k})})]})]})]});return o?i.createPortal(N,v()):N}function sb(e){const{initialUrl:t="",initialText:n="",showTextInput:o=!0,isEditMode:i=!1,focusLinkField:s=!1,onSubmit:c,onCancel:l}=e,[u,d]=a.useState(t),[p,h]=a.useState(n),[m,g]=a.useState(""),f=a.useRef(null),_=a.useRef(null);a.useEffect(()=>{s||!o?f.current?.focus():_.current?.focus()},[]);const b=a.useMemo(()=>{if(!i)return!0;const e=u.trim()!==t.trim(),r=o&&p.trim()!==n.trim();return e||r},[i,u,t,p,n,o]),v=a.useCallback(e=>e.trim()?(g(""),!0):(g(V("link_url_required")||"URL is required"),!1),[]),y=a.useCallback(()=>{if(!b)return;if(!v(u))return;let e=u.trim();/^(https?:\/\/|mailto:|tel:)/i.test(e)||e.startsWith("/")||(e="https://"+e),c(e,o&&p.trim()||void 0)},[u,p,o,v,c,b]),E=a.useCallback(e=>{"Enter"===e.key?(e.preventDefault(),y()):"Escape"===e.key&&(e.preventDefault(),l())},[y,l]),C=a.useCallback(e=>{e.target===e.currentTarget&&l()},[l]),S=i?V("link_dialog_edit_link")||"Edit Link":V("link_dialog_add_link")||"Add Link",w=V("link_dialog_save")||"Save";return r.jsx("div",{className:"cometchat-link-dialog__backdrop",onClick:C,children:r.jsxs("div",{className:"cometchat cometchat-link-dialog",children:[r.jsxs("div",{className:"cometchat-link-dialog__header",children:[r.jsx("div",{className:"cometchat-link-dialog__title",children:S}),r.jsx("div",{className:"cometchat-link-dialog__close-button",onClick:l,role:"button","aria-label":"Close"})]}),r.jsx("div",{className:"cometchat-link-dialog__divider"}),r.jsxs("div",{className:"cometchat-link-dialog__content",children:[o&&r.jsxs("div",{className:"cometchat-link-dialog__field",children:[r.jsx("label",{className:"cometchat-link-dialog__label",children:V("link_dialog_text")||"Text"}),r.jsx("input",{ref:_,type:"text",className:"cometchat-link-dialog__input",placeholder:V("link_dialog_text_placeholder")||"Enter display text",value:p,onChange:e=>h(e.target.value),onKeyDown:E,"aria-label":"Display text"})]}),r.jsxs("div",{className:"cometchat-link-dialog__field",children:[r.jsx("label",{className:"cometchat-link-dialog__label",children:V("link_dialog_link")||"Link"}),r.jsx("input",{ref:f,type:"url",className:"cometchat-link-dialog__input "+(m?"cometchat-link-dialog__input--error":""),placeholder:"https://www.cometchat.com/",value:u,onChange:e=>{d(e.target.value),m&&g("")},onKeyDown:E,"aria-label":"Link URL","aria-invalid":!!m}),m&&r.jsx("span",{className:"cometchat-link-dialog__error",children:m})]})]}),r.jsxs("div",{className:"cometchat-link-dialog__button-group",children:[r.jsx("div",{className:"cometchat-link-dialog__button-cancel",children:r.jsx(rn,{onClick:l,text:V("cancel")||"Cancel"})}),r.jsx("div",{className:"cometchat-link-dialog__button-submit "+(b?"":"cometchat-link-dialog__button-submit--disabled"),children:r.jsx(rn,{onClick:y,text:w,disabled:!b})})]})]})})}const cb=e=>{const{linkText:t,linkUrl:n,position:o,onEdit:i,onRemove:s,onClose:c}=e,l=a.useRef(null);a.useEffect(()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&c()},t=setTimeout(()=>{document.addEventListener("mousedown",e)},100);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[c]),a.useEffect(()=>{const e=e=>{"Escape"===e.key&&c()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]);const u=a.useCallback(e=>{e.preventDefault(),window.open(n,"_blank","noopener,noreferrer")},[n]);return r.jsxs("div",{ref:l,className:"cometchat-link-popover",style:{top:o.top,left:o.left},children:[r.jsx("div",{className:"cometchat-link-popover__arrow"}),r.jsxs("div",{className:"cometchat-link-popover__content",children:[r.jsx("button",{className:"cometchat-link-popover__close",onClick:c,"aria-label":V("link_popover_close")||"Close",children:"×"}),r.jsx("div",{className:"cometchat-link-popover__text",children:t}),r.jsx("a",{href:n,className:"cometchat-link-popover__url",onClick:u,target:"_blank",rel:"noopener noreferrer",children:n}),r.jsxs("div",{className:"cometchat-link-popover__actions",children:[r.jsx("div",{className:"cometchat-link-popover__button-edit",children:r.jsx(rn,{onClick:i,text:V("link_popover_edit")||"Edit"})}),r.jsx("div",{className:"cometchat-link-popover__button-remove",children:r.jsx(rn,{onClick:s,text:V("link_popover_remove")||"Remove"})})]})]})]})},lb=[{type:"codeBlock",openDelimiter:"```",closeDelimiter:"```",priority:6},{type:"underline",openDelimiter:"<u>",closeDelimiter:"</u>",priority:5},{type:"bold",openDelimiter:"**",closeDelimiter:"**",priority:4},{type:"strikethrough",openDelimiter:"~~",closeDelimiter:"~~",priority:3},{type:"link",openDelimiter:"[",closeDelimiter:")",priority:2,customDetection:!0},{type:"codeInline",openDelimiter:"`",closeDelimiter:"`",priority:1},{type:"italic",openDelimiter:"_",closeDelimiter:"_",priority:0}],ub={"*":lb.filter(e=>e.closeDelimiter.endsWith("*")),_:lb.filter(e=>e.closeDelimiter.endsWith("_")),"~":lb.filter(e=>e.closeDelimiter.endsWith("~")),"`":lb.filter(e=>e.closeDelimiter.endsWith("`")),">":lb.filter(e=>"</u>"===e.closeDelimiter),")":lb.filter(e=>"link"===e.type)};function db(e,t){const{text:n,cursorOffset:r,scopeStart:a,scopeEnd:o}=t,{openDelimiter:i,closeDelimiter:s}=e,c=r,l=c-s.length;if(l<a)return null;if(n.substring(l,c)!==s)return null;if(mb(n,l))return null;const u=l,d=a,p=u-1,h=n.lastIndexOf(i,p);if(h<d)return null;if(mb(n,h))return null;const m=h+i.length;return m>=u?null:hb(n,h)?{pattern:e,startOffset:h,endOffset:c,contentStart:m,contentEnd:u,content:n.substring(m,u)}:null}function pb(e,t){const{text:n,cursorOffset:r,scopeStart:a}=t;if(r<1||")"!==n[r-1])return null;const o=r-1,i=n.lastIndexOf("(",o-1);if(i<a||i>=o)return null;const s=n.substring(i+1,o).trim();if(!s||0===s.length)return null;if(i<1||"]"!==n[i-1])return null;const c=i-1,l=n.lastIndexOf("[",c-1);if(l<a||l>=c)return null;const u=n.substring(l+1,c).trim();return u&&0!==u.length&&hb(n,l)?{pattern:e,startOffset:l,endOffset:r,contentStart:l+1,contentEnd:c,content:u,linkUrl:s}:null}function hb(e,t){if(0===t)return!0;const n=e[t-1];return/[\s\p{P}]/u.test(n)}function mb(e,t){if(0===t)return!1;let n=0,r=t-1;for(;r>=0&&"\\"===e[r];)n++,r--;return n%2==1}function gb(e,t){let n=0;return function e(r){if(r===t)return!0;if(r.nodeType===Node.TEXT_NODE)n+=r.textContent?.length||0;else if(r.nodeType===Node.ELEMENT_NODE)for(let t=0;t<r.childNodes.length;t++)if(e(r.childNodes[t]))return!0;return!1}(e),n}function fb(e){const{enableRichTextEditor:t,hideRichTextFormattingOptions:n,showToolbarOnSelection:r,getCurrentDocument:o,getCurrentWindow:i,getCurrentInput:s,composerContainerClass:c,errorHandler:l,setTextFormatters:u}=e,[d,p]=a.useState(!n),[h,m]=a.useState(!1),[g,f]=a.useState(null),[_,b]=a.useState([]),[v,y]=a.useState(!1),[E,C]=a.useState(!1),[S,w]=a.useState(null),[k,x]=a.useState(!1),[T,A]=a.useState(null),[R,I]=a.useState(""),O=a.useRef(null),N=a.useRef(""),M=a.useRef([]),D=a.useMemo(()=>t?function(e,t){const n=new Set,r=["bold","italic","underline","strikethrough"],a={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikeThrough"},o=(e,t)=>{if(!r.includes(e))return;const o=s(),i=!o||o.isCollapsed,c=""===(t.textContent||"").replace(/\u200B/g,"").trim();if(i||c){const t=a[e],r=!!t&&d(t);t&&r?n.add(e):n.delete(e),Array.from(n).forEach(t=>{if(t===e)return;const n=a[t],r=!!n&&d(n);n&&!r&&u(n)})}else n.clear()},i=()=>{n.clear()},s=()=>t().getSelection(),c=()=>{const e=s();return null!==e&&e.toString().length>0},l=e=>{const t=s();if(!t||0===t.rangeCount)return!1;let n=t.getRangeAt(0).startContainer;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},u=(t,n=null)=>{const r=e();try{return r.execCommand(t,!1,n||"")}catch(e){return console.warn(`Rich text formatting: execCommand '${t}' failed`,e),!1}},d=t=>{const n=e();try{return n.queryCommandState(t)}catch(e){return!1}},p=e=>{l(e)&&(u("bold"),o("bold",e))},h=e=>{l(e)&&(u("italic"),o("italic",e))},m=e=>{l(e)&&(u("underline"),o("underline",e))},g=e=>{l(e)&&(u("strikeThrough"),o("strikethrough",e))},f=(e,t)=>{for(;e&&e!==t;){if(e.nodeType===Node.ELEMENT_NODE&&"A"===e.tagName)return e;e=e.parentNode}return null},_=(t,n,r)=>{if(r.focus(),!l(r))return;const a=s();if(!a||0===a.rangeCount)return;const o=a.getRangeAt(0),i=e();if(c()){const e=f(o.startContainer,r);if(e)return e.href=t,void(n&&e.textContent!==n&&(e.textContent=n));if(n){const e=i.createElement("a");return e.href=t,e.textContent=n,o.deleteContents(),o.insertNode(e),o.setStartAfter(e),o.collapse(!0),a.removeAllRanges(),void a.addRange(o)}if(!u("createLink",t)||!f(o.startContainer,r)){const e=i.createElement("a");e.href=t;const n=o.extractContents();e.appendChild(n),o.insertNode(e),o.setStartAfter(e),o.collapse(!0),a.removeAllRanges(),a.addRange(o)}}else{const e=n||t,r=i.createElement("a");r.href=t,r.textContent=e,o.insertNode(r),o.setStartAfter(r),o.collapse(!0),a.removeAllRanges(),a.addRange(o)}},b=e=>{const t=["decimal","lower-alpha","lower-roman"],n=["disc","circle","square"],r=t=>{let n=0,r=t.parentElement;for(;r&&r!==e;)"OL"!==r.tagName&&"UL"!==r.tagName||n++,r=r.parentElement;return n},a=e.querySelectorAll("ol"),o=e.querySelectorAll("ul"),i=e.querySelectorAll("li");a.forEach(e=>{const n=r(e);e.style.listStyleType=t[n%t.length],e.style.listStylePosition="outside",e.style.paddingLeft="12px",e.style.margin="0"}),o.forEach(e=>{const t=r(e);e.style.listStyleType=n[t%n.length],e.style.listStylePosition="outside",e.style.paddingLeft="12px",e.style.margin="0"}),i.forEach(e=>{e.style.display="list-item"})},v=e=>{const t=e=>{const n=Array.from(e.children);let r=0;for(const e of n)if("OL"===e.tagName){const n=e;r>0?n.start=r+1:n.removeAttribute("start"),r+=n.querySelectorAll(":scope > li").length,n.querySelectorAll(":scope > li").forEach(e=>t(e))}else"UL"===e.tagName?(r+=e.querySelectorAll(":scope > li").length,e.querySelectorAll(":scope > li").forEach(e=>t(e))):r=0};t(e)},y=(t,n,r)=>{const a=e(),o=s(),i=(t.textContent||"").replace(/\u200B/g,""),c=a.createElement(n),l=a.createElement("li"),u=a.createTextNode(i||"​");l.appendChild(u),c.appendChild(l);const d=t.parentNode;if(d){if(d.replaceChild(c,t),o){const e=a.createRange();e.setStart(u,u.textContent.length),e.collapse(!0),o.removeAllRanges(),o.addRange(e)}U(),v(r),b(r)}},E=e=>{const t=s();if(!t||0===t.rangeCount)return!1;const n=t.getRangeAt(0);let r=n.startContainer;for(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode);r&&r!==e&&r.parentNode!==e;)r=r.parentNode;if(r===e&&(r=null),!r){const t=n.startOffset;if(t<e.childNodes.length)r=e.childNodes[t];else{if(!(e.childNodes.length>0))return!1;r=e.childNodes[e.childNodes.length-1]}}if(!r)return!1;const a=new Set(["BR","DIV","P","PRE","BLOCKQUOTE","OL","UL"]);let o=r;for(;o;){if(o.nodeType===Node.ELEMENT_NODE){if(o.classList?.contains("cometchat-mentions"))return!0;if(a.has(o.tagName))break}o=o.previousSibling}for(o=r;o;){if(o.nodeType===Node.ELEMENT_NODE){if(o.classList?.contains("cometchat-mentions"))return!0;if(a.has(o.tagName))break}o=o.nextSibling}return!1},C=(t,n)=>{const r=s();if(!r||0===r.rangeCount)return;const a=r.getRangeAt(0),o=e();let i=a.startContainer;for(i.nodeType===Node.TEXT_NODE&&(i=i.parentNode);i&&i!==n&&i.parentNode!==n;)i=i.parentNode;if(i===n&&(i=null),!i){const e=a.startOffset;if(e<n.childNodes.length)i=n.childNodes[e];else{if(!(n.childNodes.length>0))return;i=n.childNodes[n.childNodes.length-1]}}if(!i)return;const c=new Set(["BR","DIV","P","PRE","BLOCKQUOTE","OL","UL"]);let l=i,u=l.previousSibling;for(;u&&(u.nodeType!==Node.ELEMENT_NODE||!c.has(u.tagName));)l=u,u=u.previousSibling;let d=i,p=d.nextSibling;for(;p&&(p.nodeType!==Node.ELEMENT_NODE||!c.has(p.tagName));)d=p,p=p.nextSibling;const h=[];let m=l;for(;m&&(h.push(m),m!==d);)m=m.nextSibling;if(0===h.length)return;const g=o.createElement(t),f=o.createElement("li"),_=h[0];n.insertBefore(g,_);for(const e of h)f.appendChild(e);g.appendChild(f);const b=g.nextSibling;b&&b.nodeType===Node.ELEMENT_NODE&&"BR"===b.tagName&&n.removeChild(b);const v=f.lastChild;if(v){const e=o.createRange();v.nodeType===Node.TEXT_NODE?e.setStart(v,(v.textContent||"").length):e.setStartAfter(v),e.collapse(!0),r.removeAllRanges(),r.addRange(e)}},S=e=>{if(!l(e))return;const t=j(e);t?y(t,"ol",e):(k(e)||c()||!E(e)?u("insertOrderedList"):C("ol",e),v(e),b(e))},w=e=>{if(!l(e))return;const t=j(e);t?y(t,"ul",e):(k(e)||c()||!E(e)?u("insertUnorderedList"):C("ul",e),v(e),b(e))},k=e=>{const t=s();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE){const e=n.tagName;if("OL"===e||"UL"===e)return n}n=n.parentNode}return null},x=e=>{const t=s();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&"LI"===n.tagName)return n;n=n.parentNode}return null},T=e=>{const t=x(e);if(!t)return!1;const n=t.textContent||"";return""===n.trim()||""===n.replace(/\u200B/g,"").trim()},A=t=>{const n=s();if(!n||0===n.rangeCount)return!1;const r=n.getRangeAt(0);if(!r.collapsed)return!1;const a=x(t);if(!a)return!1;const o=r.startContainer,i=r.startOffset;if(o===a&&0===i)return!0;if(o.nodeType===Node.TEXT_NODE){if((o.textContent||"").substring(0,i).replace(/\u200B/g,"").length>0)return!1;const t=e().createTreeWalker(a,NodeFilter.SHOW_TEXT,null);if(t.nextNode()===o)return!0;let n;for(t.currentNode,t.currentNode=a;(n=t.nextNode())&&n!==o;)if((n.textContent||"").replace(/\u200B/g,"").length>0)return!1;return!0}if(o.nodeType===Node.ELEMENT_NODE&&0===i){if(o===a)return!0;let e=o;for(;e&&e!==a;){const t=e.previousSibling;if(t&&(t.textContent||"").replace(/\u200B/g,"").length>0)return!1;e=e.parentNode}return!0}return!1},R=t=>{if(!l(t))return;const n=s();if(!n||0===n.rangeCount)return;const r=n.getRangeAt(0),a=e();let o=!1,i=r.startContainer;for(;i&&i!==t;){if(i.nodeType===Node.ELEMENT_NODE&&"BLOCKQUOTE"===i.tagName){o=!0;break}i=i.parentNode}if(o)return void u("formatBlock","p");const c=j(t);if(c){const e=(c.textContent||"").replace(/\u200B/g,""),t=a.createElement("blockquote"),r=a.createTextNode(e||"​");t.appendChild(r);const o=c.parentNode;if(o){o.replaceChild(t,c);const e=a.createRange();e.setStart(r,r.textContent.length),e.collapse(!0),n.removeAllRanges(),n.addRange(e),U()}return}let d=r.startContainer;for(d.nodeType===Node.TEXT_NODE&&(d=d.parentNode);d&&d!==t&&d.parentNode!==t;)d=d.parentNode;if(!d||d===t){let e=r.startContainer;for(;e&&e.parentNode!==t;)e=e.parentNode;if(!e||e===t){const n=r.startOffset;if(n<t.childNodes.length)e=t.childNodes[n];else{if(!(t.childNodes.length>0))return void u("formatBlock","blockquote");e=t.childNodes[t.childNodes.length-1]}}const o=[];let i=e,s=i.previousSibling;for(;s;){if(s.nodeType===Node.ELEMENT_NODE){const e=s.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}i=s,s=s.previousSibling}let c=i;for(;c;){if(c.nodeType===Node.ELEMENT_NODE){const e=c.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}o.push(c),c=c.nextSibling}if(o.length>0){const e=a.createElement("blockquote");for(const t of o)e.appendChild(t.cloneNode(!0));t.insertBefore(e,o[0]);for(const e of o)t.removeChild(e);const r=a.createRange();return r.selectNodeContents(e),r.collapse(!1),n.removeAllRanges(),void n.addRange(r)}return void u("formatBlock","blockquote")}if(0===(d.textContent||"").trim().length)return void u("formatBlock","blockquote");const p=a.createElement("blockquote");d.parentNode.insertBefore(p,d),p.appendChild(d);const h=a.createRange();try{h.setStart(r.startContainer,r.startOffset),h.setEnd(r.endContainer,r.endOffset)}catch{h.selectNodeContents(p),h.collapse(!1)}n.removeAllRanges(),n.addRange(h)},I=t=>{if(!l(t))return;const n=s();if(!n||0===n.rangeCount)return;const r=n.getRangeAt(0),a=e();let o=null,i=r.startContainer;for(;i&&i!==t;){if(i.nodeType===Node.ELEMENT_NODE){const e=i;if("CODE"===e.tagName&&"PRE"!==e.parentElement?.tagName){o=e;break}}i=i.parentNode}if(o){const e=o.parentNode;if(e){o.querySelectorAll("span.cometchat-mentions > span").forEach(e=>{e.style.removeProperty("font"),e.style.removeProperty("font-family")});const t=[];for(;o.firstChild;){const n=o.firstChild;e.insertBefore(n,o),t.push(n)}e.removeChild(o);for(const e of t)M(e,An)}}else if(c()){const e=a.createElement("code");e.className="cometchat-rich-text-code-inline";try{r.surroundContents(e)}catch(t){const n=r.extractContents();e.appendChild(n),r.insertNode(e)}M(e,Tn);const o=a.createRange();o.setStartAfter(e),o.collapse(!0),n.removeAllRanges(),n.addRange(o)}else if(null!==t.querySelector("span.cometchat-mentions")){L(t);const e=n.getRangeAt(0),r=a.createElement("code");r.className="cometchat-rich-text-code-inline";try{const t=e.extractContents();r.appendChild(t),e.insertNode(r)}catch(t){r.appendChild(a.createTextNode("​")),e.insertNode(r)}M(r,Tn);const o=a.createRange();o.selectNodeContents(r),o.collapse(!1),n.removeAllRanges(),n.addRange(o)}else{const e=a.createElement("code");e.className="cometchat-rich-text-code-inline",e.appendChild(a.createTextNode("​")),r.insertNode(e);const t=a.createRange();t.setStart(e,1),t.collapse(!0),n.removeAllRanges(),n.addRange(t)}},O=e=>{const t=s();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE){const e=n;if("CODE"===e.tagName&&"PRE"!==e.parentElement?.tagName)return e}n=n.parentNode}return null},N=e=>{const t=[];return e instanceof HTMLElement?(e.querySelectorAll("span.cometchat-mentions").forEach(e=>{const n=e.textContent||"";t.push({displayText:n,outerHTML:e.outerHTML})}),t):t},M=(t,n)=>{const r=e().createTreeWalker(t,NodeFilter.SHOW_TEXT),a=[];let o;for(;o=r.nextNode();)a.push(o);for(const e of a){const t=n(e.textContent||"");t!==e.textContent&&(e.textContent=t)}},D=t=>{const n=e(),r=n.createDocumentFragment(),a=e=>{if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(t.classList.contains("cometchat-mentions"))return void r.appendChild(t.cloneNode(!0));for(let t=0;t<e.childNodes.length;t++)a(e.childNodes[t])}}else{const t=(e.textContent||"").replace(/\u200B/g,"");t&&r.appendChild(n.createTextNode(t))}};return a(t),r},L=t=>{const n=s();if(!n||0===n.rangeCount)return;const r=n.getRangeAt(0),a=e();let o=r.startContainer;for(o.nodeType===Node.TEXT_NODE&&(o=o.parentNode);o&&o!==t&&o.parentNode!==t;)o=o.parentNode;if(o===t&&(o=null),!o){const e=r.startOffset;if(e<t.childNodes.length)o=t.childNodes[e];else{if(!(t.childNodes.length>0))return;o=t.childNodes[t.childNodes.length-1]}}if(!o)return;let i=o,c=i.previousSibling;for(;c;){if(c.nodeType===Node.ELEMENT_NODE){const e=c.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}i=c,c=c.previousSibling}let l=o,u=l.nextSibling;for(;u;){if(u.nodeType===Node.ELEMENT_NODE){const e=u.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}l=u,u=u.nextSibling}const d=a.createRange();i.nodeType===Node.TEXT_NODE?d.setStart(i,0):d.setStartBefore(i),l.nodeType===Node.TEXT_NODE?d.setEnd(l,(l.textContent||"").length):d.setEndAfter(l),n.removeAllRanges(),n.addRange(d)},P=t=>{if(!l(t))return;const n=s();if(!n||0===n.rangeCount)return;const r=n.getRangeAt(0),a=e();let o=null,i=r.startContainer;for(;i&&i!==t;){if(i.nodeType===Node.ELEMENT_NODE&&"PRE"===i.tagName){o=i;break}i=i.parentNode}if(o){const e=o.parentNode;if(e){const r=o.getAttribute("data-mentions"),i=o.textContent||"";if(r)try{const t=JSON.parse(r);let n=i;for(const e of t){const t=n.indexOf(e.displayText);-1!==t&&(n=n.slice(0,t)+e.outerHTML+n.slice(t+e.displayText.length))}const s=a.createElement("span");s.innerHTML=n,M(s,An);const c=a.createDocumentFragment();for(;s.firstChild;)c.appendChild(s.firstChild);e.replaceChild(c,o)}catch(t){const n=a.createTextNode(An(i));e.replaceChild(n,o)}else{const t=a.createTextNode(An(i));e.replaceChild(t,o)}const s=a.createRange();s.selectNodeContents(t),s.collapse(!1),n.removeAllRanges(),n.addRange(s),U()}}else{const e=a.createElement("pre");e.className="cometchat-rich-text-code-block";const o=a.createElement("code");if(c()){const t=r.extractContents(),n=a.createElement("div");n.appendChild(t.cloneNode(!0));const i=N(n),s=D(n);M(s,Tn),s.childNodes.length>0?o.appendChild(s):o.appendChild(a.createTextNode("​")),e.appendChild(o),i.length>0&&e.setAttribute("data-mentions",JSON.stringify(i)),r.insertNode(e)}else{let i=r.startContainer;const s=r.startContainer;for(i.nodeType===Node.TEXT_NODE&&(i=i.parentNode);i&&i!==t&&i.parentNode!==t;)i=i.parentNode;const c=i&&i.nodeType===Node.ELEMENT_NODE&&/^(DIV|P|BLOCKQUOTE|PRE|UL|OL|LI|H[1-6])$/.test(i.tagName);if(i&&i!==t&&i.parentNode&&c){const t=N(i),n=D(i);M(n,Tn),n.childNodes.length>0?o.appendChild(n):o.appendChild(a.createTextNode("​")),e.appendChild(o),t.length>0&&e.setAttribute("data-mentions",JSON.stringify(t)),i.parentNode.replaceChild(e,i)}else{let i=s;for(;i&&i.parentNode!==t;)i=i.parentNode;if(!i||i===t){const s=r.startOffset;if(s<t.childNodes.length)i=t.childNodes[s];else{if(!(t.childNodes.length>0)){o.appendChild(a.createTextNode("​")),e.appendChild(o),r.insertNode(e);const t=a.createRange();return t.setStart(o,0),t.collapse(!0),n.removeAllRanges(),void n.addRange(t)}i=t.childNodes[t.childNodes.length-1]}}const c=[];let l=i,u=l.previousSibling;for(;u;){if(u.nodeType===Node.ELEMENT_NODE){const e=u.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}l=u,u=u.previousSibling}let d=l;for(;d;){if(d.nodeType===Node.ELEMENT_NODE){const e=d.tagName;if("BR"===e||"DIV"===e||"P"===e||"PRE"===e||"BLOCKQUOTE"===e||"OL"===e||"UL"===e)break}c.push(d),d=d.nextSibling}if(c.length>0){const n=a.createElement("div");for(const e of c)n.appendChild(e.cloneNode(!0));const r=N(n),i=D(n);M(i,Tn),i.childNodes.length>0?o.appendChild(i):o.appendChild(a.createTextNode("​")),e.appendChild(o),r.length>0&&e.setAttribute("data-mentions",JSON.stringify(r)),t.insertBefore(e,c[0]);for(const e of c)t.removeChild(e)}else o.appendChild(a.createTextNode("​")),e.appendChild(o),r.insertNode(e)}}const i=a.createRange();if(o.lastChild){const e=o.lastChild;if(e.nodeType===Node.TEXT_NODE){const t=(e.textContent||"").length;i.setStart(e,t)}else i.setStartAfter(e)}else i.setStart(o,0);i.collapse(!0),n.removeAllRanges(),n.addRange(i)}},j=e=>{const t=s();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&"PRE"===n.tagName)return n;n=n.parentNode}return null},U=t=>{const n=e(),r=s();if(!r||0===r.rangeCount)return;try{n.execCommand("removeFormat",!1,"")}catch(e){}const a=r.getRangeAt(0),o=n.createTextNode("​");a.insertNode(o);const i=n.createRange();i.setStart(o,1),i.collapse(!0),r.removeAllRanges(),r.addRange(i)},F=e=>{let t=e.parentElement;for(;t;){const e=t.tagName.toUpperCase();if("PRE"===e||"CODE"===e)return!0;t=t.parentElement}return!1},B=e=>{let t=e.parentElement;for(;t;){if("U"===t.tagName)return!0;t=t.parentElement}return!1},G=e=>new Set(["B","STRONG","EM","I","U","S","STRIKE","DEL","A","SPAN"]).has(e.tagName.toUpperCase()),V=t=>{if(!t||"string"!=typeof t||""===t.trim())return"";try{const n=e(),r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)if(r.firstChild.nodeType===Node.ELEMENT_NODE&&"BR"===r.firstChild.tagName)r.removeChild(r.firstChild);else{if(r.firstChild.nodeType!==Node.TEXT_NODE||""!==r.firstChild.textContent?.trim())break;r.removeChild(r.firstChild)}for(;r.lastChild;)if(r.lastChild.nodeType===Node.ELEMENT_NODE&&"BR"===r.lastChild.tagName)r.removeChild(r.lastChild);else{if(r.lastChild.nodeType!==Node.TEXT_NODE||""!==r.lastChild.textContent?.trim())break;r.removeChild(r.lastChild)}const a=n.createTreeWalker(r,NodeFilter.SHOW_TEXT,null),o=[];let i;for(;i=a.nextNode();)o.push(i);for(const e of o){if(F(e))continue;const t=e.parentElement;t&&(e.textContent&&(B(e)?e.textContent=e.textContent.replace(/\u00A0/g," "):e.textContent=e.textContent.replace(/\u00A0/g," ").replace(/[ \t]{2,}/g," ")),G(t)&&!B(e))&&(e===H(t)&&e.textContent&&(e.textContent=e.textContent.replace(/^[\t ]+/,"")),e===z(t)&&e.textContent&&(e.textContent=e.textContent.replace(/[\t ]+$/,"")))}const s=null!==r.querySelector("u")&&""!==r.querySelector("u").textContent;return r.textContent?.trim()||r.querySelector("img, video, audio")||s?r.innerHTML:""}catch{return t}},H=t=>e().createTreeWalker(t,NodeFilter.SHOW_TEXT,null).nextNode(),z=t=>{const n=e().createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let r,a=null;for(;r=n.nextNode();)a=r;return a},Y=[{delimiter:"**",tag:"b",command:"bold"},{delimiter:"~~",tag:"s",command:"strikeThrough"},{delimiter:"_",tag:"i",command:"italic"}],q=t=>{const n=s();if(!n||0===n.rangeCount)return-1;const r=n.getRangeAt(0);let a=0;const o=e().createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let i=o.nextNode();for(;i;){if(i===r.startContainer){a+=r.startOffset;break}a+=(i.textContent||"").length,i=o.nextNode()}return a},K=(t,n)=>{const r=s();if(!r)return;const a=e(),o=a.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let i=0,c=o.nextNode();for(;c;){const e=(c.textContent||"").length;if(i+e>=n){const e=n-i,t=a.createRange();return t.setStart(c,e),t.collapse(!0),r.removeAllRanges(),void r.addRange(t)}i+=e,c=o.nextNode()}const l=a.createRange();l.selectNodeContents(t),l.collapse(!1),r.removeAllRanges(),r.addRange(l)},W=(t,n)=>{const r=e().createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let a=0,o=r.nextNode();for(;o;){const e=(o.textContent||"").length;if(a+e>=n)return{node:o,offset:n-a};a+=e,o=r.nextNode()}return null},J=(t,n,r,a,o,i,c)=>{const l=e();if(!s())return;const u=W(t,n),d=W(t,a),p=W(t,o),h=W(t,r);if(!(u&&d&&p&&h))return;const m=l.createRange();m.setStart(p.node,p.offset),m.setEnd(h.node,h.offset),m.deleteContents();const g=W(t,n),f=W(t,a);if(!g||!f)return;const _=l.createRange();_.setStart(g.node,g.offset),_.setEnd(f.node,f.offset),_.deleteContents();const b=o-a,v=W(t,n);if(b<=0||!v)return;const y=W(t,n+b);if(!y)return;const E=l.createRange();E.setStart(v.node,v.offset),E.setEnd(y.node,y.offset);const C=E.extractContents();let S;switch(i){case"bold":S=l.createElement("strong");break;case"italic":S=l.createElement("em");break;case"underline":S=l.createElement("u");break;case"strikethrough":S=l.createElement("s");break;case"codeInline":S=l.createElement("code"),S.className="cometchat-rich-text-code-inline";break;case"codeBlock":{const e=l.createElement("pre");e.className="cometchat-rich-text-code-block";const t=l.createElement("code");t.textContent=C.textContent||"",e.appendChild(t),S=e;break}case"link":{const e=l.createElement("a");e.href=c||"",e.target="_blank",e.rel="noopener noreferrer",e.className="cometchat-rich-text-link",S=e;break}default:return}"codeBlock"!==i&&S.appendChild(C),E.insertNode(S),Z(t,S)},Z=(t,n)=>{const r=s();if(!r)return;const a=e(),o=a.createRange();o.setStartAfter(n),o.collapse(!0);const c=a.createTextNode("​");o.insertNode(c),o.setStartAfter(c),o.collapse(!0),r.removeAllRanges(),r.addRange(o),i()};return{getSelection:s,saveSelection:()=>{const e=s();return e&&e.rangeCount>0?e.getRangeAt(0).cloneRange():null},restoreSelection:e=>{if(!e)return;const t=s();t&&(t.removeAllRanges(),t.addRange(e))},hasSelection:c,getSelectedText:e=>{if(e)return e.toString();const t=s();return t?t.toString():""},isFormatted:(e,t)=>{switch(e){case"bold":return d("bold");case"italic":return d("italic");case"underline":return d("underline");case"strikethrough":return d("strikeThrough");case"orderedList":return d("insertOrderedList");case"unorderedList":return d("insertUnorderedList");default:return!1}},isFormattingModeActive:()=>!1,getActiveFormats:e=>{const t=[];d("bold")&&t.push("bold"),d("italic")&&t.push("italic"),d("strikeThrough")&&t.push("strikethrough"),d("insertOrderedList")&&t.push("orderedList"),d("insertUnorderedList")&&t.push("unorderedList");let r=!1;const a=s();if(a&&a.rangeCount>0){const n=a.getRangeAt(0);let o=n.startContainer;if(o.nodeType===Node.ELEMENT_NODE&&o.childNodes.length>0){const e=n.startOffset;e<o.childNodes.length?o=o.childNodes[e]:e>0&&(o=o.childNodes[e-1])}let i=!1,s=!1;for(;o&&o!==e;){if(o.nodeType===Node.ELEMENT_NODE){const e=o.tagName.toUpperCase();"A"===e&&(r=!0,t.push("link")),"BLOCKQUOTE"===e&&t.push("blockquote"),"CODE"===e&&(s=!0),"PRE"===e&&(i=!0,t.push("codeBlock"))}o=o.parentNode}s&&!i&&t.push("codeInline"),d("underline")&&!r&&t.push("underline")}else d("underline")&&t.push("underline");return Array.from(n).forEach(e=>{"underline"===e&&r||t.includes(e)||t.push(e)}),t},getActiveFormattingModes:()=>[],findFormattingAncestor:()=>null,applyFormat:()=>{},removeFormat:()=>{},toggleFormat:(e,t)=>{if(l(t))switch(e){case"bold":p(t);break;case"italic":h(t);break;case"underline":m(t);break;case"strikethrough":g(t);break;case"orderedList":S(t);break;case"unorderedList":w(t);break;case"blockquote":R(t);break;case"codeInline":I(t);break;case"codeBlock":P(t)}},toggleFormattingMode:()=>{},toggleBold:p,toggleItalic:h,toggleUnderline:m,toggleStrikethrough:g,insertLink:_,updateLink:(e,t,n)=>{const r=s();if(!r||0===r.rangeCount)return;let a=null,o=r.getRangeAt(0).startContainer;for(;o&&o!==n;){if(o.nodeType===Node.ELEMENT_NODE&&"A"===o.tagName){a=o;break}o=o.parentNode}a?(a.href=e,void 0!==t&&t!==a.textContent&&(a.textContent=t)):_(e,t,n)},removeLink:e=>{e.focus(),u("unlink")},isInsideLink:e=>{const t=s();if(!t||0===t.rangeCount)return!1;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&"A"===n.tagName)return!0;n=n.parentNode}return!1},toggleOrderedList:S,toggleUnorderedList:w,fixOrderedListContinuation:v,isInsideList:(e,t)=>{const n=s();if(!n||0===n.rangeCount)return null;const r="orderedList"===e?"OL":"UL";let a=n.getRangeAt(0).startContainer;for(;a&&a!==t;){if(a.nodeType===Node.ELEMENT_NODE&&a.tagName===r)return a;a=a.parentNode}return null},isInsideAnyList:k,getCurrentListItem:x,isCurrentListItemEmpty:T,isCursorAtListItemStart:A,handleListBackspace:t=>{if(!k(t))return!1;const n=x(t);if(!n)return!1;const r=e(),a=s();if(T(t)){const e=n.parentElement;if(!e)return!1;const t=n.previousElementSibling,o=n.nextElementSibling;if(e.removeChild(n),0===e.children.length){const t=e.parentNode;if(t){const n=r.createTextNode("​");if(t.replaceChild(n,e),a){const e=r.createRange();e.setStart(n,0),e.collapse(!0),a.removeAllRanges(),a.addRange(e)}}}else if(t&&"LI"===t.tagName){if(a){const e=r.createRange(),n=r.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let o,i=null;for(;o=n.nextNode();)i=o;i?e.setStart(i,(i.textContent||"").length):(e.selectNodeContents(t),e.collapse(!1)),e.collapse(!0),a.removeAllRanges(),a.addRange(e)}}else if(o&&"LI"===o.tagName&&a){const e=r.createRange();e.selectNodeContents(o),e.collapse(!0),a.removeAllRanges(),a.addRange(e)}return!0}if(A(t)){const e=n.parentElement;if(!e)return!1;const o=e.parentNode;if(!o)return!1;const i=r.createDocumentFragment();for(;n.firstChild;)i.appendChild(n.firstChild);const s=1===e.children.length,c=n.previousElementSibling;if(s)o.replaceChild(i,e);else if(c)e.removeChild(n),o.insertBefore(i,e.nextSibling);else if(o.insertBefore(i,e),e.removeChild(n),e.children.length>0){const t=r.createElement("br");o.insertBefore(t,e)}if(a){const e=r.createRange(),n=r.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let o,s=null;for(;o=n.nextNode();)if(i.contains&&!i.contains(o)&&((o.textContent||"").replace(/\u200B/g,"").length>0||"​"===o.textContent)){s=o;break}s&&(e.setStart(s,0),e.collapse(!0),a.removeAllRanges(),a.addRange(e))}return!0}return!1},handleListEnter:t=>{if(!k(t))return!1;const n=x(t);if(!n)return!1;if(T(t)){const t=e(),r=s(),a=n.parentNode;if(a)if(a.removeChild(n),0===a.childNodes.length){const e=a.parentNode;if(e){const n=t.createElement("br");if(e.replaceChild(n,a),r){const e=t.createRange();e.setStartAfter(n),e.collapse(!0),r.removeAllRanges(),r.addRange(e)}}}else{const e=t.createElement("br"),n=a.parentNode;if(n&&a.nextSibling?n.insertBefore(e,a.nextSibling):n&&n.appendChild(e),r){const n=t.createRange();n.setStartAfter(e),n.collapse(!0),r.removeAllRanges(),r.addRange(n)}}return!0}return u("insertParagraph"),v(t),b(t),!0},handleListTab:(t,n)=>{if(!k(t))return!1;const r=x(t);if(!r)return!1;const a=e(),o=s();if(n){const e=r.parentElement;if(!e||"OL"!==e.tagName&&"UL"!==e.tagName)return!1;const n=e.parentElement;if(!n||"LI"!==n.tagName)return!1;const i=n.parentElement;if(!i)return!1;const s=[];let c=r.nextElementSibling;for(;c;)s.push(c),c=c.nextElementSibling;if(n.nextSibling?i.insertBefore(r,n.nextSibling):i.appendChild(r),s.length>0){const t=a.createElement(e.tagName);s.forEach(e=>t.appendChild(e)),r.appendChild(t)}if(0===e.children.length&&e.parentNode?.removeChild(e),o){const e=a.createRange();if(r.firstChild){const t=r.lastChild;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,(t.textContent||"").length);else{const t=a.createTreeWalker(r,NodeFilter.SHOW_TEXT,null).nextNode();t?e.setStart(t,(t.textContent||"").length):(e.selectNodeContents(r),e.collapse(!1))}}else e.selectNodeContents(r),e.collapse(!1);e.collapse(!0),o.removeAllRanges(),o.addRange(e)}return v(t),b(t),!0}{const e=r.previousElementSibling;if(!e||"LI"!==e.tagName)return!1;const n=r.parentElement;if(!n)return!1;const i=n.tagName;let s=e.querySelector(":scope > ol, :scope > ul");if(s||(s=a.createElement(i),e.appendChild(s)),s.appendChild(r),o){const e=a.createRange();if(r.firstChild){const t=r.lastChild;t&&t.nodeType===Node.TEXT_NODE?e.setStart(t,(t.textContent||"").length):(e.selectNodeContents(r),e.collapse(!1))}else e.selectNodeContents(r),e.collapse(!1);e.collapse(!0),o.removeAllRanges(),o.addRange(e)}return v(t),b(t),!0}},handleCodeBlockEnter:t=>{const n=j(t);if(!n)return!1;const r=e(),a=s();if(!a||0===a.rangeCount)return!1;const o=n.querySelector("code")||n;let i=o.textContent||"";const c=i.replace(/\u200B+$/,""),l=c.endsWith("\n\n")||c.endsWith("\n")&&c.trim()!==c.slice(0,-1),u=a.getRangeAt(0);let d=0;if(u.startContainer.nodeType===Node.TEXT_NODE){const e=r.createTreeWalker(o,NodeFilter.SHOW_TEXT,null);let t=e.nextNode();for(;t;){if(t===u.startContainer){d+=u.startOffset;break}d+=(t.textContent||"").length,t=e.nextNode()}}else u.startContainer!==o&&u.startContainer!==n||(d=i.length);if((d>=c.length-1||d>=i.length-1)&&l){let e=i.replace(/[\n\u200B]+$/,"");e||(e="​"),"CODE"===o.tagName?o.textContent=e:n.textContent=e;const t=r.createTextNode("​"),s=n.parentNode;if(s){n.nextSibling?s.insertBefore(t,n.nextSibling):s.appendChild(t);const e=r.createRange();e.setStart(t,1),e.collapse(!0),a.removeAllRanges(),a.addRange(e)}return!0}const p=u.startContainer;if(p.nodeType===Node.TEXT_NODE){const e=p.textContent||"",t=u.startOffset,n=e.slice(t),o=n&&"\n"!==n&&""!==n.trim()?"\n":"\n​";p.textContent=e.slice(0,t)+o+n;const i=r.createRange();i.setStart(p,t+1),i.collapse(!0),a.removeAllRanges(),a.addRange(i)}else{const e=o.textContent||"";o.textContent=e+"\n​";const t=r.createRange();o.firstChild&&t.setStart(o.firstChild,e.length+1),t.collapse(!0),a.removeAllRanges(),a.addRange(t)}return!0},handleCodeBlockBackspace:t=>{const n=j(t);if(!n)return!1;const r=s();if(!r||0===r.rangeCount)return!1;const a=((n.querySelector("code")||n).textContent||"").replace(/\u200B/g,"").trim(),o=r.getRangeAt(0),i=o.toString().replace(/\u200B/g,"").trim(),c=!o.collapsed&&i===a;if(""===a||c){const t=e(),a=n.parentNode;if(a){const e=t.createTextNode("​");a.replaceChild(e,n);const o=t.createRange();o.setStart(e,0),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}return!0}return!1},handleAutoListTrigger:t=>{const n=s();if(!n||0===n.rangeCount||!n.isCollapsed)return null;const r=n.getRangeAt(0),a=r.startContainer;if(a.nodeType!==Node.TEXT_NODE)return null;if(k(t))return null;const o=a.textContent||"",i=r.startOffset,c=o.substring(0,i);let l=!1;const u=a.parentElement;if(u){u.textContent;let e="";for(let t=0;t<u.childNodes.length;t++){const n=u.childNodes[t];if(n===a)break;e+=n.textContent||""}l=0===e.trim().length}if(!l)return null;let d=null,p=0;if("1."===c?(d="orderedList",p=2):("-"===c||"*"===c)&&(d="unorderedList",p=1),!d)return null;const h=e().createRange();return h.setStart(a,0),h.setEnd(a,p),h.deleteContents(),"orderedList"===d?S(t):w(t),d},applyListInlineStyles:b,toggleBlockquote:R,isInsideBlockquote:e=>{const t=s();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0).startContainer;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&"BLOCKQUOTE"===n.tagName)return n;n=n.parentNode}return null},toggleCodeInline:I,toggleCodeBlock:P,isInsideCodeInline:O,isInsideCodeBlock:j,handleInlineCodePreservation:(t,n)=>{if(!n)return;if(O(t))return;const r=s();if(!r||0===r.rangeCount)return;const a=r.getRangeAt(0),o=a.startContainer;if(o.nodeType!==Node.TEXT_NODE||!o.parentNode)return;const i=e(),c=i.createElement("code");c.className="cometchat-rich-text-code-inline";try{o.parentNode.insertBefore(c,o),c.appendChild(o);const e=i.createRange();e.setStart(o,a.startOffset),e.collapse(!0),r.removeAllRanges(),r.addRange(e)}catch{}},clearFormattingModes:()=>{const e=["bold","italic","underline","strikeThrough"];for(const t of e)d(t)&&u(t)},resetFontContext:U,handleKeyboardShortcut:(e,t)=>{if(!(/mac/i.test(navigator.userAgent)?e.metaKey:e.ctrlKey))return!1;const n=e.key.toLowerCase(),r=!!j(t);return"b"===n?(e.preventDefault(),r||p(t),!0):"i"===n?(e.preventDefault(),r||h(t),!0):"u"===n?(e.preventDefault(),r||m(t),!0):("x"===n||"X"===n)&&e.shiftKey||("s"===n||"S"===n)&&e.shiftKey?(e.preventDefault(),r||g(t),!0):"k"===n?(e.preventDefault(),!0):"7"===e.key&&e.shiftKey?(e.preventDefault(),S(t),!0):"8"===e.key&&e.shiftKey?(e.preventDefault(),w(t),!0):"9"===e.key&&e.shiftKey?(e.preventDefault(),R(t),!0):"e"===n?(e.preventDefault(),r||I(t),!0):!("c"!==n&&"C"!==n||!e.shiftKey||(e.preventDefault(),P(t),0))},handleArrowKeyInCode:(t,n)=>{if("ArrowRight"!==t.key)return!1;const r=s();if(!r||0===r.rangeCount)return!1;const a=r.getRangeAt(0);if(!a.collapsed)return!1;let o=null,i=a.startContainer;for(;i&&i!==n;){if(i.nodeType===Node.ELEMENT_NODE){const e=i;if("CODE"===e.tagName&&"PRE"!==e.parentElement?.tagName){o=e;break}}i=i.parentNode}if(!o&&a.startContainer.parentElement){let e=a.startContainer.parentElement;for(;e&&e!==n;){if("CODE"===e.tagName&&"PRE"!==e.parentElement?.tagName){o=e;break}e=e.parentElement}}if(!o)return!1;const c=o.textContent||"",l=c.replace(/\u200B/g,"");let u=0;if(a.startContainer.nodeType===Node.TEXT_NODE){const t=e().createTreeWalker(o,NodeFilter.SHOW_TEXT,null);let n=t.nextNode();for(;n;){if(n===a.startContainer){u+=a.startOffset;break}u+=(n.textContent||"").length,n=t.nextNode()}}else if(a.startContainer===o)for(let e=0;e<a.startOffset&&e<o.childNodes.length;e++)u+=(o.childNodes[e].textContent||"").length;if(c.substring(0,u).replace(/\u200B/g,"").length>=l.length){t.preventDefault();const n=e();let a=o.nextSibling;if(!a||a.nodeType===Node.TEXT_NODE&&!(a.textContent||"").trim()){const e=n.createTextNode("​");o.parentNode&&(o.parentNode.insertBefore(e,o.nextSibling),a=e)}const i=n.createRange();return a&&a.nodeType===Node.TEXT_NODE?i.setStart(a,0):i.setStartAfter(o),i.collapse(!0),r.removeAllRanges(),r.addRange(i),!0}return!1},getPlainText:t=>{const n=e().createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""},normalizeHtml:t=>{const n=e().createElement("div");return n.innerHTML=t,n.innerHTML=n.innerHTML.replace(/\u200B/g,""),n.innerHTML=V(n.innerHTML),n.innerHTML},trimRichTextWhitespace:V,handleMarkdownShortcuts:(t,n)=>{const r=s();if(!r||0===r.rangeCount||!r.isCollapsed)return!1;const a=r.getRangeAt(0),o=a.startContainer;if(o.nodeType!==Node.TEXT_NODE)return!1;if(j(t)||O(t))return!1;let i=o;for(;i&&i!==t;){if(i.nodeType===Node.ELEMENT_NODE&&i.classList.contains("cometchat-mentions"))return!1;i=i.parentNode}let c=o;for(;c&&c!==t;){if(c.nodeType===Node.ELEMENT_NODE&&"A"===c.tagName)return!1;c=c.parentNode}const l=o.textContent||"",u=a.startOffset,d=l.substring(0,u);for(const t of Y){const a=t.delimiter,i=a.length;if(!d.endsWith(a))continue;const s=d.substring(0,d.length-i),c=s.lastIndexOf(a);if(c<0)continue;const p=s.substring(c+i);if(!p||!p.trim())continue;if("_"===a&&c>0&&"_"===s[c-1])continue;if("_"===a&&l.substring(u).startsWith("_"))continue;n&&n();const h=e(),m=c,g=u,f=h.createElement(t.tag);f.textContent=p;const _=l.substring(0,m),b=l.substring(g),v=o.parentNode;if(!v)return!1;const y=h.createDocumentFragment();_&&y.appendChild(h.createTextNode(_)),y.appendChild(f);const E=h.createTextNode("​"+b);y.appendChild(E),v.replaceChild(y,o);const C=h.createRange();return C.setStart(E,1),C.collapse(!0),r.removeAllRanges(),r.addRange(C),!0}return!1},clearPendingFormats:i,getPendingFormats:()=>Array.from(n),getTextOffsetAtCursor:q,setCursorByTextOffset:K,convertMarkdownToFormat:J,positionCursorAfterFormat:Z,applyMarkdownConversion:(e,t,n)=>{const r=e.innerHTML,a=s();let o=-1;a&&a.rangeCount>0&&a.isCollapsed&&(o=q(e));try{J(e,t.startOffset,t.endOffset,t.contentStart,t.contentEnd,n,t.linkUrl)}catch(t){console.error("Markdown conversion DOM manipulation failed:",t);try{e.innerHTML=r,o>=0&&K(e,o)}catch(t){console.error("Failed to restore state after markdown conversion error:",t);try{e.focus()}catch(e){}}}}}}(o,i):null,[t]),L=a.useRef(null),P=a.useRef(null);a.useEffect(()=>{t&&(L.current||(L.current=new On),P.current||(P.current=new Nn),u(e=>{let t=e;const n=L.current,r=P.current;if(t.some(e=>e.getId()===n.getId())||(t=[n,...t]),!t.some(e=>e instanceof Nn)){const e=t.indexOf(n);t=[...t.slice(0,e+1),r,...t.slice(e+1)]}return t===e?e:t}))},[t]);const j=a.useCallback(()=>{let e="";if(D){const t=D.saveSelection();O.current=t,e=D.getSelectedText(t)}N.current=e,I(e),y(!0)},[D]),U=a.useCallback((e,t)=>{const n=s();if(!n||!D)return y(!1),x(!1),void A(null);const r=n;if(r.focus(),O.current&&D.restoreSelection(O.current),k)D.updateLink(e,t,r);else{const n=N.current,a=i().getSelection(),o=a&&a.toString().length>0;if(n&&!o&&O.current)try{D.restoreSelection(O.current);const e=i().getSelection();e&&e.rangeCount>0&&e.getRangeAt(0).deleteContents()}catch(e){}D.insertLink(e,t||n,r)}O.current=null,y(!1),x(!1),A(null),N.current="",I("");const a=D.getActiveFormats(r);b(a)},[D,k]),F=a.useCallback(()=>{O.current=null,y(!1),x(!1),A(null),N.current="",I("")},[]),B=a.useCallback(e=>{const n=e.target,r="A"===n.tagName?n:n.closest("a");if(r&&t){e.preventDefault(),e.stopPropagation();const t=r.getBoundingClientRect(),a=n.closest(`.${c}`),o=a?.getBoundingClientRect(),i=t.top-(o?.top||0)-8,s=t.left-(o?.left||0);w({linkText:r.textContent||"",linkUrl:r.href||"",linkElement:r,position:{top:i,left:s}}),C(!0)}},[t,c]),G=a.useCallback(()=>{if(S?.linkElement&&D){const e=o().createRange();e.selectNodeContents(S.linkElement),O.current=e,x(!0),A({url:S.linkUrl,text:S.linkText}),C(!1),w(null),y(!0)}},[S,D]),V=a.useCallback(()=>{if(S?.linkElement&&D){const e=s();if(e){const t=o(),n=i(),r=t.createRange();r.selectNodeContents(S.linkElement);const a=n.getSelection();a&&(a.removeAllRanges(),a.addRange(r)),D.removeLink(e)}}C(!1),w(null)},[S,D]),H=a.useCallback(()=>{C(!1),w(null)},[]),z=a.useCallback(()=>{if(D){const e=s();if(e){const t=D.getActiveFormats(e);b(t)}}},[D]),Y=a.useCallback(()=>{const e=s();if(!e||!D)return;const t={originalHtml:e.innerHTML,cursorPosition:D.getTextOffsetAtCursor(e),timestamp:Date.now()};M.current=[t]},[D]),q=a.useCallback(()=>{if(0===M.current.length)return!1;const e=s();if(!e||!D)return!1;const t=M.current.pop();if(!t)return!1;e.innerHTML=t.originalHtml,D.setCursorByTextOffset(e,t.cursorPosition);const n=D.getActiveFormats(e);return b(n),!0},[D]),K=a.useCallback(e=>e in ub,[]),W=a.useCallback((e,t)=>{if(!D)return!1;try{const n=i(),r=n.getSelection();if(!r||0===r.rangeCount||!r.isCollapsed)return!1;const a=r.getRangeAt(0),s=a.startContainer;if(a.startOffset,D.isInsideCodeBlock(e)||D.isInsideCodeInline(e))return!1;if(function(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===Node.ELEMENT_NODE&&n.classList.contains("cometchat-mentions"))return!0;n=n.parentNode}return!1}(s,e))return!1;if(function(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===Node.ELEMENT_NODE&&"A"===n.tagName)return!0;n=n.parentNode}return!1}(s,e))return!1;const c=function(e,t){let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE){const e=n.tagName;if(["P","DIV","LI","BLOCKQUOTE","PRE"].includes(e))break}n=n.parentNode}n&&n!==e||(n=e),e.textContent;const r=n.textContent||"",a=gb(e,n);return{start:a,end:a+r.length}}(e,s),l=e.textContent||"",u=D.getTextOffsetAtCursor(e);if(u<0)return!1;const d={text:l,cursorOffset:u,triggerChar:t,scopeStart:c.start,scopeEnd:c.end},p=performance.now(),h=function(e){const{text:t,cursorOffset:n,triggerChar:r,scopeStart:a,scopeEnd:o}=e,i=ub[r];if(!i||0===i.length)return null;const s=[...i].sort((e,t)=>t.priority-e.priority);for(const t of s){const n=t.customDetection?pb(t,e):db(t,e);if(n)return n}return null}(d),m=!!h&&function(e,t){const{pattern:n,content:r,startOffset:a,endOffset:o}=e,{text:i,scopeStart:s,scopeEnd:c}=t,l=i.substring(a,a+n.openDelimiter.length),u=i.substring(o-n.closeDelimiter.length,o);return!(l!==n.openDelimiter||u!==n.closeDelimiter||!r||0===r.trim().length||a<s||o>c)}(h,d),g=performance.now()-p;if(g>100&&console.warn(`Markdown pattern detection took ${g.toFixed(1)}ms (threshold: 100ms). Text length: ${l.length}, trigger: '${t}'`),!h||!m)return!1;if(function(e,t,n){const r=function(e){const t=[],n=e.querySelectorAll("span.cometchat-mentions, a");for(let r=0;r<n.length;r++){const a=n[r],o=gb(e,a),i=(a.textContent||"").length;t.push({start:o,end:o+i})}return t}(e);for(const e of r){if((t>=e.start&&t<e.end)!=(n>e.start&&n<=e.end))return!0;if(t<e.start&&n>e.end)return!0}return!1}(e,h.startOffset,h.endOffset))return!1;Y();const f=h.pattern.type;D.applyMarkdownConversion(e,h,f),o().activeElement===e||e.contains(o().activeElement)||e.focus();const _=n.getSelection();if(!_||0===_.rangeCount){const t=o().createRange();t.selectNodeContents(e),t.collapse(!1);const r=n.getSelection();r&&(r.removeAllRanges(),r.addRange(t))}const v=D.getActiveFormats(e);return b(v),!0}catch(e){return console.warn("Markdown detection and conversion failed:",e),!1}},[D,Y]),J=a.useCallback(e=>{if("insertText"!==e.inputType)return;const t=e.data;if(!t||1!==t.length)return;if(!K(t))return;const n=s();n&&requestAnimationFrame(()=>{W(n,t)})},[K,W]);a.useEffect(()=>{if(!t||!D||n)return;const e=s();if(!e)return;const r=e=>J(e);return e.addEventListener("beforeinput",r),()=>{e.removeEventListener("beforeinput",r)}},[t,D,n,J]);const Z=a.useCallback((e,r)=>{if(!t||!D||!r||n)return!1;const a=/mac/i.test(navigator.userAgent)?e.metaKey:e.ctrlKey;if(a&&"z"===e.key.toLowerCase()&&!e.shiftKey)return M.current.length>0&&(e.preventDefault(),q(),!0);if(a&&"k"===e.key.toLowerCase()){if(e.preventDefault(),D.isInsideCodeBlock(r))return!0;let t="";if(D){const e=D.saveSelection();O.current=e,t=D.getSelectedText(e)}return N.current=t,I(t),y(!0),!0}if(13===e.keyCode&&e.shiftKey){if(D.handleListEnter(r))return e.preventDefault(),!0;if(D.handleCodeBlockEnter(r))return e.preventDefault(),!0}if("Tab"===e.key&&D.handleListTab(r,e.shiftKey))return e.preventDefault(),!0;if("ArrowRight"===e.key&&D.handleArrowKeyInCode(e,r))return!0;if("Backspace"===e.key){if(D.handleListBackspace(r)){e.preventDefault();const t=D.getActiveFormats(r);return b(t),!0}if(D.handleCodeBlockBackspace(r)){e.preventDefault();const t=D.getActiveFormats(r);return b(t),!0}}if(" "===e.key&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&D.handleAutoListTrigger(r)){e.preventDefault();const t=D.getActiveFormats(r);return b(t),!0}if(D.handleKeyboardShortcut(e,r)){const e=D.getActiveFormats(r);return b(e),!0}return!1},[t,D,n]);return a.useEffect(()=>{if(!t||!r||wt())return;const e=()=>{try{if(d)return void m(!1);const e=i(),t=e?.getSelection(),n=s();if(!t||!n)return void m(!1);if(0===t.rangeCount)return void m(!1);const r=t.getRangeAt(0);if(!n.contains(r.startContainer)||!n.contains(r.endContainer))return void m(!1);const a=t.toString();if(!a||0===a.length)return void m(!1);const o=r.getBoundingClientRect(),c=36,l=8,u=e?.innerWidth||800,p=e?.innerHeight||600;let h=o.top-c-l,g=o.left+o.width/2;h<10&&(h=o.bottom+l),h+c>p-10&&(h=p-c-10);const _=280;if(g-_/2<10?g=_/2+10:g+_/2>u-10&&(g=u-_/2-10),f({top:h,left:g}),m(!0),D){const e=D.getActiveFormats(n);b(e)}}catch(e){l(e,"handleSelectionChange")}},n=e=>{try{const t=s(),n=e.target,r=o()?.querySelector(".cometchat-formatting-toolbar--floating"),a=t&&!t.contains(n),i=!r||!r.contains(n);a&&i&&m(!1)}catch(e){l(e,"handleClickOutside")}},a=o();return a?.addEventListener("selectionchange",e),a?.addEventListener("mousedown",n),()=>{a?.removeEventListener("selectionchange",e),a?.removeEventListener("mousedown",n)}},[t,r,D,d]),a.useEffect(()=>{if(!t||!D||!d)return;const e=()=>{try{const e=s();if(!e)return;const t=i(),n=t?.getSelection();if(n&&n.rangeCount>0){const t=n.getRangeAt(0);if(!e.contains(t.startContainer))return void b([])}const r=D.getActiveFormats(e);b(r)}catch(e){l(e,"handleSelectionChangeForFormats")}},n=o();return n?.addEventListener("selectionchange",e),()=>{n?.removeEventListener("selectionchange",e)}},[t,D,d]),{isFixedToolbarVisible:d,setIsFixedToolbarVisible:p,isFloatingToolbarVisible:h,setIsFloatingToolbarVisible:m,floatingToolbarPosition:g,activeFormats:_,setActiveFormats:b,showLinkInput:v,showLinkPopover:E,linkPopoverData:S,isLinkEditMode:k,linkEditData:T,linkDialogSelectedText:R,linkDialogSelectedTextRef:N,richTextFormatter:D,handleLinkClick:j,handleLinkSubmit:U,handleLinkCancel:F,handleInputClick:B,handleLinkPopoverEdit:G,handleLinkPopoverRemove:V,handleLinkPopoverClose:H,handleFormatApplied:z,handleFormattingKeyDown:Z,saveMarkdownUndoState:Y,handleMarkdownUndo:q}}const _b="No user or group object provided. Should at least provide one.";function bb(e,t){let n=e;const{type:r}=t;switch(r){case"setText":n={...e,text:t.text};break;case"setAddToMsgInputText":n={...e,addToMsgInputText:t.addToMsgInputText};break;case"setTextMessageToEdit":n={...e,textMessageToEdit:t.textMessageToEdit};break;case"setMessageToReply":n={...e,messageToReply:t.messageToReply};break;case"setContentToDisplay":n={...e,contentToDisplay:t.contentToDisplay};break;case"setLoggedInUser":n={...e,loggedInUser:t.loggedInUser};break;case"setShowPoll":n={...e,showPoll:t.showPoll};break;case"setShowMentionsCountWarning":n={...e,showMentionsCountWarning:t.showMentionsCountWarning};break;case"setShowValidationError":n={...e,showValidationError:t.showValidationError}}return n}function vb(e){const{user:n,group:i,initialComposerText:s="",onTextChange:c,onSendButtonClick:d,onError:p,sendButtonView:h,auxiliaryButtonView:m,headerView:g=null,attachmentOptions:f,parentMessageId:_=null,disableTypingEvents:b=!1,disableMentions:v=!1,hideImageAttachmentOption:y=!1,hideVideoAttachmentOption:E=!1,hideAudioAttachmentOption:C=!1,hideFileAttachmentOption:S=!1,hidePollsOption:w=!1,hideCollaborativeDocumentOption:k=!1,hideCollaborativeWhiteboardOption:x=!1,hideAttachmentButton:T=!1,hideVoiceRecordingButton:A=!1,hideEmojiKeyboardButton:R=!1,hideStickersButton:I=!1,hideSendButton:O=!1,textFormatters:N=[],enterKeyBehavior:M=t.C5S.SendMessage,disableSoundForMessage:D=!1,customSoundForMessage:L,showScrollbar:P=!1,placeholderText:j=V("message_composer_placeholder"),disableMentionAll:U=!1,mentionAllLabel:F="all",mentionsUsersRequestBuilder:B,mentionsGroupMembersRequestBuilder:G}=e,H=!1,z=!1,[q,K]=a.useReducer(bb,{text:s,addToMsgInputText:s,textMessageToEdit:null,messageToReply:null,contentToDisplay:"none",loggedInUser:null,showPoll:!1,showMentionsCountWarning:!1,showValidationError:!1}),W=a.useRef(null),J=a.useRef(!1),Z=a.useRef(null),$=a.useRef(""),Q=a.createRef(),X=a.createRef(),ee=a.createRef(),te=a.createRef(),ne=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType();if(!le.current){if(e.getParentMessageId())return!1;if(se.current){if(n===pt.MessageReceiverType.user&&t===se.current.getUid())return!0}else if(ce.current&&n===pt.MessageReceiverType.group&&t===ce.current.getGuid())return!0;return!1}if(e.getParentMessageId()===le.current)return!0}catch(e){ie(e,"isPartOfCurrentChatForUIEvent")}},[]),re=a.useRef(new Map),ae=a.useRef(null),oe=a.useRef(null),ie=u(p),se=l(n),ce=l(i),le=l(_),ue=l(null),de=l(d);a.useState(null);const[pe,he]=a.useState(N),[me,ge]=a.useState(""),fe=a.useRef(""),_e=a.useRef(""),be=a.useRef(void 0),ve=a.useRef(void 0),[ye,Ee]=a.useState(!1),Ce=a.useRef(Gf.getDataSource().getMentionsTextFormatter({})),[Se,we]=a.useState(0),[ke,xe]=a.useState(),[Te,Ae]=a.useState(void 0),[Re,Ie]=a.useState(void 0),Oe=a.useRef(null),Ne=a.useRef(null),Me=a.useRef(null),De="composer_"+Date.now(),Le=l(D),Pe=l(L),je=Y(),Ue=()=>je?.iframeWindow||window,Fe=()=>je?.iframeDocument||document,{isFixedToolbarVisible:Be,isFloatingToolbarVisible:Ge,setIsFloatingToolbarVisible:Ve,floatingToolbarPosition:He,activeFormats:ze,setActiveFormats:Ye,showLinkInput:qe,showLinkPopover:Ke,linkPopoverData:We,isLinkEditMode:Je,linkEditData:Ze,linkDialogSelectedText:$e,richTextFormatter:Qe,handleLinkClick:Xe,handleLinkSubmit:et,handleLinkCancel:tt,handleInputClick:nt,handleLinkPopoverEdit:rt,handleLinkPopoverRemove:at,handleLinkPopoverClose:ot,handleFormatApplied:it,handleFormattingKeyDown:st,saveMarkdownUndoState:ct,handleMarkdownUndo:lt}=fb({enableRichTextEditor:H,hideRichTextFormattingOptions:z,showToolbarOnSelection:!1,getCurrentDocument:Fe,getCurrentWindow:Ue,getCurrentInput:an,composerContainerClass:"cometchat-message-composer",errorHandler:ie,setTextFormatters:he}),ut=a.useCallback(()=>{Le.current||Jf.play(Jf.Sound.outgoingMessage,Pe.current)},[Pe,Le]),mt=a.useCallback(()=>{_e.current=fe.current,Ee(!1),ge(""),fe.current=""},[Ee,ge]);a.useEffect(()=>{try{var e=yn.ccActivePopover.subscribe(e=>{q.contentToDisplay!=e&&(K({type:"setContentToDisplay",contentToDisplay:"none"}),Q.current?.closePopover(),X.current?.closePopover(),ee.current?.closePopover(),te.current?.closePopover())});return()=>{e.unsubscribe()}}catch(e){ie(e,"ccActivePopover")}},[q.contentToDisplay]),a.useEffect(()=>{const e=!(me&&me.trim().length>0&&!F.toLowerCase().startsWith(me.trim().toLowerCase()));!v||ke!==t.Okh.users&&e||Ee(!1)},[me,v,ke,F]),a.useEffect(()=>{},[H,Qe]);const gt=a.useCallback(e=>{try{if(!e||!e.length)return ge(""),fe.current="",Ee(!1),void we(1);let t=e.split("@")[1].toLowerCase()?e.split("@")[1].toLowerCase():void 0;t&&_e.current&&t.startsWith(_e.current.toLowerCase())||t===me||(ge(t),fe.current=t,Ee(!0),_e.current="",we(Se+1))}catch(e){ie(e,"searchMentions")}},[ge,Ee,we]),ft=a.useCallback(e=>{try{const t=an();if(pe&&pe.length)for(let e=0;e<pe.length;e++)t&&pe[e].setInputElementReference(t);if(Ne&&pe&&pe.length){if(pe&&pe.length)for(let t=0;t<pe.length;t++)pe[t].setCaretPositionAndRange(Ne.current,Me.current),pe[t].getFormattedTextForEntity(e);let n="<br>"==t?.innerHTML?.trim()?void 0:Tt(t?.innerHTML);if("<br>"==t?.innerHTML?.trim()&&(t.innerHTML=""),n&&pe&&pe.length)for(let e=0;e<pe.length;e++)n=pe[e].getOriginalText(n);Kt(void 0,n)}}catch(e){ie(e,"reRenderMentions")}},[pe]),_t=a.useCallback(()=>{try{const e=se.current,t=ce.current;if(e){const t=e.getBlockedByMe()||e.getHasBlockedMe();return{receiverId:e?.getUid(),receiverType:pt.MessageReceiverType.user,isBlocked:t}}if(t)return{receiverId:t?.getGuid(),receiverType:pt.MessageReceiverType.group};throw new Error(_b)}catch(e){throw ie(e,"getReceiverDetails"),new Error(_b)}},[ce,se]),vt=a.useCallback(()=>{try{const{receiverId:e,receiverType:t,isBlocked:n}=_t();if(n)return;return new o.CometChat.TypingIndicator(e,t)}catch(e){ie(e,"getTypingNotification")}},[_t]),Et=a.useCallback(()=>{try{const e=vt();if(!e)return;o.CometChat.startTyping(e)}catch(e){ie(e,"startTyping")}},[vt,ie]),St=a.useCallback(()=>{try{o.CometChat.endTyping(vt()),ae.current=null}catch(e){ie(e,"endTyping")}},[vt,ie]),kt=a.useCallback(()=>{try{if(b)return;null!==ae.current?(Ue()?.clearTimeout(ae.current),ae.current=null):Et(),ae.current=Ue()?.setTimeout(()=>St(),500)}catch(e){ie(e,"handleTyping")}},[Et,St,b]);function xt(){try{const e=se.current;if(e)return{user:e.getUid(),group:null,parentMessageId:_};const t=ce.current;return t?{user:null,group:t.getGuid(),parentMessageId:_}:{user:null,group:null,parentMessageId:_}}catch(e){return ie(e,"getComposerId"),{user:null,group:null,parentMessageId:null}}}const At=a.useCallback(function(e){try{K({type:"setAddToMsgInputText",addToMsgInputText:""}),setTimeout(()=>{K({type:"setAddToMsgInputText",addToMsgInputText:e})},0)}catch(e){ie(e,"setAddToMsgInputText")}},[K]),Rt=a.useCallback((e,n,r)=>{try{const a=n.getMetadata()||{};if(n.setMetadata({...a,error:e}),n instanceof o.CometChat.MediaMessage){const e=n.getMetadata();!e?.fileName&&e?.file?.name&&(e.fileName=e.file.name,e.fileType=e.file.type,e.fileSize=e.file.size)}r?Qf.ccMessageEdited.next({message:n,status:t.qpt.error}):Qf.ccMessageSent.next({message:n,status:t.qpt.error})}catch(e){ie(e,"handleSDKError")}},[]),It=a.useCallback(e=>{try{const{receiverId:t,receiverType:n}=_t(),r=new o.CometChat.TextMessage(t,e,n);r.setSentAt(ht.getUnixTimestamp()),r.setMuid(ht.ID());const a=le.current;return null!==a&&r.setParentMessageId(a),r}catch(e){throw ie(e,"getTextMessage"),e}},[_t,le]),Ot=a.useCallback(async e=>{try{for(let t=0;t<pe.length;t++)e=pe[t].formatMessageForSending(e);c&&c("");const t=await o.CometChat.sendMessage(e);return Ce.current.resetCometChatUserGroupMembers(),Ce.current.reset(),t}catch(t){ie(t,"sendTextMessage"),Rt(t,e,!1)}},[Rt]),Nt=a.useCallback(async e=>{try{const n=It(e);let r=Ce.current.getCometChatUserGroupMembers();if(r){let e=[];for(let t=0;t<r.length;t++)e.push(new o.CometChat.User({uid:r[t].getUid(),name:r[t].getName()}));ue.current&&(n.setQuotedMessage(ue.current),n.setQuotedMessageId(ue.current.getId())),K({type:"setMessageToReply",messageToReply:null}),n.setMentionedUsers(e),r=[]}Qf.ccMessageSent.next({message:n,status:t.qpt.inprogress});const a=await Ot(n);a&&(Qf.ccMessageSent.next({message:a,status:t.qpt.success}),Qf.ccReplyToMessage.next({message:a,status:t.qpt.success}),ut())}catch(e){ie(e,"handleTextMessageSend")}},[It,Ot,ie,ut]),Mt=a.useCallback((e,t)=>{try{const{receiverId:n,receiverType:r}=_t(),a=new o.CometChat.TextMessage(n,e,r);return a.setId(t),a}catch(e){throw ie(e,"getEditedTextMessage"),e}},[_t]),Dt=a.useCallback(async e=>{try{for(let t=0;t<pe.length;t++)e=pe[t].formatMessageForSending(e);const t=await o.CometChat.editMessage(e);return Ce.current.resetCometChatUserGroupMembers(),t}catch(t){ie(t,"sendEditedTextMessage"),Rt(t,e,!0)}},[Rt]),Pt=a.useCallback(async(e,n)=>{try{if(de.current)de.current(Mt(e,n.getId()),t.Rst.edit),At("");else{const r=await Dt(Mt(e,n.getId()));At(""),r&&Qf.ccMessageEdited.next({message:r,status:t.qpt.success})}}catch(e){ie(e,"handleEditTextMessageSend")}},[Dt,Mt,ie]),Ut=a.useCallback(async e=>{try{let n,r=e;if(pe&&pe.length)for(let e=0;e<pe.length;e++)r=pe[e].getOriginalText(r);if(0===(r=r.trim()).length||null!==q.textMessageToEdit&&q.textMessageToEdit.getText()===r)return;"emojiKeyboard"===q.contentToDisplay&&K({type:"setContentToDisplay",contentToDisplay:"none"}),"voiceRecording"===q.contentToDisplay&&K({type:"setContentToDisplay",contentToDisplay:"none"}),K({type:"setText",text:""}),mn(),Ye([]),Qe?.clearPendingFormats(),null!==q.textMessageToEdit?(K({type:"setTextMessageToEdit",textMessageToEdit:null}),await Pt(r,q.textMessageToEdit)):(n=de.current)?await Promise.all([n(It(r),t.Rst.none)]):await Nt(r)}catch(e){ie(e,"handleSendButtonClick")}},[q.textMessageToEdit,q.contentToDisplay,K,Pt,Nt,ie,It,de,se,pe,Ye]),Bt=a.useCallback(async(e,t)=>{try{const n=t==pt.MessageTypes.audio?await Ct(e):await function(e){return new Promise((t,n)=>{try{const r=new FileReader;r.onload=()=>{null!==r.result&&t(new File([r.result],e.name,e))},r.onerror=()=>{n(new Error(`Converting the file named "${e.name}" to binary failed`))},r.readAsArrayBuffer(e)}catch(e){ie(e,"processFile")}})}(e);n.type.replace("webm","wav");const{receiverId:r,receiverType:a}=_t(),i=new o.CometChat.MediaMessage(r,n,t,a);i.setSentAt(ht.getUnixTimestamp()),i.setMuid(ht.ID()),i.setMetadata({file:n,fileName:n.name,fileType:n.type,fileSize:n.size});const s=le.current;return null!==s&&i.setParentMessageId(s),ue.current&&(i.setQuotedMessage(ue.current),i.setQuotedMessageId(ue.current.getId())),K({type:"setMessageToReply",messageToReply:null}),i}catch(e){throw ie(e,"getMediaMessage"),e}},[_t,le]),Gt=a.useCallback(async e=>{const n=e.getMetadata(),r=n?{fileName:n.fileName,fileType:n.fileType,fileSize:n.fileSize}:void 0;try{const n=await o.CometChat.sendMediaMessage(e);return Qf.ccReplyToMessage.next({message:e,status:t.qpt.success}),n}catch(n){if(r){const t=e.getMetadata()||{};e.setMetadata({...t,...r})}Rt(n,e,!1),ie(n,"sendMediaMessage")}},[Rt]),Vt=a.useCallback(async(e,n)=>{try{const r=await Bt(e,n);Qf.ccMessageSent.next({message:r,status:t.qpt.inprogress});const a=await Gt(r);a&&(Qf.ccMessageSent.next({message:a,status:t.qpt.success}),ut())}catch(e){ie(e,"handleMediaMessageSend")}},[ut,Bt,Gt,ie]),Ht=a.useCallback(async e=>{qt(),te.current?.closePopover();try{const t=new File([e],`${function(){try{const e=new Date,t="audio-recording-yyyyMMddHHmmss",n=e.getFullYear().toString(),r=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),s=e.getSeconds().toString().padStart(2,"0");return t.replace("yyyyMMdd",`${n}${r}${a}`).replace("HHmmss",`${o}${i}${s}`)}catch(e){ie(e,"audioRecordingSimpleDateFormat")}}()}.wav`,{type:e.type});Vt(t,pt.MessageTypes.audio)}catch(e){ie(e,"handleSendVoiceMessage")}},[Vt,ie,te]),zt=a.useCallback(async()=>{try{const e=Z.current;if(!e?.files?.length||se.current?.getBlockedByMe())return;const n=e.files[0],r=e.accept;let a=r&&"*/*"!==r?r.split("/")[0]:"file";const o=n.name.toLowerCase().endsWith(".heic")||n.name.toLowerCase().endsWith(".heif"),i=o||"file"===a?"file":n.type.split("/")[0];if("file"!==a&&a!==i&&!o)return K({type:"setShowValidationError",showValidationError:!0}),void(e.value="");const s=de.current;if(s)try{await Promise.all([s(await Bt(n,i),t.Rst.none)])}catch(e){ie(e,"onSendButtonClick")}else await Vt(n,i);e.value=""}catch(e){ie(e,"handleMediaMessageSendWrapper")}},[Vt,ie,Bt,de,se]);function Yt(){try{switch(q.contentToDisplay){case"attachments":X.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;case"voiceRecording":te.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;case"emojiKeyboard":K({type:"setContentToDisplay",contentToDisplay:"none"});break;case"ai":Q.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;case"none":K({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;default:q.contentToDisplay}tn(q.contentToDisplay)}catch(e){ie(e,"onEmojiButtonClick")}}function qt(){try{switch(q.contentToDisplay){case"attachments":X.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"voiceRecording"});break;case"emojiKeyboard":ee.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"voiceRecording"});break;case"voiceRecording":K({type:"setContentToDisplay",contentToDisplay:"none"});break;case"ai":Q.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"voiceRecording"});break;case"none":K({type:"setContentToDisplay",contentToDisplay:"voiceRecording"});break;default:q.contentToDisplay}tn(q.contentToDisplay)}catch(e){ie(e,"onVoiceRecordingBtnClick")}}function Kt(e,t){try{if(Qe&&e&&Qe.clearPendingFormats(),Qe&&e){const e=an();if(e&&(Qe.handleInlineCodePreservation(e,J.current),J.current=!1,Qe.handleMarkdownShortcuts(e,ct))){const t=Qe.getActiveFormats(e);Ye(t)}}const n=t??e.target.innerText;"string"==typeof n&&(kt(),K({type:"setText",text:n}),At(""),void 0!==c&&c(n))}catch(e){ie(e,"onTextInputChange")}}const Wt=a.useCallback(e=>{Ee(!1),e===q.text&&q.textMessageToEdit?Qf.ccMessageEdited.next({message:q.textMessageToEdit,status:t.qpt.cancelled}):("string"==typeof e&&Ut(e),K({type:"setText",text:""}),At(""))},[q.textMessageToEdit,Ee]),Jt=a.useCallback(()=>{try{var e=an();if(e?.textContent?.trim()||e?.querySelector("u")?.textContent){let t="<br>"===e?.innerHTML?.trim()?void 0:e?.innerHTML.replace(/(<br>\s*)+$/,"");"<br>"==e?.innerHTML?.trim()&&(e.innerHTML=""),t&&Qe&&(t=Qe.trimRichTextWhitespace(t));let n=t?Tt(t):void 0;if(pe&&pe.length)for(let e=0;e<pe.length;e++)n=pe[e].getOriginalText(n);n&&Ut(n)}}catch(e){ie(e,"onSendclick")}},[q.text,Ut,H,z,Qe]),Zt=e=>{try{K({type:"setContentToDisplay",contentToDisplay:"none"}),ee.current?.closePopover(),"string"==typeof e&&gn(e),K({type:"setText",text:e})}catch(e){ie(e,"onEmojiClicked")}},$t=a.useCallback(()=>{try{switch(q.contentToDisplay){case"attachments":K({type:"setContentToDisplay",contentToDisplay:"none"});break;case"emojiKeyboard":ee.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"attachments"});break;case"voiceRecording":te.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"attachments"});break;case"ai":Q.current?.closePopover(),K({type:"setContentToDisplay",contentToDisplay:"attachments"});break;case"none":K({type:"setContentToDisplay",contentToDisplay:"attachments"});break;default:q.contentToDisplay}tn(q.contentToDisplay)}catch(e){ie(e,"onSecondaryBtnClick")}},[q.contentToDisplay,te,Q,ee]);function Qt(){q.textMessageToEdit&&Qf.ccMessageEdited.next({message:q.textMessageToEdit,status:t.qpt.cancelled}),K({type:"setTextMessageToEdit",textMessageToEdit:null}),K({type:"setText",text:""}),mn(),At("")}function Xt(){q.messageToReply&&Qf.ccReplyToMessage.next({message:q.messageToReply,status:t.qpt.cancelled}),K({type:"setMessageToReply",messageToReply:null})}function en(){ue.current=null,K({type:"setMessageToReply",messageToReply:null})}function tn(e){yn.ccActivePopover.next(e)}const nn=a.useMemo(()=>{const e=le.current?le.current+"_":"",t=n?.getUid()?n.getUid()+"_":"",r=i?.getGuid()?i.getGuid()+"_":"",a=t+r+e+ht.ID(),o=t+r+e;return $.current&&$.current.includes(o)||($.current="cometchat-message-composer__input-"+a),$.current},[n,i,le]);function an(){return $.current?Fe()?.querySelector(`.${$.current}`):null}function on(){const e=r.jsx(eb,{onSubmitRecording:Ht,autoRecording:!0}),n=r.jsx(rn,{onClick:qt,hoverText:V("message_composer_voice_notes_icon_hover"),iconURL:"voiceRecording"===q.contentToDisplay?W_:K_});return r.jsx("div",{className:"cometchat-message-composer__voice-recording-button "+("voiceRecording"===q.contentToDisplay?"cometchat-message-composer__voice-recording-button-active":""),children:r.jsx(Ft,{useParentHeight:!1,useParentContainer:!0,ref:te,placement:t.W.top,closeOnOutsideClick:!1,content:"voiceRecording"===q.contentToDisplay?e:null,children:n})})}function sn(){const e=r.jsx(rn,{onClick:Yt,hoverText:V("message_composer_emoji_icon_hover"),iconURL:"emojiKeyboard"===q.contentToDisplay?X_:Q_}),n=r.jsx(ob,{onEmojiClick:Zt});return r.jsx("div",{className:"cometchat-message-composer__emoji-keyboard-button "+("emojiKeyboard"===q.contentToDisplay?"cometchat-message-composer__emoji-keyboard-button-active":""),children:r.jsx(Ft,{useParentHeight:!1,useParentContainer:!0,ref:ee,closeOnOutsideClick:!0,onOutsideClick:()=>{K({type:"setContentToDisplay",contentToDisplay:"none"})},placement:t.W.top,content:n,children:e})})}function cn(){if(null===q.textMessageToEdit)return null;let e=(e=>{const t=/<@uid:(.*?)>/g,n=/<@all:(.*?)>/g;let r=e.getText(),a=r,o=t.exec(r),i=n.exec(r),s=[],c=[],l=e.getMentionedUsers();for(;null!==o;){let e;for(let t=0;t<l.length;t++)o[1]===l[t].getUid()&&(e=l[t]);e&&(a=a.replace(o[0],"@"+e.getName()),s.push(e)),o=t.exec(r)}for(;null!==i;)a=a.replace(i[0],"@"+(V(`message_composer_mention_${i[1]}`)||i[1])),c.push(i[1]),i=n.exec(r);return Ce.current.setCometChatUserGroupMembers(s),Ce.current.setCometChatMentionedChannels(c),Ce.current.setLoggedInUser(dt.getLoggedInUser()),a})(q.textMessageToEdit);e=e.replace(/\u200B/g,""),e=e.replace(/```([\s\S]*?)```/g,"$1"),e=e.replace(/`([\s\S]+?)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1");const t=e.split("\n").map(e=>{let t=e;return t=/^\*\s/.test(t)?t.replace(/^(\*\s)(.*)$/,(e,t,n)=>t+n.replace(/\*([^*]+)\*/g,"$1")):t.replace(/\*([^*]+)\*/g,"$1"),t=t.replace(/__([^_]+)__/g,"$1"),t=t.replace(/\+\+([^+]+)\+\+/g,"$1"),t=t.replace(/_([^_]+)_/g,"$1"),t=t.replace(/~([^~]+)~/g,"$1"),t=t.replace(/^(?:&gt;|>)\s?/,""),t});e=t.join("\n");const n=e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return r.jsx(tb,{onClose:Qt,previewSubtitle:n})}function ln(){return null===q.messageToReply?null:(ue.current=q.messageToReply,r.jsx(Ff,{onClose:Xt,message:ue.current,hideCloseButton:!1,previewTitle:Gf.getDataSource().getMessagePreviewTitle(ue.current),previewSubtitle:Gf.getDataSource().getMessagePreviewSubtitle(ue.current)}))}const un=a.useCallback(e=>{Oe.current&&!Oe.current.contains(e.target)&&Ee(!1)},[ye]),dn=a.useCallback(()=>{const e=Ue()?.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0),n=an();n&&n.contains(t.startContainer)&&(be.current=e,ve.current=t.cloneRange())}},[W]),pn=a.useCallback(e=>{var n=an();if(n&&Qe&&(J.current=!!Qe.isInsideCodeInline(n)),!n||!st(e,n))if(13!==e.keyCode||e.shiftKey){if(pe&&pe.length)for(let t=0;t<pe.length;t++)n&&pe[t].setInputElementReference(n),pe[t].setCaretPositionAndRange(Ne.current,Me.current),pe[t].onKeyDown(e)}else{if(M==t.C5S.NewLine)return;if(e.preventDefault(),M==t.C5S.None)return;if(n?.textContent?.trim()||n?.querySelector("u")?.textContent){let e="<br>"==n?.innerHTML?.trim()?void 0:n?.innerHTML.replace(/(<br>\s*)+$/,"");"<br>"==n?.innerHTML?.trim()&&(n.innerHTML=""),e&&Qe&&(e=Qe.trimRichTextWhitespace(e));let t=e?Tt(e):void 0;if(pe&&pe.length)for(let e=0;e<pe.length;e++)t=pe[e].getOriginalText(t);Wt(t)}}},[pe,n,i,q.textMessageToEdit,st]),hn=a.useCallback(e=>{const n=13===e.keyCode&&!e.shiftKey;if(n||n&&M==t.C5S.None)return void e.preventDefault();if(!e.isTrusted)return;bt()&&dn();const r=an();if(8===e.keyCode||46===e.keyCode)if((r.textContent||"").replace(/\u200B/g,"").trim()){if(Qe){const e=Qe.getActiveFormats(r);Ye(e)}}else mn(),Ye([]),Qe?.clearPendingFormats();if(pe&&pe.length)for(let t=0;t<pe.length;t++){r&&pe[t].setInputElementReference(r),pe[t].setCaretPositionAndRange(Ne.current,Me.current);try{pe[t].onKeyUp(e)}catch(e){console.error("Error in text formatter onKeyUp:",e)}}},[pe,n,i,Ye,Qe]),mn=()=>{try{let e=an();e.innerHTML="",e?.focus(),Qe&&Qe.clearFormattingModes()}catch(e){ie(e,"emptyInputField")}},gn=a.useCallback(e=>{try{if(be.current&&ve.current){ve.current.deleteContents();const t=Lt(e,pe);ve.current.insertNode(t);const n=an(),r=n?.lastChild||null;if(r){ve.current=ve.current.cloneRange(),ve.current.setStartAfter(r),ve.current.collapse(!0),be.current.removeAllRanges(),be.current.addRange(ve.current);let e="<br>"==n?.innerHTML?.trim()?void 0:Tt(n?.innerHTML);if("<br>"==n?.innerHTML?.trim()&&(n.innerHTML=""),pe&&pe.length)for(let t=0;t<pe.length;t++)e=pe[t].getOriginalText(e);At(e)}}else be.current&&"Control"!=be.current.type?be.current.createRange().pasteHTML(e):an().textContent=q.addToMsgInputText}catch(e){ie(e,"pasteHtmlAtCaret")}},[q.addToMsgInputText,q.text]),_n=a.useCallback(e=>{try{if(be.current&&ve.current){ve.current.deleteContents();const t=Lt(e,pe);ve.current.insertNode(t);const n=an(),r=n?.lastChild||null;r&&(ve.current=ve.current.cloneRange(),ve.current.setStartAfter(r),ve.current.collapse(!0),be.current.removeAllRanges(),be.current.addRange(ve.current)),"<br>"==n?.innerHTML?.trim()&&(n.innerHTML="");let a="<br>"==n?.innerHTML?.trim()?void 0:Tt(n?.innerHTML);if(pe&&pe.length)for(let e=0;e<pe.length;e++)a=pe[e].getOriginalText(a);At(a)}else be.current&&"Control"!=be.current.type?be.current.createRange().pasteHTML(e):an().textContent=q.addToMsgInputText}catch(e){ie(e,"renderSanitizedHtml")}},[q.addToMsgInputText,q.text,pe]);return q_({currentSelectionForRegex:Ne,currentSelectionForRegexRange:Me,setSelection:function(e){try{if(e&&e.rangeCount&&function(e){if(e.rangeCount>0){let t=e.getRangeAt(0),n=an(),r=t.commonAncestorContainer.parentNode;return"SPAN"!==r?.nodeName&&!(!n?.contains(t.startContainer)||!n?.contains(t.endContainer))}return!1}(e)&&(be.current=e,ve.current=be.current.getRangeAt(0),Ne.current=be.current,be.current.getRangeAt&&be.current.rangeCount&&(ve.current=be.current.getRangeAt(0),Me.current=be.current.getRangeAt(0),pe&&pe.length))){for(let e=0;e<pe.length;e++)pe[e].setCaretPositionAndRange(Ne.current,Me.current);hn(new Event("mention_keyup_event"))}}catch(e){ie(e,"setSelection")}},dispatch:K,textInputRef:W,mySetAddToMsgInputText:At,errorHandler:ie,createPollViewRef:oe,textFormatters:N,textFormatterArray:pe,mentionsTextFormatterInstanceRef:Ce,setTextFormatters:he,CometChatUIKitLoginListener:dt,group:i,user:n,userPropRef:se,groupPropRef:ce,setShowListForMentions:Ee,searchMentions:gt,mentionsFormatterInstanceId:De,setUsersRequestBuilder:Ae,setGroupMembersRequestBuilder:Ie,setUserMemberListType:xe,getComposerId:xt,pasteHtmlAtCaret:gn,renderSanitizedHtml:_n,parentMessageIdPropRef:le,emptyInputField:mn,text:q.text,propsText:e.initialComposerText,getCurrentInput:an,isPartOfCurrentChatForUIEvent:ne,textMessageToEdit:q.textMessageToEdit,getCurrentWindow:Ue,getCurrentDocument:Fe,onTextChange:c,messageToReplyRef:ue,mentionsUsersRequestBuilder:B,mentionsGroupMembersRequestBuilder:G}),r.jsxs(r.Fragment,{children:[qe&&r.jsx(sb,{onSubmit:et,onCancel:tt,showTextInput:!0,focusLinkField:Je||!!$e,isEditMode:Je,initialUrl:Ze?.url||"",initialText:Je?Ze?.text||"":$e}),q.showPoll&&oe?.current?oe.current:null,r.jsxs("div",{className:"cometchat",style:{height:"fit-content",width:"100%",position:"relative"},children:[null,ye&&(!U||!v)&&r.jsx("div",{className:"cometchat-mention-list",ref:Oe,children:r.jsx(fn,{userMemberListType:ke,onItemClick:e=>{try{if(e){let t=[e];Ce.current.setCometChatUserGroupMembers(t),ft(e)}else{if(!F)return;{const e=[F];Ce.current.setCometChatMentionedChannels(e),ft(F)}}Ee(!1),we(1),ge("")}catch(e){ie(e,"defaultMentionsItemClickHandler")}},usersRequestBuilder:Te,searchKeyword:me,onEmpty:mt,group:i,groupMemberRequestBuilder:Re,onError:mt,showScrollbar:P,disableMentionAll:U,disableMentions:v,mentionAllLabel:F})}),r.jsxs("div",{className:"cometchat-message-composer "+(P?"":"cometchat-message-composer-hide-scrollbar"),children:[r.jsx("input",{style:{display:"none"},ref:Z,type:"file",onChange:zt}),q.showValidationError||q.showMentionsCountWarning||g||cn()||ln()?function(){q.showValidationError&&setTimeout(()=>{K({type:"setShowValidationError",showValidationError:!1})},5e3);let e="";q.showMentionsCountWarning?e=V("message_composer_mention_limit_warning"):q.showValidationError&&(e=V("message_composer_wrong_file_type"));const t=q.showMentionsCountWarning||q.showValidationError;return r.jsxs("div",{className:"cometchat-message-composer__header",children:[t?r.jsxs("div",{className:"cometchat-message-composer__header-error-state",children:[r.jsx("div",{className:"cometchat-message-composer__header-error-state-icon-wrapper",children:r.jsx("div",{className:"cometchat-message-composer__header-error-state-icon\n         "})}),r.jsx("span",{className:"cometchat-message-composer__header-error-state-text\n         ",children:e})]}):null,g??(cn()||ln())]})}():null,r.jsxs(r.Fragment,{children:[null,r.jsx("div",{className:"cometchat-message-composer__input-wrapper",children:r.jsx("div",{onKeyUp:hn,onKeyDown:pn,contentEditable:(()=>{try{const e=Fe()?.createElement("div");e.contentEditable="plaintext-only";return!!("plaintext-only"===e.contentEditable)&&"plaintext-only"}catch(e){return ie(e,"checkPlainTextAvailability"),!0}})(),onMouseDown:un,onInput:Kt,onClick:nt,className:`cometchat-message-composer__input ${le.current?"cometchat-message-composer__input-thread":""} ${wt()?"cometchat-message-composer__input-mobile":""} ${ze.includes("codeBlock")?"cometchat-message-composer__input--code-block":""} ${nn}`,"data-placeholder":j,ref:W})}),r.jsxs("div",{className:"cometchat-message-composer__buttons",style:{display:"flex",padding:`${yt("--cometchat-padding-2")} ${yt("--cometchat-padding-2")}`,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",gap:yt("--cometchat-padding-4")},children:[T||0===Gf.getDataSource().getAttachmentOptions(xt(),{hideAudioAttachmentOption:C,hideCollaborativeDocumentOption:k,hideCollaborativeWhiteboardOption:x,hideFileAttachmentOption:S,hideImageAttachmentOption:y,hideVideoAttachmentOption:E,hidePollsOption:w}).length||f&&0==f?.length?null:function(){try{const e=r.jsx(rn,{hoverText:V("message_composer_attach_icon_hover"),onClick:$t,iconURL:"attachments"===q.contentToDisplay?Z_:J_});let a;if(f&&0==f.length)return;a=!f||void 0===n&&void 0===i?Gf.getDataSource().getAttachmentOptions(xt(),{hideAudioAttachmentOption:C,hideCollaborativeDocumentOption:k,hideCollaborativeWhiteboardOption:x,hideFileAttachmentOption:S,hideImageAttachmentOption:y,hideVideoAttachmentOption:E,hidePollsOption:w,messageToReplyRef:ue,closeReplyPreview:en}):f;for(let e=0;e<a.length;e++){const t=a[e],{id:r}=t;if("string"==typeof r){let e=t.onClick;"extension_poll"===r&&(e=()=>{t.onClick([n,i])}),re.current.set(r,e||null)}}const o=r.jsx(nb,{actions:a,onActionItemClick:e=>{!function(e){try{const t=re.current.get(`${e.id}`);if("function"==typeof t)t();else{let t={[pt.MessageTypes.image]:"image/*",[pt.MessageTypes.video]:"video/*",[pt.MessageTypes.audio]:"audio/*",[pt.MessageTypes.file]:"*/*"};jt()&&(t[pt.MessageTypes.image]=pt.mimeTypes.image,t[pt.MessageTypes.video]=pt.mimeTypes.video,t[pt.MessageTypes.audio]=pt.mimeTypes.audio);const n=t[e.id]??"*/*";Z.current.accept=n,Z.current.click()}K({type:"setContentToDisplay",contentToDisplay:"none"}),X.current?.closePopover()}catch(e){ie(e,"showAttachments")}}(e),q.textMessageToEdit&&Qt()}});return r.jsxs("div",{className:`cometchat-message-composer__secondary-button-view-attachment-button ${"attachments"===q.contentToDisplay?"cometchat-message-composer__secondary-button-view-attachment-button-active":""} cometchat-message-composer__secondary-button-view-attachment-button-${a?.length}`,children:["  ",r.jsx(Ft,{useParentHeight:!1,useParentContainer:!0,onOutsideClick:()=>{K({type:"setContentToDisplay",contentToDisplay:"none"})},placement:t.W.top,closeOnOutsideClick:!0,ref:X,content:o,children:e})]})}catch(e){ie(e,"getActionsheetView")}}(),function(){try{const e=Gf.getDataSource().getStickerButton(xt(),n,i,ue.current,en);return r.jsxs("div",{className:"cometchat-message-composer__default-buttons",children:[I?null:e,R||wt()?null:sn(),A?null:on()]})}catch(e){ie(e,"getDefaultButtons")}}(),m?r.jsx("div",{className:"cometchat-message-composer__auxilary-button-view",children:m}):void 0,O?null:h?r.jsx("div",{onClick:Jt,children:h}):r.jsx("div",{className:"cometchat-message-composer__send-button "+(function(){let e=an()?.textContent;return!e||e&&""===e.trim()||null!==q.textMessageToEdit&&q.textMessageToEdit.getText()===q.text}()?"":"cometchat-message-composer__send-button-active"),children:r.jsx(rn,{onClick:Jt,iconURL:$_,hoverText:V("message_composer_send_message_icon_hover")})})]})]}),Ke&&We&&r.jsx(cb,{linkText:We.linkText,linkUrl:We.linkUrl,position:We.position,onEdit:rt,onRemove:at,onClose:ot})]},xt()?.group||xt()?.user)]})]})}const yb="No user or group object provided. Should at least provide one.";function Eb(e,t){let n=e;const{type:r}=t;switch(r){case"setText":n={...e,text:t.text};break;case"setAddToMsgInputText":n={...e,addToMsgInputText:t.addToMsgInputText};break;case"setTextMessageToEdit":n={...e,textMessageToEdit:t.textMessageToEdit};break;case"setMessageToReply":n={...e,messageToReply:t.messageToReply};break;case"setContentToDisplay":n={...e,contentToDisplay:t.contentToDisplay};break;case"setLoggedInUser":n={...e,loggedInUser:t.loggedInUser};break;case"setShowPoll":n={...e,showPoll:t.showPoll};break;case"setShowMentionsCountWarning":n={...e,showMentionsCountWarning:t.showMentionsCountWarning};break;case"setShowValidationError":n={...e,showValidationError:t.showValidationError};break;default:throw new Error("Unknown action")}return n}var Cb="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.30228%207.86546C9.40188%207.37818%2010.0981%207.37818%2010.1977%207.86547C10.8088%2010.855%2013.145%2013.1912%2016.1345%2013.8023C16.6218%2013.9019%2016.6218%2014.5981%2016.1345%2014.6977C13.145%2015.3088%2010.8088%2017.645%2010.1977%2020.6345C10.0981%2021.1218%209.40188%2021.1218%209.30228%2020.6345C8.69125%2017.645%206.35497%2015.3088%203.36546%2014.6977C2.87818%2014.5981%202.87818%2013.9019%203.36547%2013.8023C6.35497%2013.1912%208.69125%2010.855%209.30228%207.86546Z%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M17.5954%203.02417C17.602%202.99194%2017.648%202.99194%2017.6546%203.02417C17.9964%204.69659%2019.3034%206.00356%2020.9758%206.34539C21.0081%206.35198%2021.0081%206.39802%2020.9758%206.40461C19.3034%206.74644%2017.9964%208.05341%2017.6546%209.72583C17.648%209.75806%2017.602%209.75806%2017.5954%209.72583C17.2536%208.05341%2015.9466%206.74644%2014.2742%206.40461C14.2419%206.39802%2014.2419%206.35198%2014.2742%206.34539C15.9466%206.00356%2017.2536%204.69659%2017.5954%203.02417Z%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E",Sb="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8292%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8292%29%22%3E%3Cpath%20d%3D%22M9.51955%2015.6153C7.81188%2015.6153%206.36571%2015.023%205.18105%2013.8385C3.99655%2012.6538%203.4043%2011.2077%203.4043%209.50002C3.4043%207.79235%203.99655%206.34618%205.18105%205.16152C6.36571%203.97702%207.81188%203.38477%209.51955%203.38477C11.2272%203.38477%2012.6734%203.97702%2013.858%205.16152C15.0425%206.34618%2015.6348%207.79235%2015.6348%209.50002C15.6348%2010.2142%2015.515%2010.8963%2015.2753%2011.5463C15.0355%2012.1963%2014.7155%2012.7616%2014.3155%2013.2423L20.0695%2018.9963C20.208%2019.1346%2020.2789%2019.3086%2020.282%2019.5183C20.2852%2019.7279%2020.2144%2019.9052%2020.0695%2020.05C19.9247%2020.1948%2019.749%2020.2673%2019.5425%2020.2673C19.3362%2020.2673%2019.1606%2020.1948%2019.0158%2020.05L13.2618%2014.296C12.7618%2014.7088%2012.1868%2015.0319%2011.5368%2015.2653C10.8868%2015.4986%2010.2144%2015.6153%209.51955%2015.6153ZM9.51955%2014.1155C10.808%2014.1155%2011.8994%2013.6683%2012.7935%2012.774C13.6879%2011.8798%2014.135%2010.7885%2014.135%209.50002C14.135%208.21152%2013.6879%207.12018%2012.7935%206.22601C11.8994%205.33168%2010.808%204.88452%209.51955%204.88452C8.23105%204.88452%207.13971%205.33168%206.24555%206.22601C5.35121%207.12018%204.90405%208.21152%204.90405%209.50002C4.90405%2010.7885%205.35121%2011.8798%206.24555%2012.774C7.13971%2013.6683%208.23105%2014.1155%209.51955%2014.1155Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";const wb={getConversationSummary:void 0,closeCallback:void 0},kb=e=>{const{getConversationSummary:n,closeCallback:o}={...wb,...e},[i,s]=a.useState(t.DGz.loading),[c,l]=a.useState(null),u=V("ai_conversation_summary_error"),d=V("ai_conversation_summary_empty"),p=V("ai_conversation_summary_title");return a.useEffect(()=>{s(t.DGz.loading),n&&n().then(async e=>{e?(s(t.DGz.loaded),l(await async function(e){return new Promise((t,n)=>{try{return t(r.jsx(a.Fragment,{children:e}))}catch(e){n(e)}})}(e))):s(t.DGz.empty)}).catch(e=>{s(t.DGz.error)})},[]),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsx("div",{className:"cometchat-conversation-summary__wrapper",children:r.jsxs("div",{className:"cometchat-conversation-summary",children:[r.jsxs("div",{className:"cometchat-conversation-summary__header",children:[r.jsx("div",{className:"cometchat-conversation-summary__header-title",children:p}),r.jsx("button",{className:"cometchat-conversation-summary__header-close-button",onClick:()=>o()})]}),r.jsx("div",{className:"cometchat-conversation-summary__body",children:i===t.DGz.loaded?c:function(){let e=null;switch(i){case t.DGz.loading:e=r.jsxs("div",{className:"cometchat-conversation-summary__shimmer",children:[r.jsx("div",{className:"cometchat-conversation-summary__shimmer-item"}),r.jsx("div",{className:"cometchat-conversation-summary__shimmer-item"}),r.jsx("div",{className:"cometchat-conversation-summary__shimmer-item"})]});break;case t.DGz.error:e=r.jsx("div",{className:"cometchat-conversation-summary__error-view",children:u});break;case t.DGz.empty:e=r.jsx("div",{className:"cometchat-conversation-summary__empty-view",children:d});case t.DGz.loaded:}return e}()})]})})})},xb=e=>{const{subtitleView:n=null,hideVideoCallButton:i=!1,hideVoiceCallButton:s=!1,auxiliaryButtonView:c=null,user:d,group:p,itemView:h=null,onError:m,onBack:g=()=>{},hideBackButton:f=!0,leadingView:_,titleView:b,trailingView:v,hideUserStatus:y=!1,showConversationSummaryButton:E=!1,enableAutoSummaryGeneration:C=!1,summaryGenerationMessageCount:S=1e3,lastActiveAtDateTimeFormat:w,showBackButton:k=!1,showSearchOption:x=!1,onSearchOptionClicked:T=()=>{},onItemClick:A=()=>{}}=e,[R,I]=a.useState(""),[O,N]=a.useState(null),M=l(d),D=l(p),L=a.useRef(""),P=a.useRef(!1),j=u(m),U=a.useCallback(()=>{try{const e=M.current,t=D.current;if(e&&!y)B(e);else if(t){const e=t.getMembersCount(),n=V(e>1?"message_header_members":"message_header_member");I(`${e} ${n}`)}else!P.current&&y&&I("")}catch(e){j(e,"updateSubtitle")}},[e.user,e.group,y]),F=a.useCallback(()=>{try{const e=cn.ccGroupMemberAdded.subscribe(e=>{D?.current?.getGuid()===e?.userAddedIn?.getGuid()&&(e?.usersAdded.length>0&&e?.usersAdded.forEach(e=>{e?.getUid()===O?.getUid()&&D?.current?.setHasJoined(!0)}),D?.current?.setMembersCount(e?.userAddedIn?.getMembersCount()),U())}),t=cn.ccGroupMemberBanned.subscribe(e=>{D?.current?.getGuid()===e?.kickedFrom?.getGuid()&&(O?.getUid()===e?.kickedUser?.getUid()&&D?.current?.setHasJoined(!1),D?.current?.setMembersCount(e?.kickedFrom?.getMembersCount()),U())}),n=cn.ccGroupMemberJoined.subscribe(e=>{D?.current?.getGuid()===e?.joinedGroup?.getGuid()&&(O?.getUid()===e?.joinedUser?.getUid()&&D?.current?.setHasJoined(!0),D?.current?.setMembersCount(e?.joinedGroup?.getMembersCount()),U())}),r=cn.ccGroupMemberKicked.subscribe(e=>{D?.current?.getGuid()===e?.kickedFrom?.getGuid()&&(O?.getUid()===e?.kickedUser?.getUid()&&D?.current?.setHasJoined(!1),D?.current?.setMembersCount(e?.kickedFrom?.getMembersCount()),U())}),a=cn.ccOwnershipChanged.subscribe(e=>{D?.current?.getGuid()===e?.group?.getGuid()&&(D?.current?.setOwner(e?.group?.getOwner()),U())}),o=cn.ccGroupLeft.subscribe(e=>{D?.current?.getGuid()===e?.leftGroup?.getGuid()&&(O?.getUid()===e?.userLeft?.getUid()&&D?.current?.setHasJoined(!1),D?.current?.setMembersCount(e?.leftGroup?.getMembersCount()),U())});return()=>{try{e.unsubscribe(),t.unsubscribe(),n.unsubscribe(),r.unsubscribe(),a.unsubscribe(),o.unsubscribe()}catch(e){j(e,"subscribeToEvents")}}}catch(e){j(e,"subscribeToEvents")}},[D,U,j,O]),B=e=>{try{if(e.getStatus()===pt.userStatusType.online)I(V(`message_header_status_${e.getStatus().toLowerCase()}`));else if(e.getLastActiveAt()){const t=10===e.getLastActiveAt().toString().length?e.getLastActiveAt():Math.floor(e.getLastActiveAt()/1e3);let n=G.formatDate(t,{today:`[${V("message_header_last_seen")} DD MMM ${V("message_header_at")}] hh:mm A`,yesterday:`[${V("message_header_last_seen")} DD MMM ${V("message_header_at")}] hh:mm A`,otherDays:`[${V("message_header_last_seen")} DD MMM ${V("message_header_at")}] hh:mm A`,relativeTime:{hour:`${V("message_header_last_seen")}  %d ${V("message_header_hour_ago")}`,minute:`${V("message_header_last_seen")}  %d ${V("message_header_minute_ago")}`,minutes:`${V("message_header_last_seen")}  %d ${V("message_header_minutes_ago")}`},...kt(G.calendarObject),...kt(w)});I(n)}else I(V(`message_header_status_${e.getStatus().toLowerCase()}`))}catch(e){j(e,"updateLastActiveInfo")}},H=a.useCallback(e=>{try{const t=M.current;t&&!y&&(t.setStatus(e.getStatus()),B(e))}catch(e){j(e,"updateUserStatus")}},[M,y]),z=a.useCallback(e=>{try{const t=e?.getSender(),n=e?.getReceiverId();if(Y(e)){if(L.current="cometchat-message-header__subtitle-typing",O?.getUid()==n){if((new tn).getUserStatusVisible(M?.current))return;P.current=!0,I(V("message_header_typing"))}D?.current?.getGuid()===n&&(P.current=!0,I(`${t?.getName()}: ${V("message_header_typing")}`))}}catch(e){j(e,"setTypingIndicatorText")}},[M,D,j,O]),Y=e=>{try{const t=e?.getSender(),n=e?.getReceiverId();return t?.getUid()===M?.current?.getUid()&&O?.getUid()===n||D.current&&D.current.getGuid()==n}catch(e){j(e,"isTypingForCurrentChat")}},q=a.useCallback(()=>{try{const e="userList_"+Date.now(),t="groupsList_"+Date.now(),n="connection_"+Date.now(),r=`CometChatHeaderMessage__${(new Date).getTime()}`;return y||o.CometChat.addUserListener(e,new o.CometChat.UserListener({onUserOnline:e=>{M.current?.getUid()===e.getUid()&&H(e)},onUserOffline:e=>{M.current?.getUid()===e?.getUid()&&H(e)}})),o.CometChat.addMessageListener(r,new o.CometChat.MessageListener({onTypingStarted:e=>{z(e)},onTypingEnded:e=>{e&&Y(e)&&(P.current=!1,L.current="",U())}})),o.CometChat.addGroupListener(t,new o.CometChat.GroupListener({onGroupMemberScopeChanged:(e,t,n,r,a)=>{D.current?.getGuid()===a?.getGuid()&&t.getUid()===O?.getUid()&&D.current?.setScope(n),U()},onGroupMemberKicked:(e,t,n,r)=>{D.current?.getGuid()===r?.getGuid()&&(t.getUid()===O?.getUid()&&D.current?.setHasJoined(!1),D.current?.setMembersCount(r?.getMembersCount()),U())},onMemberAddedToGroup:(e,t,n,r)=>{D.current?.getGuid()===r.getGuid()&&(t.getUid()===O?.getUid()&&D.current?.setHasJoined(!0),D.current?.setMembersCount(r?.getMembersCount()),U())},onGroupMemberLeft:(e,t,n)=>{D.current?.getGuid()===n.getGuid()&&(t.getUid()===O?.getUid()&&D.current?.setHasJoined(!1),D.current?.setMembersCount(n.getMembersCount()),U())},onGroupMemberJoined:(e,t,n)=>{D.current?.getGuid()===n.getGuid()&&(t.getUid()===O?.getUid()&&D.current?.setHasJoined(!0),D.current?.setMembersCount(n.getMembersCount()),U())},onGroupMemberBanned:(e,t,n,r)=>{D.current?.getGuid()===r.getGuid()&&(t.getUid()===O?.getUid()&&D.current?.setHasJoined(!1),D.current?.setMembersCount(r.getMembersCount()),U())}})),o.CometChat.addConnectionListener(n,new o.CometChat.ConnectionListener({onConnected:()=>{console.log("ConnectionListener => On Connected")}})),()=>{o.CometChat.removeUserListener(e),o.CometChat.removeGroupListener(t),o.CometChat.removeConnectionListener(n)}}catch(e){j(e,"attachListeners")}},[M,D,H,y,U,z,O]),K=a.useCallback(()=>{try{return n||(!(new tn).getUserStatusVisible(M.current)&&R?r.jsx("div",{className:`cometchat-message-header__subtitle ${L.current??""}`,children:R}):null)}catch(e){j(e,"getSubtitleView")}},[M,n,R]),W=a.useCallback(()=>{try{return h||r.jsx(J,{onListItemClicked:A,avatarName:M.current?.getName()||D.current?.getName(),avatarURL:M.current?.getAvatar()||D.current?.getIcon()||"",title:M.current?.getName()||D.current?.getName()||"",subtitleView:K(),titleView:b,trailingView:v,leadingView:_})}catch(e){j(e,"getItemView")}},[h,A,M,D,K,b,v,_,j]),Z=()=>{yn.ccHidePanel.next(t.CfE.messageListFooter)},$=()=>new Promise(async(e,t)=>{try{let t=M.current?M.current?.getUid():D.current?.getGuid(),n=M.current?pt.MessageReceiverType.user:pt.MessageReceiverType.group;return e(await o.CometChat.getConversationSummary(t,n,{lastNMessages:S}))}catch(e){console.log(e),t(e)}});function Q(){try{const e=M.current;if(e)return{user:e.getUid(),group:null,parentMessageId:null};const t=D.current;return t?{user:null,group:t.getGuid(),parentMessageId:null}:{user:null,group:null,parentMessageId:null}}catch(e){return j(e,"getComposerId"),{user:null,group:null,parentMessageId:null}}}const X=()=>{yn.ccShowPanel.next({child:r.jsx(kb,{getConversationSummary:$,closeCallback:Z}),position:t.CfE.messageListFooter,composerId:Q()})},ee=a.useCallback(()=>{try{return r.jsx("div",{className:"cometchat-message-header__conversation-summary-button",children:r.jsx(rn,{hoverText:V("ai_conversation_summary_title"),iconURL:Cb,onClick:X})})}catch(e){j(e,"getAuxiliaryView")}},[E]),te=a.useCallback(()=>{try{return r.jsx("div",{className:"cometchat-message-header__search-button",children:r.jsx(rn,{hoverText:V("search_title"),iconURL:Sb,onClick:T})})}catch(e){return j(e,"getSearchButton"),null}},[T]),ne=a.useMemo(()=>[new zt({id:"search",title:V("search_title"),iconURL:Sb,onClick:T}),new zt({id:"summary",title:V("ai_conversation_summary_title"),iconURL:Cb,onClick:X})],[T,X]),re=a.useCallback(()=>ne,[ne]),ae=a.useCallback(()=>{try{const e=x&&E;return r.jsxs("div",{className:"cometchat-message-header__auxiliary-button-view",children:[Gf.getDataSource().getAuxiliaryHeaderMenu(M.current,D.current,{hideVideoCallButton:i,hideVoiceCallButton:s}),e?r.jsx("div",{className:"cometchat-message-header__menu",children:r.jsx(qt,{closeOnOutsideClick:!0,data:re(),placement:t.W.bottom,topMenuSize:1,useParentContainer:!0,useParentHeight:!1,disableBackgroundInteraction:!0,forceStaticPlacement:!0})}):r.jsxs(r.Fragment,{children:[E&&ee(),x&&te()]}),c]})}catch(e){j(e,"getAuxiliaryView")}},[c,x,E,s,i]);return function(e,t,n,r,o,i,s,c,l,u,d,p){a.useEffect(()=>{try{t(dt.getLoggedInUser())}catch(e){c(e,"useEffect")}},[l,u]),a.useEffect(()=>{try{let e=yn.ccActiveChatChanged.subscribe(e=>{e.unreadMessageCount&&e.unreadMessageCount>=15&&p&&d&&p()});return()=>e?.unsubscribe()}catch(e){c(e,"useEffect")}},[l,u,d]),a.useEffect(()=>{try{const t=[];return e&&(t.push(s()),t.push(n())),()=>{for(let e=0;e<t.length;e++)return t[e]()}}catch(e){c(e,"useEffect")}},[e,n,s]),a.useEffect(()=>{i()},[r.current,o.current,i])}(O,N,q,M,D,U,F,j,d,p,C,X),r.jsx("div",{className:"cometchat",style:{height:"fit-content",width:"100%",display:"flex"},children:r.jsxs("div",{className:"cometchat-message-header",children:[r.jsxs("div",{children:[(()=>{try{return f&&!k?null:r.jsx("div",{onClick:()=>{g&&g()},className:"cometchat-message-header__back-button"})}catch(e){j(e,"getBackButton")}})(),r.jsx("div",{className:"cometchat-message-header__listitem",children:W()})]}),ae()]})})},Tb=e=>{const{onClose:n,message:i,messageSentAtDateTimeFormat:s,messageInfoDateTimeFormat:c,onError:l=e=>{},template:d,hideReceipts:p,textFormatters:h,showScrollbar:m=!1}=e,[g,f]=a.useState(t.DGz.loading),[_,b]=a.useState([]),v=a.useRef(null),y=u(l);a.useEffect(()=>{try{i?.getReceiverType()===pt.MessageReceiverType.user&&f(t.DGz.loaded),i?.getReceiverType()===pt.MessageReceiverType.group&&async function(e){try{if(e?.getReceiverType()===pt.MessageReceiverType.group){f(t.DGz.loading);let n=await o.CometChat.getMessageReceipts(e?.getId()),r=n.filter(e=>e.getSender().getUid()!==v.current?.getUid());return b(r),f(t.DGz.loaded),n}}catch(e){y(e,"getMessageReceipt"),f(t.DGz.error)}}(i)}catch(e){y(e,"useEffect")}},[i]);const E=a.useCallback(()=>{try{let e=t.JxA.right;if(dt.getLoggedInUser()&&(v.current=dt.getLoggedInUser()),i){const n=A_.getDataSource()?.getAllMessageTemplates(),a=d??n?.find(e=>e.type===i.getType()&&e.category===i.getCategory());return a?(e=i.getSender()?.getUid()!==v.current?.getUid()?t.JxA.left:t.JxA.right,(new tn).getMessageBubble(i,a,e,s,p,h)):r.jsx(r.Fragment,{})}return null}catch(e){y(e,"getBubbleView")}},[i]);function C(){return{yesterday:"DD MMM, hh:mm A",otherDays:"DD MMM, hh:mm A",today:"DD MMM, hh:mm A",...G.calendarObject,...c}}function S(e,t){try{return r.jsxs("div",{className:"cometchat-message-information__receipts-subtitle",children:[t&&r.jsxs("div",{className:"cometchat-message-information__receipts-subtitle-text",children:[V("message_information_read"),r.jsx(rr,{timestamp:t,calendarObject:C()})]}),e&&r.jsxs("div",{className:"cometchat-message-information__receipts-subtitle-text",children:[V("message_information_delivered"),r.jsx(rr,{timestamp:e,calendarObject:C()})]})]})}catch(e){return y(e,"getSubtitleView"),null}}return r.jsxs("div",{className:"cometchat cometchat-message-information "+(m?"":"cometchat-message-information-hide-scrollbar"),children:[r.jsxs("div",{className:"cometchat-message-information__header",children:[r.jsx("div",{className:"cometchat-message-information__header-title",children:V("message_information_title")}),r.jsx("div",{className:"cometchat-message-information__header-close",children:function(){try{return r.jsx(rn,{iconURL:nn,hoverText:V("message_information_close_hover"),onClick:n})}catch(e){y(e,"getCloseBtnView")}}()})]}),r.jsx("div",{className:"cometchat-message-information__message",children:E()}),i.getReceiverType()===pt.MessageReceiverType.user&&r.jsx(a.Fragment,{children:g===t.DGz.loading?r.jsx("div",{className:"cometchat-message-information__shimmer",children:[...Array(1)].map((e,t)=>r.jsxs("div",{className:"cometchat-message-information__shimmer-item",children:[r.jsx("div",{className:"cometchat-message-information__shimmer-item-avatar"}),r.jsx("div",{className:"cometchat-message-information__shimmer-item-title"})]},t))}):g===t.DGz.error?r.jsx("div",{className:"cometchat-message-information__error-state",children:r.jsx("div",{children:V("message_information_error")})}):r.jsxs("div",{className:"cometchat-message-information__receipts",children:[r.jsx(J,{title:V("message_information_read"),subtitleView:r.jsx("div",{className:"cometchat-message-information__receipts-subtite-text",children:i.getReadAt()?r.jsx(rr,{timestamp:i.getReadAt(),calendarObject:C()}):"----"}),avatarURL:""}),r.jsx(J,{title:V("message_information_delivered"),subtitleView:r.jsx("div",{className:"cometchat-message-information__receipts-subtite-text",children:i.getDeliveredAt()?r.jsx(rr,{timestamp:i.getDeliveredAt(),calendarObject:C()}):"----"}),avatarURL:""})]})}),i.getReceiverType()===pt.MessageReceiverType.group&&r.jsx(a.Fragment,{children:g===t.DGz.loading?r.jsx("div",{className:"cometchat-message-information__shimmer",children:[...Array(4)].map((e,t)=>r.jsxs("div",{className:"cometchat-message-information__shimmer-item",children:[r.jsx("div",{className:"cometchat-message-information__shimmer-item-avatar"}),r.jsx("div",{className:"cometchat-message-information__shimmer-item-title"})]},t))}):g===t.DGz.error?r.jsx("div",{className:"cometchat-message-information__error-state",children:r.jsx("div",{children:V("message_information_error")})}):r.jsxs("div",{className:"cometchat-message-information__receipts",children:[_.length>0&&r.jsx(K,{showScrollbar:m,list:_,itemView:function(e){try{return r.jsx(J,{id:e.getMessageId(),title:e.getSender()?.getName(),avatarURL:e.getSender()?.getAvatar(),avatarName:e.getSender()?.getName(),subtitleView:S(e.getDeliveredAt(),e.getReadAt())})}catch(e){return y(e,"getListItem"),r.jsx(r.Fragment,{})}},state:0===_.length?t.DGz.loading:t.DGz.loaded,hideSearch:!0,showSectionHeader:!1}),_.length<=0&&r.jsx("div",{className:"cometchat-message-information__receipts-empty",children:r.jsx("div",{children:V("message_information_group_message_receipt_empty")})})]})})]})};var Ab;class Rb{constructor(e,t,n,r,a,i,s,c){if(this.messagesRequest=null,this.fetchNextMessages=()=>this.messagesRequest?.fetchNext(),this.fetchPreviousMessages=()=>this.messagesRequest?.fetchPrevious(),this.getLimit=()=>this.messagesRequest?.getLimit(),Ab.errorHandler=e,t){let e;n?(t.guid=void 0,e=t.setUID(n.getUid())):r&&(t.uid=void 0,e=t.setGUID(r.getGuid())),a&&e.setMessageId(a),this.messagesRequest=e.build()}else{const e=(new o.CometChat.MessagesRequestBuilder).setTypes(Gf.dataSource.getAllMessageTypes()).setCategories(Gf.dataSource.getAllMessageCategories({hideGroupActionMessages:s})).hideReplies(!0).setLimit(30);a&&e.setMessageId(a),i&&(e.setParentMessageId(i),c&&(e.hideReplies(!1),e.withParent(!0))),c&&e.hideDeletedMessages(!0),n?(e.setUID(n.getUid()),e.guid=void 0):r&&(e.setGUID(r.getGuid()),e.uid=void 0),this.messagesRequest=e.build()}}static removeListeners(){try{o.CometChat.removeGroupListener(this.groupListenerId),o.CometChat.removeConnectionListener(this.connectionListenerId),o.CometChat.removeAIAssistantListener(this.streamListenerId),Gf.names.includes("calling")&&o.CometChat.removeCallListener(this.callListenerId)}catch(e){this.errorHandler(e,"removeListeners")}}static attachConnectionListener(e){try{o.CometChat.addConnectionListener(this.connectionListenerId,new o.CometChat.ConnectionListener({onConnected:()=>{console.log("ConnectionListener =>connected"),e&&e()},onDisconnected:()=>{console.log("ConnectionListener => On Disconnected")}}))}catch(e){this.errorHandler(e,"attachConnectionListener")}}}Ab=Rb,Rb.groupListenerId="group_"+(new Date).getTime(),Rb.callListenerId="call_"+(new Date).getTime(),Rb.connectionListenerId="MessageList_connection_"+String(Date.now()),Rb.streamListenerId="agent_"+(new Date).getTime(),Rb.attachListeners=(e=!1,t,n,r)=>{try{e&&r?o.CometChat.addAIAssistantListener(Ab.streamListenerId,{onAIAssistantEventReceived:e=>{(!e.getConversationId()||e.getConversationId().includes(r.getUid())&&e.getConversationId().includes(dt.getLoggedInUser().getUid()))&&(e=>{Sf.next(e)})(e)}}):(o.CometChat.addGroupListener(Ab.groupListenerId,new o.CometChat.GroupListener({onGroupMemberScopeChanged:(e,n,r,a,o)=>{t(pt.MessageCategory.action,e,o)},onGroupMemberKicked:(e,n,r,a)=>{t(pt.MessageCategory.action,e,a)},onGroupMemberBanned:(e,n,r,a)=>{t(pt.MessageCategory.action,e,a)},onGroupMemberUnbanned:(e,n,r,a)=>{t(pt.MessageCategory.action,e,a)},onMemberAddedToGroup:(e,n,r,a)=>{t(pt.MessageCategory.action,e,a)},onGroupMemberLeft:(e,n,r)=>{t(pt.MessageCategory.action,e,r)},onGroupMemberJoined:(e,n,r)=>{t(pt.MessageCategory.action,e,r)}})),Gf.names.includes("calling")&&o.CometChat.addCallListener(Ab.callListenerId,new o.CometChat.CallListener({onIncomingCallReceived:e=>{t(pt.MessageCategory.call,e)},onIncomingCallCancelled:e=>{t(pt.MessageCategory.call,e)},onOutgoingCallRejected:e=>{t(pt.MessageCategory.call,e)},onOutgoingCallAccepted:e=>{t(pt.MessageCategory.call,e)},onCallEndedMessageReceived:e=>{t(pt.MessageCategory.call,e)}})))}catch(e){Ab.errorHandler(e,"attachListeners")}};const Ib=({messageObject:e,reactionsRequestBuilder:n,reactionItemClicked:i,onError:s})=>{const[c,l]=a.useState("all"),[d,p]=a.useState({}),[h,m]=a.useState({}),[g,f]=a.useState(t.DGz.loading),[_,b]=a.useState([]),[v,y]=a.useState(!0),[E,C]=a.useState(!0),[S,w]=a.useState(!1),[k,x]=a.useState(!0),T=a.useRef("all"),A=a.useRef(null),R=V("reaction_list_all"),I=V("reaction_list_click_to_remove"),O=V("reaction_list_you"),N=pt.requestBuilderLimits.reactionListLimit,M=dt.getLoggedInUser(),D=a.useRef(null),L=a.useRef(void 0),P=u(s);a.useEffect(()=>{T.current=c},[c]),a.useEffect(()=>{x(!0)},[c]),a.useEffect(()=>{let e,t;return e=Qf.onMessageReactionAdded.subscribe(e=>{"all"!=T.current&&T.current!=e.getReaction().getReaction()||b(t=>[e.getReaction(),...t])}),t=Qf.onMessageReactionRemoved.subscribe(e=>{z(e.getReaction(),!1)}),()=>{e.unsubscribe(),t.unsubscribe()}},[c]),a.useEffect(()=>{(c||e)&&e&&y(!0)},[c,e]),a.useEffect(()=>{B()},[c]),a.useEffect(()=>{"all"===c&&A.current&&A.current.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},[c]);const j=a.useCallback(t=>{try{if(d[t])return d[t];L.current=n||(new o.CometChat.ReactionsRequestBuilder).setLimit(N),L.current.setMessageId(e?.getId()),"all"!==t&&L.current.setReaction(t);const r=L.current.build();return p(e=>({...e,[t||"all"]:r})),r}catch(t){P(t,"getRequestBuilder")}},[d,e]),U=a.useCallback(async()=>{try{const e=T.current,t=j(e),n=await F(t,e);b(n)}catch(e){P(e,"showReactions")}},[h]),F=a.useCallback(async(e,n)=>{try{if(f(t.DGz.loading),h[n])return f(t.DGz.loaded),h[n];try{let r=await e.fetchNext();return 0==r.length&&(r=await e.fetchPrevious()),r.length<N&&x(!1),f(t.DGz.loaded),m(e=>({...e,[n||"all"]:r})),r}catch(e){return f(t.DGz.error),[]}}catch(e){P(e,"getReactionList")}},[h]),B=a.useCallback(async()=>{try{v&&E?((()=>{try{l("all"),p({}),m({}),f(t.DGz.loading),C(!0)}catch(e){P(e,"resetComponent")}})(),y(!1),C(!1),await U()):T.current&&(y(!1),await U())}catch(e){P(e,"showReactionsIfNeeded")}},[E,v,h]),G=a.useCallback(async()=>{try{if(!k||S)return;w(!0);const e=j(c);if(!h[c]||h[c]&&0===h[c].length)return void w(!1);{const t=await e.fetchNext();L.current?.limit&&t.length<L.current.limit&&x(!1),m(e=>({...e,[c]:[...e[c],...t]})),b(e=>[...e,...t]),w(!1)}}catch(e){P(e,"fetchNext")}},[c,h,k,S]),H=()=>{try{return e.getReactions().reduce((e,t)=>e+t.getCount(),0)}catch(e){P(e,"getTotalReactionCount")}},z=(t,n=!0)=>{try{const r=e;let a=!1;if(r){const o=e.getReactions(),i=o.findIndex(e=>e.getReaction()===t.getReaction()&&e.getReactedByMe()==n);-1!==i?(1===o[i].getCount()?(o.splice(i,1),a=!0):(o[i].setCount(o[i].getCount()-1),o[i].setReactedByMe(!1)),a&&(l("all"),T.current=void 0),Y(o,t)):(Y(r.getReactions(),t),l("all"))}}catch(t){P(t,"updateMessageToRemoveReactionLocally")}},Y=(e,t)=>{if(!h.all||0===h.all.length)return;const n=h.all.filter(e=>e.getReactionId()!==t?.getReactionId());if(c){const e=(h[c]||[]).filter(e=>e.getReactionId()!==t?.getReactionId());m(t=>({...t,[c]:e,all:n})),b("all"!==c?e:n)}else m(e=>({...e,all:n})),b(n)},q=a.useCallback(()=>{try{const t=[{id:"all",reaction:R,count:H()}];return e.getReactions().forEach(e=>{t.push({id:e.getReaction(),reaction:e.getReaction(),count:e.getCount()})}),t.map(e=>r.jsxs("div",{ref:"all"===e.id?A:null,className:`cometchat-reaction-list__tabs-tab ${c===e.id&&"cometchat-reaction-list__tabs-tab-active"}`,onClick:()=>{l(e.id)},children:[r.jsx("div",{className:`cometchat-reaction-list__tabs-tab-emoji ${c===e.id&&"cometchat-reaction-list__tabs-tab-emoji-active"}`,children:e.reaction}),r.jsx("div",{className:`cometchat-reaction-list__tabs-tab-count ${c===e.id&&"cometchat-reaction-list__tabs-tab-count-active"}`,children:e.count})]},e.id))}catch(e){P(e,"showReactionsSlider")}},[c,e]);return a.useEffect(()=>{!E&&!S&&L.current?.limit&&_.length<L.current.limit&&G()},[_.length,E,G,S]),r.jsx("div",{className:"cometchat cometchat-reaction-list",ref:D,children:r.jsxs("div",{children:[(g===t.DGz.loaded||g===t.DGz.loading)&&r.jsx("div",{className:"cometchat-reaction-list__tabs",children:q()}),g===t.DGz.loading?r.jsx("div",{className:"cometchat-reaction-list__shimmer",children:Array.from({length:4}).map((e,t)=>r.jsxs("div",{className:"cometchat-reaction-list__shimmer-item",children:[r.jsx("div",{className:"cometchat-reaction-list__shimmer-item-icon"}),r.jsx("div",{className:"cometchat-reaction-list__shimmer-item-content"}),r.jsx("div",{className:"cometchat-reaction-list__shimmer-item-tailview"})]},t))}):g===t.DGz.error?r.jsx("div",{className:"cometchat-reaction-list__error",children:V("ERROR_TEXT")}):g===t.DGz.loaded?r.jsx("div",{className:"cometchat-reaction-list__list",onScroll:e=>{const{scrollHeight:t,scrollTop:n,clientHeight:r}=e.target;t-n<=r+10&&G()},children:_.map(t=>{const n=M?.getUid()===t?.getReactedBy()?.getUid();return r.jsx("div",{className:"cometchat-reaction-list__list-item",children:r.jsx(J,{title:n?O:t?.getReactedBy()?.getName(),subtitleView:n?r.jsx("div",{children:I}):null,trailingView:r.jsx("div",{children:t?.getReaction()}),avatarURL:t?.getReactedBy()?.getAvatar(),avatarName:t?.getReactedBy()?.getName(),onListItemClicked:()=>{(e=>{try{return M?.getUid()===e?.getReactedBy()?.getUid()}catch(e){P(e,"isMyReaction")}})(t)&&z(t),i?.(t,e)}})},t?.getReactionId())})}):null]})})},Ob=({messageObject:e,reaction:n,placement:i=t.W.top,onError:s})=>{const[c,l]=a.useState([]),[d,p]=a.useState(0),[h,m]=a.useState(t.DGz.loading),[g,f]=a.useState(i),_=a.useRef(!1),b=a.useRef(!1),v=a.useRef(null),y=dt.getLoggedInUser(),E=a.useRef(null),C=V("reaction_reacted"),S=V("reaction_popup_and"),w=V("reaction_popup_others"),k=V("reaction_popup_you"),x=pt.requestBuilderLimits.reactionInfoLimit,T=u(s),A=Y(),R=()=>A?.iframeWindow||window;a.useEffect(()=>(O(),()=>{v.current&&v.current.disconnect()}),[]),a.useEffect(()=>{I(),b.current=!0,N()},[e]);const I=()=>{l([]),p(0)},O=a.useCallback(()=>{try{v.current=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(_.current=!0,p(D()),N())})}),v.current.observe((A?.iframeDocument||document).getElementById("reaction-info-container"))}catch(e){T(e,"checkVisibilityOfElement")}},[]),N=a.useCallback(async()=>{try{_&&b?(_.current=!1,b.current=!1,l([]),await M()):_&&(h!==t.DGz.error&&h!==t.DGz.loading||(l([]),await M()),_.current=!1)}catch(e){T(e,"fetchReactionsOnInteraction")}},[]),M=async()=>{try{if(c.length>0)return;m(t.DGz.loading);const r=(new o.CometChat.ReactionsRequestBuilder).setLimit(x).setMessageId(e?.getId()).setReaction(n).build();try{const e=await r.fetchNext(),n=[];e.forEach(e=>{e?.reactedBy?.uid===y?.getUid()?n.unshift(k):n.push(e?.reactedBy?.name)}),l(n),m(t.DGz.loaded)}catch(e){m(t.DGz.error),console.log("error",e)}}catch(e){T(e,"fetchReactions")}},D=()=>{try{const t=e.getReactions().find(e=>e.getReaction()===e);return t?t.getCount():0}catch(e){T(e,"getTotalReactionCount")}},L=a.useCallback(()=>r.jsx("div",{className:"cometchat-reaction-info__error",children:"Tooltip failed to load. Try again later."}),[h]),P=a.useCallback(()=>r.jsx("div",{className:"cometchat-reaction-info__loading"}),[h]),j=a.useCallback(()=>{const e=d-c.length;return r.jsxs("div",{className:"cometchat-reaction-info__emoji-text",children:[r.jsx("span",{className:"cometchat-reaction-info__emoji",children:n}),r.jsxs("div",{children:[r.jsxs("div",{className:"cometchat-reaction-info__title",children:[c?.join(", "),d>c.length&&` ${S} ${e} ${w}`]}),r.jsx("div",{className:"cometchat-reaction-info__description",children:C})]})]})},[h]);return a.useEffect(()=>{setTimeout(()=>(()=>{try{const e=E.current?.scrollHeight,n=E.current?.scrollWidth,r=E.current?.getBoundingClientRect(),a=r?.left,o=r?.right,s=r?.bottom,c=r?.top,l=R().innerHeight,u=R().innerWidth;i===t.W.top||i===t.W.bottom?i===t.W.top?c-e-10<0&&f(t.W.bottom):i===t.W.bottom&&s+e+10>l&&f(t.W.top):i!==t.W.left&&i!==t.W.right||(i===t.W.left?a-n-10<0&&f(t.W.right):i===t.W.right&&o+n+10>u&&f(t.W.left))}catch(e){T(e,"updatePlacementBasedOnPosition")}})(),100)},[]),r.jsx("div",{id:"reaction-info-container",ref:E,className:"cometchat cometchat-reaction-info",style:g===t.W.top||g===t.W.bottom?{flexDirection:"column"}:g===t.W.left||g===t.W.right?{flexDirection:"row"}:{},children:r.jsxs("div",{className:"cometchat-reaction-info__content",children:[h===t.DGz.loading&&P(),h===t.DGz.error&&L(),h===t.DGz.loaded&&j()]})})},Nb=({messageObject:e,alignment:n=t.JxA.left,onReactionListItemClick:o,reactionsRequestBuilder:i,hoverDebounceTime:s=500,onReactionClick:c,onError:l})=>{const d=u(l),[p,h]=a.useState([]),[m,g]=a.useState(0),[f,_]=a.useState({}),[b,v]=a.useState(t.W.right),y=a.useRef(null),[E,C]=a.useState(0),S=a.useRef(null),w=Y(),k=()=>w?.iframeWindow||window,x=a.useCallback((e=0)=>{try{const t=A(e);g(isNaN(t)?0:t)}catch(e){d(e,"updateMaxVisibleEmojis")}},[m]),T=a.useCallback(()=>{try{const e=S.current?.parentNode?.parentNode;let t=null;if(e){const n=e.querySelector(".cometchat-message-bubble__body-content-view")||e.firstElementChild;n&&(t=n)}t&&!y.current&&(y.current=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect.width;E!==e&&(C(e),x(e))}}),y.current.observe(t))}catch(e){d(e,"attachObserver")}},[]),A=e=>{try{const t=46,n=Math.floor(e/t),r=Math.max(0,n),a=Math.min(100,r);return 0===a?1:a}catch(e){return d(e,"getMaxVisibleEmojis"),1}},R=a.useMemo(()=>{try{const e=p.length,t=e>m&&m>2?m-1:m;return e>t?e-t:0}catch(e){return d(e,"moreCount"),0}},[p,m]),I=e=>{try{k().innerWidth<=768?v((()=>{try{const e=S.current?.parentNode;if(e){const n=e.getBoundingClientRect(),r=n.top<k().innerHeight/2,a=n.bottom>k().innerHeight/2;return r?t.W.bottom:a?t.W.top:t.W.bottom}return t.W.bottom}catch(e){return d(e,"checkBubblePosition"),t.W.bottom}})()):v(n===t.JxA.left?t.W.right:t.W.left),e()}catch(e){d(e,"getPlacementAlignment")}};a.useEffect(()=>{try{return e&&(T(),(()=>{try{h(e.getReactions()||[])}catch(e){d(e,"checkReaction")}})()),()=>{y.current&&(y.current.disconnect(),y.current=null)}}catch(e){d(e,"useEffect")}},[e,n]);const O=a.useCallback(()=>r.jsx(Ft,{disableBackgroundInteraction:!0,useParentContainer:!0,placement:b,content:r.jsx("div",{children:r.jsx(Ib,{messageObject:e,reactionsRequestBuilder:i,reactionItemClicked:o})}),childClickHandler:(e,t)=>{I(()=>{e(t)})},children:r.jsx("div",{className:"cometchat-reactions__more-reaction",children:r.jsxs("div",{className:"cometchat-reactions__more-reaction-count",children:["+",R]})})}),[b,e,i,o,I,R]),N=a.useCallback(()=>{const e=p.length>m&&m>2?m-1:m,n=p.slice(0,e);return r.jsxs(r.Fragment,{children:[n.map((e,n)=>r.jsx("div",{className:"cometchat-reactions-info-wrapper",children:r.jsx(Ft,{useParentContainer:!0,showOnHover:!0,debounceOnHover:s,placement:t.W.top,content:M(e),showTooltip:!0,children:D(e)},e.getReaction())},`${e.getReaction()}-${n}`)),R>0&&O()]})},[p,m,R,O]),M=a.useCallback(n=>r.jsx("div",{children:r.jsx(Ob,{messageObject:e,reaction:n.getReaction(),placement:t.W.top})}),[f]),D=t=>r.jsxs("button",{className:t?.getReactedByMe()?"cometchat-reactions__reaction-you":"cometchat-reactions__reaction",onClick:()=>{c&&c(t,e)},children:[r.jsx("span",{className:"cometchat-reactions__reaction-emoji",children:t.getReaction()}),r.jsx("span",{className:"cometchat-reactions__reaction-count",children:t.getCount()})]});return r.jsx("div",{ref:S,className:"cometchat-reactions",onMouseEnter:()=>x(E),onMouseLeave:()=>_({}),children:N()})},Mb={getConversationStarters:void 0,onSuggestionClicked:void 0},Db=e=>{const{getConversationStarters:n,onSuggestionClicked:o}={...Mb,...e},[i,s]=a.useState(t.DGz.loading),[c,l]=a.useState(null),u=V("ai_conversation_starter_error");return a.useEffect(()=>{s(t.DGz.loading),n&&n().then(async e=>{e?(s(t.DGz.loaded),l(await async function(e){return new Promise((t,n)=>{try{return t(r.jsx(r.Fragment,{children:e&&e.map((e,t)=>r.jsx("div",{className:"cometchat-conversation-starter__item",children:r.jsx("button",{className:"cometchat-conversation-starter__item-button",onClick:()=>o&&o(e),children:e})},e))}))}catch(e){n(e)}})}(e))):s(t.DGz.empty)}).catch(e=>{s(t.DGz.error)})},[]),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsx("div",{className:"cometchat-conversation-starter",children:i===t.DGz.loaded?c:function(){let e=null;switch(i){case t.DGz.loading:e=r.jsxs("div",{className:"cometchat-conversation-starter__shimmer-container",children:[r.jsx("div",{className:"cometchat-conversation-starter__shimmer-item"}),r.jsx("div",{className:"cometchat-conversation-starter__shimmer-item"}),r.jsx("div",{className:"cometchat-conversation-starter__shimmer-item"})]});break;case t.DGz.error:e=r.jsx("div",{className:"cometchat-conversation-starter__error-view",children:u});break;case t.DGz.empty:e=r.jsx(r.Fragment,{});case t.DGz.loaded:}return e}()})})},Lb={getSmartReplies:void 0,onSuggestionClicked:void 0,closeCallback:void 0},Pb=e=>{const{getSmartReplies:n,onSuggestionClicked:o,closeCallback:i}={...Lb,...e},[s,c]=a.useState(t.DGz.loading),[l,u]=a.useState(null),d=V("ai_smart_replies_error"),p=V("ai_smart_replies_title");return a.useEffect(()=>{c(t.DGz.loading),n&&n().then(async e=>{e&&e.length>0?(c(t.DGz.loaded),u(await async function(e){return new Promise((t,n)=>{try{const n=r.jsx("div",{className:"cometchat-smart-replies__items-container",children:e.map((e,t)=>r.jsx("div",{className:"cometchat-smart-replies__item",onClick:()=>o&&o(e),children:r.jsx("button",{className:"cometchat-smart-replies__item-button",children:e})},t))});t(n)}catch(e){n(e)}})}(e))):c(t.DGz.empty)}).catch(()=>{c(t.DGz.error)})},[]),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsx("div",{className:"cometchat-smart-replies__wrapper",children:r.jsxs("div",{className:"cometchat-smart-replies",children:[r.jsxs("div",{className:"cometchat-smart-replies__header",children:[r.jsx("div",{className:"cometchat-smart-replies__header-title",children:p}),r.jsx("button",{className:"cometchat-smart-replies__header-close-button",onClick:()=>i&&i()})]}),r.jsx("div",{className:"cometchat-smart-replies__body",children:s===t.DGz.loaded?l:function(){switch(s){case t.DGz.loading:return r.jsxs("div",{className:"cometchat-smart-replies__shimmer-container",children:[r.jsx("div",{className:"cometchat-smart-replies__shimmer-item"}),r.jsx("div",{className:"cometchat-smart-replies__shimmer-item"}),r.jsx("div",{className:"cometchat-smart-replies__shimmer-item"})]});case t.DGz.error:return r.jsx("div",{className:"cometchat-smart-replies__error-view",children:d});case t.DGz.empty:return r.jsx("div",{className:"cometchat-smart-replies__empty-view",children:V("ai_smart_replies_empty")});default:return null}}()})]})})})},jb=e=>{const{message:t,onClose:n,onError:i,onSubmit:s,hideFlagRemarkField:c=!1}=e,l=u(i),[d,p]=a.useState([]),[h,m]=a.useState(null),[g,f]=a.useState(""),[_,b]=a.useState(""),[v,y]=a.useState(!1);return a.useEffect(()=>{(async()=>{try{const e=await o.CometChat.getFlagReasons();p(e)}catch(e){l(e,"fetchFlagReasons")}})()},[l,p]),r.jsxs("div",{className:"cometchat cometchat-flag-message-dialog",onClick:e=>e.stopPropagation(),children:[r.jsxs("div",{className:"cometchat-flag-message-dialog__header",children:[r.jsx("div",{className:"cometchat-flag-message-dialog__header-main",children:r.jsx("div",{className:"cometchat-flag-message-dialog__header-title",children:V("flag_message_title")})}),r.jsx("div",{className:"cometchat-flag-message-dialog__header-subtitle",children:V("flag_message_subtitle")})]}),r.jsxs("div",{className:"cometchat-flag-message-dialog__body",children:[r.jsx("div",{className:"cometchat-flag-message-dialog__reasons",role:"group",children:d.map(e=>r.jsx("button",{type:"button",className:"cometchat-flag-message-dialog__reason "+(h?.id===e.id?"cometchat-flag-message-dialog__reason-selected":""),onClick:()=>(e=>{m(e),b("")})(e),children:V(`flag_message_reason_id_${e.id}`)||e.name},e.id))}),!c&&r.jsxs("div",{className:"cometchat-flag-message-dialog__remark",children:[r.jsxs("label",{htmlFor:"flag-message__remark",className:"cometchat-flag-message-dialog__remark-label",children:[V("flag_message_remark_label")," ",r.jsxs("span",{children:["(",V("flag_message_remark_optional"),")"]})]}),r.jsx("textarea",{name:"flag-message__remark",id:"flag-message__remark",placeholder:V("flag_message_remark_placeholder"),className:"cometchat-flag-message-dialog__remark-input",value:g,onChange:e=>{return(t=e.target.value).length>500?b(V("flag_message_character_limit_reached")):b(""),void f(t.substring(0,500));var t},onClick:()=>b("")})]}),r.jsx("div",{className:"cometchat-flag-message-dialog__error",children:_}),r.jsxs("div",{className:"cometchat-flag-message-dialog__actions",children:[r.jsx("div",{className:"cometchat-flag-message-dialog__actions-item cometchat-flag-message-dialog__actions-cancel",children:r.jsx(rn,{onClick:n,text:V("flag_message_confirm_no")})}),r.jsx("div",{className:"cometchat-flag-message-dialog__actions-item  cometchat-flag-message-dialog__actions-submit",children:r.jsx(rn,{disabled:!h,isLoading:v,text:V("flag_message_confirm_yes"),onClick:async()=>{if(b(""),y(!0),h)try{if(s&&!await s(String(t.getId()),h.id,g.trim().length>0?g.trim():void 0))return b(V("flag_message_error")),void y(!1);n&&n(),y(!1)}catch(e){l(e,"flagMessageSubmit"),b(V("flag_message_error")),y(!1)}else y(!1)}})})]})]})]})},Ub={disableSoundForMessages:!1,customSoundForMessages:"",parentMessageId:0,user:void 0,group:void 0,emptyView:void 0,errorView:void 0,loadingView:void 0,hideReceipts:!1,hideModerationView:!1,messageAlignment:t.Dj9.standard,hideDateSeparator:!1,templates:[],messagesRequestBuilder:void 0,scrollToBottomOnNewMessages:!1,onThreadRepliesClick:()=>{},headerView:void 0,footerView:void 0,onError:e=>{},hideError:!1,reactionsRequestBuilder:void 0,onReactionClick:void 0,onReactionListItemClick:void 0,textFormatters:[],hideTranslateMessageOption:!1,hideReplyInThreadOption:!1,hideReplyOption:!1,hideReactionOption:!1,hideEditMessageOption:!1,hideDeleteMessageOption:!1,hideMessagePrivatelyOption:!1,hideCopyMessageOption:!1,hideMessageInfoOption:!1,showMarkAsUnreadOption:!1,hideAvatar:!1,hideGroupActionMessages:!1,hideStickyDate:!1,startFromUnreadMessages:!1,quickOptionsCount:3,showConversationStarters:!1,showSmartReplies:!1,smartRepliesKeywords:["what","when","why","who","where","how","?"],smartRepliesDelayDuration:1e4,goToMessageId:"",showScrollbar:!1,isAgentChat:!1,hideFlagMessageOption:!1,hideFlagRemarkField:!1,loadLastAgentConversation:!1},Fb=e=>{const{parentMessageId:n,user:i,group:c,emptyView:d,errorView:p,loadingView:h,hideReceipts:m,hideModerationView:g,messageAlignment:f,hideDateSeparator:_,templates:b,messagesRequestBuilder:v,scrollToBottomOnNewMessages:y,onThreadRepliesClick:E,headerView:C,footerView:S,onError:w,hideError:k,reactionsRequestBuilder:x,onReactionClick:T,onReactionListItemClick:A,textFormatters:R,hideReplyInThreadOption:I,hideReplyOption:O,hideTranslateMessageOption:N,hideReactionOption:M,hideEditMessageOption:D,hideDeleteMessageOption:L,hideMessagePrivatelyOption:P,hideCopyMessageOption:j,hideMessageInfoOption:U,hideAvatar:F,hideGroupActionMessages:B,hideStickyDate:H,startFromUnreadMessages:z,quickOptionsCount:q,disableSoundForMessages:J,customSoundForMessages:Z,showConversationStarters:$,showSmartReplies:Q,smartRepliesKeywords:X,smartRepliesDelayDuration:ee,messageInfoDateTimeFormat:te,messageSentAtDateTimeFormat:ne,separatorDateTimeFormat:re,stickyDateTimeFormat:ae,goToMessageId:oe,showScrollbar:ie,isAgentChat:se,hideFlagMessageOption:ce,hideFlagRemarkField:le,showMarkAsUnreadOption:ue,loadLastAgentConversation:de}={...Ub,...e},[pe,he]=a.useState([]),[me,ge]=a.useState(!0),[fe,_e]=a.useState(!1),[be,ve]=a.useState(se&&!n?de?t.DGz.loading:t.DGz.empty:t.DGz.loading),[ye,Ee]=a.useState(!1),[Ce,Se]=a.useState(!1),[we,ke]=a.useState(null),[xe,Te]=a.useState(!1),[Ae,Re]=a.useState(null),[Ie,Oe]=a.useState(!1),[Ne,Me]=a.useState(null),[De,Le]=a.useState(!1),[Pe,je]=a.useState(!1),[Ue,Fe]=a.useState(!1),[Be,Ge]=a.useState(!1),[Ve,He]=a.useState(!1),[ze,Ye]=a.useState(0),[qe,Ke]=a.useState(!1),[We,Je]=a.useState(!0),[Ze,$e]=a.useState(!!oe),[Qe,Xe]=a.useState(!1),[et,tt]=a.useState(!1),[nt,rt]=a.useState(!(!se||n)),[at,ot]=a.useState(!0),[it,st]=a.useState(!1),[ct,lt]=a.useState(!1),[ut,mt]=a.useState(!0),[gt,ft]=a.useState(""),[_t,bt]=a.useState(!1),[vt,yt]=a.useState(""),[Ct,St]=a.useState(""),[wt,Tt]=a.useState(""),At=a.useRef(""),Rt=a.useRef(0),It=a.useRef(null),Ot=a.useRef(!1),Nt=a.useRef({}),Mt=a.useRef(null),Dt=a.useRef({prevMessageId:0,nextMessageId:0}),Lt=a.useRef(0),jt=a.useRef(0),Ut=a.useRef(""),Ft=a.useRef(!1),Bt=a.useRef(null),Ht=a.useRef(""),zt=a.useRef(null),Yt=l(i),qt=l(c),Jt=l(n),Zt=a.useRef(null),$t=a.useRef(null),Qt=a.useRef(!1),en=a.useRef(!1),nn=a.useRef(e.showSmartReplies||!1),an=a.useRef(!1),on=a.useRef(!1),sn=a.useRef(!1),ln=a.useRef(!0),un=a.useRef({}),dn=a.useRef(!1),pn=a.useRef(null);var hn=null;Y();const{debouncedCallback:mn}=Pt(()=>{dn.current||tt(!1)},500);a.useEffect(()=>{se&&!n&&(an.current=!0)},[se,n]),a.useEffect(()=>{let e=cn.ccOwnershipChanged.subscribe(e=>{e.group.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.group)}),t=cn.ccGroupMemberScopeChanged.subscribe(e=>{e.group.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.group)}),n=cn.ccGroupMemberAdded.subscribe(e=>{e.userAddedIn.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.userAddedIn)}),r=cn.ccGroupMemberBanned.subscribe(e=>{e.kickedFrom.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.kickedFrom)}),a=cn.ccGroupMemberKicked.subscribe(e=>{e.kickedFrom.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.kickedFrom)}),o=cn.ccGroupMemberUnbanned.subscribe(e=>{e.unbannedFrom.getGuid()===qt.current?.getGuid?.()&&(qt.current=e.unbannedFrom)});return()=>{e?.unsubscribe(),t?.unsubscribe(),n?.unsubscribe(),r?.unsubscribe(),a?.unsubscribe(),o?.unsubscribe()}},[qt]);const gn=a.useCallback(()=>{setTimeout(()=>{bt(!1)},0)},[bt]),fn=a.useCallback((e,t="auto")=>{const n=Nt.current[e]?.current;n&&n.scrollIntoView({block:"start",behavior:t})},[Nt]),_n=a.useCallback((e,t="smooth")=>{const n=Nt.current[e]?.current;return!!n&&(fn(e,t),n.classList.add("cometchat-message-list__bubble-highlight"),setTimeout(()=>{n.classList.remove("cometchat-message-list__bubble-highlight")},2e3),!0)},[fn,Nt]),bn=a.useCallback(()=>{const e=Bt.current!==oe?oe:null;return gt?(ge(!1),void(_n(gt,"auto")&&gn())):e?(requestAnimationFrame(()=>{fn(e,"auto")}),void(Bt.current=e)):void(Ct&&jt.current>0&&requestAnimationFrame(()=>{fn(Ct,"auto")}))},[oe,Ct,gt,fn,gn,ge,_n]),vn=a.useCallback((e,t=!0,n="auto")=>{requestAnimationFrame(()=>{t?_n(e,n):fn(e,n)})},[_n,fn]),En=a.useCallback(()=>{try{J||(Z?Jf.play(Jf.Sound.incomingMessage,Z):Jf.play(Jf.Sound.incomingMessage))}catch(e){wn(e,"playAudio")}},[J,Z]),Cn=(e,t)=>i||"end"==e?r.jsx("div",{className:"cometchat-message-list__shimmer-body",style:{alignSelf:`flex-${e}`},children:r.jsx("div",{className:"cometchat-message-list__shimmer-item"})},t):r.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[r.jsx("div",{className:"cometchat-message-list__shimmer-leading-view"}),r.jsxs("div",{className:"cometchat-message-list__shimmer-body",style:{alignSelf:`flex-${e}`},children:[r.jsx("div",{className:"cometchat-message-list__shimmer-item-header"}),r.jsx("div",{className:"cometchat-message-list__shimmer-item"})]})]},t),Sn=e=>{const t=[];t.push(r.jsx("div",{children:r.jsx("div",{className:"cometchat-message-list__shimmer-header",children:r.jsx("div",{className:"cometchat-message-list__shimmer-item"})})},"date-shimmer"));for(let n=1;n<=e;n++){const e=n%2==0?"start":"end";t.push(Cn(e,`shimmer-${n}`))}return r.jsx(r.Fragment,{children:t})},wn=u(w),kn=a.useCallback(async()=>{try{let e;if(Yt.current)e=await o.CometChat.getConversation(Yt.current.getUid(),pt.MessageReceiverType.user),pn.current=e;else{if(!qt.current)return null;e=await o.CometChat.getConversation(qt.current.getGuid(),pt.MessageReceiverType.group),pn.current=e}if(e&&e.getLastReadMessageId()){const t=e.getLastReadMessageId()?.toString();if(t&&"0"!==t&&!(await o.CometChat.getMessageDetails(t))?.getParentMessageId())return St(t),t}return null}catch(e){return wn(e,"getConversationAndSetLastReadMessage"),null}},[Yt,qt,wn]);let xn=!1;t.JxA.left;const Tn=a.useMemo(()=>h?r.jsx("div",{className:"cometchat-message-list__loading-state-view",children:h}):r.jsx("div",{className:"cometchat-message-list__shimmer",children:Sn(10)}),[h]),An=a.useMemo(()=>{const e="dark"==Et();return p?r.jsx("div",{className:"cometchat-message-list__error-state-view",children:p}):r.jsxs("div",{className:"cometchat-message-list__error-state-view",children:[r.jsx("img",{className:"cometchat-message-list__error-state-view-icon",src:e?Wt:Kt}),r.jsxs("div",{className:"cometchat-message-list__error-state-view-body",children:[r.jsx("div",{className:"cometchat-message-list__error-state-view-body-title",children:V("message_list_error_title")}),r.jsx("div",{className:"cometchat-message-list__error-state-view-body-description",children:V("message_list_error_subtitle")})]})]})},[p]),Rn=a.useMemo(()=>d?r.jsx("div",{className:"cometchat-message-list__empty-state-view",children:d}):void 0,[d]),In=a.useMemo(()=>{let e;return e=b&&b.length>0?b:Gf.getDataSource().getAllMessageTemplates({textFormatters:R,hideGroupActionMessages:B}).map(e=>se?{...e,replyView:null}:e),e},[b,se]),On=a.useMemo(()=>{let e={};return In.forEach(t=>{e[t.category+"_"+t.type]=t}),e},[In]),Nn=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType(),r=Number(e.getParentMessageId()),a=Number(e.getId()),o=Number(Jt.current);if(!o){if(e.getParentMessageId()&&!se)return!1;if(Yt.current){if(n===pt.MessageReceiverType.user&&t===Yt.current.getUid())return!0}else if(qt.current&&n===pt.MessageReceiverType.group&&t===qt.current.getGuid())return!0;return!1}if(r===o||a===o)return!0}catch(e){wn(e,"isPartOfCurrentChatForUIEvent")}},[]),Mn=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType(),r=e?.getSender()?.getUid();if(Jt.current)return!1;if(Yt.current){if(n===pt.MessageReceiverType.user&&(t===Yt.current.getUid()||r===Yt.current.getUid()))return!0}else if(qt.current&&n===pt.MessageReceiverType.group&&t===qt.current.getGuid())return!0;return!1}catch(e){wn(e,"validateTransientMessage")}},[]);function Dn(){return{yesterday:V("yesterday"),otherDays:"DD MMM, YYYY",today:V("today"),...kt(G.calendarObject),...kt(re)}}const Ln=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType(),r=e?.getSender()?.getUid();if(!Jt.current){if(e.getParentMessageId()&&!se)return!1;if(Yt.current){if(n===pt.MessageReceiverType.user&&(t===Yt.current.getUid()||r===Yt.current.getUid()))return!0}else if(qt.current&&n===pt.MessageReceiverType.group&&t===qt.current.getGuid())return!0;return!1}{const t=Number(e.getParentMessageId()),n=Number(e.getId()),r=Number(Jt.current);if(t===r||se&&n===r)return!0}}catch(e){wn(e,"isPartOfCurrentChatForSDKEvent")}},[se,wn]),Pn=a.useCallback(e=>{try{if(!e.getParentMessageId())return!1;const t=e?.getReceiverId();if(Yt.current){if(t===Yt.current.getUid())return!0}else if(qt.current&&t===qt.current.getGuid())return!0;return!1}catch(e){wn(e,"isThreadOfCurrentChatForUIEvent")}},[]),jn=a.useCallback(e=>{try{if(!e.getParentMessageId())return!1;const t=e?.getReceiverId(),n=e?.getSender()?.getUid();if(Yt.current){if(t===Yt.current.getUid()||n===Yt.current.getUid())return!0}else if(qt.current&&t===qt.current.getGuid())return!0;return!1}catch(e){wn(e,"isThreadOfCurrentChatForSDKEvent")}},[]),Un=a.useCallback(e=>{try{return pe.find(t=>t?.getId()?.toString()===e?.toString())}catch(e){wn(e,"getMessageById")}},[pe,wn]),Fn=a.useCallback(e=>{try{E&&E(e)}catch(e){wn(e,"openThreadView")}},[E,wn,en]),Bn=a.useCallback((e,t=!1)=>{try{he(n=>n.map(n=>n.getId()&&n.getId()===e.getId()&&t||n.getMuid()!==e.getMuid()||cr(n)&&!cr(e)?n:e))}catch(e){wn(e,"updateMessageByMuid")}},[wn]);function Gn(){setTimeout(()=>{rt(!0),ve(t.DGz.loaded),bt(!1),yt("")},100)}const Vn=a.useCallback(e=>{try{ge(!1),he(t=>t.map(t=>(t?.getQuotedMessageId()===e?.getId()&&t.setQuotedMessage(e),t?.getId()===e?.getId()?e:t)))}catch(e){wn(e,"updateMessageByMessageId")}},[wn]),Hn=a.useCallback(e=>{try{Ln(e)&&Vn(e)}catch(e){wn(e,"replaceUpdatedMessage")}},[Vn,wn,Ln]),zn=a.useCallback((e,t=!1,n=!1)=>{try{t?(ge(!0),Bn(e,n)):(ge(!1),Vn(e))}catch(e){wn(e,"updateMessage")}},[Bn,Vn,wn]),Yn=a.useCallback((e,t)=>{try{const n=t?.getId(),r=Un(n),a=r?.getReactions()||[],i=a?.find(t=>t?.reaction===e);if(i&&i?.getReactedByMe()){const t=[];a.forEach(n=>{if(n?.getReaction()===e){if(1===n?.getCount())return;n.setCount(n?.getCount()-1),n.setReactedByMe(!1),t.push(n)}else t.push(n)});const i=ht.clone(r);i.setReactions(t),zn(i),o.CometChat.removeReaction(n,e).then(e=>{}).catch(e=>{zn(r)})}else{const t=[],i=a.find(t=>t?.getReaction()===e);if(a.forEach(n=>{n?.getReaction()===e?(n.setCount(n?.getCount()+1),n.setReactedByMe(!0),t.push(n)):t.push(n)}),!i){const n=new o.CometChat.ReactionCount(e,1,!0);t.push(n)}const s=ht.clone(r);s.setReactions(t),zn(s),s.getReactions()&&1==s.getReactions().length&&en.current&&Jr(),o.CometChat.addReaction(n,e).then(()=>{}).catch(e=>{wn(e,"addReaction"),zn(r)})}}catch(e){wn(e,"reactToMessages")}},[Un,wn,zn]),qn=a.useCallback(e=>{try{const t=Un(e);return e=>r.jsx(ob,{onEmojiClick:n=>{e&&e(),Yn(n,t)}})}catch(e){throw wn(e,"onReactMessage"),e}},[Un,Yn]),Kn=a.useCallback(e=>{try{let t=Un(e);if(t){let e=t.getText();t.getMentionedUsers()&&t.getMentionedUsers().length&&(e=(e=>{try{const t=/<@uid:(.*?)>/g,n=/<@all:(.*?)>/g;let r=e.getText(),a=e.getText(),o=t.exec(r),i=n.exec(r),s=e.getMentionedUsers();for(;null!==o;){let e;for(let t=0;t<s.length;t++)o[1]===s[t].getUid()&&(e=s[t]);e&&(a=a.replace(o[0],"@"+e?.getName())),o=t.exec(r)}for(;null!==i;)a=a.replace(i[0],"@"+(V(`message_composer_mention_${i[1]}`)||i[1])),i=n.exec(r);return a}catch(e){throw wn(e,"getMentionsTextWithoutStyle"),e}})(t)),Ht.current=V("message_list_message_copied"),_e(!0),navigator?.clipboard?.writeText(e)}}catch(e){wn(e,"onCopyMessage")}},[Un,wn,_e,R]),Wn=a.useCallback(e=>{try{let t=Un(e);t&&(en.current=!1,ge(!1),ke(t),Se(!0))}catch(e){wn(e,"onOpenMessageInfo")}},[wn,en,Un]),Jn=a.useCallback(e=>{try{let t=Un(e);t&&(en.current=!1,ge(!1),Re(t),Te(!0))}catch(e){wn(e,"onOpenFlagMessageDialog")}},[wn,en,Un,ge,Re,Te]),Zn=a.useCallback(e=>{try{let t=Un(e);t&&Fn(t)}catch(e){wn(e,"onOpenThread")}},[Fn,wn,Un]),$n=a.useCallback(e=>{try{const t=Un(e);if(t){const e=t.getSender();yn.ccOpenChat.next({user:e})}}catch(e){wn(e,"onMessagePrivately")}},[Un,wn]),Qn=a.useCallback(e=>{try{let t=Un(e);if(t){const e=t.getId();o.CometChat.deleteMessage(e).then(e=>{Hn(e),Qf.ccMessageDeleted.next(e),Ht.current=V("message_list_message_deleted"),_e(!0)},e=>{wn(e,"onDeleteMessage")})}}catch(e){wn(e,"onDeleteMessage")}},[Hn,wn,Un]),Xn=a.useCallback(e=>{try{let n=Un(e);n&&(Qf.ccMessageEdited.next({message:n,status:t.qpt.inprogress}),en.current&&setTimeout(()=>{Jr()},100))}catch(e){wn(e,"onEditMessage")}},[wn,Un]),er=a.useCallback(e=>{try{let n=Un(e);n&&(Qf.ccReplyToMessage.next({message:n,status:t.qpt.inprogress}),en.current&&setTimeout(()=>{Jr()},100))}catch(e){wn(e,"onReply")}},[wn,Un]),tr=a.useCallback((e=[],t)=>{try{return e.forEach(e=>{switch(e.id){case pt.MessageOption.deleteMessage:e instanceof Gt&&!e.onClick&&(e.onClick=Qn);break;case pt.MessageOption.editMessage:e instanceof Gt&&!e.onClick&&(e.onClick=Xn);break;case pt.MessageOption.copyMessage:e instanceof Gt&&!e.onClick&&(e.onClick=Kn);break;case pt.MessageOption.markAsUnread:e instanceof Gt&&!e.onClick&&(e.onClick=br);break;case pt.MessageOption.replyInThread:e instanceof Gt&&!e.onClick&&(e.onClick=Zn);break;case pt.MessageOption.replyMessage:e instanceof Gt&&!e.onClick&&(e.onClick=er);break;case pt.MessageOption.messageInformation:e instanceof Gt&&!e.onClick&&(e.onClick=Wn);break;case pt.MessageOption.flagMessage:e instanceof Gt&&!e.onClick&&(e.onClick=Jn);break;case pt.MessageOption.sendMessagePrivately:e instanceof Gt&&!e.onClick&&(e.onClick=$n);break;case pt.MessageOption.reactToMessage:e instanceof Vt&&!e?.customView&&(e.customView=qn(t)),setTimeout(()=>{xt()},10)}}),e}catch(t){return wn(t,"setDefaultOptionsCallback"),e}},[wn,Qn,Xn,er,Zn,Kn,Wn,$n,qn]),nr=a.useCallback(e=>{let t=[];if(!e.getId())return t;try{return In&&In.length>0&&!e.getDeletedAt()&&e.getType()!==pt.MessageTypes.groupMember&&e?.getCategory()!==pt.MessageCategory.call&&In.forEach(n=>{n.type===e.getType()&&n.category===e.getCategory()&&(t=tr(n?.options?.(It.current,e,qt.current,{hideReplyInThreadOption:I,hideReplyOption:O,hideTranslateMessageOption:N,hideReactionOption:M,hideEditMessageOption:D,hideDeleteMessageOption:L,hideMessagePrivatelyOption:P,hideCopyMessageOption:j,hideMessageInfoOption:U,hideFlagMessageOption:ce,hideMarkAsUnreadOption:!ue}),e?.getId()))}),t}catch(e){return wn(e,"getMessageOptions"),t}},[In,tr,wn,I,N,M,D,O,L,P,j,U,ce]),ar=a.useCallback(e=>{let n=t.JxA.center;try{return n=e?.getType()===pt.MessageTypes.groupMember||e?.getCategory()==pt.MessageCategory.call?t.JxA.center:f===t.Dj9.left||e.getSender()&&e?.getSender().getUid()!==It.current?.getUid()?t.JxA.left:t.JxA.right,n}catch(e){return wn(e,"setBubbleAlignment"),n}},[f,wn]),or=a.useCallback(e=>{try{let t=ar(e);return On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.contentView?On[e?.getCategory()+"_"+e?.getType()].contentView(e,t):null}catch(e){return wn(e,"getContentView"),null}},[On,wn,ar]),ir=a.useCallback(e=>{const n=e.getQuotedMessageId()?.toString();n&&(pe.some(e=>e.getId().toString()===n)?vn(n,!0,"smooth"):(ve(t.DGz.loading),bt(!0),ft(n),yt(n),Je(!0)))},[pe,vn]),sr=a.useCallback(e=>{try{let t=ar(e);if(On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.replyView)return On[e?.getCategory()+"_"+e?.getType()].replyView(e,t,ir,R)}catch(e){return wn(e,"getReplyView"),null}},[On,R,wn,ar,ir]),cr=a.useCallback(e=>{let t=!1;return(e instanceof o.CometChat.MediaMessage||e instanceof o.CometChat.TextMessage)&&(t=e.getModerationStatus()===pt.moderationStatus.disapproved&&It.current?.getUid()===e.getSender()?.getUid()),t},[]),lr=a.useCallback(e=>{if(e instanceof o.CometChat.MediaMessage||e instanceof o.CometChat.TextMessage){const t=e?.error,n=e.getMetadata(),r=n?.error;let a;if(t?.code?a=t.code:r&&(a=r.code||r.code),"ERR_PERMISSION_DENIED"!==a)return!1;const o=e.getSender()?.getUid(),i=It.current?.getUid();return!o||o===i}return!1},[]),ur=a.useCallback(e=>{try{let t=ar(e);const n=e?.getCategory()+"_"+e?.getType();return On[n]&&On[n]?.bottomView&&On[n]?.bottomView(e,t)?On[n]?.bottomView(e,t):se||!cr(e)||g?!se&&lr(e)?(new tn).getPermissionDeniedMessageBottomView():null:(new tn).getModeratedMessageBottomView()}catch(e){return wn(e,"getBottomView"),null}},[On,wn,ar,g,se,cr,lr]),dr=a.useCallback(e=>{try{let t=null;return On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.headerView&&(t=On[e?.getCategory()+"_"+e?.getType()]?.headerView(e)),t}catch(e){return wn(e,"getHeaderView"),null}},[On,wn]),pr=e=>{try{let t=ar(e);const n=On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.bottomView&&On[e?.getCategory()+"_"+e?.getType()]?.bottomView(e,t);return cr(e)&&!g&&!n||lr(e)&&!n}catch(e){wn(e,"shouldIncludeBottomViewHeight")}},hr=a.useCallback(e=>{try{let t=null;return On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.footerView&&(t=On[e?.getCategory()+"_"+e?.getType()]?.footerView(e)),t}catch(e){return wn(e,"getFooterView"),null}},[On,wn]),mr=a.useCallback(e=>{let t=null;try{return On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()].bubbleView&&(t=On[e?.getCategory()+"_"+e?.getType()].bubbleView(e)),t}catch(e){return wn(e,"getBubbleWrapper"),t}},[On,wn]),gr=a.useCallback(()=>{try{let e="",t="";Yt.current?(e=Yt.current.getUid(),t="user"):(e=qt.current.getGuid(),t="group"),o.CometChat.markConversationAsRead(e,t).then(()=>{pn.current&&(U_.ccMarkConversationAsRead.next(pn.current),jt.current=0,Tt(""),$e(!1))})}catch(e){wn(e,"markConversationAsRead")}},[wn]),fr=a.useCallback(e=>{o.CometChat.markAsRead(e).then(()=>{e.setReadAt(ht.getUnixTimestamp()),he(t=>t.map(t=>t?.getId()===e?.getId()?e:t)),Qf.ccMessageRead.next(e)},e=>{wn(e,"markAsRead")})},[wn,Vn]),_r=a.useCallback(e=>{try{const t=e?.getSender(),n=t?.getUid()===It.current?.getUid();!t||n||e.getReadAt()?n&&jt.current>0&&fr(e):fr(e)}catch(e){wn(e,"checkAndMarkMessageAsRead")}},[fr]),br=a.useCallback(async e=>{try{let t=Un(e);t&&String(e)!==Ut.current&&(o.CometChat.markMessageAsUnread(t).then(e=>{pn.current=e;const t=e.getLastReadMessageId();t&&St(t);const n=e.getUnreadMessageCount()||0;n>0&&(jt.current=n,Tt(String(n))),on.current=!0,U_.ccUpdateConversation.next(e)}),Ut.current=String(e))}catch(e){wn(e,"markMessageAsUnread")}},[wn,Un,vn]),vr=a.useCallback(()=>{try{en.current=!0,pe.length>0&&(_r(pe[pe.length-1]),jt.current=0,Tt("")),De&&Le(!1)}catch(e){wn(e,"clearNewMessagesCount")}},[De,wn,_r,pe]),yr=a.useCallback(e=>{if(void 0!==e){const n=en.current;en.current=e,1!=en.current||be!=t.DGz.loaded||qe||Ke(!0),en.current&&!n&&!Jt.current&&an.current&&vr(),en.current&&(Bt.current!==oe&&oe||gt||z&&Ct&&!on.current)&&Ot.current?ge(!1):ge(en.current),setTimeout(()=>{Xe(!et&&!en.current)},100)}},[en,be,et,pe,Ct,z,vr]),Er=a.useCallback(e=>new Promise((n,r)=>{if(Ln(e[0]))try{ln.current=!0,he(t=>{const n=new Set(t.map(e=>e.getId())),r=[...e.filter(e=>!n.has(e.getId())),...t];return r.find(e=>String(e.getId())===pn?.current?.getLastReadMessageId())?on.current=!0:on.current=!1,r}),Lt.current=Lt.current+e.length,ve(t.DGz.loaded),setTimeout(()=>{ut&&mt(!1)},100),n(!0)}catch(e){pe?.length<=0&&ve(t.DGz.error),wn(e,"prependMessages"),r(e)}else 0===pe.length&&ve(t.DGz.loaded),n(!0)}),[pe,Ln,wn,ut]),Cr=a.useCallback(()=>new Promise(async(e,n)=>{try{const r=Bt.current!==oe?oe:void 0;let a=null,i=!0,s="auto",c=r;r||(c=vt,s="smooth");let l=Ct||null,u=jt.current,d=We,p=z;if(!Yt.current&&!qt.current||pn.current||se||(l=await kn(),pn.current&&(u=pn.current.getUnreadMessageCount()||0),pe.find(e=>String(e.getId())===l)&&(p=!1),p&&l&&u&&!r&&!vt&&(c=l,i=!1,s="auto"),c&&(d=!0,Je(d),$e(!0)),u&&l?jt.current=u:St("")),ve(t.DGz.loading),$e(!!c),d&&c&&(ot(!1),a=await o.CometChat.getMessageDetails(c)),xn)e(!0);else{xn=!0;let r=d&&c?Number(c):Dt.current.prevMessageId;Mt.current.previous=new Rb(wn,v,Yt.current,qt.current,r??void 0,Jt.current,B,se),Mt?.current.previous.fetchPreviousMessages().then(r=>{if(a&&Ln(a)&&r.push(a),Ft.current=!1,r&&r.length>0)if(!u||null===l||c&&-1!==r.findIndex(e=>String(e.getId())===l)||c&&l&&Number(l)<=Number(c))Jt.current||(Ft.current=!0);else if(!Jt.current){jt.current=u;const e=u<999?String(u):"999+";Tt(e)}if(Ot.current?(Jt.current||yn.ccActiveChatChanged.next({user:Yt.current,group:qt.current,message:r.length>0?r[r.length-1]:void 0,unreadMessageCount:u}),r.length>0&&nn.current&&Or(r[r.length-1]),0==r.length&&$?Fe(!0):Fe(!1),Ot.current=!1,Rb.attachConnectionListener(()=>{Qt.current=!0,Mt.current.next=null,Tr().then(()=>{if(d&&Ze){let e=0;Yt?.current&&o.CometChat.getUnreadMessageCountForUser(Yt.current?.getUid()).then(t=>{if(e=t[Yt.current.getUid()]||0,Qt.current=!1,e&&!Jt.current){jt.current=e;const t=e<999?String(e):"999+";Tt(t)}}),qt.current&&o.CometChat.getUnreadMessageCountForGroup(qt.current?.getGuid()).then(t=>{if(e=t[qt.current.getGuid()]||0,Qt.current=!1,e&&!Jt.current){jt.current=e;const t=e<999?String(e):"999+";Tt(t)}})}Ar().then(t=>{e(t),Qt.current=!1},e=>{n(e)}).catch(e=>{wn(e,"fetchActionMessages")})})}),setTimeout(()=>{d&&c?(Dt.current.nextMessageId=Number(c),Ar(l??void 0).then(()=>{vn(c,i,s),Ft.current&&gr(),Je(!1),Gn()})):gt?(Dt.current.nextMessageId=Number(gt),Ar(l??void 0).then(()=>{bn(),Ft.current&&gr(),Je(!1),Gn()})):(Gn(),an.current=!0,Ft.current&&gr())},0)):Ft.current&&gr(),xn=!1,r&&r.length>0){let t=r[r.length-1],a=t?.getSender().getUid()==It.current?.getUid();t.getDeliveredAt()||a||o.CometChat.markAsDelivered(t).then(()=>{t.getReceiverType()!=pt.MessageReceiverType.user||m||r.forEach(e=>(e?.getId()<=t?.getId()&&!a&&!e.getDeliveredAt()&&e.setDeliveredAt((new Date).getTime()),e))}),Er(r).then(t=>{c||nt||Gn(),e(t)},e=>{n(e)})}else 0===r.length&&(0===Lt.current?(ve(t.DGz.empty),an.current=!0,ln.current=!1):c||nt||Gn()),e(!0);Bt.current=oe||null},n=>{xn=!1,pe?.length<=0&&(ve(t.DGz.error),rt(!0)),"REQUEST_IN_PROGRESS"!=n.code?(wn(n,"fetchPreviousMessages"),e(!1)):ve(t.DGz.loading)})}}catch(e){pe?.length<=0&&(ve(t.DGz.error),rt(!0)),wn(e,"fetchPreviousMessages")}}),[m,wn,Er,$,bn,vn,We,oe,gt,nt,vt,Ct,pe,kn]);function Sr(e){yn.ccComposeMessage.next(e),Fe(!1),Ge(!1)}const wr=()=>new Promise(async(e,t)=>{try{let t=Yt.current?Yt.current?.getUid():qt.current?.getGuid(),n=Yt.current?pt.MessageReceiverType.user:pt.MessageReceiverType.group;const r=await o.CometChat.getSmartReplies(t,n);return e(Object.values(r))}catch(e){wn(e,"getSmartReplies"),t(e)}}),kr=()=>new Promise(async(e,t)=>{try{let t=Yt.current?Yt.current?.getUid():c?.getGuid(),n=Yt.current?pt.MessageReceiverType.user:pt.MessageReceiverType.group;return e(await o.CometChat.getConversationStarter(t,n))}catch(e){wn(e,"getConversationStarter"),t(e)}}),xr=a.useCallback(e=>new Promise((n,r)=>{try{he(t=>{const n=[...t,...e];return n.find(e=>String(e.getId())===pn?.current?.getLastReadMessageId())?on.current=!0:on.current=!1,n}),Lt.current=Lt.current+e.length;let r=e[e.length-1]?.getId();if(r&&Dt.current.prevMessageId!==r&&(Dt.current.nextMessageId=r),y)setTimeout(()=>{ge(!0),en.current=!0},100);else{if(Qt.current){ge(en.current);let t=e[e?.length-1];en.current&&t&&!t.getReadAt()&&o.CometChat.markAsRead(t).then(()=>{jt.current=0,Tt(""),Qf.ccMessageRead.next(t)})}else ge(!1);Le(!0)}ve(t.DGz.loaded),n(!0)}catch(e){pe?.length<=0&&ve(t.DGz.error),wn(e,"appendMessages"),r(e)}}),[wn,en,We,oe,Ct,gt]),Tr=a.useCallback(()=>new Promise((e,n)=>{try{let r=(new o.CometChat.MessagesRequestBuilder).setType(pt.MessageCategory.message).setCategory(pt.MessageCategory.action).setMessageId(Dt.current.nextMessageId).setLimit(30);Yt.current?r.setUID(Yt.current.getUid()):qt.current&&r.setGUID(qt.current.getGuid()),r.build().fetchNext().then(t=>t&&t.length>0?(t.forEach(e=>{Hn(e.getActionOn())}),e(!0)):e(!0)).catch(e=>(wn(e,"MessagesRequestBuilder"),pe?.length<=0&&ve(t.DGz.error),n(e)))}catch(e){wn(e,"fetchActionMessages")}}),[wn]),Ar=a.useCallback(e=>new Promise((n,r)=>{try{Dt.current.nextMessageId?(Mt.current.next||(Mt.current.next=new Rb(wn,v,Yt.current,qt.current,Dt.current.nextMessageId,Jt.current,B,se)),nt||ve(t.DGz.loading),Mt?.current.next.fetchNextMessages().then(a=>{if(a)if(0===a.length)an.current=!0,0===Lt.current?ve(t.DGz.empty):nt||Gn(),n(!0);else{const t=Mt?.current.next.getLimit()||30;a.length<t?an.current=!0:an.current=!1,xr(a).then(t=>{oe&&Bt.current!==oe||gt||Ct&&z||nt||Gn(),e&&-1!==a.findIndex(t=>String(t.getId())===e)&&(Ft.current=!0),n(t)},e=>{r(e)})}else n(!0)},e=>{pe?.length<=0&&(ve(t.DGz.error),rt(!0)),wn(e,"fetchNextMessages"),n(!1)})):n(!0)}catch(e){wn(e,"fetchNextMessages")}}),[xr,wn,pe?.length,v,nt,oe,Ct,gt]),Rr=a.useCallback(e=>{try{let t=!1;he(n=>n.map(n=>n?.getId()===e.getParentMessageId()?(t||(t=!0,n.getReplyCount()?n.setReplyCount(n.getReplyCount()+1):(en.current&&jr(!0),n.setReplyCount(1))),n):n))}catch(e){wn(e,"updateReplyCount")}},[wn]),Ir=a.useCallback(e=>{try{he(t=>{let n=[...t],r=n.findIndex(t=>t.getId()===e.getParentMessageId());if(r>-1){const e=n[r];n.splice(r,1,e),t=[...n]}return t})}catch(e){wn(e,"updateUnreadReplyCount")}},[wn]),Or=a.useCallback(e=>{try{if(!e.getSender()||e.getSender().getUid()===It.current?.getUid())return void Ge(!1);hn&&clearTimeout(hn),hn=setTimeout(()=>{if(e instanceof o.CometChat.TextMessage){const t=e.getText()?.toLocaleLowerCase();if(!X||0===X.length)return Ge(!1),void Ge(!0);if(X.length>0){const e=X.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),n=new RegExp(`(?:\\b(${e.filter(e=>"\\?"!==e).join("|")})\\b|\\?)`,"i");Ge(!1),Ge(n.test(t))}}},ee)}catch(e){wn(e,"toggleSmartReplyView")}},[It,ee,X,Ge]),Nr=a.useCallback(e=>{try{nn.current&&Or(e),Fe(!1),Lt.current+=1,Lt.current>0&&be!=t.DGz.loaded&&nt&&ve(t.DGz.loaded),(!B||B&&e.getCategory()!==pt.MessageCategory.action)&&he(t=>[...t,e]),e.getSender()&&e.getSender()?.getUid()!=It.current?.getUid()||ge(!0)}catch(e){wn(e,"addMessage")}},[wn,me,nt]),Mr=a.useCallback(e=>{try{if(!en.current&&e.getSender()&&e.getSender().getUid()!=It.current?.getUid()&&!Jt.current){jt.current=jt.current+1;const e=jt.current<999?String(jt.current):"999+";Tt(e),Le(!0)}}catch(e){wn(e,"showAndIncrementUnreadCount")}},[]),Dr=a.useCallback(e=>{try{he(t=>t.map(t=>(parseInt(t?.getId()?.toString())<=parseInt(e.getMessageId())&&t.getSender().getUid()===It.current?.getUid()&&!t.getDeliveredAt()&&t.setDeliveredAt(e.getDeliveredAt()),t)))}catch(e){wn(e,"markAllMessagAsDelivered")}},[wn]),Lr=a.useCallback(e=>{try{const t=[];he(n=>{const r=n.map(n=>(parseInt(n?.getId()?.toString())<=parseInt(e.getMessageId())&&n.getSender().getUid()===It.current?.getUid()&&!n.getReadAt()&&(n.setReadAt(e.getReadAt()),parseInt(n?.getId()?.toString())===parseInt(e.getMessageId())&&t.push(n)),n));return t.forEach(e=>{Qf.ccMessageRead.next(e)}),r})}catch(e){wn(e,"markAllMessageAsRead")}},[wn]),Pr=a.useCallback(e=>{try{e.getReceiverType()===pt.MessageReceiverType.user?e.getSender().getUid()===Yt.current?.getUid()&&e.getReceiver()===It.current?.getUid()&&("delivery"===e.getReceiptType()?Dr(e):Lr(e)):"deliveredToAll"===e.getReceiptType()?Dr(e):"readByAll"===e.getReceiptType()&&Lr(e)}catch(e){wn(e,"messageReadAndDelivered")}},[Dr,Lr,wn]),jr=a.useCallback((e=!1)=>{try{if(e||y)return void setTimeout(()=>{ge(!0),en.current=!0,jt.current=0,Tt(""),pn.current&&U_.ccMarkConversationAsRead.next(pn.current)},100)}catch(e){wn(e,"checkAndScrollToBottom")}},[y]),Ur=a.useCallback(e=>{try{if(Ln(e)){if(En(),!an.current)return ge(!1),void Mr(e);Nr(e),y?(jr(),_r(e)):en.current?(jr(!0),_r(e)):(ge(!1),Mr(e))}else if(jn(e))En(),Rr(e),Ir(e);else{const t=e.getReceiver()instanceof o.CometChat.Group&&c?.getGuid()===e.getReceiver().getGuid()||e?.getSender().getUid()===i?.getUid();e.getSender().getUid()!==It.current?.getUid()&&t&&o.CometChat.markAsDelivered(e)}}catch(e){wn(e,"messageReceivedHandler")}},[Ln,jn,Nr,y,jr,_r,Mr,Rr,Ir,En,wn,c,i,pe]),Fr=a.useCallback((e,t)=>{try{t?.getGuid()===qt?.current?.getGuid()&&(Nr(e),en.current?(jr(!0),_r(e)):y?(jr(),_r(e)):(ge(!1),Mr(e)))}catch(e){wn(e,"groupActionMessageReceived")}},[Nr,y,jr,Mr,wn]),Br=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType(),r=e?.getReaction()?.getReactedBy()?.getUid(),a=e?.getParentMessageId(),o=a&&String(a);if(o)return a===o;if(e.getParentMessageId())return!1;if(Yt.current){if(n===pt.MessageReceiverType.user&&(t===Yt.current?.getUid()||r===Yt.current?.getUid()))return!0}else if(qt.current&&n===pt.MessageReceiverType.group&&t===qt.current?.getGuid())return!0;return!1}catch(e){throw wn(e,"isReactionOfThisList"),e}},[]),Gr=a.useCallback((e,t)=>{try{if(!Br(e))return!1;he(n=>{const r=n.findIndex(t=>t.getId().toString()===e.getReaction()?.getMessageId().toString());if(-1===r)return n;const a=n[r];let i;i=t?o.CometChat.REACTION_ACTION.REACTION_ADDED:o.CometChat.REACTION_ACTION.REACTION_REMOVED;const s=o.CometChat.CometChatHelper.updateMessageWithReactionInfo(a,e.getReaction(),i);return t&&s.getReactions()&&1==s.getReactions().length&&en.current&&Jr(),n.map(e=>e.getId().toString()===s?.getId().toString()?ht.clone(s):e)})}catch(e){wn(e,"messageReactionUpdated")}},[Br]),Vr=a.useCallback(e=>{try{Ln(e)&&Gf.names.includes("calling")&&(Nr(e),en.current?(jr(!0),_r(e)):y?(jr(),_r(e)):(ge(!1),Mr(e)))}catch(e){wn(e,"callActionMessageReceived")}},[Ln,Nr,y,jr,Mr,wn]),Hr=a.useCallback(()=>{try{const e=un.current;if(!e||0===Object.keys(e).length)return;Object.keys(e).forEach(t=>{const n=e[t];n&&n.length>0&&(he(e=>{const r=[...e],a=r.findIndex(e=>{try{return e.getType()===pt.streamMessageTypes.run_started&&Number(e.getId())==Number(t)}catch(e){return!1}});-1!==a&&r.splice(a,1,...n);const o=r.find(e=>Number(e.getId())==Number(t)&&e.getSender().getUid()===It.current?.getUid()&&!e.getReadAt());return o?.setReadAt(ht.getUnixTimestamp()),r}),delete un.current[t])})}catch(e){wn(e,"processPendingMessages")}},[wn]),zr=a.useCallback((e="",t,n)=>{try{switch(e){case pt.MessageCategory.action:n&&Fr(t,n);break;case pt.MessageCategory.call:Vr(t)}}catch(e){wn(e,"handleGroupAndCallActions")}},[Fr,Vr,wn]),Yr=a.useCallback(()=>new Promise((e,t)=>{try{!an.current||en.current||Jt.current||vr(),ge(!1),Mt.current&&Mt.current.previous&&(Mt.current.previous=null),Ar().then(t=>{e(t)},e=>{t(e)})}catch(e){wn(e,"onBottomCallback")}}),[pe,_r,Ar,vr,wn]),qr=a.useCallback(()=>new Promise((e,t)=>{try{if(!ln.current)return void e(!0);ge(!1),en.current=!1,Mt.current&&Mt.current.next&&(Mt.current.next=null),Cr().then(t=>{e(t)},e=>{t(e)})}catch(e){wn(e,"onTopCallback")}}),[Cr,wn,en]),Kr=a.useCallback(e=>{try{Nt.current[e.getId()].current?.scrollIntoView({block:"center"})}catch(e){wn(e,"updateView")}},[]),Wr=a.useCallback(async()=>{rt(!1),Mt.current.previous=null,Mt.current.next=null,Dt.current={prevMessageId:0,nextMessageId:0},he([]),$e(!1),Je(!0),pn.current=null,Ot.current=!0,ln.current=!0,Cr()},[Cr,he,$e,Je]),Jr=a.useCallback(()=>{try{en.current||!Ze&&an.current?(Jt.current||vr(),ge(!0),$e(!1),an.current=!0):(an.current=!1,Wr())}catch(e){wn(e,"scrollToBottom")}},[vr,wn,Ze,Wr,$e,gr,pe]),Zr=a.useCallback(e=>{try{he(e=>e.map(e=>(e?.getId(),e)))}catch(e){wn(e,"resetCountForUnreadMessagesInThread")}},[]),$r=a.useMemo(()=>{const e=Jt.current?Jt.current+"_":"",t=i?.getUid()?i.getUid()+"_":"",n=c?.getGuid()?c.getGuid()+"_":"",r=t+n+e+ht.ID(),a=t+n+e;return At.current&&At.current.includes(a)||(At.current="cometchat-message-list-"+r),At.current},[i,c,Jt]);function Qr(){return At.current?document.querySelector(`.${At.current} .cometchat-list__body`):null}const Xr=a.useCallback(()=>{try{let e,r,a,o,s,c,l,u,d,p,h,g,f,_,b,v,y,E,C,S,w,k,x,T,A,R,I,O,N,M,D,L,P,j,U,F;return _=yn.ccShowDialog.subscribe(e=>{zt.current=e.child,Oe(!0)}),b=yn.ccHideDialog.subscribe(()=>{zt.current=null,Oe(!1)}),v=yn.ccShowPanel.subscribe(e=>{var r;(!e.message||e.message.getParentMessageId()&&n&&e.message.getParentMessageId()==n||!n&&!e.message?.getParentMessageId())&&(!e.composerId||(r=e.composerId).parentMessageId&&n&&r.parentMessageId===n||!n&&(r.user===Yt?.current?.getUid()||r.group===qt.current?.getGuid())||!r.parentMessageId&&!r.user&&!r.group)&&(e.position===t.CfE.messageListFooter?(Zt.current&&(Zt.current=null,Le(!1),je(!1)),setTimeout(()=>{Zt.current=e.child,je(!0)},0)):e.position===t.CfE.messageListHeader&&($t.current&&($t.current=null,He(!1)),setTimeout(()=>{$t.current=e.child,He(!0)},0)))}),y=yn.ccHidePanel.subscribe(e=>{e===t.CfE.messageListFooter?(Zt.current=null,Le(!1),je(!1)):e===t.CfE.messageListHeader&&($t.current=null,He(!1))}),r=Qf.ccMessageSent.subscribe(e=>{let n=e.status,r=e.message,a=an.current;switch(n){case t.qpt.inprogress:tt(!0),Nn(r)&&a&&(o=pt.streamMessageTypes.run_started,he(e=>e.filter(e=>e.getType()!==o)),Nr(r));break;case t.qpt.success:if(Nn(r)){if(a){if(se&&Lt.current>0){xf={},Nf(),Af.next(!0);let e=function(e,t){return{...e,getId:()=>e.getId()??ht.getUnixTimestamp(),getMessageId:()=>e.getId()??ht.getUnixTimestamp(),getSender:()=>t,getReceiverType:()=>pt.MessageReceiverType.user,getReceiver:()=>dt.getLoggedInUser(),getCategory:()=>pt.MessageCategory.custom,getType:()=>pt.streamMessageTypes.run_started,getText:()=>"",getParentMessageId:()=>"",getSentAt:()=>"",getReactions:()=>[],getMentions:()=>[],setId:e=>{},setSender:e=>{},setReceiverType:e=>{},setReceiver:e=>{},setCategory:e=>{},setType:e=>{},setText:e=>{},setParentMessageId:e=>{},setSentAt:e=>{},setReactions:e=>[],setMentionedUsers:e=>{},setMuid:e=>{},getConversationId:()=>"",setConversationId:e=>{},getUnreadRepliesCount:()=>0,setUnreadRepliesCount:e=>{},getStatus:()=>"",setStatus:e=>{},getDeliveredAt:()=>0,setDeliveredAt:e=>{},getDeliveredToMeAt:()=>0,setDeliveredToMeAt:e=>{},getReadAt:()=>0,setReadAt:e=>{},getReadByMeAt:()=>0,setReadByMeAt:e=>{},getEditedAt:()=>0,setEditedAt:e=>{},getEditedBy:()=>"",setEditedBy:e=>{},getDeletedAt:()=>0,setDeletedAt:e=>{},getDeletedBy:()=>"",setDeletedBy:e=>{},getReplyCount:()=>0,setReplyCount:e=>{},getRawMessage:()=>({}),setRawMessage:e=>{},setHasMentionedMe:e=>{},hasMentionedMe:()=>!1,getData:()=>({runId:e.getId(),threadId:""}),setData:e=>{},getMuid:()=>ht.getUnixTimestamp()}}(r,i);Nr(e)}De&&Le(!1),zn(ht.clone(r),!0,!0)}jt.current=0,Tt("")}Pn(r)&&(Rr(ht.clone(r)),jt.current=0,Tt("")),mn();break;default:zn(r,!0),Pn(r)&&(Rr(ht.clone(r)),jt.current=0,Tt("")),mn()}var o}),se?F=Qf.onAIAssistantMessageReceived.subscribe(e=>{try{if(!Ln(e))return;const t=e.getAssistantMessageData().getRunId();t&&(un.current[t]||(un.current[t]=[]),un.current[t].push(e),dn.current||Hr())}catch(e){wn(e,"onAIAssistantMessageReceived")}}):(k=Qf.onCustomMessageReceived.subscribe(e=>{Ur(e)}),d=yn.ccShowOngoingCall.subscribe(e=>{const t=!!e.child;(!e.message||!(e.message.getParentMessageId()&&Jt.current&&e.message.getParentMessageId()===Jt.current||!Jt.current&&!e.message?.getParentMessageId()))&&e.message||(Ee(t),Me(e.child))}),h=Yf.ccCallEnded.subscribe(e=>{Ee(!1),Me(null),e&&Vr(e)}),g=Yf.ccCallRejected.subscribe(e=>{Vr(e)}),p=Yf.ccOutgoingCall.subscribe(e=>{Vr(e)}),f=Yf.ccCallAccepted.subscribe(e=>{Vr(e)}),C=Qf.ccMessageRead.subscribe(e=>{jn(e)&&e.getReceiverType()==pt.MessageReceiverType.user&&Zr(e.getParentMessageId())}),a=cn.ccGroupMemberAdded.subscribe(e=>{e.messages.map(t=>{Fr(t,e.userAddedIn)})}),o=cn.ccGroupMemberBanned.subscribe(e=>{Fr(e.message,e.kickedFrom)}),s=cn.ccGroupMemberUnbanned.subscribe(e=>{e.message&&Fr(e.message,e.unbannedFrom)}),c=cn.ccGroupMemberKicked.subscribe(e=>{Fr(e.message,e.kickedFrom)}),l=cn.ccGroupMemberScopeChanged.subscribe(e=>{Fr(e.message,e.group)}),u=cn.ccGroupLeft.subscribe(e=>{Fr(e.message,e.leftGroup)}),e=Qf.ccMessageEdited.subscribe(e=>{e?.status===t.qpt.success&&Nn(e.message)&&(Ht.current=V("message_list_message_edited"),_e(!0),zn(e.message,!1))}),E=Qf.ccMessageTranslated.subscribe(e=>{Ln(e.message)&&(e?.status===t.qpt.success?(Ht.current=V("message_list_message_translated"),_e(!0),zn(e.message,!1),setTimeout(()=>{Kr(e.message)},100)):(Ht.current=V("message_list_message_already_translated"),_e(!0)))}),S=Qf.onTextMessageReceived.subscribe(e=>{Ur(e)}),w=Qf.onMediaMessageReceived.subscribe(e=>{Ur(e)}),x=Qf.onMessagesDelivered.subscribe(e=>{m||e.getReceiverType()!=pt.MessageReceiverType.user||Pr(e)}),T=Qf.onMessagesRead.subscribe(e=>{m||e.getReceiverType()!=pt.MessageReceiverType.user||Pr(e)}),A=Qf.onMessagesDeliveredToAll.subscribe(e=>{m||Pr(e)}),R=Qf.onMessagesReadByAll.subscribe(e=>{m||Pr(e)}),I=Qf.onMessageDeleted.subscribe(e=>{Hn(e)}),O=Qf.onMessageEdited.subscribe(e=>{Hn(e)}),N=Qf.onMessageReactionAdded.subscribe(e=>{Gr(e,!0)}),M=Qf.onMessageReactionRemoved.subscribe(e=>{Gr(e,!1)}),D=Qf.onFormMessageReceived.subscribe(e=>{Ur(e)}),L=Qf.onSchedulerMessageReceived.subscribe(e=>{Ur(e)}),P=Qf.onCardMessageReceived.subscribe(e=>{Ur(e)}),j=Qf.onCustomInteractiveMessageReceived.subscribe(e=>{Ur(e)}),U=Qf.onMessageModerated.subscribe(e=>{Bn(e)})),()=>{try{e?.unsubscribe(),r?.unsubscribe(),a?.unsubscribe(),o?.unsubscribe(),s?.unsubscribe(),c?.unsubscribe(),l?.unsubscribe(),u?.unsubscribe(),d?.unsubscribe(),p?.unsubscribe(),h?.unsubscribe(),g?.unsubscribe(),f?.unsubscribe(),_?.unsubscribe(),b?.unsubscribe(),v?.unsubscribe(),y?.unsubscribe(),E?.unsubscribe(),C?.unsubscribe(),S?.unsubscribe(),U?.unsubscribe(),w?.unsubscribe(),k?.unsubscribe(),x?.unsubscribe(),T?.unsubscribe(),A?.unsubscribe(),R?.unsubscribe(),I?.unsubscribe(),O?.unsubscribe(),N?.unsubscribe(),M?.unsubscribe(),D?.unsubscribe(),L?.unsubscribe(),P?.unsubscribe(),j?.unsubscribe(),F?.unsubscribe()}catch(e){wn(e,"subscribeToUIEvents")}}}catch(e){wn(e,"subscribeToUIEvents")}},[Mn,Zr,Vr,jn,zn,Fr,Nn,Kr,Nr,Pn,Rr,wn,Pe,Ze,se]),{debouncedCallback:ea}=Pt(()=>{const e=Qr();if(!e)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e,a=n-t-r>50;sn.current!==a&&(sn.current=a,st(a))},100),ta=a.useCallback(()=>{try{const e=Qr();if(!e)return;ea();let t=null;if(Object.keys(Nt.current).some(n=>{const r=Nt.current[n];if(r?.current){const a=r.current.getBoundingClientRect(),o=e.getBoundingClientRect(),i=a.bottom-a.top;if((Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top))/i>=.1)return t=n,!0}return!1}),t){const e=Un(t);if(e){const t=e.getSentAt();setTimeout(()=>{na(Rt.current,t)&&(Ye(t),Rt.current=t)},0)}}}catch(e){wn(e,"handleScroll")}},[Un,Ye,pe]);a.useEffect(()=>{try{let e=Qr();return e&&e.addEventListener("scroll",ta),()=>{e&&e.removeEventListener("scroll",ta)}}catch(e){wn(e,"addEventListener")}},[ta]);const na=a.useCallback((e,t)=>{try{let n,r;return n=new Date(1e3*e),r=new Date(1e3*t),n.getDate()!==r.getDate()||n.getMonth()!==r.getMonth()||n.getFullYear()!==r.getFullYear()}catch(e){wn(e,"isDateDifferent")}},[wn]),ra=a.useCallback(e=>{try{return f===t.Dj9.left||!(!qt.current||e?.getCategory()===pt.MessageCategory.action||!e?.getSender()||e?.getSender()?.getUid()===It.current?.getUid()||f!==t.Dj9.standard)}catch(e){throw wn(e,"showHeaderTitle"),e}},[f]),aa=a.useCallback(e=>{try{return(e?.getCategory()!==pt.MessageCategory.action&&e?.getCategory()!==pt.MessageCategory.call&&ra(e)||e.getCategory()===pt.MessageCategory.agentic||e.getType()===pt.streamMessageTypes.run_started)&&!F?r.jsx(W,{name:e?.getSender()?e?.getSender()?.getName():It.current?.getName(),image:e?.getSender()?e?.getSender()?.getAvatar():It.current?.getAvatar()}):null}catch(e){wn(e,"getBubbleLeadingView")}},[ra,F]),oa=a.useCallback(e=>r.jsx(r.Fragment,{children:r.jsx(rr,{timestamp:e.getSentAt(),calendarObject:Dn()})}),[re]),ia=a.useCallback(e=>r.jsx(r.Fragment,{children:e?.getSender()?.getName()||It.current?.getName()}),[]),sa=a.useCallback(e=>{try{return dr(e)?dr(e):e?.getCategory()!==pt.MessageCategory.action&&e?.getCategory()!==pt.MessageCategory.call&&ra(e)?ia(e):null}catch(e){return wn(e,"getBubbleHeader"),null}},[oa,ra,dr,ia]),ca=a.useCallback((e,t)=>{try{e?.getReactedBy()?.getUid()===It.current?.getUid()&&Yn(e?.getReaction(),t)}catch(e){wn(e,"reactionItemClicked")}},[Yn]),la=a.useCallback(e=>{const t=e?.getReactions()||[],n=ar(e);return t&&t.length>0?r.jsx(Nb,{messageObject:e,alignment:n,hoverDebounceTime:500,onReactionListItemClick:A??ca,reactionsRequestBuilder:x,onReactionClick:(e,t)=>{T?T(e,t):Yn(e?.getReaction(),t)}}):null},[Yn,ar]),ua=a.useCallback(e=>hr(e)?hr(e):cr(e)||lr(e)?null:la(e),[la,hr,ar,cr,lr]),da=a.useCallback(e=>cr(e)||lr(e)?null:e?.getReplyCount()&&!e?.getDeletedAt()?r.jsx("div",{className:"cometchat-message-bubble__thread-view-replies",children:r.jsx(rn,{text:va(e),hoverText:va(e),iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8489%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8489%29%22%3E%3Cpath%20d%3D%22M13.473%2019.9578C13.318%2019.8026%2013.2421%2019.6253%2013.2453%2019.426C13.2484%2019.2267%2013.3243%2019.0526%2013.473%2018.9038L16.627%2015.75H7.30775C6.80908%2015.75%206.38308%2015.5734%206.02975%2015.2203C5.67658%2014.8669%205.5%2014.4409%205.5%2013.9423V5.25C5.5%205.03717%205.57183%204.859%205.7155%204.7155C5.859%204.57183%206.03717%204.5%206.25%204.5C6.46283%204.5%206.641%204.57183%206.7845%204.7155C6.92817%204.859%207%205.03717%207%205.25V13.9423C7%2014.0321%207.02883%2014.1058%207.0865%2014.1635C7.14417%2014.2212%207.21792%2014.25%207.30775%2014.25H16.627L13.4577%2011.0807C13.3026%2010.9256%2013.2276%2010.7499%2013.2327%2010.5538C13.2379%2010.3578%2013.3129%2010.1822%2013.4577%2010.027C13.6129%209.87183%2013.7902%209.79333%2013.9895%209.7915C14.1888%209.7895%2014.3628%209.86283%2014.5115%2010.0115L18.8673%2014.3673C18.9609%2014.4609%2019.0269%2014.5597%2019.0652%2014.6635C19.1037%2014.7673%2019.123%2014.8795%2019.123%2015C19.123%2015.1205%2019.1037%2015.2327%2019.0652%2015.3365C19.0269%2015.4403%2018.9609%2015.5391%2018.8673%2015.6328L14.5423%2019.9578C14.3871%2020.1128%2014.2089%2020.1902%2014.0078%2020.1902C13.8064%2020.1902%2013.6282%2020.1128%2013.473%2019.9578Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:()=>{Fn(e)}})}):void 0,[ar,Fn,cr,lr]),pa=a.useCallback(e=>{try{let t=ar(e);return On[e?.getCategory()+"_"+e?.getType()]&&On[e?.getCategory()+"_"+e?.getType()]?.statusInfoView?On[e?.getCategory()+"_"+e?.getType()]?.statusInfoView(e,t,m,ne,se):e.getCategory()===pt.MessageCategory.custom&&e.getType()!=pt.streamMessageTypes.run_started?Gf.getDataSource().getStatusInfoView(e,t,m,ne):null}catch(e){return wn(e,"getStatusInfoView"),null}},[m,On,wn,ar,ne,se]),ha=e=>!(e instanceof o.CometChat.TextMessage||e instanceof o.CometChat.MediaMessage)||e.getModerationStatus()!==pt.moderationStatus.pending,ma=a.useCallback((e,t)=>{return r.jsx(Xt,{setRef:t=>{Nt.current[e.getId()]=t},leadingView:aa(e),headerView:sa(e),footerView:ua(e),contentView:or(e),bottomView:ur(e),id:e?.getId()||e?.getMuid(),options:nr(e),alignment:ar(e),replyView:sr(e),includeBottomViewHeight:pr(e),threadView:!se&&da(e),statusInfoView:pa(e),type:e.getDeletedAt()?pt.MessageTypes.delete:e.getType(),category:e.getDeletedAt()?pt.MessageCategory.action:e.getCategory(),topMenuSize:(n=e,a=q,cr(n)||lr(n)?3:a),toggleOptionsVisibility:ha(e)});var n,a},[aa,sa,ua,or,f,ar,da,pa,nr,ur,q]),ga=a.useCallback((e,t)=>0!=t&&na(pe[t-1]?.getSentAt(),e?.getSentAt())&&!_?r.jsx("div",{className:"cometchat-message-list__bubble-date-header",children:r.jsx(rr,{calendarObject:Dn(),timestamp:e.getSentAt()})},`${e.getId()}-${e.getSentAt()}`):((0==t&&!en.current||pe.length<10&&0==t)&&setTimeout(()=>{ta()},0),null),[pe,na,_]),fa=a.useCallback((e,n)=>{let a=ar(e);const o=q??2;let i={};a===t.JxA.left?i={width:`calc(100% - ${36*o}px)`,marginRight:"auto"}:a===t.JxA.right&&(i={width:`calc(100% - ${36*o}px)`,marginLeft:"auto"});const s=pr(e)?pt.moderationStatus.disapproved:pt.moderationStatus.approved,c=oe===String(e.getId());return r.jsxs(r.Fragment,{children:[ga(e,n),r.jsx("div",{className:c?"cometchat-message-list__bubble-highlight":s&&!se?`cometchat-message-list__bubble-moderation-${s}`:"",style:{width:"100%",...se||e.getSender()?{}:i},children:mr(e)?mr(e):ma(e,n)},e.getId()),Ct===String(e.getId())&&pn.current&&pn.current.getUnreadMessageCount()>0&&Ct!==pn.current.getLastMessage().getId()&&r.jsx("div",{children:wa()})]})},[mr,ma,ar,oe,Ct,gt,se]),_a=a.useCallback(()=>r.jsxs(r.Fragment,{children:[!Ue&&!Be||Pe?null:Ue?r.jsx("div",{className:"cometchat-message-list__footer-conversation-starter",children:r.jsx(Db,{getConversationStarters:kr,onSuggestionClicked:Sr})}):Be&&nn.current?r.jsx("div",{className:"cometchat-message-list__footer-smart-replies",children:r.jsx(Pb,{getSmartReplies:wr,onSuggestionClicked:Sr,closeCallback:()=>{Ge(!1)}})}):null,Pe&&Zt.current?Zt.current:null,S&&!Zt.current?S:null]}),[S,Jr,Pe,Ue,$,Be]),ba=a.useCallback(()=>r.jsxs(r.Fragment,{children:[Ve&&$t.current?$t.current:null,C&&!$t.current?C:null]}),[C,Ve]),va=e=>{const t=e?.getReplyCount()||0;return`${t} ${V(1===t?"message_list_thread_reply":"message_list_thread_replies")}`},ya=a.useMemo(()=>function(e,t){return fa(e,t)},[fa]),Ea=a.useCallback(()=>be===t.DGz.loading?t.DGz.loading:be!==t.DGz.error&&0===pe.length?t.DGz.empty:be,[be,pe]),Ca=()=>{Te(!1)},Sa=a.useCallback(async(e,t,n)=>{try{return await o.CometChat.flagMessage(e,{reasonId:t,remark:n}),Ht.current=V("flag_message_reported"),_e(!0),!0}catch(e){return wn(e,"flagMessage"),!1}},[wn]),wa=a.useCallback(()=>r.jsxs("div",{className:"cometchat-message-list__new-message-divider",children:[r.jsx("div",{}),r.jsx("span",{children:V("message_list_new_message")}),r.jsx("div",{})]}),[]);return a.useEffect(()=>{oe&&Bt.current!==oe&&ot(!0)},[oe]),a.useEffect(()=>{const e=Bt.current!==oe?oe:null;(e||vt)&&pe.length>0&&be==t.DGz.loaded&&at&&(!e||pe.some(t=>t.getId().toString()===e)?(bn(),$e(!1),Je(!1)):(Bt.current=null,Wr()))},[oe,vt,at,bn,$e,Je,pe,be,Wr]),a.useEffect(()=>{const e=Rf.subscribe(e=>{dn.current=e,e?tt(!0):(Hr(),tt(!1))});return()=>{e.unsubscribe(),un.current={}}},[Hr]),function(e,t,n,r,i,s,c,l,u,d,p,h,m,g,f,_,b,v,y,E,C,S,w,k,x,T,A,R){a.useEffect(()=>{v.current=k},[k]),a.useEffect(()=>{o.CometChat.getLoggedinUser().then(t=>{_.current=!0,t&&(e.current=t)},e=>{p(e,"getLoggedinUser")})},[s,c,p,A]),a.useEffect(()=>{try{return C&&C(null),dt.getLoggedInUser()&&(s||c)&&(l.current={prevMessageId:0,nextMessageId:0},u.current=0,E.current=!0,t.current={previous:new Rb(p,i,s,c,void 0,void 0,w)},(!S||S&&T)&&Rb.attachListeners(T||!1,r,y,s),h([]),_.current&&(x||A)?(m(!1),f.current=!1):(m(!0),f.current=!0),(!T||T&&S)&&n(),g.current=null),()=>{Rb?.removeListeners?.()}}catch(e){p(e,"useEffect")}},[s,c,T,S,R,A]),a.useEffect(()=>{try{let e;return e=b(),()=>{e?.()}}catch(e){p(e,"useEffect")}},[p,b]),a.useEffect(()=>{try{u.current=d.length,d?.length>0&&(l.current.prevMessageId=d[0].getId(),l.current.nextMessageId=d[d.length-1].getId())}catch(e){p(e,"useEffect")}},[d])}(It,Mt,Cr,zr,v,Yt.current,qt.current,Dt,Lt,pe,wn,he,ge,Zt,en,Ot,Xr,nn,Nr,ln,Ye,n,B,Q,oe,se,gt,de),r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"cometchat",style:{height:"inherit",width:"100%",overflow:"hidden",boxSizing:"border-box"},children:r.jsxs("div",{className:`cometchat-message-list ${Ea()===t.DGz.loading||!nt||_t||Ea()===t.DGz.empty||Ea()===t.DGz.error||se?"":"cometchat-message-list-loaded"} ${ie?"":"cometchat-message-list-hide-scrollbar"} ${$r}`,children:[Rt.current&&qe&&!H&&pe.length>0?r.jsx("div",{className:"cometchat-message-list__date-header",children:r.jsx(rr,{timestamp:ze??Rt.current,calendarObject:{yesterday:V("yesterday"),otherDays:"DD MMM, YYYY",today:V("today"),...kt(G.calendarObject),...kt(ae)}})}):null,r.jsx("div",{className:"cometchat-message-list__header",children:ba()}),r.jsx("div",{className:"cometchat-message-list__body "+(!se&&pe.length>0?"cometchat-message-list__body--spacing-top":""),children:r.jsx(K,{showShimmerOnTop:!(se&&!n||!_t&&nt),showScrollbar:ie,scrolledUpCallback:yr,headerView:void 0,hideSearch:!0,showSectionHeader:!1,list:pe,itemView:ya,onScrolledToBottom:se?void 0:Yr,onScrolledToTop:se&&!n?void 0:qr,listItemKey:"getMuid",state:Ea(),loadingView:Tn,hideError:k,errorView:An,emptyView:Rn,scrollToBottom:se?ut:me,scrollToEnd:!!se&&ct})}),!et&&Qe&&nt&&it?r.jsx("div",{className:"cometchat-message-list__message-indicator",children:r.jsx(rn,{text:wt,iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.99841%2012.9961C9.90813%2012.9961%209.82536%2012.9805%209.75008%2012.9492C9.67494%2012.918%209.60376%2012.8665%209.53654%2012.7948L5.55049%208.80859C5.41619%208.67901%205.35195%208.52276%205.35779%208.33984C5.36362%208.15707%205.43362%208.002%205.56779%207.87464C5.70209%207.74727%205.85897%207.68359%206.03841%207.68359C6.21772%207.68359%206.37105%207.74727%206.49841%207.87464L9.99841%2011.3886L13.5124%207.87464C13.6396%207.74727%2013.7906%207.68595%2013.9655%207.69068C14.1402%207.69526%2014.2947%207.76123%2014.429%207.88859C14.5632%208.01582%2014.6309%208.17089%2014.6322%208.3538C14.6333%208.53672%2014.569%208.69297%2014.4395%208.82255L10.4672%2012.7948C10.3954%2012.8665%2010.3219%2012.918%2010.2467%2012.9492C10.1715%2012.9805%2010.0887%2012.9961%209.99841%2012.9961Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",onClick:()=>{se?(lt(!0),setTimeout(()=>{lt(!1)},1e3)):(ft(""),yt(""),Jr())}})}):null,r.jsx("div",{className:"cometchat-message-list__footer",children:_a()}),fe?r.jsx(s,{text:Ht.current,onClose:()=>{_e(!1)}}):null]})}),ye?Ne:null,Ie&&zt.current?zt.current:null,Ce&&null!==we&&r.jsx("div",{className:"cometchat-message-information__popup-wrapper",children:r.jsx(Tb,{message:we,onClose:()=>{Se(!1)},messageInfoDateTimeFormat:te,messageSentAtDateTimeFormat:ne,template:(ka=we,On[ka?.getCategory()+"_"+ka?.getType()]),hideReceipts:m,textFormatters:R,showScrollbar:ie})}),xe&&null!==Ae&&r.jsx("div",{className:"cometchat-message-list__flag-message-dialog-wrapper "+(ie?"":"cometchat-message-list__flag-message-dialog-hide-scrollbar"),onClick:Ca,children:r.jsx(jb,{message:Ae,onSubmit:Sa,onClose:Ca,hideFlagRemarkField:le})})]});var ka};class Bb extends vn{constructor(e){if(super(),e){const t="string"==typeof e?new RegExp(`(${e})`,"gi"):e;this.setRegexPatterns([t])}this.cssClassMapping=["cometchat-text-highlight"]}setText(e){const t="string"==typeof e?new RegExp(`(${e})`,"gi"):e;this.setRegexPatterns([t])}getUniqueId(){return`HIGHLIGHT_${Math.random().toString(36).substr(2,9)}`}getFormattedText(e){if(!e)return;if(/<span[^>]*class="[^"]*cometchat-text-highlight[^"]*"[^>]*data-highlight="[^"]*"[^>]*>/.test(e))return e;const t=this.cssClassMapping[0];let n=e;for(let e=0;e<this.regexPatterns.length;e++){let r=this.regexPatterns[e];const a=/(<span[^>]*class="[^"]*cometchat-url[^"]*"[^>]*>)(.*?)(<\/span>)/gi;n=n.replace(a,(e,n,a,o)=>{const i=a.replace(r,e=>{const n=this.getUniqueId();return`<span class="${t}" data-highlight="${n}" data-processed="true">${e}</span>`});return n+i+o});const o=/(<span[^>]*class="[^"]*mentions[^"]*"[^>]*>.*?<\/span>)/gi,i=n.split(o);n=i.map((e,n)=>n%2==1?e:e.replace(r,n=>{if(/<span[^>]*class="[^"]*cometchat-url[^"]*"[^>]*>/gi.test(e))return n;const r=this.getUniqueId();return`<span class="${t}" data-highlight="${r}" data-processed="true">${n}</span>`})).join("")}return n}}var Gb="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M12.6667%2010.8337V12.8337C12.6667%2013.2003%2012.3667%2013.5003%2012%2013.5003H11.3333V10.8337H12.6667ZM4.66667%2010.8337V13.5003H4C3.63333%2013.5003%203.33333%2013.2003%203.33333%2012.8337V10.8337H4.66667ZM8%202.16699C4.68667%202.16699%202%204.85366%202%208.16699V12.8337C2%2013.9403%202.89333%2014.8337%204%2014.8337H6V9.50033H3.33333V8.16699C3.33333%205.58699%205.42%203.50033%208%203.50033C10.58%203.50033%2012.6667%205.58699%2012.6667%208.16699V9.50033H10V14.8337H12C13.1067%2014.8337%2014%2013.9403%2014%2012.8337V8.16699C14%204.85366%2011.3133%202.16699%208%202.16699Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E";class Vb{static setErrorHandler(e){Vb.errorHandler=e}static attachUserListener(e){try{const t="ConversationList_User_"+String(Date.now());return o.CometChat.addUserListener(t,new o.CometChat.UserListener({onUserOnline:e,onUserOffline:e})),()=>o.CometChat.removeUserListener(t)}catch(e){return Vb.errorHandler(e,"attachUserListener"),()=>{}}}static attachGroupListener(e,t){try{const n="ConversationList_Group_"+String(Date.now());return o.CometChat.addGroupListener(n,new o.CometChat.GroupListener({onGroupMemberJoined:t=>{e(t)},onGroupMemberLeft:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberKicked:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberBanned:(n,r)=>{t?.getUid()===r.getUid()?e(n,!0):e(n)},onGroupMemberUnbanned:t=>{e(t)},onMemberAddedToGroup:t=>{e(t)},onGroupMemberScopeChanged:t=>{e(t)}})),()=>o.CometChat.removeGroupListener(n)}catch(e){Vb.errorHandler(e,"attachGroupListener")}}static attachMessageReceivedListener(e){try{const t="message_"+(new Date).getTime();return o.CometChat.addMessageListener(t,new o.CometChat.MessageListener({onTextMessageReceived:t=>{e(t)},onMediaMessageReceived:t=>{e(t)},onCustomMessageReceived:t=>{e(t)},onSchedulerMessageReceived:t=>{e(t)},onInteractiveMessageReceived:t=>{e(t)}})),()=>{o.CometChat.removeMessageListener(t)}}catch(e){Vb.errorHandler(e,"attachMessageReceivedListener")}}static attachMessageReceiptListener(e){try{const t=Qf.onMessagesDelivered.subscribe(t=>{t.getReceiverType()==pt.MessageReceiverType.user&&e(t,!1)}),n=Qf.onMessagesRead.subscribe(t=>{t.getReceiverType()==pt.MessageReceiverType.user&&e(t,!0)}),r=Qf.onMessagesDeliveredToAll.subscribe(t=>{e(t,!1)}),a=Qf.onMessagesReadByAll.subscribe(t=>{e(t,!0)});return()=>{t?.unsubscribe(),n?.unsubscribe(),r?.unsubscribe(),a?.unsubscribe()}}catch(e){Vb.errorHandler(e,"attachMessageReceiptListener")}}static attachMessageModifiedListener(e){try{const t="delete_"+(new Date).getTime();return o.CometChat.addMessageListener(t,new o.CometChat.MessageListener({onMessageEdited:t=>{e(t)},onMessageDeleted:t=>{e(t)},onMessageModerated:t=>{e(t)}})),()=>{o.CometChat.removeMessageListener(t)}}catch(e){Vb.errorHandler(e,"attachMessageModifiedListener")}}static attachCallListener(e){try{const t="ConversationList_Call_"+String(Date.now());return o.CometChat.addCallListener(t,new o.CometChat.CallListener({onIncomingCallReceived:e,onOutgoingCallAccepted:e,onOutgoingCallRejected:e,onIncomingCallCancelled:e})),()=>o.CometChat.removeCallListener(t)}catch(e){Vb.errorHandler(e,"attachCallListener")}}}function Hb(e){return e instanceof o.CometChat.TextMessage||e instanceof o.CometChat.MediaMessage||e instanceof o.CometChat.CustomMessage||e instanceof o.CometChat.InteractiveMessage||e instanceof o.CometChat.Action||e instanceof o.CometChat.Call}function zb(e,n){let r=e;const{type:a}=n;switch(a){case"setConversationList":{const{typingIndicatorMap:t}=e,{conversationList:a}=n,i=new Map;for(let e=0;e<a.length;e++){const n=a[e].getConversationWith(),r=n instanceof o.CometChat.User?n?.getUid():n.getGuid();t.has(r)&&i.set(r,t.get(r))}r={...e,conversationList:a,typingIndicatorMap:i};break}case"appendConversations":{const t=[...e.conversationList,...n.conversations.filter(t=>!e.conversationList.some(e=>e.getConversationId()===t.getConversationId()))];r={...e,conversationList:t};break}case"setFetchState":r={...e,fetchState:n.fetchState};break;case"updateConversationWithUser":{const{user:t}=n,{conversationList:a}=e,i=t.getUid(),s=a.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.User&&t?.getUid()===i});if(s>-1){const n=a.map((e,n)=>{if(n===s){const n=ht.clone(e);return n.setConversationWith(t),n}return e});r={...e,conversationList:n}}break}case"addTypingIndicator":{const{typingIndicator:t}=n,a=t.getSender()?.getUid(),i=t.getReceiverType()===pt.MessageReceiverType.group,s=t.getReceiverId();let c;const{conversationList:l,typingIndicatorMap:u}=e;for(let e=0;e<l.length;e++){const t=l[e].getConversationWith();if(i){if(t instanceof o.CometChat.Group&&t.getGuid()===s){c=t.getGuid();break}}else if(t instanceof o.CometChat.User&&t?.getUid()===a){c=t?.getUid();break}}if(void 0!==c){const n=new Map(u);n.set(c,t),r={...e,typingIndicatorMap:n}}break}case"removeTypingIndicator":{const{typingIndicatorMap:t}=e,{typingIndicator:a}=n,o=a.getSender()?.getUid(),i=a.getReceiverId();let s;if(a.getReceiverType()===pt.MessageReceiverType.user?t.has(o)&&(s=o):t.get(i)?.getSender()?.getUid()===o&&(s=i),void 0!==s){const n=new Map(t);n.delete(s),r={...e,typingIndicatorMap:n}}break}case"setHasMoreResults":r={...e,hasMoreResults:n.hasMoreResults};break;case"setConversationToBeDeleted":r={...e,conversationToBeDeleted:n.conversation};break;case"removeConversation":{const{typingIndicatorMap:a,conversationList:i}=e,s=n.conversation.getConversationId(),c=i.findIndex(e=>e.getConversationId()===s);if(c>-1){const n=i[c].getConversationWith(),s=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let l;a.has(s)?(l=new Map(a),l.delete(s)):l=a;const u=e.conversationList.filter((e,t)=>t!==c);r={...e,conversationList:u,typingIndicatorMap:l,fetchState:0==u.length?t.DGz.empty:t.DGz.loaded}}break}case"fromUpdateConversationListFn":{const{conversation:t}=n,a=t.getConversationId(),o=e.conversationList.filter(e=>e.getConversationId()!==a);r={...e,conversationList:[t,...o]};break}case"setLastMessageReadOrDeliveredAt":{const{conversationList:t}=e,{messageReceipt:a,updateReadAt:i}=n;let s="";a&&"function"==typeof a.getMessageId&&(s=a.getMessageId());const c=t.findIndex(e=>{if(e.getConversationWith()instanceof o.CometChat.User){const t=e.getLastMessage();if(Hb(t)&&String(t.getId())===s)return i?!t.getReadAt():!t.getDeliveredAt()}return!1});c>-1&&(r={...e,conversationList:t.map((e,t)=>{if(t===c){const t=ht.clone(e),n=t.getLastMessage();return Hb(n)&&(i?(n.setReadAt(a?.getReadAt()),t.setUnreadMessageCount(0)):n.setDeliveredAt(a?.getDeliveredAt())),t}return e})});break}case"updateConversationLastMessage":{const{message:t}=n,a=t?.getId(),{conversationList:o}=e,i=o.findIndex(e=>{const t=e.getLastMessage();return Hb(t)&&t.getId()===a});i>-1&&(r={...e,conversationList:o.map((e,n)=>{if(n===i){const n=ht.clone(e);return n.setLastMessage(t),n}return e})});break}case"updateConversationLastMessageAndGroupAndPlaceAtTheTop":{const{conversationList:t}=e,{group:a,message:o}=n,i=o.getConversationId();if(!Vb.shouldLastMessageAndUnreadCountBeUpdated(o))return e;const s=t.findIndex(e=>e.getConversationId()===i);if(s>-1){const n=ht.clone(t[s]);n.setConversationWith(a),n.setLastMessage(o),r={...e,conversationList:[n,...t.filter((e,t)=>t!==s)]}}break}case"removeConversationOfTheGroup":{const{conversationList:t,typingIndicatorMap:a}=e,i=n.group.getGuid(),s=t.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.Group&&t.getGuid()===i});if(s>-1){const n=t[s].getConversationWith(),i=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let c;a.has(i)?(c=new Map(a),c.delete(i)):c=a;const l=t.filter((e,t)=>t!==s);r={...e,conversationList:l,typingIndicatorMap:c}}break}case"removeConversationOfTheUser":{const{conversationList:t,typingIndicatorMap:a}=e,i=n.user.getUid(),s=t.findIndex(e=>{const t=e.getConversationWith();return t instanceof o.CometChat.User&&t?.getUid()===i});if(s>-1){const n=t[s].getConversationWith(),i=n instanceof o.CometChat.User?n?.getUid():n.getGuid();let c;a.has(i)?(c=new Map(a),c.delete(i)):c=a;const l=t.filter((e,t)=>t!==s);r={...e,conversationList:l,typingIndicatorMap:c}}break}case"updateConversationLastMessageResetUnreadCountAndPlaceAtTheTop":{const{conversationList:t}=e,{message:a,conversation:o}=n,i=a.getConversationId();if(!Vb.shouldLastMessageAndUnreadCountBeUpdated(a))return e;const s=t.findIndex(e=>e.getConversationId()===i);if(s>-1){const n=ht.clone(t[s]);n.setLastMessage(a),n.setUnreadMessageCount(0);const o=t.filter((e,t)=>t!==s);r={...e,conversationList:[n,...o]}}break}case"resetUnreadCountAndSetReadAtIfLastMessage":{const{conversationList:t}=e,{message:a}=n,o=a.getReadAt()||Date.now(),i=t.findIndex(e=>e.getConversationId()===a.getConversationId());if(i>-1){let n=t[i].getLastMessage();r={...e,conversationList:t.map((e,t)=>{if(t===i&&n?.getId()==a?.getId()){const t=ht.clone(e);return t.setUnreadMessageCount(0),t.getLastMessage()&&t.getLastMessage().setReadAt(o),t}return e})}}break}case"resetUnreadCount":{const{conversationList:t}=e,{conversation:a}=n,o=t.findIndex(e=>e.getConversationId()===a.getConversationId());o>-1&&(r={...e,conversationList:t.map((e,t)=>{if(t===o){const t=ht.clone(e);return t.setUnreadMessageCount(0),t}return e})});break}case"updateConversationLastMessageAndPlaceAtTheTop":{const{message:t}=n,a=t?.getId(),{conversationList:o}=e;if(!Vb.shouldLastMessageAndUnreadCountBeUpdated(t))return e;const i=o.findIndex(e=>{const t=e.getLastMessage();return Hb(t)&&t.getId()===a});if(i>-1){const n=ht.clone(o[i]);n.setLastMessage(t),r={...e,conversationList:[n,...o.filter((e,t)=>t!==i)]}}break}case"updateConversation":{const{conversation:t}=n,{conversationList:a}=e,o=a.findIndex(e=>e.getConversationId()===t.getConversationId());o>-1&&(r={...e,conversationList:a.map((e,n)=>n===o?t:e)});break}default:return e}return r}function Yb(e){const{searchKeyword:n="",conversationsRequestBuilder:i,onItemClick:s,itemView:c=null,subtitleView:l=null,trailingView:d=null,hideReceipts:p=!1,options:h=null,loadingView:m,emptyView:g,errorView:f,textFormatters:_=[],leadingView:b,titleView:v,hideGroupType:y=!1,hideUserStatus:E=!1,lastMessageDateTimeFormat:C,onError:S,activeConversation:w=null,seeMoreButtonText:k=V("search_result_see_more"),alwaysShowSeeMore:x=!1,activeFilters:T=[],useScrollPagination:A=!1,hideError:R=!1,loggedInUser:I}=e,[O,N]=a.useReducer(zb,{conversationList:[],fetchState:t.DGz.loading,typingIndicatorMap:new Map,hasMoreResults:!1,conversationToBeDeleted:null}),M=u(S),[D,L]=a.useState(w),P=a.useRef(null),j=a.useRef(n),U=a.useRef(T),F=a.useRef(!1),B=a.useRef(""),H=a.useCallback(e=>{try{const t="getMetadata",n="incrementUnreadCount";let r;return t in e&&"function"==typeof e[t]&&(r=e[t]())&&"object"==typeof r&&n in r&&Boolean(r.incrementUnreadCount)||e instanceof o.CometChat.CustomMessage&&e.willUpdateConversation()}catch(e){M(e,"getIncrementUnreadCountBoolFromMetaData")}},[]),z=a.useCallback((e,t)=>{try{const n=t||e.getLastMessage();if(i&&i.build().getConversationType()&&n.getReceiverType()!==i.build().getConversationType())return;if(!Hb(n))return;if(!Vb.shouldLastMessageAndUnreadCountBeUpdated(n))return;if(n.getSender().getUid()!=I?.getUid()&&e.setUnreadMessageCount((e.getUnreadMessageCount()??0)+1),n instanceof o.CometChat.Action&&n.getReceiverType()===pt.MessageReceiverType.group&&e.getConversationType()===pt.MessageReceiverType.group&&n.getReceiver().getGuid()===n.getActionFor().getGuid()){let t=e.getConversationWith();t.setMembersCount(n.getActionFor().getMembersCount()),e.setConversationWith(t)}e.setLastMessage(n),N({type:"fromUpdateConversationListFn",conversation:e})}catch(e){M(e,"updateConversationList")}},[N,I,H]),Y=a.useCallback(async(e,t=!1)=>{try{const n=O.conversationList.findIndex(t=>t.getConversationId()===e.getConversationId());if(n>=0){const r=O.conversationList[n];t?N({type:"removeConversation",conversation:r}):z(r,e)}}catch(e){M(e,"refreshSingleConversation")}},[M,z,O.conversationList]),q=a.useCallback(async e=>{try{let t=!0;e.getSender().getUid()===I?.getUid()||e.getDeliveredAt()||o.CometChat.markAsDelivered(e),A_.conversationUpdateSettings?.shouldUpdateOnCustomMessages()||e.getCategory()!==pt.MessageCategory.custom||(t=!1),A_.conversationUpdateSettings?.shouldUpdateOnGroupActions()||e.getCategory()!==pt.MessageCategory.action||(t=!1),t&&Y(e)}catch(e){M(e)}},[p,Y,M,I,D,H]),W=a.useCallback((e,t)=>{N({type:"setLastMessageReadOrDeliveredAt",updateReadAt:t,messageReceipt:e})},[N]);a.useEffect(()=>{if(!E){const e="search_conversations_user_listener";return o.CometChat.addUserListener(e,new o.CometChat.UserListener({onUserOnline:e=>{N({type:"updateConversationWithUser",user:e})},onUserOffline:e=>{N({type:"updateConversationWithUser",user:e})}})),()=>{o.CometChat.removeUserListener(e)}}},[E]),a.useEffect(()=>{const e="search_conversations_typing_listener";return o.CometChat.addMessageListener(e,new o.CometChat.MessageListener({onTypingStarted:e=>{I?.getUid()!==e.getSender()?.getUid()&&N({type:"addTypingIndicator",typingIndicator:e})},onTypingEnded:e=>{I?.getUid()!==e.getSender()?.getUid()&&N({type:"removeTypingIndicator",typingIndicator:e})}})),()=>{o.CometChat.removeMessageListener(e)}},[I]),a.useEffect(()=>{if(!E)return Vb.attachUserListener(e=>N({type:"updateConversationWithUser",user:e}))},[N]),a.useEffect(()=>Vb.attachGroupListener(Y,I),[Y,I]),a.useEffect(()=>Vb.attachMessageReceivedListener(q),[q]),a.useEffect(()=>Vb.attachMessageModifiedListener(e=>{N({type:"updateConversationLastMessage",message:e})}),[N]),a.useEffect(()=>Vb.attachMessageReceiptListener(W),[W]),a.useEffect(()=>{try{const e=U_.ccConversationDeleted.subscribe(e=>{e&&(N({type:"removeConversation",conversation:e}),N({type:"setConversationToBeDeleted",conversation:null}))}),t=U_.ccUpdateConversation.subscribe(e=>{e&&N({type:"updateConversation",conversation:e})}),n=U_.ccMarkConversationAsRead.subscribe(e=>{N({type:"resetUnreadCount",conversation:e})});return()=>{e.unsubscribe(),n.unsubscribe(),t.unsubscribe()}}catch(e){M(e,"ccConversationDeleted")}},[N]),a.useEffect(()=>{try{var e;i&&(e=i.build());const n=cn.ccGroupMemberScopeChanged.subscribe(e=>{N({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e.message})}),r=cn.ccGroupMemberAdded.subscribe(e=>{const t=e.messages[e.messages.length-1];t&&N({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.userAddedIn,message:t})}),a=cn.ccGroupMemberKicked.subscribe(e=>{N({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.kickedFrom,message:e.message})}),s=cn.ccGroupMemberBanned.subscribe(e=>{N({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.kickedFrom,message:e.message})}),c=cn.ccGroupDeleted.subscribe(e=>{N({type:"removeConversationOfTheGroup",group:e})}),l=cn.ccGroupLeft.subscribe(e=>{Vb.shouldLastMessageAndUnreadCountBeUpdated(e.message)&&N({type:"removeConversationOfTheGroup",group:e.leftGroup})}),u=ut.ccUserBlocked.subscribe(t=>{e&&!e?.isIncludeBlockedUsers()?N({type:"removeConversationOfTheUser",user:t}):N({type:"updateConversationWithUser",user:t})}),d=ut.ccUserUnblocked.subscribe(t=>{e&&e?.isIncludeBlockedUsers()&&N({type:"updateConversationWithUser",user:t})}),p=Qf.ccMessageEdited.subscribe(e=>{e.status===t.qpt.success&&N({type:"updateConversationLastMessage",message:e.message})}),h=Qf.ccMessageSent.subscribe(n=>{if(n.status===t.qpt.success){if(e&&e?.getConversationType()&&n.message.getReceiverType()!==e?.getConversationType())return;o.CometChat.CometChatHelper.getConversationFromMessage(n.message).then(e=>{L(e),N({type:"updateConversationLastMessageResetUnreadCountAndPlaceAtTheTop",message:n.message,conversation:e})})}}),m=Qf.ccMessageDeleted.subscribe(e=>{N({type:"updateConversationLastMessage",message:ht.clone(e)})}),g=Qf.ccMessageRead.subscribe(e=>{N({type:"resetUnreadCountAndSetReadAtIfLastMessage",message:e})}),f=Yf.ccCallAccepted.subscribe(e=>{N({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),_=Yf.ccOutgoingCall.subscribe(e=>{N({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),b=Yf.ccCallRejected.subscribe(e=>{N({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),v=Yf.ccCallEnded.subscribe(e=>{N({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})});return()=>{n.unsubscribe(),r.unsubscribe(),a.unsubscribe(),s.unsubscribe(),c.unsubscribe(),l.unsubscribe(),u.unsubscribe(),d.unsubscribe(),p.unsubscribe(),h.unsubscribe(),m.unsubscribe(),g.unsubscribe(),f.unsubscribe(),_.unsubscribe(),b.unsubscribe(),v.unsubscribe()}}catch(e){M(e,"useEffect")}},[N]),a.useEffect(()=>{L(w)},[w]),a.useEffect(()=>{const e=n!==j.current,t=!Z(T,U.current);(e||t)&&(j.current=n,U.current=[...T],N({type:"setConversationList",conversationList:[]}),Q())},[n,T]);const Z=a.useCallback((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;if(e.every(e=>"string"==typeof e||"number"==typeof e)){const n=new Set(e);return t.every(e=>n.has(e))}return e.every((e,n)=>e===t[n])},[]),$=a.useCallback(()=>{let e=i?ht.clone(i):new o.CometChat.ConversationsRequestBuilder;n&&""!==n.trim()&&(e=e.setSearchKeyword(n));const r=A?30:3;return i||(e=e.setLimit(r)),T.includes(t.H6z.Unread)&&(e=e.setUnread(!0)),T.includes(t.H6z.Groups)&&(e=e.setConversationType(pt.MessageReceiverType.group)),e.build()},[i,n,T,A]),Q=a.useCallback(async()=>{try{if(N({type:"setFetchState",fetchState:t.DGz.loading}),!function(e,n){if(e&&""!==e.trim())return!0;const r=[t.H6z.Unread,t.H6z.Groups,t.H6z.Conversations];return 0!==n.length&&n.every(e=>r.includes(e))}(n,T))return N({type:"setConversationList",conversationList:[]}),N({type:"setFetchState",fetchState:t.DGz.empty}),void N({type:"setHasMoreResults",hasMoreResults:!1});P.current=$(),B.current="initialFetch_"+Date.now();const e=await P.current.fetchNext();if(e.length>0){N({type:"setConversationList",conversationList:e}),N({type:"setFetchState",fetchState:t.DGz.loaded});let n=T.length>0?30:3;N({type:"setHasMoreResults",hasMoreResults:e.length>=n})}else N({type:"setFetchState",fetchState:t.DGz.empty}),N({type:"setHasMoreResults",hasMoreResults:!1})}catch(e){N({type:"setFetchState",fetchState:t.DGz.error}),M(e,"searchConversations")}},[n,T,M,$]),X=async()=>{if(F.current||!P.current)return;F.current=!0;const e="moreResults_"+Date.now();B.current=e;try{const t=await P.current.fetchNext();if(B.current===e&&t.length>0){N({type:"appendConversations",conversations:t});let e=T.length>0?30:3;N({type:"setHasMoreResults",hasMoreResults:t.length>=e})}else 0===t.length&&N({type:"setHasMoreResults",hasMoreResults:!1})}catch(e){M(e,"loadMoreResults")}finally{F.current=!1}},ee=a.useCallback(async()=>{if(O.hasMoreResults&&!F.current)return await X()},[O.hasMoreResults]);function te(e){try{const t=e.getConversationWith();return t instanceof o.CometChat.User?t.getAvatar():t.getIcon()}catch(e){return M(e,"getListItemAvatarURL"),""}}function ne(e){try{const t=e.getLastMessage();return Hb(t)&&t.getParentMessageId()?r.jsx("div",{className:"cometchat-search__conversations-subtitle-icon cometchat-search__conversations-subtitle-icon-thread"}):null}catch(e){return M(e,"getSubtitleThreadView"),null}}function re(e){try{let n=e.getLastMessage()?e.getLastMessage().getCategory():"";if(!function(e){try{const t=e.getLastMessage(),n=e.getConversationWith(),r=n instanceof o.CometChat.User?n?.getUid():n.getGuid();return!p&&Hb(t)&&!t.getDeletedAt()&&t.getCategory()!==pt.MessageCategory.action&&t.getSender()?.getUid()===I?.getUid()&&(t.getCategory()!=pt.MessageCategory.custom||t.getCategory()==pt.MessageCategory.custom&&t.getType()!==pt.calls.meeting)&&void 0===O.typingIndicatorMap.get(r)}catch(e){return M(e,"shouldDisplaySubtitleReceipt"),!1}}(e)||n===pt.MessageCategory.interactive)return null;const a=ar.getReceiptStatus(e.getLastMessage());let i="";return i=a===t.W4f.error?"error":a===t.W4f.sent?"sent":a===t.W4f.delivered?"delivered":a===t.W4f.read?"read":"wait",r.jsx("div",{className:`\n          cometchat-receipts cometchat-search__conversations-subtitle-receipts \n          cometchat-search__conversations-subtitle-receipts-${i} \n          cometchat-receipts-${i}`})}catch(e){return M(e,"getSubtitleReadReceiptView"),null}}function ae(e){try{const n=e.getConversationWith(),a=n instanceof o.CometChat.Group?n.getGuid():n?.getUid(),i=O.typingIndicatorMap.get(a);if(void 0!==i)return n instanceof o.CometChat.Group?r.jsxs("div",{className:"cometchat-search__conversations-subtitle-typing",children:[i.getSender().getName(),": ",V("conversation_subtitle_typing")]}):r.jsx("div",{className:"cometchat-search__conversations-subtitle-typing",children:V("conversation_subtitle_typing")});const s=I||I;if(s){let n="";const a=e.getLastMessage(),i=a&&e?.getConversationType()!=o.CometChat.RECEIVER_TYPE.USER,c=a?.getSender().getUid()==s.getUid()?V("conversation_subtitle_you_message"):a?.getSender().getName();let l=Gf.getDataSource().getLastConversationMessage(e,s,{mentionsTargetElement:t.rnx.conversation,textFormattersList:_});return a&&a.getCategory()===pt.MessageCategory.call&&(n=function(e){try{let t="";return t=M_(e,I)?e.getType()===pt.MessageTypes.audio?"incoming-audio-call":"incoming-video-call":e.getType()===pt.MessageTypes.audio?"outgoing-audio-call":"outgoing-video-call",t}catch(e){return M(e,"getIconNameByCallType"),""}}(a),l=n.includes("video")?V("conversation_subtitle_video_call"):V("conversation_subtitle_voice_call")),a&&a.getCategory()!==pt.MessageCategory.call&&a.getType()&&(n=function(e){try{let t="";switch(e.getType()){case pt.MessageTypes.text:vt(e.getText())&&(t="link");break;case pt.MessageTypes.image:t="image";break;case pt.MessageTypes.file:t="file";break;case pt.MessageTypes.video:t="video";break;case pt.MessageTypes.audio:t="audio";break;case $t.extension_poll:t="poll";break;case Qt.sticker:t="sticker";break;case Zt.extension_whiteboard:t="collaborative-whiteboard";break;case Jt.extension_document:t="collaborative-document";break;default:t=""}return(e.getDeletedAt()||e.getCategory()===pt.MessageCategory.interactive)&&(t="deleted"),t}catch(e){return M(e,"getIconNameByMessageType"),""}}(a)),a?.getDeletedAt()&&(l=V("conversation_subtitle_deleted_message")),r.jsxs("div",{className:"cometchat-search__conversations-subtitle-text-wrapper",children:[i&&a.getCategory()!=pt.MessageCategory.action&&(a.getCategory()!=pt.MessageCategory.custom||a.getCategory()==pt.MessageCategory.custom&&a.getType()!==pt.calls.meeting)&&r.jsxs("span",{className:"cometchat-search__conversations-subtitle-text-sender",children:[c,":"]}),r.jsx("div",{className:"cometchat-search__conversations-subtitle-icon "+(n?`cometchat-search__conversations-subtitle-icon-${n}`:"cometchat-search__conversations-subtitle-icon-none")}),r.jsx("div",{className:"cometchat-search__conversations-subtitle-text",dangerouslySetInnerHTML:{__html:l}})]})}return""}catch(e){return M(e,"getSubtitleText"),""}}function oe(e){return r.jsx(r.Fragment,{children:ae(e)})}function ie(e){const t=e.getConversationWith(),n=t instanceof o.CometChat.Group?t.getGuid():t?.getUid(),a=O.typingIndicatorMap.get(n);return null!==l?r.jsx(r.Fragment,{children:l(e)}):r.jsxs("div",{className:"cometchat-search__conversations-subtitle",children:[!a&&ne(e),re(e),oe(e)]})}function se(e){try{if(d)return r.jsx(r.Fragment,{children:d(e)});const t=e.getLastMessage();return t?r.jsxs("div",{className:"cometchat-search__conversations-trailing-view",children:[r.jsx("div",{className:"cometchat-search__conversations-trailing-view-date",children:r.jsx(rr,{timestamp:t.getSentAt(),calendarObject:{today:"hh:mm A",yesterday:`[${V("yesterday")}]`,otherDays:"DD/MM/YYYY",...kt(G.calendarObject),...kt(C)}})}),r.jsx("div",{className:"cometchat-search__conversations-trailing-view-badge",children:e.getUnreadMessageCount()>0&&r.jsx("div",{className:"cometchat-badge cometchat-search__conversations-trailing-view-badge-count",children:e.getUnreadMessageCount()<=999?e.getUnreadMessageCount():"999+"})})]}):null}catch(e){return M(e,"getListItemTailContentView"),null}}function ce(e){try{if(!h)return null;const n=h(e);return 0===n?.length?null:r.jsx("div",{className:"cometchat-search__conversations-trailing-view-options",children:r.jsx(qt,{data:n,topMenuSize:2,placement:t.W.left,onOptionClicked:()=>{n&&n.forEach(e=>{e&&e.id&&e.onClick?.(parseInt(String(e.id)))})}})})}catch(e){return M(e,"getListItemMenuView"),null}}const le=a.useCallback(()=>null!==c?c:function(e){try{const t=e.getConversationId()===D?.getConversationId();let a,o,i=e.getConversationType(),c=!1;if(i===pt.MessageReceiverType.group&&(a=e.getConversationWith().getType()),i===pt.MessageReceiverType.user){const t=e.getConversationWith();o=t.getStatus(),c=(new tn).getUserStatusVisible(t)||E}return r.jsx("div",{className:`cometchat-search__conversations-list-item\n            ${a&&!y?`cometchat-search__conversations-list-item-${a}`:""}\n            ${o&&!c?`cometchat-search__conversations-list-item-${o}`:""}\n            ${t?"cometchat-search__conversations-list-item-active":""}\n          `,children:r.jsx(J,{id:e.getConversationId(),avatarURL:te(e),avatarName:e.getConversationWith().getName(),title:e.getConversationWith().getName(),titleView:v?v(e):void 0,leadingView:b?b(e):void 0,onListItemClicked:t=>s?.(e,n),subtitleView:ie(e),menuView:ce(e),trailingView:se(e)})})}catch(e){throw M(e,"getListItem"),e}},[c,D,v,b,s,y,E,h,d,M,I,n]),ue=a.useCallback(()=>T.length>0||!(!n||""===n.trim())&&(O.fetchState===t.DGz.loading||O.conversationList.length>0),[T,n,O.fetchState,O.conversationList.length]);return{renderConversationsList:()=>ue()?r.jsxs("div",{className:"cometchat-search__conversations "+(A||T.length>0?"cometchat-search__conversations-full":""),children:[r.jsx(K,{title:V("search_conversation_header"),hideSearch:!0,list:O.conversationList,listItemKey:"getConversationId",itemView:le(),showSectionHeader:!1,state:O.fetchState,loadingView:m,emptyView:g,errorView:f,hideError:R,onScrolledToBottom:A?ee:void 0}),O.conversationList.length>0&&(A||T.length>0?null:O.hasMoreResults||x?r.jsx("div",{className:"cometchat-search-conversations__see-more",children:r.jsx(rn,{text:k,onClick:X})}):null)]}):null,getListItem:le,conversationState:O,searchConversations:Q,loadMoreResults:X,handleScrollToBottom:ee,shouldRender:ue}}function qb(e,t){let n=e;const{type:r}=t;switch(r){case"setMessageList":{const{messageList:r}=t;n={...e,messageList:r};break}case"appendMessages":{const r=[...e.messageList,...t.messages];n={...e,messageList:r};break}case"setFetchState":n={...e,fetchState:t.fetchState};break;case"setHasMoreResults":n={...e,hasMoreResults:t.hasMoreResults};break;default:return e}return n}function Kb(e){const{url:t,viewClass:n,iconClass:o}=e,[i,s]=a.useState(!1);return i||!t?r.jsx("div",{className:`${n} ${n}-link`,children:r.jsx("div",{className:o})}):r.jsx("div",{className:`${n} ${n}-link`,children:r.jsx("img",{src:t,onError:()=>s(!0),alt:"",loading:"lazy"})})}function Wb(e){const{searchKeyword:n="",messagesRequestBuilder:i,onItemClick:s,itemView:c=null,subtitleView:l=null,trailingView:d=null,options:p=null,loadingView:h,emptyView:m,errorView:g,textFormatters:f=[],leadingView:_,titleView:b,messageDateTimeFormat:v,onError:y,seeMoreButtonText:E=V("search_result_see_more"),alwaysShowSeeMore:C=!1,activeFilters:S=[],uid:w,guid:k,hideError:x=!1,loggedInUser:T}=e,[A,R]=a.useReducer(qb,{messageList:[],fetchState:t.DGz.loading,hasMoreResults:!1}),I=a.useRef(S||[]),O=u(y),N=a.useRef(null),M=a.useRef(n),D=a.useRef(!1),L=a.useCallback(async()=>{try{if(R({type:"setFetchState",fetchState:t.DGz.loading}),!function(e,n){if(e&&""!==e.trim())return!0;const r=[t.H6z.Unread,t.H6z.Groups,t.H6z.Conversations];return 0!==n.length&&n.some(e=>!r.includes(e))}(n,S||[]))return R({type:"setMessageList",messageList:[]}),R({type:"setFetchState",fetchState:t.DGz.empty}),void R({type:"setHasMoreResults",hasMoreResults:!1});N.current=Q();let e=S.length>0?30:3;const r=await N.current.fetchPrevious();if(r.length>0){const n=r.reverse();R({type:"setMessageList",messageList:n}),R({type:"setFetchState",fetchState:t.DGz.loaded}),R({type:"setHasMoreResults",hasMoreResults:r.length>=e})}else R({type:"setFetchState",fetchState:t.DGz.empty}),R({type:"setHasMoreResults",hasMoreResults:!1})}catch(e){R({type:"setFetchState",fetchState:t.DGz.error}),O(e,"searchMessages")}},[n,S,w,k,O]);a.useEffect(()=>{const e=n!==M.current,r=S&&(!I.current||I.current.length!==S.length||!S.every(e=>I.current.includes(e)));(e||r)&&(M.current=n,I.current=[...S||[]],R({type:"setMessageList",messageList:[]}),R({type:"setFetchState",fetchState:t.DGz.loading}),R({type:"setHasMoreResults",hasMoreResults:!1}),L())},[n,S,L]);const P=async()=>{if(!D.current&&N.current){D.current=!0;try{const e=await N.current.fetchPrevious();if(e.length>0){const t=e.reverse();R({type:"appendMessages",messages:t});let n=S.length>0?30:3;R({type:"setHasMoreResults",hasMoreResults:e.length>=n})}else R({type:"setHasMoreResults",hasMoreResults:!1})}catch(e){O(e,"loadMoreResults")}finally{D.current=!1}}};function j(e){try{let t=e.getType(),n="cometchat-search__messages-leading-view-icon",a="cometchat-search__messages-leading-view";switch(t){case pt.MessageTypes.text:if(e instanceof o.CometChat.TextMessage){if(function(e){return e&&"@injected"in e&&"object"==typeof e["@injected"]&&null!==e["@injected"]&&"extensions"in e["@injected"]&&"object"==typeof e["@injected"].extensions&&null!==e["@injected"].extensions&&"link-preview"in e["@injected"].extensions&&null!==e["@injected"].extensions["link-preview"]&&"links"in e["@injected"].extensions["link-preview"]&&Array.isArray(e["@injected"].extensions["link-preview"].links)&&e["@injected"].extensions["link-preview"].links.length>0}(e.getMetadata())){const t=function(e){try{if(!e?.getMetadata())return null;{const t=e.getMetadata()[p_.injected];if(t&&t?.extensions){const e=t.extensions;if(e&&ht.checkHasOwnProperty(e,p_.link_preview)){const t=e[p_.link_preview];return t&&ht.checkHasOwnProperty(t,p_.links)&&t[p_.links].length?function(e){return Object.keys(e).length>0?e.favicon:null}(t[p_.links][0]):null}return null}}}catch(e){}}(e);return t?r.jsx(Kb,{url:t,viewClass:a,iconClass:n}):r.jsx("div",{className:`${a} ${a}-link`,children:r.jsx("div",{className:n})})}return vt(e.getText())?r.jsx("div",{className:`${a} ${a}-link`,children:r.jsx("div",{className:n})}):r.jsx(r.Fragment,{})}return r.jsx(r.Fragment,{});case pt.MessageTypes.image:return r.jsx(r.Fragment,{});case pt.MessageTypes.file:let t=e,i=t.getAttachments()[0];const s=t.getMetadata()?.file,c=i?.getMimeType()??s?.type;let l=(new Bf).getFileType(c);return r.jsx("div",{className:`${a} ${a}-file`,children:r.jsx("img",{className:n,src:l})});case pt.MessageTypes.video:return r.jsx(r.Fragment,{});case pt.MessageTypes.audio:return r.jsx("div",{className:`${a} ${a}-audio`,children:r.jsx("div",{className:n})});default:return r.jsx(r.Fragment,{})}}catch(e){return O(e,"getListItemLeadingView"),r.jsx("div",{className:"cometchat-search__messages-leading-view",children:r.jsx("div",{className:"cometchat-search__messages-leading-view-icon"})})}}a.useMemo(()=>f.map(e=>e.getRegexPatterns()).flat(),[f]);const U=a.useCallback(e=>{try{let r,a=e.getText();const i=ht.convertFormattingHtmlToMarkdown(a);r=ht.sanitizeText(i);let s=f??Gf.getDataSource().getAllTextFormatters({mentionsTargetElement:t.rnx.conversation});if(e){let a;for(let t=0;t<f.length;t++){if(n&&f[t]instanceof Bb&&f[t].setText(n),f[t]instanceof En){if(a=f[t],a.setMessage(e),e.getMentionedUsers().length&&a.setCometChatUserGroupMembers(e.getMentionedUsers()),!e.getDeletedAt()){const t=/<@all:(.*?)>/g,n=e.getText(),r=Array.from(n.matchAll(t)).map(e=>e[1]);a.setCometChatMentionedChannels(r)}a.setLoggedInUser(dt.getLoggedInUser())}if(a)break}if(a||(a=Gf.getDataSource().getMentionsTextFormatter({message:e,alignment:null}),s.push(a)),e&&e instanceof o.CometChat.TextMessage)for(let e=0;e<s.length;e++){let n=s[e].getFormattedText(r,{mentionsTargetElement:t.rnx.conversation});"string"==typeof n&&(r=n)}}return r}catch(t){return O(t,"getFormattedMessageText"),e?.getText()||""}},[f,O,n]);function F(e){try{return e.getParentMessageId()?r.jsx("div",{className:"cometchat-search__messages-subtitle-icon-thread"}):null}catch(e){return O(e,"getSubtitleThreadView"),null}}function B(e){try{let t=T??dt.getLoggedInUser();const n=U(e),a=e?.getSender().getUid()==t?.getUid()?V("search_message_subtitle_you"):e?.getSender().getName(),o=ht.sanitizeText(a);return r.jsxs(r.Fragment,{children:[F(e),r.jsx("div",{className:"cometchat-search-messages__subtitle-text",dangerouslySetInnerHTML:{__html:`${w||k?"":o+": "}${n}`}})]})}catch(e){return O(e,"getSubtitleTextView"),r.jsx(r.Fragment,{})}}function H(e){if(null!==l)return r.jsx(r.Fragment,{children:l(e)});let t="";if(pt.MessageTypes.text===e.getType())return r.jsx("div",{className:"cometchat-search-messages__subtitle",children:B(e)});switch(e.getType()){case pt.MessageTypes.image:case pt.MessageTypes.file:case pt.MessageTypes.video:case pt.MessageTypes.audio:t=e.getAttachments()?e.getAttachments()[0].getName():""}return r.jsxs("div",{className:"cometchat-search-messages__subtitle",children:[F(e),t]})}function z(e){try{if(d)return r.jsx(r.Fragment,{children:d(e)});if(e.getType()!=pt.MessageTypes.image&&e.getType()!=pt.MessageTypes.video)return r.jsx(rr,{timestamp:e.getSentAt(),calendarObject:{yesterday:"DD MMM, YYYY",otherDays:"DD MMM, YYYY",today:"DD MMM, YYYY",...kt(G.calendarObject),...kt(v)}});let t=e.getType(),n="cometchat-search__messages-trailing-view-icon",a="cometchat-search__messages-trailing-view",i="";switch(e instanceof o.CometChat.MediaMessage&&(i=e.getAttachments()?e.getAttachments()[0].getUrl():""),t){case pt.MessageTypes.image:return r.jsxs("div",{className:`${a} ${a}-image`,children:[r.jsx("div",{className:n}),r.jsx("img",{src:i,className:n})]});case pt.MessageTypes.video:return r.jsxs("div",{className:`${a} ${a}-video`,children:[r.jsx("video",{src:i,className:n,preload:"metadata",controls:!1,onContextMenu:e=>e.preventDefault(),children:r.jsx("track",{kind:"captions"})}),r.jsx("div",{className:"cometchat-search__messages-video-play-button"})]})}return r.jsx(r.Fragment,{})}catch(e){return O(e,"getListItemTrailingView"),null}}function Y(e){try{if(!p)return null;const n=p(e);return 0===n?.length?null:r.jsx("div",{className:"cometchat-search-messages__trailing-view-options",children:r.jsx(qt,{data:n,topMenuSize:2,placement:t.W.left,onOptionClicked:()=>{n&&n.forEach(e=>{e&&e.id&&e.onClick?.(parseInt(String(e.id)))})}})})}catch(e){return O(e,"getListItemMenuView"),null}}const q=a.useCallback(e=>{let t=T??dt.getLoggedInUser();return w||k?_t(e,t)?V("search_message_title_you"):e.getSender()?.getName():e.getReceiver().getName()},[w,k,T]),W=a.useCallback(()=>null!==c?c:function(e,t){try{const o=0===t||t>0&&function(e,t,n){try{if(!e||!t)return!1;const n=new Date(1e3*e),r=new Date(1e3*t);return n.getMonth()!==r.getMonth()||n.getFullYear()!==r.getFullYear()}catch(e){return n?.(e,"isMonthDifferent"),!1}}(e.getSentAt(),A.messageList[t-1].getSentAt());return r.jsxs(r.Fragment,{children:[o&&(a=e.getSentAt(),r.jsx("div",{className:"cometchat-search-messages__date-separator",children:r.jsx(rr,{timestamp:a,calendarObject:{today:"MMM, YYYY",yesterday:"MMM, YYYY",otherDays:"MMM, YYYY",...kt(G.calendarObject)}})})),r.jsx("div",{className:"cometchat-search-messages__list-item",children:r.jsx(J,{id:String(e.getId()),title:q(e),titleView:b?b(e):void 0,leadingView:_?_(e):j(e),onListItemClicked:t=>s?.(e,n),subtitleView:H(e),menuView:Y(e),trailingView:z(e)})})]})}catch(e){throw O(e,"getListItem"),e}var a},[c,T,A.messageList,b,_,s,l,p,d,O,n]),Z=a.useCallback(async()=>{if(A.hasMoreResults&&!D.current)return await P()},[A.hasMoreResults]),$=a.useCallback(()=>!!(S&&S.length>0)||!(!n||""===n.trim())&&(A.fetchState===t.DGz.loading||A.messageList.length>0),[S,n,A.fetchState,A.messageList.length]),Q=a.useCallback(()=>{let e=i?ht.clone(i):new o.CometChat.MessagesRequestBuilder;e.hideDeletedMessages(!0);let r=C?3:30;if(i||(e=e.setCategories(Gf.getDataSource().getAllMessageCategories()).setTypes(Gf.getDataSource().getAllMessageTypes()).setLimit(r)),n&&""!==n.trim()&&(e=e.setSearchKeyword(n)),w?e=e.setUID(w):k&&(e=e.setGUID(k)),S&&S.length>0){S.includes(t.H6z.Links)&&(e=e.hasLinks(!0));const n={[t.H6z.Photos]:o.CometChat.AttachmentType.IMAGE,[t.H6z.Videos]:o.CometChat.AttachmentType.VIDEO,[t.H6z.Documents]:o.CometChat.AttachmentType.FILE,[t.H6z.Audio]:o.CometChat.AttachmentType.AUDIO};for(const[t,r]of Object.entries(n))if(S.includes(t)){e=e.setAttachmentTypes([r]);break}}return e.build()},[i,S,n,w,k]);return{renderMessagesList:()=>$()?r.jsxs("div",{className:"cometchat-search__messages "+(!C||S.length>0?"cometchat-search__messages-full":""),children:[r.jsx(K,{title:V("search_messages_header"),hideSearch:!0,list:A.messageList,listItemKey:"getId",itemView:W(),showSectionHeader:!1,state:A.fetchState,loadingView:h,emptyView:m,errorView:g,hideError:x,onScrolledToBottom:C?void 0:Z}),A.messageList.length>0&&(A.hasMoreResults&&C?r.jsx("div",{className:"cometchat-search-messages__see-more",children:r.jsx(rn,{text:E,onClick:P})}):null)]}):null,messageState:A,searchMessages:L,loadMoreResults:P,handleScrollToBottom:Z,shouldRender:$}}Vb.errorHandler=(e,t)=>{},Vb.shouldLastMessageAndUnreadCountBeUpdated=j_.shouldLastMessageAndUnreadCountBeUpdated,t.DGz.loaded;var Jb="data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.1668%2012.8332H5.83325C5.59725%2012.8332%205.39933%2012.7532%205.2395%2012.593C5.07983%2012.4327%205%2012.234%205%2011.997C5%2011.7602%205.07983%2011.5626%205.2395%2011.4043C5.39933%2011.2459%205.59725%2011.1667%205.83325%2011.1667H11.1668V5.83325C11.1668%205.59725%2011.2468%205.39933%2011.407%205.2395C11.5673%205.07983%2011.766%205%2012.003%205C12.2398%205%2012.4374%205.07983%2012.5957%205.2395C12.7541%205.39933%2012.8333%205.59725%2012.8333%205.83325V11.1667H18.1667C18.4028%2011.1667%2018.6007%2011.2468%2018.7605%2011.407C18.9202%2011.5673%2019%2011.766%2019%2012.003C19%2012.2398%2018.9202%2012.4374%2018.7605%2012.5957C18.6007%2012.7541%2018.4028%2012.8332%2018.1667%2012.8332H12.8333V18.1667C12.8333%2018.4028%2012.7532%2018.6007%2012.593%2018.7605C12.4327%2018.9202%2012.234%2019%2011.997%2019C11.7602%2019%2011.5626%2018.9202%2011.4043%2018.7605C11.2459%2018.6007%2011.1668%2018.4028%2011.1668%2018.1667V12.8332Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E";const Zb=({isButtonDisabled:e})=>{const[t,n]=a.useState(!1);return a.useEffect(()=>{const e=Rf.subscribe(n);return()=>e.unsubscribe()},[]),r.jsx("div",{onClick:()=>{t&&Df()},className:`cometchat-ai-assistant-chat__send-button-view ${!e&&"cometchat-ai-assistant-chat__send-button-view--active"}\n                  ${t&&"cometchat-ai-assistant-chat__send-button-view--streaming"}\n                  `,children:r.jsx("div",{className:"cometchat-ai-assistant-chat__send-button-icon"})})},$b=e=>{const{user:n,group:i,onError:s,onClose:c,onMessageClicked:l,onNewChatClicked:d,hideNewChat:p,loadLastAgentConversation:h=!1,onEmpty:m}=e,[g,f]=a.useState([]),[_,b]=a.useState(t.DGz.loading),v=a.useRef(null),y=a.useRef(null),E=a.useRef(!1),C=a.useRef(0),S=a.useRef(0),w=u(s),k=a.useCallback(e=>{try{return e instanceof o.CometChat.TextMessage?e.getText():e instanceof o.CometChat.MediaMessage?`${e.getType()} message`:e instanceof o.CometChat.CustomMessage?"Custom message":"groupMember"===e.getType()?"Group action message":"Message"}catch(e){return w(e,"getMessageText"),"Message"}},[w]),x=a.useCallback(e=>new Promise(t=>{try{f(t=>(C.current=[...e,...t].length,[...t,...e])),t(!0)}catch(e){w(e,"appendMessages"),t(!1)}}),[w]),T=a.useCallback((e=!1)=>new Promise(async(r,a)=>{try{if(E.current)return void r(!0);if(E.current=!0,S.current&&v.current&&!v.current?.getMessageId()){const e=(new o.CometChat.MessagesRequestBuilder).hideReplies(!0).setLimit(30);n?e.setUID(n.getUid()):i&&e.setGUID(i.getGuid()),e.setType(pt.MessageTypes.text),e.setCategory(pt.MessageCategory.message),e.hideDeletedMessages(!0),e.setMessageId(S.current),S.current=0,v.current=e.build()}if(v.current){const n=await v.current.fetchPrevious();S.current=0===S.current&&n.length>0?n[0].getId():0,n.length>0?(await x(n.reverse()),e&&l?.(n[0]),b(t.DGz.loaded)):0==n.length&&0===C.current?(b(t.DGz.empty),m?.()):b(t.DGz.loaded)}E.current=!1,r(!0)}catch(e){E.current=!1,C.current<=0&&b(t.DGz.error),w(e,"fetchPreviousMessages"),a(e)}}),[x,w,l]),A=a.useCallback(()=>new Promise((e,t)=>{try{T().then(t=>e(t),e=>t(e))}catch(e){w(e,"onBottomCallback"),t(e)}}),[T,w]),R=a.useCallback((e,t)=>{try{let n,r;return n=new Date(1e3*e),r=new Date(1e3*t),n.getDate()!==r.getDate()||n.getMonth()!==r.getMonth()||n.getFullYear()!==r.getFullYear()}catch(e){w(e,"isDateDifferent")}},[w]),I=a.useCallback((e,t)=>{if(g.length>0&&R(g[t-1]?.getSentAt(),e?.getSentAt()))return r.jsx("div",{className:"cometchat-ai-assistant-chat-history__list-item-date-header "+(0===t?"cometchat-ai-assistant-chat-history__list-item-date-header-start":""),children:r.jsx(rr,{calendarObject:{yesterday:V("yesterday"),otherDays:"DD MMM, YYYY",today:V("today"),...kt(G.calendarObject)},timestamp:e.getSentAt()})},`${e.getId()}-${e.getSentAt()}`)},[g,R]);function O(e){return[new zt({id:pt.ConversationOptions.delete,title:V("conversation_delete_icon_hover"),onClick:()=>{o.CometChat.deleteMessage(String(e.getId())).then(()=>{f(t=>t.filter(t=>t.getId()!==e.getId())),d&&d(e.getId())}).catch(e=>{w(e,"deleteMessage")})}})]}const N=a.useCallback((e,t)=>r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__list-item-container",children:[I(e,t),r.jsxs("div",{onClick:()=>{l&&l(e)},className:"cometchat-ai-assistant-chat-history__list-item",children:[r.jsx("div",{className:"cometchat-ai-assistant-chat-history__list-item-text",children:k(e)}),r.jsx("div",{className:"cometchat-ai-assistant-chat-history__list-options",onClick:e=>{e.stopPropagation()},children:r.jsx(qt,{topMenuSize:2,data:O(e)})})]})]}),[k,I]);return a.useEffect(()=>{o.CometChat.getLoggedinUser().then(e=>{e&&(y.current=e)}).catch(e=>{w(e,"getLoggedinUser")})},[n,i,w]),a.useEffect(()=>{let e=Qf.ccMessageSent.subscribe(e=>{if(e.status==t.qpt.success){let t=e.message;n&&t.getType()==pt.MessageTypes.text&&t.getReceiverId()==n.getUid()&&!t.getParentMessageId()&&t.getSender().getUid()==y.current?.getUid()&&f(e=>(C.current=e.length+1,[t,...e]))}});return()=>e?.unsubscribe()},[n]),a.useEffect(()=>{(async()=>{try{if(dt.getLoggedInUser()&&(n||i)){const e=(new o.CometChat.MessagesRequestBuilder).hideReplies(!0).setLimit(30);n?e.setUID(n.getUid()):i&&e.setGUID(i.getGuid()),e.setType(pt.MessageTypes.text),e.setCategory(pt.MessageCategory.message),e.hideDeletedMessages(!0),v.current=e.build(),C.current=0,f([]),b(t.DGz.loading),T(h)}}catch(e){w(e,"useEffect - initialization")}})()},[n,i,w]),r.jsx("div",{className:"cometchat-ai-assistant-chat-history",children:r.jsx("div",{className:"cometchat-ai-assistant-chat-history__list",children:r.jsx(K,{title:"Message History",showSectionHeader:!1,list:g,onScrolledToBottom:A,itemView:N,loadingView:r.jsx("div",{className:"cometchat-ai-assistant-chat-history__shimmer",children:[...Array(15)].map((e,t)=>r.jsx("div",{className:"cometchat-ai-assistant-chat-history__shimmer-item",children:r.jsx("div",{className:"cometchat-ai-assistant-chat-history__shimmer-item-title"})},t))}),emptyView:(()=>{const e="dark"===Et();return r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__empty-state-view",children:[r.jsx("div",{className:"cometchat-ai-assistant-chat-history__empty-state-view-icon",children:r.jsx("img",{src:e?B_:F_,alt:""})}),r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-ai-assistant-chat-history__empty-state-view-body-title",children:V("ai_assistant_chat_history_empty_title")}),r.jsx("div",{className:"cometchat-ai-assistant-chat-history__empty-state-view-body-description",children:V("ai_assistant_chat_history_empty_subtitle")})]})]})})(),errorView:(()=>{const e="dark"===Et();return r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__error-state-view",children:[r.jsx("div",{className:"cometchat-ai-assistant-chat-history__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__error-state-view-body",children:[r.jsx("div",{className:"cometchat-ai-assistant-chat-history__error-state-view-body-title",children:V("ai_assistant_chat_history_error_title")}),r.jsx("div",{className:"cometchat-ai-assistant-chat-history__error-state-view-body-description",children:V("ai_assistant_chat_history_error_subtitle")})]})]})})(),state:_,hideSearch:!0,headerView:r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__header-container",children:[r.jsxs("div",{className:"cometchat-ai-assistant-chat-history__header",children:[r.jsx("h3",{className:"cometchat-ai-assistant-chat-history__title",children:V("ai_assistant_chat_history_title")}),r.jsx("button",{className:"cometchat-ai-assistant-chat-history__close",onClick:c,children:r.jsx("span",{className:"cometchat-ai-assistant-chat-history__close-icon"})})]}),!p&&r.jsx("div",{className:"cometchat-ai-assistant-chat-history__header-container-new-chat-container",children:r.jsx(rn,{onClick:()=>{d&&d()},iconURL:Jb,hoverText:V("ai_assistant_chat_new_chat"),text:V("ai_assistant_chat_new_chat")})})]})})})})},Qb=a.memo(({user:e,parentMessageId:n,startNewChat:o,onError:i,setParentMessageId:s,onSendButtonClick:c})=>{const[l,u]=a.useState(!0),[d,p]=a.useState(!1),h=a.useRef(n);return a.useEffect(()=>{h.current=n},[n]),a.useEffect(()=>{const n=Rf.subscribe(p),r=Qf.ccMessageSent.subscribe(n=>{n.status!=t.qpt.success||n.message.getParentMessageId()||n.message.getReceiverId()!=e.getUid()||h.current||s(n.message.getId()),n.status==t.qpt.inprogress||n.status==t.qpt.success?p(!0):p(!1)});return()=>{n?.unsubscribe(),r?.unsubscribe(),p(!1),u(!0),Df()}},[e,s]),r.jsx("div",{className:`cometchat-ai-assistant-chat__message-composer-view ${d&&"cometchat-ai-assistant-chat__message-composer-view--disabled"}`,onKeyDown:e=>{if(d)return e.preventDefault(),e.stopPropagation(),!1},children:r.jsx(vb,{parentMessageId:n||void 0,hideAttachmentButton:!0,disableMentions:!0,disableSoundForMessage:!0,disableTypingEvents:!0,hideEmojiKeyboardButton:!0,hideStickersButton:!0,sendButtonView:r.jsx(Zb,{isButtonDisabled:l}),hideVoiceRecordingButton:!0,placeholderText:V("ai_assistant_chat_composer_placeholder"),onTextChange:e=>{d||(e&&""!==e.trim()?u(!1):u(!0))},onSendButtonClick:c?e=>{u(!0),c(e)}:void 0,user:e,onError:i},`message-composer-${o}`)})}),Xb=a.memo(e=>{const{hideChatHistory:t=!1,hideNewChat:n=!1,user:o,onBackButtonClicked:i,onCloseButtonClicked:s,onSendButtonClick:c,showBackButton:l=!1,showCloseButton:u=!1,headerItemView:d,headerTitleView:p,headerSubtitleView:h,headerLeadingView:m,headerTrailingView:g,headerAuxiliaryButtonView:f,streamingSpeed:_=30,suggestedMessages:b=[],hideSuggestedMessages:v=!1,emptyView:y,loadingView:E,errorView:C,onError:S,emptyChatGreetingView:w,emptyChatIntroMessageView:k,emptyChatImageView:x,aiAssistantTools:T,templates:A,parentMessageId:R,loadLastAgentConversation:I=!1}=e,[O,N]=a.useState(!1),[M,D]=a.useState(!1),[L,P]=a.useState(null),[j,U]=a.useState(I??!1),[F,B]=a.useState(null),G=a.useRef(null),H=b.length>0?b:o.getMetadata()?.suggestedMessages,z=a.useRef(null);a.useEffect(()=>{T&&(e=>{kf=e})(T)},[T]),a.useEffect(()=>{R&&(P(R),B(R),G.current=R)},[R]),a.useEffect(()=>{U(I??!1)},[I]);const Y=a.useCallback(()=>f||r.jsxs("div",{className:"cometchat-ai-assistant-chat__header-auxiliary-view",children:[!n&&r.jsx("div",{className:"cometchat-ai-assistant-chat__header-auxiliary-view-new-chat",children:r.jsx(rn,{hoverText:V("ai_assistant_chat_new_chat"),onClick:q,iconURL:Jb})}),!t&&r.jsx("div",{className:"cometchat-ai-assistant-chat__header-auxiliary-view-chat-history",children:r.jsx(rn,{hoverText:V("ai_assistant_chat_history_title"),onClick:K,iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9166%209.58333L17.2505%2011.25L15.5833%209.58333M17.4542%2010.8333C17.4845%2010.5597%2017.5%2010.2817%2017.5%2010C17.5%205.85786%2014.1421%202.5%2010%202.5C5.85786%202.5%202.5%205.85786%202.5%2010C2.5%2014.1421%205.85786%2017.5%2010%2017.5C12.3561%2017.5%2014.4584%2016.4136%2015.8333%2014.7144M10%205.83333V10L12.5%2011.6667%22%20stroke%3D%22%23A4A7AE%22%20stroke-width%3D%221.66667%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"})}),u&&r.jsx("div",{className:"cometchat-ai-assistant-chat__header-auxiliary-view-close-button",children:r.jsx(rn,{hoverText:V("thread_close_hover"),onClick:s,iconURL:nn})})]}),[n,t,u,f]),q=()=>{N(e=>!e),P(null),B(null),G.current=null,Df(),U(!1)},K=()=>{D(e=>!e)};a.useEffect(()=>((e=>{e!==Tf&&(Tf=e)})(_),()=>z.current?.unsubscribe()),[_]);const W=r.jsx("div",{className:"cometchat-ai-assistant-chat__empty-state",children:r.jsxs("div",{className:"cometchat-ai-assistant-chat__empty-state-content",children:[x||r.jsx("div",{className:"cometchat-ai-assistant-chat__empty-state-icon",children:r.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAcbklEQVR4Ae1db4gcR3av6hlj6Yjt8eWLiVfWOIRcQvB5BTmQiKUdHeFOjg2SwfLlg0Ha2JisTJCsfLFJQFLgcL5Ef0i0OoKN1pCE2DJY+qBYOg5rVnLOJnegzRlDHI7z6CQfhnDxWr6cZHunK+/1qHZ7Z7pnuqeru6u7fwVS93RXV736Vf32vXr1TwoE6xFoNU80xZJoCuU2uzXVkKq+XgrVEEo2hHdVTV0IJSnekCCV6HivpVgUQtI/ClJ0lHKvKEct1pTToXQXRV102p2Zjvce/1mLgLRWsooJ1mqebIgvv2wK8eWk69QeJKIxYSdHETJtmKiBLDDRlZQLSi5dqbm1BVFfs9DuTPfIn7YASH8oAiDwUHjSeemRdenmZNfpTjpufcoGosYtaY/YTsd1luZB6rjomYsPApvDMjQlj7DdGy1XOFNSuS0lxGRo5AK/YFIr6bQd4c6L2to2tHT6lQkCp4Rxa+IEEVZMEcBEWNVKKRurk5VCttn0dpQ6074207Za2IIKBwIbqjhtFlOfdZcS7o6eg8lQ4mVIhhxlTGhyvp1pX91zugxFsqEMIHCCWgBpxwRPqkUpnNMg85j4+T4DgX1gRL31zGMptwvR3Q1NGxW1kHhaMyvxCszsEIyGPAaBh4Djf8Xa1l26uZe0xo6yOqH85c3lnsejhTpUqznkAMMYdJQ6AIFHoARtOwKglF5LKeekWzvW/ugZGodGCEMABA5BholLmvZAVT3IIbBk/pgdX650X7l09dm5zDMvQIYgcF8ltdYd362EPKB4JhSCPQjcMq9B5NVVAgITHrp/K6S7D06p1Q3Eul8g8qoqqTyBoXFXtYfi/ACRvbqqLIG9Pq5UJ2EqF4ezgZJWnMiVIzCcU4E0KPxDasgLsi4fq9rwU2UIzP1c1b15RCm1u/CtFQUIRcAbfqqJQ1Uhci0UiRK92HLf9/Yq94vTQomNJSoWihKMwCR1i3bcd8cj8uefnX03OEp5npZaA/fMZXUEM6fK02BjlYT6x05Nbi2zNi4lgb1hoe6NA6Rx98WqcEQuKQLy4MVrM4fKWLjSERje5TI2UwNlKqk2dgxAY00SW9bNHnGFuoChIWuqxB5BaGadu6Q+3DJx4oA9QiWXpBQamHdtVEvqDfR1kzeISqRQIm1ceA3MHma3614GeStBPTOF7Gnjy5vvnS28j6SwGhiOKjNtufKpSHHUqa2lceNibpNbSALDZK487cwCUGCTunAmNHuZYTKbbb+VT41N6q660Fo3u6NoWBRqJhZ7EGmB/RydFLCmaEBDXusRaJAf5U/X3/mouHL97Lz10t4SsDAE5iEikvn5ogALOQuLQGv9XY80iMTni1AC6/vA3iKEpZs0RFTNzdGL0IjKKCMRg1Y3raVpmHY7t6wmsOesor4JJmaUkSIFKFMBnFvWEhjkLUADr4KIlpPYSi90q3l8UkHzVoEe9pdRe6j5jGYLg3UamMnrdsUFbC5nYWuptkiLjqpvtW2faqsIDPJWmyEFKL11JLaGwCBvAZovRGQErCKxFQQGecGMgiFgDYlzJzB7m3lqJPq8BWvCENcKEufqhdZDRSAv2FBABBqus/QGt+E8Zc9NA2vyYpJGntWPvBMjkPM4cS4E7u3RfOMyyJu4+SABGxDwSLx2Qx7TLnMxodXSDUyPtKHhQQYzCNBkD0Xz9c0kFi+VzAnMq4qw/U28SkJs+xHgxTa3VsxlKmymywlv7QiIJYGZVjEyyxCBjVmvJ86sD8y7HbhK5GJmZFiByAoICEfQaRDXZtpZQJEJgeFxzqIqkYdFCCw6dUlOrZlO2jKl3gfueZyxpjftikT6ViHQ4H3Kue2nLVXqBHbpjCIMF6VdjUjfNgTYUcttP225UnVi8abrQqmDaRcC6QMBSxHYSMecfprmMaep9YG534s5zpY2K4iVJQKp9odTM6F5Rw3Mcc6ynSAvSxHw+sNpyZYKgb39m2l2SlpCI10gUCQEuD+c1iQP4ya0ZzrTMY5FAhiyAoEsEEhjfNi4BvZM5yzQQB5AoGAIuFKdND20ZJTAMJ0L1qIgbrYIeDtcmh1aMmZCw3TOti0gt+IiYNKUNqaBYToXt0FB8mwRoJVLfM6XkWCEwDxhA7OtjNQHEqkAAuyV3nzv7D4TRU1sQmOhgolqQBoVRIAmeKy9P+kuHok1sOoKzHWuYOtDkRMj0FDdm4lN6UQaGI6rxJWIBCqOQFKHViINzEumKo4/ig8EEiFA/eEDSRIYm8Ctdcd3c2c8Seb4FghUHQHeS6s1caI1Lg5jE1gJmegvx7gC4zsgUDYEeIbWuGUai8Ce9sVihXExx3dAYDUCxKXNZNGufhjt11gEhvaNBi5iAYGoCEiyaMeZJx2bwNC+UasE8YBADAR4nvTSr2NP7ohNYGjfGJVS8Kjbdn5NTG76rYKXokjiy71xpY1FYGjfuPAWO/7mb98vpp/7RrELUSzpG3H7wvU45YP2jYNWsePeM3GHeIgIzOE37rxd/Or658UuUEGk574wiToXVdzIGhjaNyqk5YjnN50ff+qBchSqCKWgvnCcceHIBFbK2VWE8kNGMwhM718xnR9+4vfMJIpUIiGgYszOikTgVvMfJ3nGSKTcEanwCLD2ZRNaB773a2T9HNd0EIgzOysSgVW3G9s7lk7RkGoWCDxM3uf+8NC3ev3h/uf4nQ4CrhA7oqQ8cjUSVhxFgbE8cdhhdfb9PxsoEDuxvrPpn+HMGkAmtQeR1guP1sBdt5WaiEjYOgQe+nYzUCYmNo8LI2SGQCPKxI6RBMbQUWYVZkVGD+8Md1jxuDBCdgjQkNL2UbkNJTC7s7HX1SgIy/N+lLOKHVlwZmVX3+SNnhw1pDSUwEoKDB1lV1+55zS9/w9HyjC5EVMrR4JkMMIoZ9ZQAgsMHRmsCvuTmtx070ghdz799ZFxEMEkAmrXsFVKoQTevG52B8xnkxVhd1rsoPKP/YZJy84smNFh6KTyvCGWbobufBNKYNpsa2QHOhVxkWguCMRxUGGBQ7ZVNKwrG0pgJdxIA8nZFgW5pYEAa169cCFK+qyBWRMjZIOAUmpHmBkdSGA2n3E4dzaVY0Mu45jEWOCQac2FmtGBBIb5nGnl5J6Zf+FCVGGwwCEqUmbihZnRgQSG99kM6EVIhbVvFOdVf1lGjRn3x8fvZAiwGR2UwgCBMXkjCKbyPgtauBC1tDufwpBSVKwMxGsETeoYILAL55UBrIuRBGvRbUOmTo4qBZxZoxAy+5642epPcYDAUjgP9kfC73IiEGXm1bCSsycazqxhCJl9R9yc6k9xFYFbzSMNLNzvh6icv5NqX40Kz8y6Z93K4n/9HFfzCHgL/ZsnG/6UVxG427295X+J+/IikFT7amRYC7/wd9/UP3FNG4HujZY/i1UElgrb5vjBKes9z6RK0vftx4X7wpid1Y9KOr9dJVv+lFcRWAg5YGP7I+O++Agw0XZHWHUUt6Sc5uPwSseFLXZ8KdQqji5vqcP9X3fp9k9ip4gPCoNAWuT1AzB3+Mfi5JEf+R/h3jACTn3t3e3O9CInu7Kx+9KaSZrAYTgrJGcDAuyweuHwNzNZRcSamJ1aTOKPr35mQ/HLJ0NvdVKbC7ZsQncdRQRGKBMC7GBirfvy+Z2ZkFdjx0sTX/3hk94fDXioNSrmrl21wtVlDewoZ4pWIJnLBSnlhgA7lXiWVJwVRmkIy0Tmf+dOfSDePPVfYuGdX6SRTeXSlNJzZB3lgi8TWCm3WTkkSlRg1rZM2seffsC6pX6ayB9f+0ycPPwjsfDuL2BeJ2l7Ui1PtvKcWHBgJUEz32/1EA5fixTePv+huET/WDsjxEdAO7J6BKbdJ12hLsRPBl/kgQCTdcPGe63UtnHxYK3MpjWcXvGQc1R9Q/ujZxY8E5odWBLd33gIZhybTeRtT/yu2Pyt387UIZV2MXtTOnt9ZSYy95XfPt/BCRAjgO86X7LTuUdg6aomTeIY8Qle54EAa9vNdC7Rtie+Zl3f1jQeXFbdFYDjazi6UjneqJGngXkFEk2UHv4F3maGgHZIMWlZQ1UxwPE1stabHMMjMJG3MTI6IqSOAGsfHrfVWij1DAuQgZ6EwqLC8eWrsFueaD2Rw1PHvte4zQEBbqx8CiBCMAJsmbDTC4EQUKLJOEgcH8ow2BWYyJ423v+NyprQukZ++v4vxaXv/0y8/tJ7+OOmQbl1deryfsn77GAIqQ8Zi34ykbk/OOzUQIvENSIKWyFvvvaBePv7H2L21hBEaffYrZL3gJZKvDEkHl5ZgACbj3x2LxO5rH1kHkZibXvutf+Gto3Q5pRU03UaPWrCAR0BrZyjsFbioRX+xyY2r/rZQIeR8X2RA5fr1Ms/8RxUbC4jxEDAlY06jQGTBxpjwDFgyz0qO3L+dn9v4hyb13yuUd4LF+KComdf8RVhPARoUUOTNLCEBh4PPyu+8mtl2x1fcEiZbTJSirvk1MSJC9iJ0iyweadmk+OLTWTWsmwmQ9uabhnyDAhsGlOL0tN95Tw82Lpvi+Gf9BqEFLItt0zMXqYsMJEjPZxzTzlrIvMywX849O9Y85t2zUvRqTXveOR58mFhKmXaYOeY/q+uf+Gt8GFfJXuu0wy8LPDwCxdpGOiLNLNB2oyAFIvLO3IAkfIjwDtGcuD51mmEvyet+/pLP0kjaaQZgkBt/V2PHA15h8clRMBzJKWgiVnz/stx7o0hZIhAQy9myDBPZJU3AqyJTXqE36TJJVq75122quUPAletxm+V98X9bxmbrjiHjdxza0UgcG7Q55sxz+Y6ZaC/ytoXG7jnV5cgcH7Y557z6y+/l1gGaN/EECZKAAROBF+xP+bJFjxmO26A9h0XOXPfgcDmsCxkSq/TFMdxwznaQRIhXwRA4Hzxzz139kZ/fO16bDn0fs6xP8QHRhFwaDF/x2iKSKxwCPDuF3EDH5GCkDMCNJUSGjijOvidP/jNjHKKn804ziw+3wghfwRA4Izq4LsvPWztVjh6yV9UKNjxhaGjqGilF4+s50XaF0t20ssCKTMCvGsGrwhKaw6yCZR5KmTUAOdVVKTSjic9Ai+mnU3V05+m7WE58EJ7WzekY2cWa+JRgZ1XfHYRgh0IOHSo96d2iFJOKbT21aWzWQtHmZl1GXtY6arM/+o5sZSCBk6xKrT21VlYrYUjOKYw80rXZP5XpdwrjnLQB06rKvq1r87HVi3MZvSwVUremPFVHG2i6zHvq1LUB651oYHTqoh+7avzsVkLXzr/My3mwJXP7kWwB4Gaw+PA0unYI1J5JAnTvrqEtmrhc6eCT0VgBxecV7r2LLmyBqYDRjuWiFMqMcK0ry6krVqYiRo0M+sSeZ6jeKl1+XDNAAHirtPuzHQyyKpSWYzSvhoMW7UwHyrWHzD2249I/r+Zu95MLMyHNlsZo7Svzs1WLew5q3wLHLBwQdeYPVfa1myBpelNpXQc74c94hVXEtaqcQ4cs1UL+81oLFywsT1Kb/jXI7BS3Ss2ilg0mfQG6nHkZi38+FNfj/NJJnH9CxywcCETyGNlooT4T/7AIzBNx4IGjgXfYGQ+v/fYqe2DLyI8maajQm1brcQOKzalsXAhQgXmEEUp1eFseyb0bbeBwAkr4YXDW2OZzv7smPy8WumedXad9csLHOC88teUPfc1KT3O9ggs/q9jj2jFksTTvK9tT3w+L5vfxygdm0jMGhhjv5a2x/qaFQK3O88twhMdv6K4//ry+Z3GVhgxiV/94ZNW9onjo4Mv0kKAPdDtzvQip39LA/MdPNFRAWeiscnsaUy6Nx3+4uAfiVffeZK0etN00kivBAgoIZedzsuHm7nSnSctvKME5UutCGwu7ySP8W5yOqUd+I8E94vZjOW+KF8RgAAjQA6stkZimcA1Vy64gpzTCAMIaOI+/vQDgu+zDGymH9u0HUTOEnTL89IOLBaTzOleaDWPNNyl2z/Rv3EVHllZ4+ZB3DD8oZHDkKnOc6e+9m7dB14mMBd/y8Qsnw85WR0ogkuap8YNlmjwKYg8iEkVnrADa/7ang26rMsmdO+BmielXFkCF4G4uuJgWmskqnUlBxZxdCWseKHpmZKyvfKqenfPk2eZHVRZ93OTIM1E/u5L24wNZSWRBd+mjwCdxND257JKA9dqn7epH+x/X6n7v376nEcEXmDAxLA98HTHU3S20esvvYe1urZXlin5amvb/qRW9YH5xdTEiQtKqJY/UhXvmcC2EhnErWKLZI+zbM9fm9nqL/0qDcwvaJtZ7ge3/JGqeM9Oor3vnLFKI4O4VWyJK2XWK5BWnviGkfTD1sSJFo0HX9C/ce0hkKdGBnHRChkB2sBua/vaTNuPxoAJzS+3rDv+CXm0Gv6IuO8hkCWRQVy0umUEaBP3i1f33L/8+9bNgAndey7P0HVXf2T8pkG4W6Y173vFW+fwlEfTAcQ1jWjx0+P+b1ApVg0j6QiOknP6HtdgBM6d+kB8Z9M/eV7g4BjjPf3p+78UT207JeYO/xie5fEgLOVXUihWqgOhNvCEHjS/+seLStX+nLrIa4Le49kKAv/Rvup5EjZsunfl4Zh3vHH63zz7A/G///PrMVPAZyVFYJFmX00HlS2QwJ3F8zfX3/Xo79MHlZ2VFQRW2DM2q3lWeRIScxo8Dv3F592wbPC8oghIKf/1yvWzgRo40IRmnGBGx2stbPLypIpxAm/b+ldEXgQgEIRAmPnMcUMJLOo3F4TEuUlBgIY9YxIzGeOGvU+cQX83LmhViU/e5/bVPafDihtKYN5mh2Z1vBL2IZ4PIsDe4xf3vzX4YsiTN8kZ9jFO/BuCULVfhXmfNSqhBOYIjnBCma8TwHU1AtyX9frEqx+H/sJ5u6HQ4AUhQLvkDFWiQwnMsz7IN7MAJOMhwFvgRAnQvlFQqnAcNp/7Zl71ozGUwByZFjYEer/6E8LvFQSiamFo3xXMcDeIAK39PTT4dPWTkQR26l8chTNrNWhRfo3SwtC+UVCsdpxaTbRHITCSwHBmjYIw+P0oLQztG4wbnvYQoLHfuShH/44kMCcHZ9Z4zSpMC0P7jodnlb6Sbu1YlPJGInDPmRU8mTpKJlWNE6aFoX2r2iKilZuHjtofPRPJeRyJwJwteaNHdqijiVetWP1aGNq3WvU/TmldOXzoyJ9mZAJ7Wpjc2v6PcT8agX4tDO07GrNKxyCOXbo6MxcVg8gE5gRJtUMLR0XWF09rYWhfHyi4DUQgytCR/0OyjOMF7NYRDy8dmw9Ce/Ev38K0SQ0IroMIkPYN2nVjMOLKk1ga2PtMiUjesZUscMcI8GojzHlGWxiGQFzty2nFJjBP7JDoCw+rh8B3vNABAQiEIhCz76vTiU1g7zBw9IU1frgCASMIjKN9OePYfWAt7dS62Q+VEk39G1cgAATGRGCMvq/OKbYG1h9KJaf1Pa5AAAiMj8C42pdzHFsD88c4hoVRQAAC4yNABFx1XGjclMbWwJwRZX4oboaIDwSAwAoCsi4fW/kV/y4Rgb3FxjGmfcUXD18AgfIiEHXF0TAEEhGYE3Zqn+/DeuFhEOMdEAhAgBxXspbcgk1MYB5WooPBYUoH1BEeAYEwBJQrjkVZ7xv2vX5O3VgzYWpi9jIdfzhpJjWkAgRKjECCYaN+VBJrYJ0gLXR4Tt/jCgSAQDgCTk1uDX8b740xAvd2z1OYJx0Pf8SuHALqkAnTWcNmjMCcIM2TPoh50hpaXIFAHwJsOl979mDf00Q/jRLYmyeNGVqJKgQflxcBk6azRskogTlRmNIaWlyBgB8Bs6azTtmYF1onqK/wSmskcK08Aga9zv1YGtfAOgNvihhON9Rw4FpVBIgDaZjOGs7UCMyeNkzw0DDjWlUElCuNep37caz1PzD5++efnn13/Z1/cjcte9hoMl2kBQSKgYA8dumjPQfTlDU1DayF9oaWcMKhhgPXqiBA/V6nvuZg2sVNncDe0BIvmUJ/OO26RPq2IMDkpdlW7c70YtoipU5gLgD3hx3lJFr3mDYQSB8ImELAEbXnTM62GiZXqn1gf8ad62c71B+mYSvZ8j/HPRAoFwLq0Py1me9lVabMCMwFunL939pwamVVtcgnewTksYvX9jyfZb6pTeQYVgjspTUMHbwrIgJEpER7W41b5kz6wP3CyfrNx7DooR8V/C4sAuS0kvW1W/OQPxcCe55p8tKBxHlUOfI0ikCGHucguXMxobUgreaJpuqqC9ggXiOCa6EQWCbvTCcvuXMlMBe61Tw+6XbFBaFkIy8QkC8QiI2AN8fZ2ZDVcFGYfLmY0H5h2p1nF5ya2IqJHn5UcG81Ah55BU3UyE/zanxy18BaEGhijQSuViOwTN5nF2yQ0xoCMxggsQ1NAjKEImAZeVlOqwjMAoHEjAKCdQhYSF7GKPc+cH9F9frEzgYMMfUjg9+5IeB5m7nPa4fZ7MfBOg2shcMQk0YC11wRsGCoaFj5rSUwCw0SD6s6vEsdAcvJy+W3zoT2Vwq76WXt8w30V8YKj59fNtyXGwE6aaTt1NbmPs47CmWrNbBf+C0Tx4+Sz22v/xnugUA6CPCqopl96aRtNtVMlxMmEZ2WIp7DeuIkCOLbaAioQ1kvCYwmV3CswmhgLX5r3ewOOgXxCOZPa0RwNYIADxPRrjG9gwmMpJhJIoUjMKMC51YmbaMymbCPhfcxt2FqZFzQrXZihRVGO7eEwGmIYRjheVQE5DFey1tE8nIJC6mB/VWz+b7ZfVKpA1jN5EcF9yMRIJOZN12nfZvJOVrcUHgCM/QwqYvbAPOQvMgmcz9epSCwLhQNNR0ko+KA/o0rEBhEoDhDRIOyDz4pFYG5eNDGg5WMJ4QAz6qis6uL5mUeVXelI7AuMLSxRgJXYu8xPuYki5MSska7tARmIKGNs25OduVHjXuBpkQ+Vzat60e51ATWBWVPtaPEXkz+0IiU/FoSD3OUWirMVMoohQmLw8ec3v/VR88QgemoUzEZFg/Pi4+AlHKOFiE8fPHqM+3il2Z0CSqhgf0weGb1knqDpmOCyH5gCn7Pq4eoMR8qs7kcVEWVI7AGobXuxG4l1AGY1RqRgl5L6l2OWhuVJbAGCETWSBTsSsRVgmZSXZ2ZK5jkRsWtPIE1miCyRsLyKzmohBI0LPSVo2UcFoqLPgjchxiI3AeILT+hcQNrAgQOhIXGkLmPrMQu6ie3QqLgcQYIVNU5FRVaEHgEUr19quU+Mtt2jYiK16YQ8Mxk5xVa63q6al7luBCCwBER4+En0RUteK4jAjZGNGqMC4TvGfRvo4MHAkfHajlma+JEy5VqN4E3hWGoZVjGu4G2HQ+3W1+BwIng477y7A5XiB20O8h2bCoQEUwirRTOaanEK6K+ZgHe5Ii4BUQDgQNAGfeRJjM0cwCCIG0AKMkfgcDJMQxMwTOzSTMTwA9W1ZPNHmQl3HlHOG04owKbSeKHIHBiCEcn0GqebIjujZarZEsKNVXWedjUmMgJJecdqdqitrYN03h020gaAwROiuAY33uEXro52XXUJC1znKIhqmbRSE39145wxIIrxXzNlQvoy47REAx8AgIbANFEEn5SS1c2qWIeJMdYI29ia6IqJa84yl0Qt/E5VV/pQLuaqPXkaYDAyTFMPQVvDHpJNIVUja4UTemqhpTOetbcvcxVg+4bfK/ofe9Z8P8eIfUrKTuU5iJtObNIw2GfKkd1al36LZ2OqAsi6UxHR8XVTgT+HyFhERoI3fNLAAAAAElFTkSuQmCC",alt:"AI Assistant"})}),w||r.jsx("div",{className:"cometchat-ai-assistant-chat__empty-state-greeting-message",children:o.getMetadata()?.greetingMessage??o.getName()}),k||r.jsx("div",{className:"cometchat-ai-assistant-chat__empty-state-intro-message",children:o.getMetadata()?.introductoryMessage??V("ai_assistant_chat_intro_message")}),!v&&H&&H.length>0&&r.jsx("div",{className:"cometchat-ai-assistant-chat__empty-state-suggested-messages",children:H.map((e,t)=>r.jsxs("button",{className:"cometchat-ai-assistant-chat__suggested-message-pill",onClick:()=>{yn.ccComposeMessage.next(e)},children:[e,r.jsx("span",{className:"cometchat-ai-assistant-chat__suggested-message-icon"})]},t))})]})});return r.jsx("div",{className:"cometchat",style:{height:"100%",width:"100%",overflow:"hidden"},children:r.jsxs("div",{className:"cometchat-ai-assistant-chat__wrapper",children:[r.jsxs("div",{className:"cometchat-ai-assistant-chat",children:[r.jsx(xb,{showBackButton:l,onBack:i,auxiliaryButtonView:Y(),hideVideoCallButton:!0,hideVoiceCallButton:!0,titleView:p,subtitleView:h,leadingView:m,trailingView:g,itemView:d,user:o,onError:S},o.getUid()),r.jsx(Fb,{user:o,emptyView:y||W,loadingView:E,errorView:C,onError:S,isAgentChat:!0,hideReplyOption:!0,hideCopyMessageOption:!0,hideDateSeparator:!0,hideDeleteMessageOption:!0,hideEditMessageOption:!0,hideGroupActionMessages:!0,hideMessageInfoOption:!0,hideMessagePrivatelyOption:!0,hideReactionOption:!0,hideReplyInThreadOption:!0,hideStickyDate:!0,hideTranslateMessageOption:!0,hideFlagMessageOption:!0,disableSoundForMessages:!0,textFormatters:[],parentMessageId:L??void 0,templates:A,loadLastAgentConversation:j},`message-list-${O}-${L??"none"}-${j}`),r.jsx(Qb,{user:o,parentMessageId:F,startNewChat:O,onError:S,setParentMessageId:B,onSendButtonClick:c})]}),r.jsx("div",{className:"cometchat-ai-assistant-chat__sidebar "+(M?"cometchat-ai-assistant-chat__sidebar--open":""),children:r.jsx("div",{className:"cometchat-ai-assistant-chat__sidebar-content",children:r.jsx($b,{hideNewChat:n,onNewChatClicked:function(e){const t=Number(G.current),n=Number(e);n?t&&n===t&&q():(q(),D(!1))},onMessageClicked:e=>{P(e.getId()),B(e.getId()),G.current=e.getId(),D(!1),Df()},onClose:()=>{D(!1)},onEmpty:()=>{U(!1)},user:o,loadLastAgentConversation:void 0===R&&j})})}),M&&r.jsx("div",{className:"cometchat-ai-assistant-chat__sidebar-overlay",onClick:()=>D(!1)})]})})});t.PQ0=Xb,t.u2i=class{constructor(e){this.actionsMap=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}getAction(e){return this.actionsMap[e]}getActions(){return{...this.actionsMap}}},t.Qj=W,t.jPA=rn,t.Kvt=e_,t.Qmr=e=>{const{itemView:n,subtitleView:i,leadingView:s,titleView:c,trailingView:l,errorView:d,emptyView:p,loadingView:h,activeCall:m,callLogRequestBuilder:g,onItemClick:f,onCallButtonClicked:_,onError:b,callInitiatedDateTimeFormat:v,showScrollbar:y}={...L_,...e},E=a.useRef(V("call_logs_title")),[C,S]=a.useState([]),[w,k]=a.useState(null),[x,T]=a.useState(t.DGz.loading),[A,R]=a.useState(!1),[I,O]=a.useState(void 0),[N,M]=a.useState(void 0),[D,L]=a.useState(null),[P,j]=a.useState(!1),U="callLogsScreen_"+(new Date).getTime(),F=a.useRef(null),B=a.useRef(void 0);B.current=I;const H=u(b),z=a.useCallback(()=>{try{if(g)return g.build();{const e=w.getAuthToken();return(new zf.CallLogRequestBuilder).setLimit(30).setCallCategory("call").setAuthToken(e).build()}}catch(e){H(e,"setCallLogRequestBuilder")}},[g,w,H]),Y=a.useCallback(async()=>{try{return await(F?.current?.fetchNext())}catch(e){throw H(e,"fetchNextCallList"),e}},[F,H]),q=a.useCallback(async()=>{try{const e=await Y();e&&e.length?(S(t=>[...t,...e]),T(t.DGz.loaded)):0===C.length&&T(t.DGz.empty)}catch(e){0===C.length&&T(t.DGz.error),H(e,"getCallList")}},[Y,C,S,T,H]),W=a.useCallback(()=>{o.CometChat.rejectCall(N?.getSessionId(),pt.calls.cancelled).then(()=>{M(void 0),R(!1),Qf.ccMessageSent.next({message:N,status:t.qpt.success})}).catch(e=>{R(!1),H(e,"cancelOutgoingCall")})},[N,M,R,H]),Z=a.useCallback((e,n)=>{const r=pt.MessageReceiverType.user,a=n;let i="";i=e===o.CometChat.CALL_TYPE.VIDEO?o.CometChat.CALL_TYPE.VIDEO:o.CometChat.CALL_TYPE.AUDIO;const s=new o.CometChat.Call(a,i,r);o.CometChat.initiateCall(s).then(e=>{O(e),M(e),R(!0),Qf.ccMessageSent.next({message:e,status:t.qpt.inprogress})}).catch(e=>{H(e,"initiateCall")})},[M,R,H,O]),$=a.useCallback(e=>{try{f&&f(e)}catch(e){H(e,"handleItemClick")}},[f,H]),Q=a.useCallback(e=>{try{if(_)_(e);else{const t=D_(e,w);t.uid&&Z(e?.type,t.uid)}}catch(e){H(e,"handleInfoClick")}},[_,H,w,Z]),X=a.useCallback(e=>{try{return!(!m||m.getSessionID()!==e.getSessionID())}catch(e){return H(e,"getActiveCall"),!1}},[m,H]),ee=a.useCallback(e=>{try{R(!1),M(e),L(e?.getSessionId()),j(!0)}catch(e){H(e,"openOngoingCallScreen")}},[R,M,L,j]),te=a.useCallback(()=>{try{o.CometChat.addCallListener(U,new o.CometChat.CallListener({onOutgoingCallRejected:e=>{B.current&&e.getSessionId()==B.current.getSessionId()&&(M(void 0),R(!1),j(!1),O(void 0))},onOutgoingCallAccepted:e=>{B.current&&e.getSessionId()==B.current.getSessionId()&&(M(void 0),ee(e),R(!1),O(void 0))}}))}catch(e){H(e,"attachListeners")}},[U,ee,H]),ne=a.useCallback(()=>{j(!1),L(null),M(void 0)},[j,L,M]),re=a.useCallback(()=>{try{const e=Yf.ccCallEnded.subscribe(()=>{ne()});return()=>{try{e?.unsubscribe()}catch(e){H(e,"subscribeToEvents")}}}catch(e){H(e,"subscribeToEvents")}},[ne,H]),ae=a.useCallback(()=>{try{o.CometChat.removeCallListener(U)}catch(e){H(e,"detachListeners")}},[U,H]),oe=a.useCallback(e=>{try{const t=M_(e,w),n=N_(e,w);if(i)return r.jsx(r.Fragment,{children:i(e)});const a=n?"cometchat-call-logs__list-item-subtitle-icon-outgoing-call":t?"cometchat-call-logs__list-item-subtitle-icon-missed-call":"cometchat-call-logs__list-item-subtitle-icon-incoming-call";return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"cometchat-call-logs__list-item-subtitle",children:[r.jsx("div",{className:`cometchat-call-logs__list-item-subtitle-icon ${a}`}),r.jsxs("div",{className:"cometchat-call-logs__list-item-subtitle-text",children:[" ",r.jsx(rr,{timestamp:e.initiatedAt,calendarObject:{yesterday:"DD MMM, hh:mm A",otherDays:"DD MMM, hh:mm A",today:"DD MMM, hh:mm A",...kt(G.calendarObject),...kt(v)}})]})]})})}catch(e){return H(e,"getListItemSubtitleView"),r.jsx(r.Fragment,{})}},[i,w]),ie=a.useCallback(e=>{try{const t=e.type;return l?r.jsx(r.Fragment,{children:l(e)}):r.jsx("div",{className:"cometchat-call-logs__list-item-trailing-view\n          "+(t===o.CometChat.CALL_TYPE.VIDEO?"cometchat-call-logs__list-item-trailing-view-video":"cometchat-call-logs__list-item-trailing-view-audio"),onClick:t=>{t.stopPropagation&&t.stopPropagation(),Q?.(e)}})}catch(e){return H(e,"getListItemTailView"),r.jsx(r.Fragment,{})}},[l,_,Q]),se=a.useMemo(()=>function(e,t){try{const a=m?.getSessionID()===e?.getSessionID();return n?n(e):r.jsx("div",{className:"cometchat-call-logs__list-item "+(a?"cometchat-call-logs__list-item-active":""),children:r.jsx(J,{title:D_(e,w)?.getName(),avatarURL:D_(e,w)?.avatar||D_(e,w)?.icon,avatarName:D_(e,w)?.getName(),onListItemClicked:t=>f&&f?.(e),subtitleView:oe(e),trailingView:ie(e),titleView:c?.(e),leadingView:s?.(e)})},String(t))}catch(e){H(e,"getListItem")}},[n,w,X,oe,ie,$]);return function(e,t,n,r,o,i,s,c,l){a.useEffect(()=>{t(dt.getLoggedInUser())},[t,l]),a.useEffect(()=>{try{return e&&(n.current=r(),o?.(),i?.(),s?.()),()=>{c?.()}}catch(e){l(e,"useEffect")}},[e])}(w,k,F,z,q,te,re,ae,H),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsxs("div",{className:"cometchat-call-logs "+(y?"":"cometchat-call-logs-hide-scrollbar"),children:[A?r.jsx("div",{className:"cometchat-call-logs__outgoing-call",children:r.jsx(Zf,{call:N,onCallCanceled:W})}):null,P?r.jsx("div",{className:"cometchat-call-logs__ongoing-call",children:r.jsx(Kf,{sessionID:D,callWorkflow:t.mKX.defaultCalling,callSettingsBuilder:function(){let e=N?.getType()===pt.MessageTypes.audio,t=(new zf.CallSettingsBuilder).enableDefaultLayout(!0).setIsAudioOnlyCall(e);const n=D;return t.setCallListener(new zf.OngoingCallListener({onCallEnded:()=>{zf.endSession(),o.CometChat.clearActiveCall(),Yf.ccCallEnded.next(null),ne()},onCallEndButtonPressed:()=>{o.CometChat.endCall(n).then(e=>{zf.endSession(),Yf.ccCallEnded.next(e),ne()}).catch(e=>{H(e,"getCallBuilder")})},onError:e=>{H(e,"getCallBuilder")}})),t}()})}):null,r.jsx(K,{showScrollbar:y,title:E.current,hideSearch:!0,list:C,onScrolledToBottom:q,listItemKey:"getSessionID",itemView:se,emptyView:(()=>{try{const e="dark"==Et();return p||r.jsxs("div",{className:"cometchat-call-logs__empty-state-view",children:[r.jsx("div",{className:"cometchat-call-logs__empty-state-view-icon",children:r.jsx("img",{src:e?"data:image/svg+xml,%3Csvg%20width%3D%22220%22%20height%3D%22140%22%20viewBox%3D%220%200%20220%20140%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3036_742412%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2260%22%20y%3D%2220%22%20width%3D%22100%22%20height%3D%22100%22%3E%3Crect%20x%3D%2260%22%20y%3D%2220%22%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3036_742412%29%22%3E%3Cpath%20d%3D%22M141.001%20105.417C133.149%20105.417%20125.26%20103.592%20117.335%2099.9402C109.411%2096.2888%20102.123%2091.1382%2095.4726%2084.4882C88.849%2077.8375%2083.7115%2070.5562%2080.0601%2062.6444C76.4087%2054.7333%2074.583%2046.8517%2074.583%2038.9996C74.583%2037.7496%2074.9997%2036.701%2075.833%2035.8538C76.6663%2035.0072%2077.708%2034.584%2078.958%2034.584H92.5476C93.5997%2034.584%2094.5278%2034.9274%2095.332%2035.6142C96.1361%2036.3003%2096.6476%2037.1482%2096.8663%2038.1579L99.2549%2050.4173C99.4202%2051.5548%2099.3854%2052.5323%2099.1507%2053.3496C98.9153%2054.167%2098.4931%2054.8534%2097.8841%2055.409L88.2611%2064.7767C89.8097%2067.6128%2091.5792%2070.2958%2093.5695%2072.8257C95.559%2075.3548%2097.7132%2077.7704%20100.032%2080.0725C102.318%2082.3593%20104.749%2084.4829%20107.324%2086.4434C109.899%2088.4038%20112.679%2090.2281%20115.665%2091.9163L125.015%2082.485C125.667%2081.8066%20126.457%2081.3309%20127.384%2081.0579C128.31%2080.7857%20129.273%2080.7191%20130.273%2080.8579L141.842%2083.2142C142.894%2083.492%20143.753%2084.0288%20144.418%2084.8246C145.084%2085.6204%20145.416%2086.5232%20145.416%2087.5329V101.042C145.416%20102.292%20144.993%20103.334%20144.147%20104.167C143.299%20105.001%20142.251%20105.417%20141.001%20105.417Z%22%20fill%3D%22%23383838%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3Csvg%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_3036_742413%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%22%20height%3D%22100%22%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_3036_742413%29%22%3E%3Cpath%20d%3D%22M81.0011%2085.4173C73.149%2085.4173%2065.2605%2083.5916%2057.3355%2079.9402C49.4111%2076.2888%2042.1237%2071.1382%2035.473%2064.4882C28.8493%2057.8375%2023.7118%2050.5562%2020.0605%2042.6444C16.4091%2034.7333%2014.5834%2026.8517%2014.5834%2018.9996C14.5834%2017.7496%2015%2016.701%2015.8334%2015.8538C16.6667%2015.0072%2017.7084%2014.584%2018.9584%2014.584H32.548C33.6%2014.584%2034.5282%2014.9274%2035.3323%2015.6142C36.1365%2016.3003%2036.648%2017.1482%2036.8667%2018.1579L39.2552%2030.4173C39.4205%2031.5548%2039.3858%2032.5323%2039.1511%2033.3496C38.9157%2034.167%2038.4934%2034.8534%2037.8844%2035.409L28.2615%2044.7767C29.8101%2047.6128%2031.5796%2050.2958%2033.5698%2052.8257C35.5594%2055.3548%2037.7136%2057.7704%2040.0323%2060.0725C42.3184%2062.3593%2044.749%2064.4829%2047.324%2066.4434C49.899%2068.4038%2052.6796%2070.2281%2055.6657%2071.9163L65.0157%2062.485C65.6678%2061.8066%2066.4573%2061.3309%2067.3844%2061.0579C68.3108%2060.7857%2069.2737%2060.7191%2070.273%2060.8579L81.8427%2063.2142C82.8948%2063.492%2083.7535%2064.0288%2084.4188%2064.8246C85.0841%2065.6204%2085.4167%2066.5232%2085.4167%2067.5329V81.0423C85.4167%2082.2923%2084.9934%2083.334%2084.1469%2084.1673C83.2997%2085.0007%2082.2511%2085.4173%2081.0011%2085.4173Z%22%20fill%3D%22%23E8E8E8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",alt:""})}),r.jsxs("div",{className:"cometchat-call-logs__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-call-logs__empty-state-view-body-title",children:V("call_logs_empty_title")}),r.jsx("div",{className:"cometchat-call-logs__empty-state-view-body-description",children:V("call_logs_empty_subtitle")})]})]})}catch(e){H(e,"getEmptyView")}})(),errorView:(()=>{try{const e="dark"==Et();return d||r.jsxs("div",{className:"cometchat-call-logs__error-state-view",children:[r.jsx("div",{className:"cometchat-call-logs__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-call-logs__error-state-view-body",children:[r.jsx("div",{className:"cometchat-call-logs__error-state-view-body-title",children:V("call_logs_error_title")}),r.jsx("div",{className:"cometchat-call-logs__error-state-view-body-description",children:V("call_logs_error_subtitle")})]})]})}catch(e){H(e,"getErrorView")}})(),loadingView:(()=>{try{return h||r.jsx("div",{className:"cometchat-call-logs__shimmer",children:[...Array(15)].map((e,t)=>r.jsxs("div",{className:"cometchat-call-logs__shimmer-item",children:[r.jsx("div",{className:"cometchat-call-logs__shimmer-item-avatar"}),r.jsxs("div",{className:"cometchat-call-logs__shimmer-item-body",children:[r.jsxs("div",{className:"cometchat-call-logs__shimmer-item-body-title-wrapper",children:[r.jsx("div",{className:"cometchat-call-logs__shimmer-item-body-title"}),r.jsx("div",{className:"cometchat-call-logs__shimmer-item-body-subtitle"})]}),r.jsx("div",{className:"cometchat-call-logs__shimmer-item-body-tail"})]})]},t))})}catch(e){H(e,"getLoadingView")}})(),state:x,showSectionHeader:!1})]})})},t.fWo=function(e){const{user:n,group:s,parentMessageId:c=null,initialComposerText:d="",placeholderText:p=V("message_composer_placeholder"),enterKeyBehavior:h=t.C5S.SendMessage,disableTypingEvents:m=!1,disableMentions:g=!1,disableMentionAll:f=!1,hideImageAttachmentOption:_=!1,hideVideoAttachmentOption:b=!1,hideAudioAttachmentOption:v=!1,hideFileAttachmentOption:y=!1,hidePollsOption:E=!1,hideCollaborativeDocumentOption:C=!1,hideCollaborativeWhiteboardOption:S=!1,hideAttachmentButton:w=!1,hideVoiceRecordingButton:k=!1,hideEmojiKeyboardButton:x=!1,hideStickersButton:T=!1,hideSendButton:A=!1,attachmentOptions:R,textFormatters:I=[],disableSoundForMessage:O=!1,customSoundForMessage:N,onTextChange:M,onError:D,onSendButtonClick:L,sendButtonView:P,auxiliaryButtonView:j,headerView:U=null,showScrollbar:F=!1,mentionAllLabel:B="all",mentionsUsersRequestBuilder:G,mentionsGroupMembersRequestBuilder:H,enableRichTextEditor:z=!0,showToolbarOnSelection:q=!1,hideRichTextFormattingOptions:K=!1}=e,[W,J]=a.useReducer(Eb,{text:d,addToMsgInputText:d,textMessageToEdit:null,messageToReply:null,contentToDisplay:"none",loggedInUser:null,showPoll:!1,showMentionsCountWarning:!1,showValidationError:!1}),Z=a.useRef(null),$=a.useRef(!1),Q=a.useRef(null),X=a.useRef(""),ee=a.useRef(null),te=a.useRef(null),ne=a.useRef(null),re=a.useRef(new Map),ae=a.useRef(null),oe=a.useRef(null),ie=u(D),se=l(n),ce=l(s),le=l(c),ue=l(null),de=l(L);a.useState(null);const[pe,he]=a.useState(I),[me,ge]=a.useState(""),fe=a.useRef(""),_e=a.useRef(""),be=a.useRef(void 0),ve=a.useRef(void 0),[ye,Ee]=a.useState(!1),[Ce,Se]=a.useState(!1),[we,ke]=a.useState(!1),xe=a.useRef(null),[Te,Ae]=a.useState(!1),[Re,Ie]=a.useState(!1),[Oe,Ne]=a.useState(0),[Me,De]=a.useState(!1),[Le,Pe]=a.useState(0),je=a.useRef(null),Ue=a.useRef(null),Fe=a.useRef(null),Be=a.useRef(null),Ge=a.useRef(null),Ve=a.useRef(null),He=a.useRef(null),ze=a.useRef(null),Ye=a.useRef(null),qe=a.useRef(null),Ke=a.useRef([]),We=a.useRef(null),Je=a.useRef(null),Ze=a.useRef([]),$e=a.useRef([]),Qe=a.useRef(0),Xe=a.useRef(Gf.getDataSource().getMentionsTextFormatter({})),[et,tt]=a.useState(0),[nt,rt]=a.useState(),[at,ot]=a.useState(void 0),[it,st]=a.useState(void 0),ct=a.useRef(null),lt=a.useRef(null),ut=a.useRef(null),mt=a.useRef(null),gt="composer_"+Date.now(),ft=l(O),_t=l(N),vt=Y(),yt=()=>vt?.iframeWindow||window,Et=()=>vt?.iframeDocument||document,{isFixedToolbarVisible:St,isFloatingToolbarVisible:kt,setIsFloatingToolbarVisible:xt,floatingToolbarPosition:At,activeFormats:Rt,setActiveFormats:It,showLinkInput:Ot,showLinkPopover:Nt,linkPopoverData:Mt,isLinkEditMode:Dt,linkEditData:Pt,linkDialogSelectedText:Ut,richTextFormatter:Bt,handleLinkClick:Gt,handleLinkSubmit:Vt,handleLinkCancel:Ht,handleInputClick:zt,handleLinkPopoverEdit:Yt,handleLinkPopoverRemove:qt,handleLinkPopoverClose:Kt,handleFormatApplied:Wt,handleFormattingKeyDown:Jt,saveMarkdownUndoState:Zt,handleMarkdownUndo:$t}=fb({enableRichTextEditor:z,hideRichTextFormattingOptions:K,showToolbarOnSelection:q,getCurrentDocument:Et,getCurrentWindow:yt,getCurrentInput:wn,composerContainerClass:"cometchat-compact-message-composer",errorHandler:ie,setTextFormatters:he}),Qt=a.useCallback(e=>{try{const t=e?.getReceiverId(),n=e?.getReceiverType();if(!le.current){if(e.getParentMessageId())return!1;if(se.current){if(n===pt.MessageReceiverType.user&&t===se.current.getUid())return!0}else if(ce.current&&n===pt.MessageReceiverType.group&&t===ce.current.getGuid())return!0;return!1}if(e.getParentMessageId()===le.current)return!0}catch(e){ie(e,"isPartOfCurrentChatForUIEvent")}},[]),Xt=a.useCallback(()=>{ft.current||Jf.play(Jf.Sound.outgoingMessage,_t.current)},[_t,ft]),en=a.useCallback(()=>{try{const e=se.current,t=ce.current;if(e){const t=e.getBlockedByMe()||e.getHasBlockedMe();return{receiverId:e?.getUid(),receiverType:pt.MessageReceiverType.user,isBlocked:t}}if(t)return{receiverId:t?.getGuid(),receiverType:pt.MessageReceiverType.group};throw new Error(yb)}catch(e){throw ie(e,"getReceiverDetails"),new Error(yb)}},[ce,se,ie]),tn=a.useCallback(()=>{try{const{receiverId:e,receiverType:t,isBlocked:n}=en();if(n)return;return new o.CometChat.TypingIndicator(e,t)}catch(e){ie(e,"getTypingNotification")}},[en,ie]),nn=a.useCallback(()=>{try{const e=tn();if(!e)return;o.CometChat.startTyping(e)}catch(e){ie(e,"startTyping")}},[tn,ie]),an=a.useCallback(()=>{try{o.CometChat.endTyping(tn()),ae.current=null}catch(e){ie(e,"endTyping")}},[tn,ie]),on=a.useCallback(()=>{try{if(m)return;null!==ae.current?(yt()?.clearTimeout(ae.current),ae.current=null):nn(),ae.current=yt()?.setTimeout(()=>an(),500)}catch(e){ie(e,"handleTyping")}},[nn,an,m,ie]);function sn(){try{const e=se.current;if(e)return{user:e.getUid(),group:null,parentMessageId:c};const t=ce.current;return t?{user:null,group:t.getGuid(),parentMessageId:c}:{user:null,group:null,parentMessageId:c}}catch(e){return ie(e,"getComposerId"),{user:null,group:null,parentMessageId:null}}}const cn=a.useCallback(function(e){try{J({type:"setAddToMsgInputText",addToMsgInputText:""}),setTimeout(()=>{J({type:"setAddToMsgInputText",addToMsgInputText:e})},0)}catch(e){ie(e,"setAddToMsgInputText")}},[J,ie]),ln=a.useCallback((e,n,r)=>{try{n.setMetadata({error:e}),r?Qf.ccMessageEdited.next({message:n,status:t.qpt.error}):Qf.ccMessageSent.next({message:n,status:t.qpt.error})}catch(e){ie(e,"handleSDKError")}},[ie]),un=a.useCallback(e=>{try{const{receiverId:t,receiverType:n}=en(),r=new o.CometChat.TextMessage(t,e,n);r.setSentAt(ht.getUnixTimestamp()),r.setMuid(ht.ID());const a=le.current;return null!==a&&r.setParentMessageId(a),r}catch(e){throw ie(e,"getTextMessage"),e}},[en,le,ie]),dn=a.useCallback(async e=>{try{let t=e;for(let e=0;e<pe.length;e++)t=pe[e].formatMessageForSending(t);M&&M("");const n=await o.CometChat.sendMessage(t);return Xe.current.resetCometChatUserGroupMembers(),Xe.current.reset(),n}catch(t){ie(t,"sendTextMessage"),ln(t,e,!1)}},[ln,pe,M,ie]),pn=a.useCallback(async e=>{try{const n=un(e);let r=Xe.current.getCometChatUserGroupMembers();if(r){let e=[];for(let t=0;t<r.length;t++)e.push(new o.CometChat.User({uid:r[t].getUid(),name:r[t].getName()}));ue.current&&(n.setQuotedMessage(ue.current),n.setQuotedMessageId(ue.current.getId())),J({type:"setMessageToReply",messageToReply:null}),n.setMentionedUsers(e),r=[]}Qf.ccMessageSent.next({message:n,status:t.qpt.inprogress});const a=await dn(n);a&&(Qf.ccMessageSent.next({message:a,status:t.qpt.success}),Qf.ccReplyToMessage.next({message:a,status:t.qpt.success}),Xt())}catch(e){ie(e,"handleTextMessageSend")}},[un,dn,ie,Xt]),hn=a.useCallback((e,t)=>{try{const{receiverId:n,receiverType:r}=en(),a=new o.CometChat.TextMessage(n,e,r);return a.setId(t),a}catch(e){throw ie(e,"getEditedTextMessage"),e}},[en,ie]),mn=a.useCallback(async e=>{try{let t=e;for(let e=0;e<pe.length;e++)t=pe[e].formatMessageForSending(t);const n=await o.CometChat.editMessage(t);return Xe.current.resetCometChatUserGroupMembers(),n}catch(t){ie(t,"sendEditedTextMessage"),ln(t,e,!0)}},[ln,pe,ie]),gn=a.useCallback(async(e,n)=>{try{if(de.current)de.current(hn(e,n.getId()),t.Rst.edit),cn("");else{const r=await mn(hn(e,n.getId()));cn(""),r&&Qf.ccMessageEdited.next({message:r,status:t.qpt.success})}}catch(e){ie(e,"handleEditTextMessageSend")}},[mn,hn,ie,cn,de]),_n=a.useCallback(async(e,t)=>{try{const n=t==pt.MessageTypes.audio?await Ct(e):await function(e){return new Promise((t,n)=>{try{const r=new FileReader;r.onload=()=>{null!==r.result&&t(new File([r.result],e.name,e))},r.onerror=()=>{n(new Error(`Converting the file named "${e.name}" to binary failed`))},r.readAsArrayBuffer(e)}catch(e){ie(e,"processFile")}})}(e),{receiverId:r,receiverType:a}=en(),i=new o.CometChat.MediaMessage(r,n,t,a);i.setSentAt(ht.getUnixTimestamp()),i.setMuid(ht.ID()),i.setMetadata({file:n});const s=le.current;return null!==s&&i.setParentMessageId(s),ue.current&&(i.setQuotedMessage(ue.current),i.setQuotedMessageId(ue.current.getId())),J({type:"setMessageToReply",messageToReply:null}),i}catch(e){throw ie(e,"getMediaMessage"),e}},[en,le,ie]),bn=a.useCallback(async e=>{try{const n=await o.CometChat.sendMediaMessage(e);return Qf.ccReplyToMessage.next({message:e,status:t.qpt.success}),n}catch(t){ln(t,e,!1),ie(t,"sendMediaMessage")}},[ln,ie]),vn=a.useCallback(async(e,n)=>{try{const r=await _n(e,n);Qf.ccMessageSent.next({message:r,status:t.qpt.inprogress});const a=await bn(r);a&&(Qf.ccMessageSent.next({message:a,status:t.qpt.success}),Xt())}catch(e){ie(e,"handleMediaMessageSend")}},[Xt,_n,bn,ie]),En=a.useCallback(()=>{try{let e=wn();e.innerHTML="",Bt&&Bt.clearFormattingModes(),e?.focus()}catch(e){ie(e,"emptyInputField")}},[ie,Bt]),Cn=a.useCallback(async e=>{try{let n,r=e;if(pe&&pe.length)for(let e=0;e<pe.length;e++)r=pe[e].getOriginalText(r);if(0===(r=r.trim()).length||null!==W.textMessageToEdit&&W.textMessageToEdit.getText()===r)return;"emojiKeyboard"===W.contentToDisplay&&J({type:"setContentToDisplay",contentToDisplay:"none"}),"voiceRecording"===W.contentToDisplay&&J({type:"setContentToDisplay",contentToDisplay:"none"}),J({type:"setText",text:""}),En(),It([]),Bt?.clearPendingFormats(),null!==W.textMessageToEdit?(J({type:"setTextMessageToEdit",textMessageToEdit:null}),await gn(r,W.textMessageToEdit)):(n=de.current)?await Promise.all([n(un(r),t.Rst.none)]):await pn(r)}catch(e){ie(e,"handleSendButtonClick")}},[W.textMessageToEdit,W.contentToDisplay,J,gn,pn,ie,un,de,se,pe,En,It]),Sn=a.useMemo(()=>{const e=le.current?le.current+"_":"",t=n?.getUid()?n.getUid()+"_":"",r=s?.getGuid()?s.getGuid()+"_":"",a=t+r+e+ht.ID(),o=t+r+e;return X.current&&X.current.includes(o)||(X.current="cometchat-compact-message-composer__input-"+a),X.current},[n,s,le]);function wn(){return X.current?Et()?.querySelector(`.${X.current}`):null}function kn(e){try{if(e&&e.rangeCount&&function(e){if(e.rangeCount>0){let t=e.getRangeAt(0),n=wn(),r=t.commonAncestorContainer.parentNode;return"SPAN"!==r?.nodeName&&!(!n?.contains(t.startContainer)||!n?.contains(t.endContainer))}return!1}(e)&&(be.current=e,ve.current=be.current.getRangeAt(0),lt.current=be.current,be.current.getRangeAt&&be.current.rangeCount&&(ve.current=be.current.getRangeAt(0),ut.current=be.current.getRangeAt(0),pe&&pe.length))){for(let e=0;e<pe.length;e++)pe[e].setCaretPositionAndRange(lt.current,ut.current);On(new Event("mention_keyup_event"))}}catch(e){ie(e,"setSelection")}}const xn=a.useCallback(()=>{const e=Et()?.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0),n=wn();n&&n.contains(t.startContainer)&&(be.current=e,ve.current=t,lt.current=e,ut.current=t)}},[]);function An(e,t){try{if(Bt&&e&&Bt.clearPendingFormats(),Bt&&e){const e=wn();if(e&&(Bt.handleInlineCodePreservation(e,$.current),$.current=!1,Bt.handleMarkdownShortcuts(e,Zt))){const t=Bt.getActiveFormats(e);It(t)}}const n=t??e.target.innerText;"string"==typeof n&&(on(),J({type:"setText",text:n}),cn(""),void 0!==M&&M(n))}catch(e){ie(e,"onTextInputChange")}}const Rn=a.useCallback(e=>{Ee(!1),e===W.text&&W.textMessageToEdit?Qf.ccMessageEdited.next({message:W.textMessageToEdit,status:t.qpt.cancelled}):("string"==typeof e&&Cn(e),J({type:"setText",text:""}),cn(""))},[W.textMessageToEdit,Ee,Cn,cn]),In=a.useCallback(e=>{var n=wn();if(n&&Bt&&($.current=!!Bt.isInsideCodeInline(n)),!n||!Jt(e,n))if(13!==e.keyCode||e.shiftKey){if(pe&&pe.length)for(let t=0;t<pe.length;t++)n&&pe[t].setInputElementReference(n),pe[t].setCaretPositionAndRange(lt.current,ut.current),pe[t].onKeyDown(e)}else{if(h==t.C5S.NewLine)return;if(e.preventDefault(),h==t.C5S.None)return;if(n?.textContent?.trim()||n?.querySelector("u")?.textContent){n?.querySelectorAll("span").forEach(e=>{e.style.fontFamily&&"1em"===e.style.fontSize&&"​"===e.textContent&&e.remove()});let e="<br>"==n?.innerHTML?.trim()?void 0:n?.innerHTML.replace(/(<br>\s*)+$/,"");"<br>"==n?.innerHTML?.trim()&&(n.innerHTML=""),e&&Bt&&(e=Bt.trimRichTextWhitespace(e));let t=e?Tt(e):void 0;if(pe&&pe.length)for(let e=0;e<pe.length;e++)t=pe[e].getOriginalText(t);Rn(t)}}},[pe,n,s,W.textMessageToEdit,h,Rn,Jt]),On=a.useCallback(e=>{const n=13===e.keyCode&&!e.shiftKey;if(n||n&&h==t.C5S.None)return void e.preventDefault();if(!e.isTrusted)return;bt()&&xn();const r=wn();if(8===e.keyCode||46===e.keyCode)if((r.textContent||"").replace(/\u200B/g,"").trim()){if(Bt){const e=Bt.getActiveFormats(r);It(e)}}else En(),It([]),Bt?.clearPendingFormats();if(pe&&pe.length)for(let t=0;t<pe.length;t++){r&&pe[t].setInputElementReference(r),pe[t].setCaretPositionAndRange(lt.current,ut.current);try{pe[t].onKeyUp(e)}catch(e){console.error("Error in text formatter onKeyUp:",e)}}},[pe,n,s,h,xn,En,It,Bt]);a.useEffect(()=>{if(!z)return;const e=Z.current;if(!e)return;const t=Et();if(!t)return;const n=()=>{const t=yt().getSelection();if(t&&t.rangeCount>0){const n=t.getRangeAt(0);e.contains(n.startContainer)&&(mt.current=n.cloneRange())}},r=n=>{const r=n.clipboardData?.getData("text/plain")?.trim();if(!r)return;if(!/^(https?:\/\/)/i.test(r)){const r=n.clipboardData?.getData("text/html");if(r){n.preventDefault(),n.stopImmediatePropagation();const a=t.createElement("div");a.innerHTML=r;const o=new Set(["b","strong","i","em","u","s","strike","del","ol","ul","li","a","blockquote","pre","code","br","span","p","div","sub","sup"]),i=e=>{const t=Array.from(e.childNodes);for(const n of t)if(n instanceof HTMLElement){const t=n.tagName.toLowerCase();if(!o.has(t)){for(;n.firstChild;)e.insertBefore(n.firstChild,n);e.removeChild(n);continue}n.removeAttribute("style"),"span"===t&&(n.hasAttribute("data-cometchat-mention")||n.className.includes("cometchat-mentions"))||n.removeAttribute("class"),n.removeAttribute("id"),i(n)}};i(a);const s=Array.from(a.childNodes);for(const e of s)if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("p"===t||"div"===t){for(;e.firstChild;)a.insertBefore(e.firstChild,e);a.removeChild(e)}}const c=a.innerHTML;Dn(c),e.dispatchEvent(new Event("input",{bubbles:!0}))}return}const a=mt.current;if(!a||a.collapsed)return;if(!e.contains(a.startContainer))return;n.preventDefault(),n.stopImmediatePropagation();const o=yt().getSelection();if(!o)return;o.removeAllRanges(),o.addRange(a);let i=a.startContainer,s=null;for(;i&&i!==e;){if(i.nodeType===Node.ELEMENT_NODE&&"A"===i.tagName){s=i;break}i=i.parentNode}if(s){s.href=r;const e=t.createRange();e.setStartAfter(s),e.collapse(!0),o.removeAllRanges(),o.addRange(e),be.current=o,ve.current=e,mt.current=e.cloneRange()}else{const e=a.toString(),n=t.createElement("a");n.href=r,n.target="_blank",n.rel="noopener noreferrer",n.textContent=e,a.deleteContents(),a.insertNode(n);const i=t.createRange();i.setStartAfter(n),i.collapse(!0),o.removeAllRanges(),o.addRange(i),be.current=o,ve.current=i,mt.current=i.cloneRange()}e.dispatchEvent(new Event("input",{bubbles:!0}))};return t.addEventListener("selectionchange",n),e.addEventListener("paste",r,!0),()=>{t.removeEventListener("selectionchange",n),e.removeEventListener("paste",r,!0)}},[z,Bt]);const Mn=a.useCallback(()=>{try{var e=wn();if(e?.textContent?.trim()||e?.querySelector("u")?.textContent){e?.querySelectorAll("span").forEach(e=>{e.style.fontFamily&&"1em"===e.style.fontSize&&"​"===e.textContent&&e.remove()});let t="<br>"===e?.innerHTML?.trim()?void 0:Tt(e?.innerHTML.replace(/(<br>\s*)+$/,""));if("<br>"==e?.innerHTML?.trim()&&(e.innerHTML=""),pe&&pe.length)for(let e=0;e<pe.length;e++)t=pe[e].getOriginalText(t);t&&Cn(t)}}catch(e){ie(e,"onSendclick")}},[W.text,Cn,pe,ie,z,K]),Dn=a.useCallback(e=>{try{if(be.current&&ve.current){ve.current.deleteContents();let t=document?.createElement("div");t.innerHTML=e;let n,r,a=document?.createDocumentFragment();for(;n=t.firstChild;)if(n instanceof HTMLElement){if(pe&&pe.length)for(let e=0;e<pe.length;e++)n=pe[e].registerEventListeners(n,n.classList);r=a.appendChild(t.removeChild(n))}else n instanceof Text&&(r=a.appendChild(t.removeChild(n)));if(ve.current.insertNode(a),r){ve.current=ve.current.cloneRange(),ve.current.setStartAfter(r),ve.current.collapse(!0),be.current.removeAllRanges(),be.current.addRange(ve.current);const e=wn();let t="<br>"==e?.innerHTML?.trim()?void 0:Tt(e?.innerHTML);if("<br>"==e?.innerHTML?.trim()&&(e.innerHTML=""),pe&&pe.length)for(let e=0;e<pe.length;e++)t=pe[e].getOriginalText(t);cn(t)}}else be.current&&"Control"!=be.current.type?be.current.createRange().pasteHTML(e):wn().textContent=W.addToMsgInputText}catch(e){ie(e,"pasteHtmlAtCaret")}},[W.addToMsgInputText,W.text,pe,cn,ie]),Ln=e=>{try{if(J({type:"setContentToDisplay",contentToDisplay:"none"}),ne.current?.closePopover(),"string"==typeof e){const t=wn(),n=Et(),r=[];if(t&&n&&Bt){const a={bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikeThrough"},o=Bt.getActiveFormats(t);for(const t of o)if(a[t]){r.push(a[t]);try{n.execCommand(a[t],!1,"")}catch(e){}}}if(t&&ve.current){t.focus();const e=Et()?.getSelection();e&&(e.removeAllRanges(),e.addRange(ve.current))}const a=Bt&&t&&(null!==Bt.isInsideCodeInline(t)||null!==Bt.isInsideCodeBlock(t))?Tn(e):e;if(Dn(a),n&&r.length>0)for(const t of r)try{n.execCommand(t,!1,"")}catch(e){}}J({type:"setText",text:e})}catch(e){ie(e,"onEmojiClicked")}},Pn=a.useCallback(()=>{Et()?.addEventListener("mouseup",jn)},[]),jn=a.useCallback(()=>{kn(Et()?.getSelection()||null),Et()?.removeEventListener("mouseup",jn)},[pe]),Un=a.useCallback(()=>{_e.current=fe.current,Ee(!1),ge(""),fe.current=""},[Ee,ge]),Fn=a.useCallback(e=>{try{if(Bt){const e=wn();if(e&&Bt.isInsideCodeBlock(e))return void Ee(!1)}if(!e||!e.length)return ge(""),fe.current="",Ee(!1),void tt(1);let t=e.split("@")[1].toLowerCase()?e.split("@")[1].toLowerCase():void 0;t&&_e.current&&t.startsWith(_e.current.toLowerCase())||t===me||(ge(t),fe.current=t,Ee(!0),_e.current="",tt(et+1))}catch(e){ie(e,"searchMentions")}},[ge,Ee,tt,me,et,Bt,wn]),Bn=a.useCallback(e=>{try{const t=wn();if(pe&&pe.length)for(let e=0;e<pe.length;e++)t&&pe[e].setInputElementReference(t);if(lt&&pe&&pe.length){if(pe&&pe.length)for(let t=0;t<pe.length;t++)pe[t].setCaretPositionAndRange(lt.current,ut.current),pe[t].getFormattedTextForEntity(e);let n="<br>"==t?.innerHTML?.trim()?void 0:Tt(t?.innerHTML);if("<br>"==t?.innerHTML?.trim()&&(t.innerHTML=""),n&&pe&&pe.length)for(let e=0;e<pe.length;e++)n=pe[e].getOriginalText(n);An(void 0,n)}}catch(e){ie(e,"reRenderMentionsWithEntity")}},[pe]),Gn=a.useCallback(async e=>{J({type:"setContentToDisplay",contentToDisplay:"none"});try{if(!e||0===e.size)return;const t=new File([e],`${function(){try{const e=new Date,t="audio-recording-yyyyMMddHHmmss",n=e.getFullYear().toString(),r=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),s=e.getSeconds().toString().padStart(2,"0");return t.replace("yyyyMMdd",`${n}${r}${a}`).replace("HHmmss",`${o}${i}${s}`)}catch(e){ie(e,"audioRecordingSimpleDateFormat")}}()}.webm`,{type:e.type});vn(t,pt.MessageTypes.audio)}catch(e){ie(e,"handleSendVoiceMessage")}},[vn,ie]),Vn=a.useCallback(async()=>{try{const e=Q.current;if(!e?.files?.length||se.current?.getBlockedByMe())return;const n=e.files[0],r=e.accept;let a=r&&"*/*"!==r?r.split("/")[0]:"file";const o="file"===a?"file":n.type.split("/")[0];if("file"!==a&&a!==o)return J({type:"setShowValidationError",showValidationError:!0}),void(e.value="");const i=de.current;if(i)try{await Promise.all([i(await _n(n,o),t.Rst.none)])}catch(e){ie(e,"onSendButtonClick")}else await vn(n,o);e.value=""}catch(e){ie(e,"handleMediaMessageSendWrapper")}},[vn,ie,_n,de,se]);function Hn(e){yn.ccActivePopover.next(e)}const zn=a.useCallback(()=>{try{switch(W.contentToDisplay){case"attachments":J({type:"setContentToDisplay",contentToDisplay:"none"});break;case"emojiKeyboard":ne.current?.closePopover(),J({type:"setContentToDisplay",contentToDisplay:"attachments"});break;case"voiceRecording":case"none":J({type:"setContentToDisplay",contentToDisplay:"attachments"});break;case"ai":ee.current?.closePopover(),J({type:"setContentToDisplay",contentToDisplay:"attachments"});break;default:W.contentToDisplay}Hn(W.contentToDisplay)}catch(e){ie(e,"onSecondaryBtnClick")}},[W.contentToDisplay,ee,ne]);function Yn(){try{switch(W.contentToDisplay){case"attachments":te.current?.closePopover(),J({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;case"voiceRecording":case"none":J({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;case"emojiKeyboard":J({type:"setContentToDisplay",contentToDisplay:"none"});break;case"ai":ee.current?.closePopover(),J({type:"setContentToDisplay",contentToDisplay:"emojiKeyboard"});break;default:W.contentToDisplay}Hn(W.contentToDisplay)}catch(e){ie(e,"onEmojiButtonClick")}}function qn(){try{if(we)return void Se(!0);if("voiceRecording"===W.contentToDisplay)return void J({type:"setContentToDisplay",contentToDisplay:"none"});"attachments"===W.contentToDisplay?te.current?.closePopover():"emojiKeyboard"===W.contentToDisplay?ne.current?.closePopover():"ai"===W.contentToDisplay&&ee.current?.closePopover(),navigator.mediaDevices.getUserMedia({audio:!0}).then(e=>{Je.current=e,J({type:"setContentToDisplay",contentToDisplay:"voiceRecording"})}).catch(e=>{ke(!0),Se(!0)})}catch(e){ie(e,"onVoiceRecordingBtnClick")}}function Kn(){W.textMessageToEdit&&Qf.ccMessageEdited.next({message:W.textMessageToEdit,status:t.qpt.cancelled}),J({type:"setTextMessageToEdit",textMessageToEdit:null}),J({type:"setText",text:""}),En(),cn("")}function Wn(){W.messageToReply&&Qf.ccReplyToMessage.next({message:W.messageToReply,status:t.qpt.cancelled}),J({type:"setMessageToReply",messageToReply:null})}function Jn(){ue.current=null,J({type:"setMessageToReply",messageToReply:null})}function Zn(){try{if(Te){Ae(!1),De(!1),We.current&&(We.current.pause(),We.current=null),je.current&&(clearInterval(je.current),je.current=null),Pe(0),Ke.current=[],qe.current=null,Ze.current=[],$e.current=[],Qe.current=0,Ie(!1),Ge.current||(Ge.current=window.setInterval(()=>{Ne(e=>e+1)},1e3));const e=Je.current;if(e&&e.active){Qn(e);const t=window.AudioContext||window.webkitAudioContext;if(t&&!Fe.current)try{const n=new t;n.resume(),He.current=n;const r=n.createAnalyser();r.fftSize=256,Fe.current=r;const a=n.createMediaStreamSource(e);Ye.current=a,a.connect(r)}catch(e){}Fe.current&&null===Be.current&&tr()}}else{Ae(!0),Qe.current=Oe,Ge.current&&(clearInterval(Ge.current),Ge.current=null),null!==Be.current&&(cancelAnimationFrame(Be.current),Be.current=null);const e=Ve.current;if(e&&"inactive"!==e.state){try{e.requestData()}catch(e){}if(Ke.current.length>0){const e=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"});qe.current=e,Ie(!0)}e.onstop=()=>{if(Ke.current.length>0){const e=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"});qe.current=e,Ie(!0)}},e.stop()}else Ke.current.length>0&&!qe.current&&(qe.current=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"}),Ie(!0))}}catch(e){ie(e,"handleTogglePause")}}function $n(){try{Ae(!1),De(!1),Ne(0),Pe(0),Ge.current&&(clearInterval(Ge.current),Ge.current=null),je.current&&(clearInterval(je.current),je.current=null),We.current&&(We.current.pause(),We.current=null);const e=e=>{nr(),qe.current=null,Ke.current=[],Ze.current=[],$e.current=[],Qe.current=0,Ie(!1),Je.current&&(Je.current.getTracks().forEach(e=>e.stop()),Je.current=null),Ve.current=null,Gn(e)};if(qe.current)e(qe.current);else{const t=Ve.current;t&&"inactive"!==t.state?(t.onstop=()=>{if(Ke.current.length>0){const t=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"});e(t)}else nr(),Je.current&&(Je.current.getTracks().forEach(e=>e.stop()),Je.current=null),Ve.current=null,J({type:"setContentToDisplay",contentToDisplay:"none"})},t.stop()):(nr(),J({type:"setContentToDisplay",contentToDisplay:"none"}))}}catch(e){ie(e,"handleSendRecording")}}function Qn(e){const t=new MediaRecorder(e);t.ondataavailable=e=>{e.data.size>0&&Ke.current.push(e.data)},t.onstop=()=>{if(Ke.current.length>0){const e=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"});qe.current=e,Ie(!0)}},t.onerror=()=>{},t.start(250),Ve.current=t}function Xn(){const e=Ue.current;if(!e)return;const t=e.getContext("2d");if(!t)return;const n=window.devicePixelRatio||1,r=e.getBoundingClientRect(),a=r.width>0?r.width:e.parentElement?.offsetWidth??120,o=r.height>0?r.height:32;e.width=a*n,e.height=o*n,t.scale(n,n);const i=Math.max(20,Math.floor(a/4)),s=getComputedStyle(e).getPropertyValue("--cometchat-primary-color").trim()||"#6852D6";t.clearRect(0,0,a,o);const c=[];for(let e=0;e<i;e++){const n=4+Math.random()*(.4*o);c.push(n/o);const r=4*e,a=(o-n)/2;t.fillStyle=s,t.beginPath(),t.roundRect(r,a,2,n,100),t.fill()}Ze.current=c}function er(e){const t=Ue.current;if(!t||0===Ze.current.length)return;const n=t.getContext("2d");if(!n)return;const r=window.devicePixelRatio||1,a=t.getBoundingClientRect(),o=a.width>0?a.width:t.parentElement?.offsetWidth??120,i=a.height>0?a.height:32;t.width===o*r&&t.height===i*r||(t.width=o*r,t.height=i*r,n.scale(r,r));const s=Ze.current.length,c=getComputedStyle(t).getPropertyValue("--cometchat-primary-color").trim()||"#6852D6",l=getComputedStyle(t).getPropertyValue("--cometchat-icon-color-secondary").trim()||"#A1A1A1",u=Math.round(e*s);n.clearRect(0,0,o,i);for(let e=0;e<s;e++){const t=Ze.current[e],r=Math.max(3,t*i),a=4*e,o=(i-r)/2;n.fillStyle=e<u?c:l,n.beginPath(),n.roundRect(a,o,2,r,100),n.fill()}}function tr(){const e=Ue.current,t=Fe.current;if(!e||!t)return;const n=e.getContext("2d");if(!n)return;const r=t.frequencyBinCount,a=new Uint8Array(r),o=window.devicePixelRatio||1,i=e.getBoundingClientRect(),s=i.width>0?i.width:e.parentElement?.offsetWidth??120,c=i.height>0?i.height:32;e.width=s*o,e.height=c*o,n.scale(o,o);const l=Math.max(20,Math.floor(s/4)),u=getComputedStyle(e).getPropertyValue("--cometchat-primary-color").trim()||"#6852D6";0===$e.current.length&&($e.current=new Array(l).fill(3/c));const d=()=>{t.getByteFrequencyData(a);const e=Math.floor(r/2);let o=0;for(let t=0;t<e;t++)o+=a[t]*a[t];const i=Math.sqrt(o/e),p=3/c+i/255*(1-3/c),h=$e.current;h.length>=l&&h.shift(),h.push(p),n.clearRect(0,0,s,c),n.fillStyle=u;for(let e=0;e<h.length;e++){const t=Math.max(3,h[e]*c),r=4*e,a=(c-t)/2;n.beginPath(),n.roundRect(r,a,2,t,100),n.fill()}Ze.current=[...h],Be.current=requestAnimationFrame(d)};d()}function nr(){if(null!==Be.current&&(cancelAnimationFrame(Be.current),Be.current=null),Ye.current){try{Ye.current.disconnect()}catch(e){}Ye.current=null}if(Fe.current){try{Fe.current.disconnect()}catch(e){}Fe.current=null}if(He.current){try{He.current.close()}catch(e){}He.current=null}ze.current=null}function rr(){if(null===W.textMessageToEdit)return null;let e=(e=>{const t=/<@uid:(.*?)>/g,n=/<@all:(.*?)>/g;let r=e.getText(),a=r,o=t.exec(r),i=n.exec(r),s=[],c=[],l=e.getMentionedUsers();for(;null!==o;){let e;for(let t=0;t<l.length;t++)o[1]===l[t].getUid()&&(e=l[t]);e&&(a=a.replace(o[0],"@"+e.getName()),s.push(e)),o=t.exec(r)}for(;null!==i;)a=a.replace(i[0],"@"+(V(`message_composer_mention_${i[1]}`)||i[1])),c.push(i[1]),i=n.exec(r);return Xe.current.setCometChatUserGroupMembers(s),Xe.current.setCometChatMentionedChannels(c),Xe.current.setLoggedInUser(dt.getLoggedInUser()),a})(W.textMessageToEdit);e=(new Nn).stripMarkdownForConversation(e);const t=e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return r.jsx(tb,{onClose:Kn,previewSubtitle:t})}function ar(){return null===W.messageToReply?null:(ue.current=W.messageToReply,r.jsx(Ff,{onClose:Wn,message:ue.current,hideCloseButton:!1,previewTitle:Gf.getDataSource().getMessagePreviewTitle(ue.current),previewSubtitle:Gf.getDataSource().getMessagePreviewSubtitle(ue.current)}))}a.useEffect(()=>{"voiceRecording"===W.contentToDisplay&&(Te?Ge.current&&(clearInterval(Ge.current),Ge.current=null):Ge.current||(Ge.current=window.setInterval(()=>{Ne(e=>e+1)},1e3)))},[Te,W.contentToDisplay]),a.useEffect(()=>{"voiceRecording"!==W.contentToDisplay&&(Ge.current&&(clearInterval(Ge.current),Ge.current=null),Ne(0),Ae(!1),Ie(!1))},[W.contentToDisplay]),a.useEffect(()=>{if("voiceRecording"!==W.contentToDisplay)return nr(),void(Je.current&&(Je.current.getTracks().forEach(e=>e.stop()),Je.current=null));const e=window.AudioContext||window.webkitAudioContext;if(!e){const e=setTimeout(()=>Xn(),150);return()=>clearTimeout(e)}const t=setTimeout(()=>Xn(),200);let n=!1;const r=setTimeout(()=>(async()=>{try{let t=Je.current;if(t||(t=await navigator.mediaDevices.getUserMedia({audio:!0})),n)return void t.getTracks().forEach(e=>e.stop());Je.current=t,ze.current=t,Ke.current=[],qe.current=null,Ze.current=[],$e.current=[],Qe.current=0,Qn(t),Ne(0),Ge.current&&clearInterval(Ge.current),Ge.current=window.setInterval(()=>{Ne(e=>e+1)},1e3);const r=new e;await r.resume(),He.current=r;const a=r.createAnalyser();a.fftSize=256,Fe.current=a;const o=r.createMediaStreamSource(t);Ye.current=o,o.connect(a),tr()}catch(e){n||("NotAllowedError"===e?.name||"PermissionDeniedError"===e?.name?(ke(!0),Se(!0),Ge.current&&(clearInterval(Ge.current),Ge.current=null),Ve.current&&"inactive"!==Ve.current.state&&(Ve.current.onstop=null,Ve.current.stop()),Ve.current=null,Je.current&&(Je.current.getTracks().forEach(e=>e.stop()),Je.current=null),J({type:"setContentToDisplay",contentToDisplay:"none"})):Xn())}})(),200);return()=>{n=!0,clearTimeout(r),clearTimeout(t),nr()}},[W.contentToDisplay]),a.useEffect(()=>{"voiceRecording"===W.contentToDisplay&&Te&&null!==Be.current&&(cancelAnimationFrame(Be.current),Be.current=null)},[Te,W.contentToDisplay]),a.useEffect(()=>{if(!Te)return;const e=Qe.current;er(e>0?Math.min(Le/e,1):0)},[Le,Te]),a.useEffect(()=>{Te&&(Me||er(0))},[Me,Te]),a.useEffect(()=>{if(!navigator?.permissions)return;let e=!1;return navigator.permissions.query({name:"microphone"}).then(t=>{e||(xe.current=t,ke("denied"===t.state),t.onchange=()=>{e||(ke("denied"===t.state),"granted"===t.state&&Se(!1))})}).catch(()=>{}),()=>{e=!0,xe.current&&(xe.current.onchange=null)}},[]),a.useEffect(()=>{try{var e=yn.ccActivePopover.subscribe(e=>{W.contentToDisplay!=e&&(J({type:"setContentToDisplay",contentToDisplay:"none"}),ee.current?.closePopover(),te.current?.closePopover(),ne.current?.closePopover())});return()=>{e.unsubscribe()}}catch(e){ie(e,"ccActivePopover")}},[W.contentToDisplay]),a.useEffect(()=>{const e=!(me&&me.trim().length>0&&!B.toLowerCase().startsWith(me.trim().toLowerCase()));!g||nt!==t.Okh.users&&e||Ee(!1)},[me,g,nt,B]),a.useEffect(()=>{if(!z||!Bt)return;const e=()=>{const e=wn();e&&($.current=!!Bt.isInsideCodeInline(e))},t=Et();return t?.addEventListener("selectionchange",e),()=>{t?.removeEventListener("selectionchange",e)}},[z,Bt]);const or=a.useCallback(e=>{try{if(be.current&&ve.current){ve.current.deleteContents();const t=Lt(e,pe);ve.current.insertNode(t);const n=wn(),r=n?.lastChild||null;r&&(ve.current=ve.current.cloneRange(),ve.current.setStartAfter(r),ve.current.collapse(!0),be.current.removeAllRanges(),be.current.addRange(ve.current)),"<br>"==n?.innerHTML?.trim()&&(n.innerHTML="");let a="<br>"==n?.innerHTML?.trim()?void 0:Tt(n?.innerHTML);if(pe&&pe.length)for(let e=0;e<pe.length;e++)a=pe[e].getOriginalText(a);cn(a)}else be.current&&"Control"!=be.current.type?be.current.createRange().pasteHTML(e):wn().textContent=W.addToMsgInputText}catch(e){ie(e,"renderSanitizedHtml")}},[W.addToMsgInputText,W.text,pe]);return q_({currentSelectionForRegex:lt,currentSelectionForRegexRange:ut,setSelection:kn,dispatch:J,textInputRef:Z,mySetAddToMsgInputText:cn,errorHandler:ie,createPollViewRef:oe,textFormatters:I,textFormatterArray:pe,mentionsTextFormatterInstanceRef:Xe,setTextFormatters:he,CometChatUIKitLoginListener:dt,group:s,user:n,userPropRef:se,groupPropRef:ce,setShowListForMentions:Ee,searchMentions:Fn,mentionsFormatterInstanceId:gt,setUsersRequestBuilder:ot,setGroupMembersRequestBuilder:st,setUserMemberListType:rt,getComposerId:sn,pasteHtmlAtCaret:Dn,renderSanitizedHtml:or,parentMessageIdPropRef:le,emptyInputField:En,text:W.text,propsText:e.initialComposerText,getCurrentInput:wn,isPartOfCurrentChatForUIEvent:Qt,textMessageToEdit:W.textMessageToEdit,getCurrentWindow:yt,getCurrentDocument:Et,onTextChange:M,messageToReplyRef:ue,mentionsUsersRequestBuilder:G,mentionsGroupMembersRequestBuilder:H}),r.jsxs(r.Fragment,{children:[W.showPoll&&oe?.current?oe.current:null,Ot&&r.jsx(sb,{onSubmit:Vt,onCancel:Ht,showTextInput:!0,isEditMode:Dt,initialUrl:Pt?.url||"",initialText:Dt?Pt?.text||"":Ut,focusLinkField:Dt||!!Ut}),r.jsxs("div",{className:"cometchat",style:{height:"fit-content",width:"100%",position:"relative"},children:[Ce&&i.createPortal(r.jsx("div",{className:"cometchat cometchat-media-recorder__permission-overlay",children:r.jsxs("div",{className:"cometchat-media-recorder__permission-dialog",children:[r.jsx("div",{className:"cometchat-media-recorder__permission-dialog-icon-wrapper",children:r.jsx("div",{className:"cometchat-media-recorder__permission-dialog-icon"})}),r.jsx("div",{className:"cometchat-media-recorder__permission-dialog-title",children:V("media_recorder_error_title")||"Microphone Access Needed"}),r.jsx("div",{className:"cometchat-media-recorder__permission-dialog-subtitle",children:V("media_recorder_error_subtitle")||"Microphone access is blocked. Click the lock/info icon in your browser's address bar, enable Microphone, then try again."}),r.jsx("button",{className:"cometchat-media-recorder__permission-dialog-button",onClick:()=>{we?Se(!1):navigator.mediaDevices?.getUserMedia({audio:!0}).then(e=>{e.getTracks().forEach(e=>e.stop()),Se(!1)}).catch(()=>Se(!1))},children:V("media_recorder_permission_dismiss")||"Understood"})]})}),document.body),z&&q&&!wt()&&!St&&kt&&At&&Bt?r.jsx(ib,{textInputRef:Z,richTextFormatter:Bt,isFloating:!0,position:At,activeFormats:Rt,onVisibilityChange:e=>xt(e),onLinkClick:Gt,onFormatApplied:Wt}):null,ye&&(!f||!g)&&r.jsx("div",{className:"cometchat-compact-message-composer__mentions-list",ref:ct,children:r.jsx(fn,{userMemberListType:nt,onItemClick:e=>{try{if(e){let t=[e];Xe.current.setCometChatUserGroupMembers(t),Bn(e)}else{if(!B)return;{const e=[B];Xe.current.setCometChatMentionedChannels(e),Bn(B)}}Ee(!1),tt(1),ge("")}catch(e){ie(e,"defaultMentionsItemClickHandler")}},usersRequestBuilder:at,searchKeyword:me,onEmpty:Un,group:s,groupMemberRequestBuilder:it,onError:Un,showScrollbar:F,disableMentionAll:f,disableMentions:g,mentionAllLabel:B})}),r.jsxs("div",{className:"cometchat-compact-message-composer "+(F?"":"cometchat-compact-message-composer-hide-scrollbar"),children:[r.jsx("input",{style:{display:"none"},ref:Q,type:"file",onChange:Vn}),W.showValidationError||W.showMentionsCountWarning||U||rr()||ar()?function(){W.showValidationError&&setTimeout(()=>{J({type:"setShowValidationError",showValidationError:!1})},5e3);let e=W.showMentionsCountWarning?V("message_composer_mention_limit_warning"):V("message_composer_wrong_file_type");return r.jsxs("div",{className:"cometchat-compact-message-composer__header",children:[W.showMentionsCountWarning||W.showValidationError?r.jsxs("div",{className:"cometchat-compact-message-composer__header-error-state",children:[r.jsx("div",{className:"cometchat-compact-message-composer__header-error-state-icon-wrapper",children:r.jsx("div",{className:"cometchat-compact-message-composer__header-error-state-icon"})}),r.jsx("span",{className:"cometchat-compact-message-composer__header-error-state-text",children:e})]}):null,U??(rr()||ar())]})}():null,z&&!K&&St&&Bt?r.jsx("div",{className:"cometchat-compact-message-composer__formatting-toolbar",children:r.jsx(ib,{textInputRef:Z,richTextFormatter:Bt,isFloating:!1,activeFormats:Rt,onLinkClick:Gt,onFormatApplied:Wt})}):null,r.jsxs("div",{className:"cometchat-compact-message-composer__row"+("voiceRecording"===W.contentToDisplay?" cometchat-compact-message-composer__row--recording":""),children:[r.jsx("div",{className:"cometchat-compact-message-composer__left cometchat-compact-message-composer__buttons",children:w||0===Gf.getDataSource().getAttachmentOptions(sn(),{hideAudioAttachmentOption:v,hideCollaborativeDocumentOption:C,hideCollaborativeWhiteboardOption:S,hideFileAttachmentOption:y,hideImageAttachmentOption:_,hideVideoAttachmentOption:b,hidePollsOption:E}).length||R&&0==R?.length?null:function(){try{const e=r.jsx(rn,{hoverText:V("message_composer_attach_icon_hover"),onClick:zn,iconURL:"attachments"===W.contentToDisplay?Z_:J_});let a;if(R&&0==R.length)return;a=!R||void 0===n&&void 0===s?Gf.getDataSource().getAttachmentOptions(sn(),{hideAudioAttachmentOption:v,hideCollaborativeDocumentOption:C,hideCollaborativeWhiteboardOption:S,hideFileAttachmentOption:y,hideImageAttachmentOption:_,hideVideoAttachmentOption:b,hidePollsOption:E,messageToReplyRef:ue,closeReplyPreview:Jn}):R;for(let e=0;e<a.length;e++){const t=a[e],{id:r}=t;if("string"==typeof r){let e=t.onClick;"extension_poll"===r&&(e=()=>{t.onClick([n,s])}),re.current.set(r,e||null)}}const o=r.jsx(nb,{actions:a,onActionItemClick:e=>{!function(e){try{const t=re.current.get(`${e.id}`);if("function"==typeof t)t();else{let t={[pt.MessageTypes.image]:"image/*",[pt.MessageTypes.video]:"video/*",[pt.MessageTypes.audio]:"audio/*",[pt.MessageTypes.file]:"*/*"};jt()&&(t[pt.MessageTypes.image]=pt.mimeTypes.image,t[pt.MessageTypes.video]=pt.mimeTypes.video,t[pt.MessageTypes.audio]=pt.mimeTypes.audio);const n=t[e.id]??"*/*";Q.current.accept=n,Q.current.click()}J({type:"setContentToDisplay",contentToDisplay:"none"}),te.current?.closePopover()}catch(e){ie(e,"showAttachments")}}(e),W.textMessageToEdit&&Kn()}});return r.jsx("div",{className:`cometchat-compact-message-composer__secondary-button-view-attachment-button ${"attachments"===W.contentToDisplay?"cometchat-compact-message-composer__secondary-button-view-attachment-button-active":""} cometchat-compact-message-composer__secondary-button-view-attachment-button-${a?.length}`,children:r.jsx(Ft,{useParentHeight:!1,useParentContainer:!0,onOutsideClick:()=>{J({type:"setContentToDisplay",contentToDisplay:"none"})},placement:t.W.top,closeOnOutsideClick:!0,ref:te,content:o,children:e})})}catch(e){ie(e,"getActionsheetView")}}()}),r.jsxs("div",{className:"cometchat-compact-message-composer__center",children:[r.jsx("div",{onKeyUp:On,onKeyDown:In,contentEditable:(()=>{try{if(z)return!0;const e=Et()?.createElement("div");return e.contentEditable="plaintext-only",!("plaintext-only"!==e.contentEditable)&&"plaintext-only"}catch(e){return ie(e,"checkPlainTextAvailability"),!0}})(),onMouseDown:Pn,onInput:An,onClick:zt,className:`cometchat-compact-message-composer__input ${le.current?"cometchat-compact-message-composer__input-thread":""} ${wt()?"cometchat-compact-message-composer__input-mobile":""} ${Rt.includes("codeBlock")?"cometchat-compact-message-composer__input--code-block":""} ${"voiceRecording"===W.contentToDisplay?"cometchat-compact-message-composer__input--hidden":""} ${Sn}`,"data-placeholder":p,ref:Z}),"voiceRecording"!==W.contentToDisplay?null:r.jsxs("div",{className:"cometchat-compact-message-composer__recording-bar",role:"region","aria-label":"Voice recording",children:[r.jsx("button",{className:"cometchat-compact-message-composer__recording-bar-delete","aria-label":"Delete recording",onClick:function(){try{Ae(!1),De(!1),Ne(0),Pe(0),Ge.current&&(clearInterval(Ge.current),Ge.current=null),je.current&&(clearInterval(je.current),je.current=null),Ve.current&&"inactive"!==Ve.current.state&&(Ve.current.onstop=null,Ve.current.stop()),Ve.current=null,We.current&&(We.current.pause(),We.current=null),qe.current=null,Ke.current=[],Ze.current=[],$e.current=[],Qe.current=0,Ie(!1),nr(),Je.current&&(Je.current.getTracks().forEach(e=>e.stop()),Je.current=null),J({type:"setContentToDisplay",contentToDisplay:"none"})}catch(e){ie(e,"handleDeleteRecording")}},children:r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-delete-icon"})}),Te?r.jsx("button",{className:"cometchat-compact-message-composer__recording-bar-playback","aria-label":Me?"Pause playback":"Play recording",onClick:function(){try{if(Me)return We.current?.pause(),je.current&&(clearInterval(je.current),je.current=null),void De(!1);let e=qe.current;if(!e&&Ke.current.length>0&&(e=new Blob(Ke.current,{type:Ke.current[0]?.type||"audio/webm"}),qe.current=e,Ie(!0)),!e)return;We.current&&(We.current.pause(),We.current=null),je.current&&(clearInterval(je.current),je.current=null),Pe(0);const t=URL.createObjectURL(e),n=new Audio(t);n.onended=()=>{De(!1),Pe(0),je.current&&(clearInterval(je.current),je.current=null),We.current=null},We.current=n,De(!0),je.current=window.setInterval(()=>{Pe(e=>e+1)},1e3),n.play().catch(e=>{console.warn("Voice playback failed:",e),De(!1),je.current&&(clearInterval(je.current),je.current=null),Pe(0)})}catch(e){ie(e,"handleTogglePlayback")}},children:r.jsx("div",{className:Me?"cometchat-compact-message-composer__recording-bar-playback-icon cometchat-compact-message-composer__recording-bar-playback-icon--pause":"cometchat-compact-message-composer__recording-bar-playback-icon"})}):r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-indicator"}),r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-waveform",children:r.jsx("canvas",{ref:Ue})}),r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-timer","aria-live":"polite",children:function(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")}`}(Me?Le:Oe)}),Te?r.jsx("button",{className:"cometchat-compact-message-composer__recording-bar-pause","aria-label":"Resume recording",onClick:Zn,children:r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-mic-icon"})}):r.jsx("button",{className:"cometchat-compact-message-composer__recording-bar-pause","aria-label":"Pause recording",onClick:Zn,children:r.jsx("div",{className:"cometchat-compact-message-composer__recording-bar-pause-circle-icon"})}),!A&&wt()&&r.jsx("div",{className:"cometchat-compact-message-composer__send-button cometchat-compact-message-composer__send-button-active",onClick:$n,role:"button","aria-label":"Send voice message",style:{cursor:"pointer"},children:r.jsx(rn,{iconURL:$_,hoverText:V("message_composer_send_message_icon_hover")})})]})]}),r.jsxs("div",{className:"cometchat-compact-message-composer__right cometchat-compact-message-composer__buttons",children:[x||wt()||"voiceRecording"===W.contentToDisplay?null:function(){const e=r.jsx(rn,{onClick:Yn,hoverText:V("message_composer_emoji_icon_hover"),iconURL:"emojiKeyboard"===W.contentToDisplay?X_:Q_}),n=r.jsx(ob,{onEmojiClick:Ln});return r.jsx("div",{className:"cometchat-compact-message-composer__emoji-keyboard-button "+("emojiKeyboard"===W.contentToDisplay?"cometchat-compact-message-composer__emoji-keyboard-button-active":""),children:r.jsx(Ft,{useParentHeight:!1,useParentContainer:!0,ref:ne,closeOnOutsideClick:!0,onOutsideClick:()=>{J({type:"setContentToDisplay",contentToDisplay:"none"})},placement:t.W.top,content:n,children:e})})}(),T?null:r.jsx("div",{style:{display:"voiceRecording"===W.contentToDisplay?"none":void 0},children:Gf.getDataSource().getStickerButton(sn(),n,s)}),k||"voiceRecording"===W.contentToDisplay?null:function(){const e=W.text.trim().length>0;return r.jsx("div",{className:`cometchat-compact-message-composer__voice-recording-button ${"voiceRecording"===W.contentToDisplay?"cometchat-compact-message-composer__voice-recording-button-active":""} ${e?"cometchat-compact-message-composer__voice-recording-button--hidden":""}`,children:r.jsx(rn,{onClick:qn,hoverText:V("message_composer_voice_notes_icon_hover"),iconURL:"voiceRecording"===W.contentToDisplay?W_:K_})})}(),j?r.jsx("div",{className:"cometchat-compact-message-composer__auxilary-button-view",children:j}):void 0,A?null:"voiceRecording"===W.contentToDisplay?wt()?null:r.jsx("div",{className:"cometchat-compact-message-composer__send-button cometchat-compact-message-composer__send-button-active",onClick:$n,role:"button","aria-label":"Send voice message",style:{cursor:"pointer"},children:r.jsx(rn,{iconURL:$_,hoverText:V("message_composer_send_message_icon_hover")})}):P?r.jsx("div",{onClick:Mn,children:P}):r.jsx("div",{className:"cometchat-compact-message-composer__send-button "+(function(){let e=wn()?.textContent;return!e||e&&""===e.trim()||null!==W.textMessageToEdit&&W.textMessageToEdit.getText()===W.text}()?"":"cometchat-compact-message-composer__send-button-active"),children:r.jsx(rn,{onClick:Mn,iconURL:$_,hoverText:V("message_composer_send_message_icon_hover")})})]})]})]},sn()?.group||sn()?.user),Nt&&Mt&&r.jsx(cb,{linkText:Mt.linkText,linkUrl:Mt.linkUrl,position:Mt.position,onEdit:Yt,onRemove:qt,onClose:Kt})]})]})},t.zUp=G_,t.Bds=qt,t.ZV2=U_,t.FJl=function(e){const{headerView:n,conversationsRequestBuilder:i=null,onError:d,itemView:p=null,subtitleView:h=null,trailingView:m,activeConversation:g=null,selectionMode:f=t.QcU.none,hideReceipts:_=!1,options:b=null,loadingView:v,emptyView:y,errorView:E,hideError:C=!1,onItemClick:S=null,onSelect:w=null,textFormatters:k=[],leadingView:x,titleView:T,hideDeleteConversation:A=!1,hideUserStatus:R=!1,hideGroupType:I=!1,disableSoundForMessages:O=!1,customSoundForMessages:N=null,lastMessageDateTimeFormat:M,showSearchBar:D=!1,searchView:L,onSearchBarClicked:P,showScrollbar:j=!1}=e,[U,F]=a.useReducer(H_,{conversationList:[],fetchState:t.DGz.loading,typingIndicatorMap:new Map,conversationToBeDeleted:null,loggedInUser:null,isFirstReload:!1,unreadMentions:!1}),[B,H]=a.useState(!1),z=a.useRef(V("conversation_delete_title")),Y=a.useRef(V("conversation_delete_subtitle")),q=a.useRef(V("conversation_delete_confirm_no")),W=a.useRef(V("conversation_delete_confirm_yes")),$=a.useRef(V("conversation_chat_title")),Q=a.useRef(null),X=a.useRef(""),ee=u(d),te=a.useRef(!1),[ne,re]=a.useState(g),ae=l(N),oe=a.useRef([]);U.isFirstReload&&(te.current=!0,U.isFirstReload=!1);const ie=a.useCallback(async(e,n=!1)=>{try{const r=Q.current;if(!r)return;const a=await r.fetchNext();if(0!==a.length&&X.current===e){let e=!!n;F({type:"appendConversations",conversations:a,removeOldConversation:e}),oe.current=e?a:[...oe.current,...a]}te.current&&j_.attachConnestionListener(()=>{Q.current=new j_({conversationsRequestBuilder:i,errorHandler:ee}),ie(X.current="initialFetchNext_"+String(Date.now()),!0)}),0==a.length&&0==oe.current.length&&F({type:"setFetchState",fetchState:t.DGz.empty}),te.current&&(te.current=!1)}catch(e){oe.current.length<=0&&F({type:"setFetchState",fetchState:t.DGz.error}),ee(e,"fetchNextAndAppendConversations")}},[F]),se=a.useCallback(e=>{try{const t="getMetadata",n="incrementUnreadCount";let r;return t in e&&"function"==typeof e[t]&&(r=e[t]())&&"object"==typeof r&&n in r&&Boolean(r.incrementUnreadCount)||e instanceof o.CometChat.CustomMessage&&e.willUpdateConversation()}catch(e){ee(e,"getIncrementUnreadCountBoolFromMetaData")}},[]),ce=a.useCallback((e,t)=>{try{if(e&&e.getConversationType()&&t.getReceiverType()!==e.getConversationType())return!0;const n=e?.getOnlyAgentic()||!1,r=e?.getHideAgentic()||!1;if(t.getReceiverType()===pt.MessageReceiverType.group){if(n)return!0}else{const e=t.getReceiver(),a=t.getSender();if("@agentic"!==a.getRole()&&"@agentic"!==e.getRole()&&n)return!0;if(("@agentic"===a.getRole()||"@agentic"===e.getRole())&&r)return!0}return!1}catch(e){return ee(e,"hideConversation"),!1}},[ee]),le=a.useCallback((e,t)=>{try{const n=t||e.getLastMessage();if(ce(i?.build()||null,n))return;if(!V_(n))return;if(!j_.shouldLastMessageAndUnreadCountBeUpdated(n))return;if(n.getSender().getUid()!=U.loggedInUser?.getUid()&&e.setUnreadMessageCount((e.getUnreadMessageCount()??0)+1),n instanceof o.CometChat.Action&&n.getReceiverType()===pt.MessageReceiverType.group&&e.getConversationType()===pt.MessageReceiverType.group&&n.getReceiver().getGuid()===n.getActionFor().getGuid()){let t=e.getConversationWith();t.setMembersCount(n.getActionFor().getMembersCount()),e.setConversationWith(t)}e.setLastMessage(n),F({type:"fromUpdateConversationListFn",conversation:e})}catch(e){ee(e,"updateConversationList")}},[F,U.loggedInUser,se,ce,i]),ue=a.useCallback(async(e,t=!1)=>{try{const n=U.conversationList.findIndex(t=>t.getConversationId()===e.getConversationId());if(n>=0){const r=U.conversationList[n];t?F({type:"removeConversation",conversation:r}):le(r,e)}else o.CometChat.CometChatHelper.getConversationFromMessage(e).then(t=>{le(t,e)})}catch(e){ee(e,"refreshSingleConversation")}},[ee,le,U.conversationList]),de=a.useCallback(async e=>{try{let t=!0;e.getSender().getUid()===U.loggedInUser?.getUid()||e.getDeliveredAt()||o.CometChat.markAsDelivered(e),O||ce(i?.build()||null,e)||e.getCategory()===pt.MessageCategory.custom&&!se(e)||g&&g.getConversationId()===e.getConversationId()||Jf.play(Jf.Sound.incomingMessageFromOther,ae.current),A_.conversationUpdateSettings?.shouldUpdateOnCustomMessages()||e.getCategory()!==pt.MessageCategory.custom||(t=!1),A_.conversationUpdateSettings?.shouldUpdateOnGroupActions()||e.getCategory()!==pt.MessageCategory.action||(t=!1),t&&ue(e)}catch(e){ee(e)}},[_,ue,ee,U.loggedInUser,ne,se,O,ae,ce,i]),pe=a.useCallback((e,t)=>{F({type:"setLastMessageReadOrDeliveredAt",updateReadAt:t,messageReceipt:e})},[F]),he=a.useCallback((e,t)=>{try{if(U.loggedInUser?.getUid()===e.getSender()?.getUid())return;F(t?{type:"addTypingIndicator",typingIndicator:e}:{type:"removeTypingIndicator",typingIndicator:e})}catch(e){ee(e,"setTypingIndicator")}},[U.loggedInUser]);function me(e){try{const t=e.getConversationWith();return t instanceof o.CometChat.User?t.getAvatar():t.getIcon()}catch(e){throw ee(e,"getListItemAvatarURL"),e}}function ge(e){try{const t=e.getLastMessage();return V_(t)&&t.getParentMessageId()?r.jsx("div",{className:"cometchat-conversations__subtitle-icon cometchat-conversations__subtitle-icon-thread"}):null}catch(e){throw ee(e,"getSubtitleThreadView"),e}}function fe(e){try{let n=e.getLastMessage()?e.getLastMessage().getCategory():"";if(!function(e){try{const t=e.getLastMessage(),n=e.getConversationWith(),r=n instanceof o.CometChat.User?n?.getUid():n.getGuid();return!_&&V_(t)&&!t.getDeletedAt()&&t.getCategory()!==pt.MessageCategory.action&&t.getSender()?.getUid()===U.loggedInUser?.getUid()&&(t.getCategory()!=pt.MessageCategory.custom||t.getCategory()==pt.MessageCategory.custom&&t.getType()!==pt.calls.meeting)&&void 0===U.typingIndicatorMap.get(r)}catch(e){return ee(e,"shouldDisplaySubtitleReceipt"),!1}}(e)||n===pt.MessageCategory.interactive)return null;const a=ar.getReceiptStatus(e.getLastMessage());let i="";return i=a===t.W4f.error?"error":a===t.W4f.sent?"sent":a===t.W4f.delivered?"delivered":a===t.W4f.read?"read":"wait",r.jsx("div",{className:`\n        cometchat-receipts cometchat-conversations__subtitle-receipts cometchat-conversations__subtitle-receipts-${i} cometchat-receipts-${i}`})}catch(e){throw ee(e,"getSubtitleReadReceiptView"),e}}function _e(e){try{const n=e.getConversationWith(),a=n instanceof o.CometChat.Group?n.getGuid():n?.getUid(),i=U.typingIndicatorMap.get(a);if(void 0!==i)return n instanceof o.CometChat.Group?r.jsxs("div",{className:"cometchat-conversations__subtitle-typing",children:[i.getSender().getName(),": ",V("conversation_subtitle_typing")]}):r.jsx("div",{className:"cometchat-conversations__subtitle-typing",children:V("conversation_subtitle_typing")});if(U.loggedInUser){let n="";const a=e.getLastMessage(),i=a&&e?.getConversationType()!=o.CometChat.RECEIVER_TYPE.USER,s=a?.getSender().getUid()==U.loggedInUser?.getUid()?V("conversation_subtitle_you_message"):a?.getSender().getName();let c=Gf.getDataSource().getLastConversationMessage(e,U.loggedInUser,{mentionsTargetElement:t.rnx.conversation,textFormattersList:k});if(a&&a.getCategory()===pt.MessageCategory.call&&(n=function(e){try{let t="";return t=M_(e,U.loggedInUser)?e.getType()===pt.MessageTypes.audio?"incoming-audio-call":"incoming-video-call":e.getType()===pt.MessageTypes.audio?"outgoing-audio-call":"outgoing-video-call",t}catch(e){return ee(e,"getIconNameByCallType"),""}}(a),c=n.includes("video")?V("conversation_subtitle_video_call"):V("conversation_subtitle_voice_call")),a&&a.getCategory()!==pt.MessageCategory.call&&a.getType()&&(n=function(e){try{let t="";const n=e.getType();switch(n){case pt.MessageTypes.text:vt(e.getText())&&(t="link");break;case pt.MessageTypes.image:t="image";break;case pt.MessageTypes.file:t="file";break;case pt.MessageTypes.video:t="video";break;case pt.MessageTypes.audio:t="audio";break;case $t.extension_poll:t="poll";break;case Qt.sticker:t="sticker";break;case Zt.extension_whiteboard:t="collaborative-whiteboard";break;case Jt.extension_document:t="collaborative-document";break;default:t=new Set(Object.values(pt.MessageTypes)).has(n)||e.getCategory()!==pt.MessageCategory.custom?"":"unsupported"}return(e.getDeletedAt()||e.getCategory()===pt.MessageCategory.interactive)&&(t="deleted"),t}catch(e){return ee(e,"getIconNameByMessageType"),""}}(a)),a?.getDeletedAt()&&(c=V("conversation_subtitle_deleted_message")),ve(e))return r.jsx("div",{className:"cometchat-conversations__subtitle-text-wrapper",children:r.jsx("div",{className:"cometchat-conversations__subtitle-text",children:V("conversation_start")})});let l=n?`cometchat-conversations__subtitle-icon-${n}`:"cometchat-conversations__subtitle-icon-none";return"unsupported"===n&&(l+=` cometchat-conversations__subtitle-icon-${a?.getType()}`),r.jsxs("div",{className:"cometchat-conversations__subtitle-text-wrapper",children:[i&&a.getCategory()!=pt.MessageCategory.action&&(a.getCategory()!=pt.MessageCategory.custom||a.getCategory()==pt.MessageCategory.custom&&a.getType()!==pt.calls.meeting)&&r.jsxs("span",{className:"cometchat-conversations__subtitle-text-sender",children:[s,":"]}),r.jsx("div",{className:`cometchat-conversations__subtitle-icon ${l}`}),r.jsx("div",{className:"cometchat-conversations__subtitle-text",dangerouslySetInnerHTML:{__html:c}})]})}return""}catch(e){return ee(e,"getSubtitleText"),""}}function be(e){return r.jsx(r.Fragment,{children:_e(e)})}function ve(e){try{const t=e.getConversationWith();return t instanceof o.CometChat.User&&"@agentic"===t.getRole()}catch(e){return ee(e,"isAgentChat"),!1}}function ye(e){const t=e.getConversationWith(),n=t instanceof o.CometChat.Group?t.getGuid():t?.getUid(),a=U.typingIndicatorMap.get(n);return null!==h?r.jsx(r.Fragment,{children:h(e)}):r.jsxs("div",{className:"cometchat-conversations__subtitle",children:[!ve(e)&&!a&&ge(e),!ve(e)&&fe(e),be(e)]})}function Ee(e){F({type:"setConversationToBeDeleted",conversation:e})}function Ce(e){try{if(f!==t.QcU.none)return null;let n;if(b)n=b?.(e);else{const t=A?[]:_n.getDefaultOptions();for(let n=0;n<t.length;n++)t[n].id!==pt.ConversationOptions.delete||t[n].onClick||(t[n].onClick=()=>Ee(e));n=t}return 0===n?.length?null:r.jsx("div",{className:"cometchat-conversations__trailing-view-options",children:r.jsx(qt,{data:n,topMenuSize:2,placement:t.W.left,onOptionClicked:t=>{t?.onClick&&t.onClick(e)}})})}catch(e){ee(e,"getListItemMenuView")}}function Se(e){try{if(m)return r.jsx(r.Fragment,{children:m(e)});switch(f){case t.QcU.none:{const t=e.getLastMessage();return t?r.jsxs("div",{className:"cometchat-conversations__trailing-view",children:[r.jsx("div",{className:"cometchat-conversations__trailing-view-date",children:r.jsx(rr,{timestamp:t.getSentAt(),calendarObject:{today:"hh:mm A",yesterday:`[${V("yesterday")}]`,otherDays:"DD/MM/YYYY",...kt(G.calendarObject),...kt(M)}})}),r.jsx("div",{className:"cometchat-conversations__trailing-view-badge",children:e.getUnreadMessageCount()>0&&r.jsx("div",{className:"cometchat-badge cometchat-conversations__trailing-view-badge-count",children:e.getUnreadMessageCount()<=999?e.getUnreadMessageCount():"999+"})})]}):null}case t.QcU.single:return r.jsx("div",{className:"cometchat-conversations__single-select",children:r.jsx(Z,{name:pt.radioNames.conversations,id:e.getConversationId(),onRadioButtonChanged:t=>w?.(e,t.checked)})});case t.QcU.multiple:return r.jsx("div",{className:"cometchat-conversations__multiple-select",children:r.jsx(c,{onCheckBoxValueChanged:t=>w?.(e,t.checked)})});default:return null}}catch(e){return ee(e,"getListItemTailContentView"),null}}return function(e){const{conversationsRequestBuilder:n,conversationsManagerRef:r,fetchNextAndAppendConversations:i,fetchNextIdRef:s,dispatch:c,errorHandler:l,refreshSingleConversation:u,onMessageReceived:d,setReceipts:p,setTypingIndicator:h,loggedInUser:m,activeConversation:g,setActiveConversationState:f,hideUserStatus:_,hideConversation:b}=e,v=a.useRef(!0);a.useEffect(()=>{if(v.current)try{c({type:"setIsFirstReload",isFirstReload:!0}),r.current=new j_({conversationsRequestBuilder:n,errorHandler:l}),c({type:"setConversationList",conversationList:[]}),i(s.current="initialFetchNext_"+String(Date.now())),v.current=!1}catch(e){l(e,"useEffect")}},[n,i,c,r,s]),a.useEffect(()=>{(async()=>{try{c({type:"setLoggedInUser",loggedInUser:dt.getLoggedInUser()})}catch(e){l(e,"setLoggedInUser")}})()},[l,c]),a.useEffect(()=>{if(!_)return j_.attachUserListener(e=>c({type:"updateConversationWithUser",user:e}))},[c]),a.useEffect(()=>j_.attachGroupListener(u,m),[u,m]),a.useEffect(()=>j_.attachMessageReceivedListener(d),[d]),a.useEffect(()=>j_.attachMessageModifiedListener(e=>{c({type:"updateConversationLastMessage",message:e})}),[c]),a.useEffect(()=>j_.attachMessageReceiptListener(p),[p]),a.useEffect(()=>j_.attachMessageTypingListener(h),[h]),a.useEffect(()=>j_.attachCallListener(u),[u]),a.useEffect(()=>{try{const e=U_.ccConversationDeleted.subscribe(e=>{e&&(c({type:"removeConversation",conversation:e}),c({type:"setConversationToBeDeleted",conversation:null}))}),t=U_.ccUpdateConversation.subscribe(e=>{e&&c({type:"updateConversation",conversation:e})}),n=U_.ccMarkConversationAsRead.subscribe(e=>{c({type:"resetUnreadCount",conversation:e})});return()=>{e.unsubscribe(),t.unsubscribe(),n.unsubscribe()}}catch(e){l(e,"ccConversationDeleted")}},[c]),a.useEffect(()=>{try{var e;n&&(e=n.build());const r=cn.ccGroupCreated.subscribe(e=>{(async e=>{try{const t=await o.CometChat.getConversation(e.getGuid(),pt.MessageReceiverType.group);t&&c({type:"addConversationOfTheGroupAtTheTop",conversation:t})}catch(e){console.error("Failed to fetch conversation:",e)}})(e)}),a=cn.ccGroupMemberScopeChanged.subscribe(e=>{c({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e.message})}),i=cn.ccGroupMemberAdded.subscribe(e=>{const t=e.messages[e.messages.length-1];t&&c({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.userAddedIn,message:t})}),s=cn.ccGroupMemberKicked.subscribe(e=>{c({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.kickedFrom,message:e.message})}),l=cn.ccGroupMemberBanned.subscribe(e=>{c({type:"updateConversationLastMessageAndGroupAndPlaceAtTheTop",group:e.kickedFrom,message:e.message})}),u=cn.ccGroupDeleted.subscribe(e=>{c({type:"removeConversationOfTheGroup",group:e})}),d=cn.ccGroupLeft.subscribe(e=>{j_.shouldLastMessageAndUnreadCountBeUpdated(e.message)&&c({type:"removeConversationOfTheGroup",group:e.leftGroup})}),p=ut.ccUserBlocked.subscribe(t=>{e&&!e?.isIncludeBlockedUsers()?c({type:"removeConversationOfTheUser",user:t}):c({type:"updateConversationWithUser",user:t})}),h=ut.ccUserUnblocked.subscribe(t=>{e&&e.isIncludeBlockedUsers()&&c({type:"updateConversationWithUser",user:t})}),m=Qf.ccMessageEdited.subscribe(e=>{e.status===t.qpt.success&&c({type:"updateConversationLastMessage",message:e.message})}),g=Qf.ccMessageSent.subscribe(n=>{if(n.status===t.qpt.success){if(b(e,n.message))return;o.CometChat.CometChatHelper.getConversationFromMessage(n.message).then(e=>{f(e),c({type:"updateConversationLastMessageResetUnreadCountAndPlaceAtTheTop",message:n.message,conversation:e})})}}),_=Qf.ccMessageDeleted.subscribe(e=>{c({type:"updateConversationLastMessage",message:ht.clone(e)})}),v=Qf.ccMessageRead.subscribe(e=>{c({type:"resetUnreadCountAndSetReadAtIfLastMessage",message:e})}),y=Yf.ccCallAccepted.subscribe(e=>{c({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),E=Yf.ccOutgoingCall.subscribe(e=>{c({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),C=Yf.ccCallRejected.subscribe(e=>{c({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})}),S=Yf.ccCallEnded.subscribe(e=>{c({type:"updateConversationLastMessageAndPlaceAtTheTop",message:e})});return()=>{r.unsubscribe(),a.unsubscribe(),i.unsubscribe(),s.unsubscribe(),l.unsubscribe(),u.unsubscribe(),d.unsubscribe(),p.unsubscribe(),h.unsubscribe(),m.unsubscribe(),g.unsubscribe(),_.unsubscribe(),v.unsubscribe(),y.unsubscribe(),E.unsubscribe(),C.unsubscribe(),S.unsubscribe()}}catch(e){l(e,"useEffect")}},[c]),a.useEffect(()=>{f(g)},[g])}({conversationsRequestBuilder:i,conversationsManagerRef:Q,fetchNextAndAppendConversations:ie,fetchNextIdRef:X,dispatch:F,errorHandler:ee,refreshSingleConversation:ue,onMessageReceived:de,setReceipts:pe,setTypingIndicator:he,loggedInUser:U.loggedInUser,activeConversation:g,setActiveConversationState:re,hideUserStatus:R,hideConversation:ce}),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsxs("div",{className:"cometchat-conversations "+(j?"":"cometchat-conversations-hide-scrollbar"),children:[r.jsx(K,{showScrollbar:j,title:$.current,hideSearch:!D,searchView:L,onSearchBarClicked:P,list:U.conversationList,listItemKey:"getConversationId",itemView:null!==p?p:function(e){try{const t=e.getConversationId()===ne?.getConversationId();let n,a,o=e.getConversationType(),i=!1;if(o===pt.MessageReceiverType.group&&(n=e.getConversationWith().getType()),o===pt.MessageReceiverType.user){let t=e.getConversationWith();a=t.getStatus(),i=(new tn).getUserStatusVisible(t)||R}return r.jsx("div",{className:`cometchat-conversations__list-item\n          ${n&&!I?`cometchat-conversations__list-item-${n}`:""}\n           ${a&&!i?`cometchat-conversations__list-item-${a}`:""}\n           ${t?"cometchat-conversations__list-item-active":""}\n           ${ve(e)&&"cometchat-conversations__list-item-agent"}\n        \n        `,children:r.jsx(J,{id:e.getConversationId(),avatarURL:me(e),avatarName:e.getConversationWith().getName(),title:e.getConversationWith().getName(),titleView:T?T(e):void 0,leadingView:x?x(e):void 0,onListItemClicked:t=>S?.(e),subtitleView:ye(e),menuView:Ce(e),trailingView:(!ve(e)||m)&&Se(e)})})}catch(e){throw ee(e,"getListItem"),e}},onScrolledToBottom:()=>ie(X.current="onScrolledToBottom_"+String(Date.now())),showSectionHeader:!1,state:U.fetchState,loadingView:v||r.jsx("div",{className:"cometchat-conversations__shimmer",children:[...Array(15)].map((e,t)=>r.jsxs("div",{className:"cometchat-conversations__shimmer-item",children:[r.jsx("div",{className:"cometchat-conversations__shimmer-item-avatar"}),r.jsxs("div",{className:"cometchat-conversations__shimmer-item-body",children:[r.jsxs("div",{className:"cometchat-conversations__shimmer-item-body-title-wrapper",children:[r.jsx("div",{className:"cometchat-conversations__shimmer-item-body-title"}),r.jsx("div",{className:"cometchat-conversations__shimmer-item-body-tail"})]}),r.jsx("div",{className:"cometchat-conversations__shimmer-item-body-subtitle"})]})]},t))}),emptyView:(()=>{const e="dark"==Et();return y||r.jsxs("div",{className:"cometchat-conversations__empty-state-view",children:[r.jsx("div",{className:"cometchat-conversations__empty-state-view-icon",children:r.jsx("img",{src:e?B_:F_,alt:""})}),r.jsxs("div",{className:"cometchat-conversations__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-conversations__empty-state-view-body-title",children:V("conversation_empty_title")}),r.jsx("div",{className:"cometchat-conversations__empty-state-view-body-description",children:V("conversation_empty_subtitle")})]})]})})(),errorView:(()=>{const e="dark"==Et();return E||r.jsxs("div",{className:"cometchat-conversations__error-state-view",children:[r.jsx("div",{className:"cometchat-conversations__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-conversations__error-state-view-body",children:[r.jsx("div",{className:"cometchat-conversations__error-state-view-body-title",children:V("conversation_error_title")}),r.jsx("div",{className:"cometchat-conversations__error-state-view-body-description",children:V("conversation_error_subtitle")})]})]})})(),hideError:C,headerView:n}),null===U.conversationToBeDeleted?null:r.jsx("div",{className:"cometchat-backdrop cometchat-conversations__trailing-view-options-delete-backdrop",children:r.jsx(G_,{title:z.current,messageText:Y.current,cancelButtonText:q.current,confirmButtonText:W.current,onSubmitClick:function(){return new Promise(async(e,t)=>{try{if(U.conversationToBeDeleted){const t=U.conversationToBeDeleted.getConversationWith(),n=t instanceof o.CometChat.Group?t.getGuid():t.getUid();return await o.CometChat.deleteConversation(n,U.conversationToBeDeleted.getConversationType()),H(!0),U_.ccConversationDeleted.next(ht.clone(U.conversationToBeDeleted)),F({type:"removeConversation",conversation:U.conversationToBeDeleted}),F({type:"setConversationToBeDeleted",conversation:null}),e()}}catch(e){return ee(e),t()}})},onCancelClick:function(){F({type:"setConversationToBeDeleted",conversation:null})}})}),B?r.jsx(s,{text:V("conversation_deleted"),onClose:()=>{H(!1)}}):null]})})},t.bzF=rr,t.dhg=({children:e,iframeId:t})=>{const[n,o]=a.useState(null),[i,s]=a.useState(null),[c,l]=a.useState(null);a.useEffect(()=>{let e=null,n=0,r=null;const a=()=>{const e=document.getElementById(t);if(!e||!e.contentWindow)return l(null),s(null),o(null),!1;try{const t=e.contentWindow,n=e.contentDocument||e.contentWindow.document;return!!n&&(l(e),s(t),o(n),r&&(r.disconnect(),r=null),!0)}catch(e){return console.warn("Failed to access iframe content:",e),!1}},i=()=>{if(n>=10)return void console.warn("Failed to initialize iframe after 10 attempts");const t=Math.min(100*Math.pow(2,n),5e3),r=.1*Math.random()*t;e=setTimeout(()=>{n++,a()||i()},t+r)};a()||(r=new MutationObserver(r=>{r.forEach(r=>{"childList"===r.type&&r.addedNodes.forEach(r=>{if(r.nodeType===Node.ELEMENT_NODE){const o=r;(o.id===t||o.querySelector(`#${t}`))&&(e&&(clearTimeout(e),e=null),n=0,a())}})})}),r.observe(document.body,{childList:!0,subtree:!0}),i());const c=()=>{e&&(clearTimeout(e),e=null),n=0,a()},u=document.getElementById(t);return u&&u.addEventListener("load",c),()=>{e&&clearTimeout(e),r&&r.disconnect(),u&&u.removeEventListener("load",c)}},[t]);const u={iframeDocument:n,iframeWindow:i,iframe:c};return r.jsx(z.Provider,{value:u,children:e})},t.T9h=cn,t.Zvy=gn,t.Nk_=function(e){const{headerView:n,hideSearch:i=!1,groupsRequestBuilder:s=null,searchRequestBuilder:l=null,onError:d,itemView:p=null,subtitleView:h=null,options:m=null,selectionMode:g=t.QcU.none,onSelect:f,onItemClick:_,activeGroup:b=null,loadingView:v,emptyView:y,errorView:E,hideError:C=!1,hideGroupType:S=!1,leadingView:w,titleView:k,trailingView:x,showScrollbar:T=!1}=e,A=a.useRef(V("group_title")),R=a.useRef(V("group_seach_placeholder")),[I,O]=a.useReducer(Y_,{searchText:"",groupList:[],fetchState:t.DGz.loading,isFirstReload:!1}),N=a.useRef(null),M=a.useRef(""),D=u(d),L=a.useRef(!1),P=a.useRef(!1),j=a.useRef("");I.searchText!==j.current&&I.searchText.trim().length>0&&I.searchText.trim().length==I.searchText.length&&(j.current=I.searchText),I.isFirstReload&&(L.current=!0,I.isFirstReload=!1);const U=a.useCallback(e=>{try{const t=e.trim();(0===e.length||t.length>0)&&(j.current="",O({type:"setSearchText",searchText:t}))}catch(e){D(e,"onSearch")}},[O]),F=a.useCallback(async e=>{const n=N.current;if(!n)return;let r=P.current?t.DGz.loaded:t.DGz.loading;O({type:"setFetchState",fetchState:r});try{const r=await n.fetchNext();if(e!==M.current)return;if(0!==r.length){let e=!!P.current;O({type:"appendGroups",groups:r,removeOldGroups:e})}O({type:"setFetchState",fetchState:t.DGz.loaded}),L.current&&(z_.attachConnestionListener(()=>{const e=null===s?(new o.CometChat.GroupsRequestBuilder).setLimit(30):s;N.current=new z_({searchText:j.current,groupsRequestBuilder:e,searchRequestBuilder:l,groupsSearchText:j}),P.current=!0}),L.current=!1),P.current?P.current=!1:O({type:"setFetchState",fetchState:t.DGz.loaded})}catch(n){e===M.current&&I.groupList?.length<=0&&O({type:"setFetchState",fetchState:t.DGz.error}),D(n,"fetchNextAndAppendGroups")}},[D,O]);function B(e){try{if(null!==h)return h(e);const t=e.getMembersCount();return r.jsx("div",{className:"cometchat-groups__subtitle",children:`${t} ${V(t>1?"group_members":"group_member")}`})}catch(e){return D(e,"getSubtitleView"),r.jsx(r.Fragment,{})}}function G(e){try{let t;return(t=m?.(e))?.length?r.jsx(qt,{data:t,onOptionClicked:e=>e.onClick?.()}):null}catch(e){return D(e,"getMenuView"),null}}function H(e){try{if(x)return x(e);switch(g){case t.QcU.none:return null;case t.QcU.single:return r.jsx(Z,{name:pt.radioNames.groups,id:e.getGuid(),onRadioButtonChanged:t=>f?.(e,t.checked)});case t.QcU.multiple:return r.jsx(c,{onCheckBoxValueChanged:t=>f?.(e,t.checked)})}}catch(e){D(e,"getTailView")}}return function(e){const{groupsRequestBuilder:t,searchRequestBuilder:n,searchText:r,fetchNextIdRef:o,groupsManagerRef:i,dispatch:s,fetchNextAndAppendGroups:c,groupsSearchText:l,errorHandler:u}=e;a.useEffect(()=>{try{t?.searchKeyword?l.current=t?.searchKeyword:n?.searchKeyword&&(l.current=n?.searchKeyword)}catch(e){u(e,"useEffect")}},[]),a.useEffect(()=>{try{s({type:"setIsFirstReload",isFirstReload:!0}),s({type:"setGroupList",groupList:[]}),i.current=new z_({searchText:r,groupsRequestBuilder:t,searchRequestBuilder:n,groupsSearchText:l}),c(o.current="initialFetch_"+String(Date.now()))}catch(e){u(e,"useEffect")}},[c,t,n,r,s,o,i,l]),a.useEffect(()=>z_.attachListeners(s),[s]),a.useEffect(()=>{try{const e=cn.ccGroupCreated.subscribe(e=>{s({type:"prependGroup",group:ht.clone(e)})}),t=cn.ccGroupDeleted.subscribe(e=>{s({type:"removeGroup",guid:e.getGuid()})}),n=cn.ccGroupMemberJoined.subscribe(e=>{s({type:"updateGroup",group:ht.clone(e.joinedGroup)})}),r=cn.ccGroupMemberKicked.subscribe(e=>{s({type:"updateGroup",group:ht.clone(e.kickedFrom)})}),a=cn.ccGroupLeft.subscribe(e=>{e.leftGroup.getType()===pt.GroupTypes.private?s({type:"removeGroup",guid:e.leftGroup.getGuid()}):s({type:"updateGroup",group:e.leftGroup})}),o=cn.ccGroupMemberBanned.subscribe(e=>{s({type:"updateGroup",group:e.kickedFrom})}),i=cn.ccGroupMemberAdded.subscribe(e=>{s({type:"updateGroup",group:e.userAddedIn})}),c=cn.ccOwnershipChanged.subscribe(e=>{s({type:"updateGroup",group:e.group})});return()=>{e.unsubscribe(),t.unsubscribe(),n.unsubscribe(),r.unsubscribe(),a.unsubscribe(),o.unsubscribe(),i.unsubscribe(),c.unsubscribe()}}catch(e){u(e,"useEffect")}},[s])}({searchText:I.searchText,groupsRequestBuilder:s,searchRequestBuilder:l,fetchNextIdRef:M,groupsManagerRef:N,dispatch:O,fetchNextAndAppendGroups:F,groupsSearchText:j,errorHandler:D}),r.jsx("div",{className:"cometchat",style:{width:"100%",height:"100%"},children:r.jsx("div",{className:"cometchat-groups "+(T?"":"cometchat-groups-hide-scrollbar"),children:r.jsx(K,{showScrollbar:T,title:A.current,searchPlaceholderText:R.current||V("group_search_placeholder"),hideSearch:i,searchText:I.searchText,onSearch:U,list:I.groupList,itemView:null!==p?p:function(e){try{const t=e.getType(),n=b?.getGuid()===e.getGuid();return r.jsx("div",{className:`cometchat-groups__list-item ${S?"":`cometchat-groups__list-item-${t}`}\n                ${n?"cometchat-groups__list-item-active":""}\n                `,children:r.jsx(J,{id:e.getGuid(),avatarURL:e.getIcon(),avatarName:e.getName(),title:e.getName(),titleView:k?.(e),leadingView:w?.(e),subtitleView:B(e),menuView:G(e),trailingView:H(e),onListItemClicked:t=>_?.(e)})})}catch(e){return D(e,"getListItem"),r.jsx(r.Fragment,{})}},onScrolledToBottom:()=>F(M.current="onScrolledToBottom_"+String(Date.now())),listItemKey:"getGuid",showSectionHeader:!1,state:I.fetchState===t.DGz.loaded&&0===I.groupList.length?t.DGz.empty:I.fetchState,loadingView:(()=>{try{return v||r.jsx("div",{className:"cometchat-groups__shimmer",children:[...Array(15)].map((e,t)=>r.jsxs("div",{className:"cometchat-groups__shimmer-item",children:[r.jsx("div",{className:"cometchat-groups__shimmer-item-avatar"}),r.jsxs("div",{className:"cometchat-groups__shimmer-item-body",children:[r.jsx("div",{className:"cometchat-groups__shimmer-item-body-title"}),r.jsx("div",{className:"cometchat-groups__shimmer-item-body-subtitle"})]})]},t))})}catch(e){D(e,"getLoadingView")}})(),emptyView:(()=>{try{const e="dark"==Et();return y||r.jsxs("div",{className:"cometchat-groups__empty-state-view",children:[r.jsx("div",{className:"cometchat-groups__empty-state-view-icon",children:r.jsx("img",{src:e?hn:pn,alt:""})}),r.jsxs("div",{className:"cometchat-groups__empty-state-view-body",children:[r.jsx("div",{className:"cometchat-groups__empty-state-view-body-title",children:V("group_empty_title")}),r.jsx("div",{className:"cometchat-groups__empty-state-view-body-description",children:V("group_empty_subtitle")})]})]})}catch(e){D(e,"getEmptyView")}})(),errorView:(()=>{try{const e="dark"==Et();return E||r.jsxs("div",{className:"cometchat-groups__error-state-view",children:[r.jsx("div",{className:"cometchat-groups__error-state-view-icon",children:r.jsx("img",{src:e?Wt:Kt,alt:""})}),r.jsxs("div",{className:"cometchat-groups__error-state-view-body",children:[r.jsx("div",{className:"cometchat-groups__error-state-view-body-title",children:V("group_error_title")}),r.jsx("div",{className:"cometchat-groups__error-state-view-body-description",children:V("group_error_subtitle")})]})]})}catch(e){D(e,"getErrorView")}})(),hideError:C,headerView:n})})})},t.pMF=e=>{const{call:t,disableSoundForCalls:n=!1,customSoundForCalls:i="",onAccept:s,onDecline:c,subtitleView:l=null,leadingView:d,titleView:p,trailingView:h,itemView:m,onError:g,callSettingsBuilder:f}=e,_=u(g),b=a.useRef(V("incoming_call_confirm_yes")),v=a.useRef(V("incoming_call_confirm_no")),[y,E]=a.useState(null),[C,S]=a.useState(!1),[w,k]=a.useState(!1),[x,T]=a.useState(!1),A=a.useRef(null),R=a.useRef(""),I=a.useRef(null),O=a.useRef(null),N=a.useRef(null);let M="incomingcall_"+(new Date).getTime(),D=V("incoming_call_subtitle");const L=a.useCallback(()=>{try{i?Jf.play(Jf.Sound.incomingCall,i):Jf.play(Jf.Sound.incomingCall)}catch(e){_(e,"playAudio")}},[i]),P=a.useCallback(e=>{let t=!1;try{if(O_.getItem(pt.calls.activecall)){let n=O_.getItem(pt.calls.activecall);t=!(!n||n.sessionId!==e.getSessionId())}else t=!1;return t}catch(e){return _(e,"isCallActive"),t}},[]),j=a.useCallback((e=pt.calls.rejected)=>{try{Jf.pause(),c?c(A.current):"string"==typeof A?.current?.getSessionId()&&o.CometChat.rejectCall(A?.current?.getSessionId(),e).then(e=>{O_.setItem(pt.calls.activecall,e),Yf.ccCallRejected.next(e),S(!1),A.current=null},e=>{_(e,"rejectCall")})}catch(e){_(e,"rejectIncomingCall")}},[c]),U=a.useCallback(e=>{try{if(!P(e)&&y?.getUid()!==e?.getSender()?.getUid()&&A.current)n||w||x||setTimeout(()=>{L()},100),w||x?(w||x)&&(Jf.pause(),j(pt.calls.busy),Yf.ccCallRejected.next(e)):S(!0);else{if(y?.getUid()===e?.getSender()?.getUid())return void Jf.pause();Jf.pause(),j(pt.calls.busy)}}catch(e){_(e,"showCall")}},[P,n,L,j,y,w,x]),F=a.useCallback(e=>{try{if(e?.key!==pt.calls.activecall)return;if(e.newValue||e.oldValue){let t;e.newValue?t=JSON.parse(e.newValue):e.oldValue&&(t=JSON.parse(e.oldValue)),A.current?.getSessionId()===t?.sessionId&&(Jf.pause(),A.current=null,S(!1))}return}catch(e){_(e,"localStorageChange")}},[]),B=()=>{k(!1),T(!1),A.current=null,R.current=""},G=()=>{try{O_.getItem(pt.calls.activecall)&&O_.removeItem(pt.calls.activecall)}catch(e){_(e,"clearStoredActiveCall")}},H=a.useCallback(()=>{try{const e=Yf.ccCallEnded.subscribe(e=>{G(),B()}),t=Yf.ccOutgoingCall.subscribe(e=>{T(!0),N.current=e}),n=Yf.ccCallRejected.subscribe(e=>{G(),e?.getSessionId()===A.current?.getSessionId()||e?.getSessionId()===N.current?.getSessionId()?(k(!1),T(!1),N.current=null):e?.getSessionId()===N.current?.getSessionId()&&(N.current=null,T(!1))});return()=>{e?.unsubscribe(),t?.unsubscribe(),n?.unsubscribe()}}catch(e){_(e,"subscribeToEvents")}},[]),z=a.useCallback(()=>{try{O_.attachChangeDetection(F),o.CometChat.addCallListener(M,new o.CometChat.CallListener({onIncomingCallReceived:e=>{(()=>{try{return A.current||o.CometChat.getActiveCall()||O_.getItem(pt.calls.activecall)}catch(e){_(e,"getIsActiveCall")}})()?o.CometChat.rejectCall(e.getSessionId(),pt.calls.busy).then(e=>{Yf.ccCallRejected.next(e)},e=>{_(e,"rejectCall - onIncomingCallReceived")}):(A.current=e,U(e))},onIncomingCallCancelled:e=>{Jf.pause(),A.current=null,S(!1)},onOutgoingCallAccepted:e=>{Jf.pause(),e.getSender()?.getUid()===y?.getUid()&&(A.current=null,N.current=null,S(!1))},onOutgoingCallRejected:e=>{Jf.pause(),A.current=null,N.current=null,T(!1),k(!1),S(!1)}}))}catch(e){_(e,"attachListeners")}},[F,U,M,y]),Y=a.useCallback(()=>{try{O_.detachChangeDetection(F),o.CometChat.removeCallListener(M)}catch(e){_(e,"removeListener")}},[F,M]),q=a.useCallback(()=>{try{let e=o.CometChat.getActiveCall();return new Promise((t,n)=>{if(!e)return t({success:!0});let r=e?.getSessionId();o.CometChat.endCall(r).then(e=>t(e),e=>n(e))})}catch(e){_(e,"checkForActiveCallAndEndCall")}},[]),K=a.useCallback(()=>{try{Jf.pause(),s?s(A.current):q()?.then(e=>{o.CometChat.acceptCall(A.current.getSessionId()).then(e=>{Yf.ccCallAccepted.next(e),O_.setItem(pt.calls.activecall,e),k(!0),A.current=e,R.current=e?.getSessionId(),S(!1)},e=>{_(e,"acceptCall")})},e=>{_(e,"checkForActiveCallAndEndCall")})}catch(e){_(e,"acceptIncomingCall")}},[q,s]);return function(e,t,n,r,i,s,c,l,u,d,p,h,m,g){a.useEffect(()=>{try{o.CometChat.getLoggedinUser().then(e=>{e&&t(e)}).catch(e=>{g(e,"getLoggedinUser")})}catch(e){g(e,"useEffect")}},[t]),a.useEffect(()=>{try{let t;return e&&(t=m(),r()),()=>{i(),t?.()}}catch(e){g(e,"useEffect")}},[e,r,i]),a.useEffect(()=>{try{n&&(u.current=n,l(u.current))}catch(e){g(e,"useEffect")}},[n,u,l]),a.useEffect(()=>{try{const e=s?.current,t=c?.current;if(!e&&!t)return;const n=()=>{d()},r=()=>{p(pt.calls.rejected)};return h?(e?.addEventListener("cc-button-clicked",n),t?.addEventListener("cc-button-clicked",r)):(e?.removeEventListener("cc-button-clicked",n),t?.removeEventListener("cc-button-clicked",r)),()=>{e?.removeEventListener("cc-button-clicked",n),t?.removeEventListener("cc-button-clicked",r)}}catch(e){g(e,"useEffect")}},[h,d,p,s,c])}(y,E,t,z,Y,O,I,U,A,K,j,C,H,_),r.jsxs(r.Fragment,{children:[A.current&&C?r.jsxs("div",{className:"cometchat-incoming-call",children:[m?m(A.current):r.jsx(J,{title:A.current?.getSender()?.getName(),subtitleView:r.jsx(r.Fragment,{children:l?r.jsx("div",{className:"cometchat-incoming-call__subtitle",children:l(A.current)}):r.jsxs("div",{className:"cometchat-incoming-call__subtitle",children:[r.jsx("div",{className:"cometchat-incoming-call__subtitle-icon",style:{WebkitMask:`url(${A.current?.getType()===pt.MessageTypes.audio?"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3EIcons%2F24%2FCall%402x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22Icons%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Icons%2F24%2FCall%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22streamline-icon-phone-actions-voice-mail%4024x24%22%20transform%3D%22translate%283.000000%2C%203.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0.0679824131%2C6.18726899%20L1.15322891%2C7.27252708%20C1.71745406%2C7.8368527%202.48276427%2C8.15389548%203.28076591%2C8.15389548%20C4.07876755%2C8.15389548%204.84407776%2C7.8368527%205.40830291%2C7.27252708%20L7.00415829%2C5.67746515%20C7.28631808%2C5.39534955%207.44483777%2C5.01269036%207.44483777%2C4.61368527%20C7.44483777%2C4.21468018%207.28631808%2C3.83202099%207.00415829%2C3.5499054%20L3.90079098%2C0.446504908%20C3.59388219%2C0.136593264%203.16773676%2C-0.025114152%202.73249452%2C0.00317689658%20C2.29725227%2C0.0314679452%201.89562592%2C0.246981102%201.63141818%2C0.594015717%20C-1.61783738%2C5.00961401%200.349222543%2C9.660257%204.34493966%2C13.6552063%20C8.34065677%2C17.6501557%2012.9904395%2C19.6180471%2017.4059906%2C16.3687568%20C17.7530215%2C16.1045463%2017.9685324%2C15.7029156%2017.9968231%2C15.2676687%20C18.0251139%2C14.8324218%2017.8634082%2C14.4062718%2017.5534999%2C14.0993598%20L14.450943%2C10.9959593%20C14.1688305%2C10.7137965%2013.7861754%2C10.5552751%2013.3871745%2C10.5552751%20C12.9881737%2C10.5552751%2012.6055186%2C10.7137965%2012.323406%2C10.9959593%20L10.7275507%2C12.5918317%20C10.1632311%2C13.1560629%209.8461917%2C13.9213813%209.8461917%2C14.7193915%20C9.8461917%2C15.5174016%2010.1632311%2C16.28272%2010.7275507%2C16.8469512%20L11.8249545%2C17.9443668%22%20id%3D%22Path%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E":"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3EIcons%2F24%2FVideo%402x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22Icons%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Icons%2F24%2FVideo%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Group%22%20transform%3D%22translate%282.000000%2C%206.500000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M1.79471961%2C-7.25088203e-17%20L11.9552804%2C7.25088203e-17%20C12.5793435%2C-4.21297127e-17%2012.8056439%2C0.0649779267%2013.033792%2C0.186992889%20C13.2619401%2C0.309007852%2013.4409921%2C0.488059851%2013.5630071%2C0.716207995%20C13.6850221%2C0.94435614%2013.75%2C1.1706565%2013.75%2C1.79471961%20L13.75%2C9.20528039%20C13.75%2C9.8293435%2013.6850221%2C10.0556439%2013.5630071%2C10.283792%20C13.4409921%2C10.5119401%2013.2619401%2C10.6909921%2013.033792%2C10.8130071%20C12.8056439%2C10.9350221%2012.5793435%2C11%2011.9552804%2C11%20L1.79471961%2C11%20C1.1706565%2C11%200.94435614%2C10.9350221%200.716207995%2C10.8130071%20C0.488059851%2C10.6909921%200.309007852%2C10.5119401%200.186992889%2C10.283792%20C0.0649779267%2C10.0556439%209.39485689e-17%2C9.8293435%20-1.61693481e-16%2C9.20528039%20L4.83392135e-17%2C1.79471961%20C-2.80864751e-17%2C1.1706565%200.0649779267%2C0.94435614%200.186992889%2C0.716207995%20C0.309007852%2C0.488059851%200.488059851%2C0.309007852%200.716207995%2C0.186992889%20C0.94435614%2C0.0649779267%201.1706565%2C4.21297127e-17%201.79471961%2C-7.25088203e-17%20Z%22%20id%3D%22Rectangle%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M17.2599167%2C8.63041667%20L19.6304167%2C9.81475%20C19.8435282%2C9.92114296%2020.096526%2C9.90964554%2020.299109%2C9.78436146%20C20.5016921%2C9.65907738%2020.625%2C9.43785985%2020.625%2C9.19966667%20L20.625%2C1.80033333%20C20.625%2C1.56214015%2020.5016921%2C1.34092262%2020.299109%2C1.21563854%20C20.096526%2C1.09035446%2019.8435282%2C1.07885704%2019.6304167%2C1.18525%20L17.2599167%2C2.36958333%20C16.7940465%2C2.60259636%2016.4998441%2C3.07885646%2016.4999999%2C3.59975%20L16.4999999%2C7.40025%20C16.4998441%2C7.92114354%2016.7940465%2C8.39740364%2017.2599167%2C8.63041667%20Z%22%20id%3D%22Path%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E"}) center center no-repeat`}}),r.jsx("div",{className:"cometchat-incoming-call__subtitle-text",children:D})]})}),trailingView:h?h(A.current):r.jsx("div",{className:"cometchat-incoming-call__avatar",children:r.jsx(W,{image:A.current?.getSender()?.getAvatar(),name:A.current?.getSender()?.getName()})}),leadingView:d?.(A.current),titleView:p?.(A.current),avatarURL:""}),r.jsxs("div",{className:"cometchat-incoming-call__button-group",children:[r.jsx("div",{className:"cometchat-incoming-call__button-decline",children:r.jsx(rn,{text:v.current,onClick:()=>j(pt.calls.rejected)})}),r.jsx("div",{className:"cometchat-incoming-call__button-accept",children:r.jsx(rn,{text:b.current,onClick:()=>K()})})]})]}):null,w&&A.current&&!C?r.jsx(Kf,{sessionID:R.current,callSettingsBuilder:function(){try{let e=A.current?.getType()===pt.MessageTypes.audio;if(A.current?.getType()===pt.calls.meeting)return;let n=f?f(t):(new zf.CallSettingsBuilder).setIsAudioOnlyCall(e).enableDefaultLayout(!0);return n.setCallListener(new zf.OngoingCallListener({onCallEnded:()=>{A.current?.getReceiverType()===pt.MessageReceiverType.user&&(zf.endSession(),o.CometChat.clearActiveCall(),Yf.ccCallEnded.next(null),B())},onCallEndButtonPressed:()=>{o.CometChat.endCall(R.current).then(e=>{zf.endSession(),Yf.ccCallEnded.next(e)}).catch(e=>{})},onError:e=>{_(e,"OngoingCallListener")}})),n}catch(e){_(e,"getCallBuilder")}}()}):null]})},t.pmr=K,t.qxA=J,t.Iyo=G,t.AIP=vb,t.fz2=Qf,t.V0k=xb,t.mU2=Fb,t.eh5=Kf,t.mMS=zt,t.PE6=Zf,t.AF3=Z,t.rr4=function(e){const{onBack:n=()=>{},hideBackButton:i=!1,onConversationClicked:s,onMessageClicked:c,searchFilters:l=[t.H6z.Audio,t.H6z.Documents,t.H6z.Groups,t.H6z.Photos,t.H6z.Videos,t.H6z.Links,t.H6z.Unread],initialSearchFilter:d,searchIn:p=[],conversationItemView:h,conversationLeadingView:m,conversationTitleView:g,conversationSubtitleView:f,conversationTrailingView:_,conversationsRequestBuilder:b,messageItemView:v,messageLeadingView:y,messageTitleView:E,messageSubtitleView:C,messageTrailingView:S,messagesRequestBuilder:w,emptyView:k,errorView:x,loadingView:T,initialView:A,messageSentAtDateTimeFormat:R,textFormatters:I=Gf.getDataSource().getAllTextFormatters({mentionsTargetElement:t.rnx.conversation}),hideGroupType:O=!1,hideUserStatus:N=!1,hideReceipts:M=!1,uid:D,guid:L,conversationOptions:P,onError:j}=e,U=u(j),[F,B]=a.useState([]),[G,H]=a.useState(""),[z,Y]=a.useState(null),[q,K]=a.useState(""),W=a.useRef(null),J=a.useRef(null),Z={[t.H6z.Audio]:Gb,[t.H6z.Conversations]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2216px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2216px%22%20fill%3D%22%23e3e3e3%22%3E%3Cpath%20d%3D%22M240-384h336v-72H240v72Zm0-132h480v-72H240v72Zm0-132h480v-72H240v72ZM96-96v-696q0-29.7%2021.15-50.85Q138.3-864%20168-864h624q29.7%200%2050.85%2021.15Q864-821.7%20864-792v480q0%2029.7-21.15%2050.85Q821.7-240%20792-240H240L96-96Zm114-216h582v-480H168v522l42-42Zm-42%200v-480%20480Z%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Documents]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M12.6667%203.83333V13.1667H3.33333V3.83333H12.6667ZM12.6667%202.5H3.33333C2.6%202.5%202%203.1%202%203.83333V13.1667C2%2013.9%202.6%2014.5%203.33333%2014.5H12.6667C13.4%2014.5%2014%2013.9%2014%2013.1667V3.83333C14%203.1%2013.4%202.5%2012.6667%202.5Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3Cpath%20d%3D%22M9.33333%2011.8333H4.66667V10.5H9.33333V11.8333ZM11.3333%209.16667H4.66667V7.83333H11.3333V9.16667ZM11.3333%206.5H4.66667V5.16667H11.3333V6.5Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Groups]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M6.00004%209.66634C4.44004%209.66634%201.33337%2010.4463%201.33337%2011.9997V13.1663H10.6667V11.9997C10.6667%2010.4463%207.56004%209.66634%206.00004%209.66634ZM2.89337%2011.833C3.45337%2011.4463%204.80671%2010.9997%206.00004%2010.9997C7.19337%2010.9997%208.54671%2011.4463%209.10671%2011.833H2.89337ZM6.00004%208.49967C7.28671%208.49967%208.33337%207.45301%208.33337%206.16634C8.33337%204.87967%207.28671%203.83301%206.00004%203.83301C4.71337%203.83301%203.66671%204.87967%203.66671%206.16634C3.66671%207.45301%204.71337%208.49967%206.00004%208.49967ZM6.00004%205.16634C6.55337%205.16634%207.00004%205.61301%207.00004%206.16634C7.00004%206.71967%206.55337%207.16634%206.00004%207.16634C5.44671%207.16634%205.00004%206.71967%205.00004%206.16634C5.00004%205.61301%205.44671%205.16634%206.00004%205.16634ZM10.6934%209.70634C11.4667%2010.2663%2012%2011.013%2012%2011.9997V13.1663H14.6667V11.9997C14.6667%2010.653%2012.3334%209.88634%2010.6934%209.70634ZM10%208.49967C11.2867%208.49967%2012.3334%207.45301%2012.3334%206.16634C12.3334%204.87967%2011.2867%203.83301%2010%203.83301C9.64004%203.83301%209.30671%203.91967%209.00004%204.06634C9.42004%204.65967%209.66671%205.38634%209.66671%206.16634C9.66671%206.94634%209.42004%207.67301%209.00004%208.26634C9.30671%208.41301%209.64004%208.49967%2010%208.49967Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Links]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M11.3334%205.16699H8.66671V6.50033H11.3334C12.4334%206.50033%2013.3334%207.40033%2013.3334%208.50033C13.3334%209.60033%2012.4334%2010.5003%2011.3334%2010.5003H8.66671V11.8337H11.3334C13.1734%2011.8337%2014.6667%2010.3403%2014.6667%208.50033C14.6667%206.66033%2013.1734%205.16699%2011.3334%205.16699ZM7.33337%2010.5003H4.66671C3.56671%2010.5003%202.66671%209.60033%202.66671%208.50033C2.66671%207.40033%203.56671%206.50033%204.66671%206.50033H7.33337V5.16699H4.66671C2.82671%205.16699%201.33337%206.66033%201.33337%208.50033C1.33337%2010.3403%202.82671%2011.8337%204.66671%2011.8337H7.33337V10.5003ZM5.33337%207.83366H10.6667V9.16699H5.33337V7.83366Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Messages]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2216px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2216px%22%20fill%3D%22%23e3e3e3%22%3E%3Cpath%20d%3D%22M864-96%20720-240H360q-29.7%200-50.85-21.15Q288-282.3%20288-312v-48h384q29.7%200%2050.85-21.15Q744-402.3%20744-432v-240h48q29.7%200%2050.85%2021.15Q864-629.7%20864-600v504ZM168-462l42-42h390v-288H168v330ZM96-288v-504q0-29.7%2021.15-50.85Q138.3-864%20168-864h432q29.7%200%2050.85%2021.15Q672-821.7%20672-792v288q0%2029.7-21.15%2050.85Q629.7-432%20600-432H240L96-288Zm72-216v-288%20288Z%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Photos]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M12.6667%203.83333V13.1667H3.33333V3.83333H12.6667ZM12.6667%202.5H3.33333C2.6%202.5%202%203.1%202%203.83333V13.1667C2%2013.9%202.6%2014.5%203.33333%2014.5H12.6667C13.4%2014.5%2014%2013.9%2014%2013.1667V3.83333C14%203.1%2013.4%202.5%2012.6667%202.5ZM9.42667%208.40667L7.42667%2010.9867L6%209.26L4%2011.8333H12L9.42667%208.40667Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Unread]:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2217%22%20viewBox%3D%220%200%2016%2017%22%20fill%3D%22none%22%3E%20%20%3Cpath%20d%3D%22M13.3334%2011.8337H2.66671V3.83366H9.40004C9.34671%203.57366%209.28004%203.09366%209.40004%202.50033H2.66671C1.93337%202.50033%201.33337%203.10033%201.33337%203.83366V15.8337L4.00004%2013.167H13.3334C14.0667%2013.167%2014.6667%2012.567%2014.6667%2011.8337V5.82033C14.28%206.11366%2013.8267%206.33366%2013.3334%206.43366V11.8337Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3Cpath%20d%3D%22M12.6667%205.16699C13.7713%205.16699%2014.6667%204.27156%2014.6667%203.16699C14.6667%202.06242%2013.7713%201.16699%2012.6667%201.16699C11.5621%201.16699%2010.6667%202.06242%2010.6667%203.16699C10.6667%204.27156%2011.5621%205.16699%2012.6667%205.16699Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3Cpath%20d%3D%22M9.33337%209.16699H4.00004V10.5003H9.33337V9.16699Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3Cpath%20d%3D%22M12%207.16699H4.00004V8.50033H12V7.16699Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%20%20%3Cpath%20d%3D%22M4.00004%206.50033H12V6.43366C11.1934%206.26699%2010.5%205.80033%2010.02%205.16699H4.00004V6.50033Z%22%20fill%3D%22%23A1A1A1%22%2F%3E%3C%2Fsvg%3E",[t.H6z.Videos]:Gb},$={[t.H6z.Audio]:V("search_filter_audio"),[t.H6z.Conversations]:V("search_filter_conversations"),[t.H6z.Documents]:V("search_filter_documents"),[t.H6z.Groups]:V("search_filter_groups"),[t.H6z.Links]:V("search_filter_links"),[t.H6z.Messages]:V("search_filter_messages"),[t.H6z.Photos]:V("search_filter_photos"),[t.H6z.Unread]:V("search_filter_unread"),[t.H6z.Videos]:V("search_filter_videos")};a.useEffect(()=>{0==F.length&&d&&B([d])},[d]),a.useEffect(()=>{(async()=>{try{const e=await o.CometChat.getLoggedInUser();Y(e??dt.getLoggedInUser())}catch(e){U(e,"setLoggedInUser")}})()},[U]);const Q=a.useCallback(()=>r.jsxs("div",{className:"cometchat-search__initial-view",children:[r.jsx("div",{className:"cometchat-search__initial-view-icon"}),r.jsx("span",{className:"cometchat-search__initial-view-title",children:V("search_empty_title")}),r.jsx("span",{className:"cometchat-search__initial-view-subtitle",children:V("search_empty_subtitle")})]}),[]),X=a.useCallback(()=>T||r.jsx("div",{className:"cometchat-search__shimmer",children:[...Array(F&&F.length>0||L||D?7:3)].map((e,t)=>r.jsxs("div",{className:"cometchat-search__shimmer-item",children:[r.jsx("div",{className:"cometchat-search__shimmer-item-avatar"}),r.jsxs("div",{className:"cometchat-search__shimmer-item-body",children:[r.jsxs("div",{className:"cometchat-search__shimmer-item-body-title-wrapper",children:[r.jsx("div",{className:"cometchat-search__shimmer-item-body-title"}),r.jsx("div",{className:"cometchat-search__shimmer-item-body-tail"})]}),r.jsx("div",{className:"cometchat-search__shimmer-item-body-subtitle"})]})]},t))}),[F,T,D,L]),ee=a.useCallback(()=>k||r.jsxs("div",{className:"cometchat-search__empty-view",children:[r.jsx("div",{className:"cometchat-search__empty-view-icon"}),r.jsxs("div",{className:"cometchat-search__empty-view-body",children:[r.jsx("div",{className:"cometchat-search__empty-view-body-title",children:V("search_no_result_title")}),r.jsx("div",{className:"cometchat-search__empty-view-body-description",children:V("search_no_result_subtitle")})]})]}),[k]),te=a.useCallback(()=>x||r.jsxs("div",{className:"cometchat-search__error-view",children:[r.jsx("div",{className:"cometchat-search__error-view-icon"}),r.jsxs("div",{className:"cometchat-search__error-view-body",children:[r.jsx("div",{className:"cometchat-search__error-view-body-title",children:V("search_error_title")}),r.jsx("div",{className:"cometchat-search__error-view-body-description",children:V("search_error_subtitle")})]})]}),[x]),{renderConversationsList:ne}=Yb({searchKeyword:G,onItemClick:s,hideUserStatus:N,hideGroupType:O,activeFilters:F,useScrollPagination:!!(L||D||F.length>0),conversationsRequestBuilder:b,itemView:h,leadingView:m,titleView:g,subtitleView:f,trailingView:_,emptyView:ee(),errorView:te(),loadingView:X(),onError:j,options:P,hideReceipts:M,loggedInUser:z,textFormatters:I}),{renderMessagesList:re}=Wb({searchKeyword:G,onItemClick:c,activeFilters:F,alwaysShowSeeMore:!(L||D||F.length>0),messagesRequestBuilder:w,textFormatters:I,itemView:v,leadingView:y,titleView:E,subtitleView:C,trailingView:S,emptyView:ee(),errorView:te(),loadingView:X(),messageDateTimeFormat:R,hideError:!1,onError:j,uid:D,guid:L}),ae=a.useCallback(()=>!!(0===p.length?[t.zGq.Conversations,t.zGq.Messages]:p).includes(t.zGq.Conversations)&&!D&&!L&&(!(!G||""==G.trim()||0!=F.length)||F.length>0&&(F.includes(t.H6z.Conversations)||F.includes(t.H6z.Groups)||F.includes(t.H6z.Unread))),[F,G,D,L,p]),oe=a.useCallback(()=>!(!(0===p.length?[t.zGq.Conversations,t.zGq.Messages]:p).includes(t.zGq.Messages)||!D&&!L&&(!G||""==G.trim()||0!=F.length)&&(!(F.length>0)||F.includes(t.H6z.Conversations)||F.includes(t.H6z.Groups)||F.includes(t.H6z.Unread))),[F,G,D,L,p]),ie=a.useCallback(e=>{K(e.target.value);const t=e.target.value.trim();null!==W.current&&window.clearTimeout(W.current),W.current=window.setTimeout(()=>{H(t),W.current=null},500)},[b,w,D,L,F]),se=a.useCallback(()=>{const e=[t.H6z.Conversations,t.H6z.Unread,t.H6z.Groups],n=[t.H6z.Messages,t.H6z.Photos,t.H6z.Videos,t.H6z.Documents,t.H6z.Audio,t.H6z.Links];let r=[];const a=0===p.length?[t.zGq.Conversations,t.zGq.Messages]:p;return a.includes(t.zGq.Conversations)&&r.push(...e),a.includes(t.zGq.Messages)&&r.push(...n),l.filter(e=>r.includes(e))},[p,l]),ce=a.useCallback(()=>{const e=se(),n=[t.H6z.Conversations,t.H6z.Unread,t.H6z.Groups],r=[t.H6z.Messages,t.H6z.Photos,t.H6z.Videos,t.H6z.Documents,t.H6z.Audio,t.H6z.Links],a=[t.H6z.Photos,t.H6z.Videos,t.H6z.Documents,t.H6z.Audio,t.H6z.Links],o=0===p.length?[t.zGq.Conversations,t.zGq.Messages]:p;let i=e;if((D||L)&&(i=e.filter(e=>!n.includes(e))),0===F.length)return i;const s=F.includes(t.H6z.Messages),c=F.filter(e=>a.includes(e));return s&&c.length>0?[t.H6z.Messages,...c].filter(e=>i.includes(e)):s?r.filter(e=>i.includes(e)):c.length>0?c.filter(e=>i.includes(e)):o.includes(t.zGq.Conversations)&&!D&&!L&&F.some(e=>n.includes(e))?n.filter(e=>i.includes(e)):i},[F,se,p,D,L]);return a.useEffect(()=>{const e=setTimeout(()=>{J.current&&J.current.focus()},100);return()=>clearTimeout(e)},[]),r.jsxs("div",{className:"cometchat-search",children:[r.jsxs("div",{className:"cometchat-search__header",children:[!i&&r.jsx("div",{className:"cometchat-search__back-button",children:r.jsx(rn,{"aria-label":"back",iconURL:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_740_8318%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_740_8318%29%22%3E%3Cpath%20d%3D%22M7.37295%2012.75L12.5422%2017.9192C12.6909%2018.0679%2012.7643%2018.2419%2012.7625%2018.4412C12.7605%2018.6406%2012.682%2018.8178%2012.527%2018.973C12.3718%2019.1178%2012.1961%2019.1928%2012%2019.198C11.8038%2019.2032%2011.6281%2019.1282%2011.473%2018.973L5.1327%2012.6327C5.03904%2012.5391%204.97304%2012.4403%204.9347%2012.3365C4.8962%2012.2327%204.87695%2012.1205%204.87695%2012C4.87695%2011.8795%204.8962%2011.7673%204.9347%2011.6635C4.97304%2011.5597%205.03904%2011.4609%205.1327%2011.3672L11.473%205.02699C11.6115%204.88849%2011.783%204.81766%2011.9875%204.81449C12.192%204.81133%2012.3718%204.88216%2012.527%205.02699C12.682%205.18216%2012.7595%205.36033%2012.7595%205.56149C12.7595%205.76283%2012.682%205.94108%2012.527%206.09624L7.37295%2011.25H18.75C18.9628%2011.25%2019.141%2011.3218%2019.2845%2011.4655C19.4281%2011.609%2019.5%2011.7872%2019.5%2012C19.5%2012.2128%2019.4281%2012.391%2019.2845%2012.5345C19.141%2012.6782%2018.9628%2012.75%2018.75%2012.75H7.37295Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",onClick:n})}),r.jsx("div",{className:"cometchat-search__search-bar",children:r.jsxs("div",{className:"cometchat-search__input",children:[r.jsx("input",{ref:J,type:"text",value:q,onChange:e=>ie(e),placeholder:V("search_placeholder"),"aria-label":"Search"}),(q||F.length>0)&&r.jsx("div",{className:"cometchat-search__input-clear-button",children:r.jsx(rn,{onClick:()=>{H(""),K("")},"aria-label":"Clear search",iconURL:nn})})]})})]}),r.jsx("div",{className:"cometchat-search__body",children:r.jsx("div",{className:"cometchat-search__body-filters",children:ce().map(e=>r.jsx("div",{onClick:()=>(e=>{F.includes(e)?B(F.filter(t=>t!==e)):B([...F,e])})(e),className:`cometchat-search__body-filter cometchat-search__body-filter-${e}  ${F.includes(e)?"cometchat-search__body-filter-active":""}`,children:r.jsx(rn,{iconURL:F.includes(e)?nn:Z[e],text:$[e]})},e))})}),(()=>{if((!G||""===G.trim())&&0===F.length)return A||Q();const e=ae()&&ne(),t=oe()&&re();return!(""!==G.trim()||F.length>0)||e||t?r.jsxs("div",{className:"cometchat-search__results",children:[e,t]}):ee()})()]})},t.K_R=Bb,t.cDI=e=>{const{parentMessage:n,messageBubbleView:o,onClose:i,onError:s=e=>{},hideDate:c=!1,hideReplyCount:l=!1,separatorDateTimeFormat:d,messageSentAtDateTimeFormat:p,template:h,hideReceipts:m,textFormatters:g,onSubtitleClicked:f,subtitleView:_,showScrollbar:b=!1}=e,v=a.useRef(dt.getLoggedInUser()),[y,E]=a.useState(0),[C,S]=a.useState(n),w=u(s);a.useEffect(()=>{try{E(C?.getReplyCount()??0)}catch(e){w(e,"useEffect")}},[C,E]),a.useEffect(()=>{try{S(n)}catch(e){w(e,"useEffect")}},[n]);const k=a.useCallback(()=>{try{const e=Qf.onTextMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),t=Qf.onMediaMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),r=Qf.onMessageEdited.subscribe(e=>{S(t=>e.getId()!=t.getId()||t.getEditedAt()&&t.getEditedAt()==e.getEditedAt()?t:e)}),a=Qf.onCustomMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),o=Qf.onFormMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),i=Qf.onSchedulerMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),s=Qf.onCardMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)}),c=Qf.onCustomInteractiveMessageReceived.subscribe(e=>{e?.getParentMessageId()&&e.getParentMessageId()==n.getId()&&E(e=>e+1)});return()=>{e?.unsubscribe(),t?.unsubscribe(),a?.unsubscribe(),o?.unsubscribe(),i?.unsubscribe(),s?.unsubscribe(),c?.unsubscribe(),r?.unsubscribe()}}catch(e){return w(e,"addListener"),()=>{}}},[n]),x=a.useCallback(()=>{try{const e=Qf.ccMessageSent.subscribe(({status:e,message:r})=>{e===t.qpt.success&&r?.getParentMessageId()===n?.getId()&&E(e=>e+1)}),r=Qf.ccMessageEdited.subscribe(({status:e,message:n})=>{e===t.qpt.success&&S(e=>n.getId()!=e.getId()||e.getEditedAt()&&e.getEditedAt()==n.getEditedAt()?e:n)}),a=Qf.ccMessageDeleted.subscribe(e=>{S(t=>e.getId()!=t.getId()||t.getDeletedAt()&&t.getDeletedAt()==e.getDeletedAt()?t:e)});return()=>{e?.unsubscribe(),r?.unsubscribe(),a?.unsubscribe()}}catch(e){return w(e,"subscribeToEvents"),()=>{}}},[n]);a.useEffect(()=>{try{if(v.current){const e=k(),t=x();return()=>{e(),t()}}}catch(e){w(e,"useEffect")}},[k,x]);const T=a.useCallback(()=>{try{let e=t.JxA.right;if(C&&v.current){if(o)return o;{const n=A_.getDataSource()?.getAllMessageTemplates(),a=h??n?.find(e=>e.type===C.getType()&&e.category===C.getCategory());if(!a)return r.jsx(r.Fragment,{});e=C.getSender()?.getUid()!==v.current?.getUid()?t.JxA.left:t.JxA.right;let o=null;try{const t=A_.getDataSource();o=t?.getReplyView(C,e,void 0,g)}catch(e){w(e,"getReplyView")}return(new tn).getMessageBubble(C,a,e,p,m,g,o)}}return null}catch(e){w(e,"getBubbleView")}return null},[C,m,o,p]),A=a.useCallback(()=>{try{const e=[pt.MessageTypes.audio,pt.MessageTypes.file,pt.MessageTypes.text,Jt.extension_document,Zt.extension_whiteboard,Qt.sticker];if(C&&e.includes(C.getType()))return"cometchat-thread-header__message-small"}catch(e){w(e,"getAdditionalClassName")}},[C]),R=a.useCallback(()=>{if(n?.getSender()){const e=()=>{f&&f()};return r.jsx("div",{className:"cometchat-thread-header__top-bar-subtitle-text "+(f?"cometchat-thread-header__top-bar-subtitle-text-clickable":""),onClick:e,children:n.getSender().getName()})}return null},[n,f]);return r.jsx("div",{className:"cometchat",children:r.jsxs("div",{className:"cometchat-thread-header "+(b?"":"cometchat-thread-header-hide-scrollbar"),children:[r.jsxs("div",{className:"cometchat-thread-header__top-bar",children:[r.jsxs("div",{className:"cometchat-thread-header__top-bar-title-container",children:[r.jsx("div",{className:"cometchat-thread-header__top-bar-title",children:V("thread_title")}),r.jsx("div",{className:"cometchat-thread-header__top-bar-subtitle",children:_??R()})]}),r.jsx("div",{className:"cometchat-thread-header__top-bar-close",children:function(){try{return r.jsx(rn,{iconURL:nn,hoverText:V("thread_close_hover"),onClick:i})}catch(e){w(e,"getCloseBtnView")}}()})]}),r.jsxs("div",{className:"cometchat-thread-header__body",children:[!c&&r.jsx("div",{className:"cometchat-thread-header__body-timestamp",children:r.jsx(rr,{timestamp:C.getSentAt(),calendarObject:{yesterday:` [${V("yesterday")}]`,otherDays:" DD MMM, YYYY",today:`[${V("today")}]`,...kt(G.calendarObject),...kt(d)}})}),r.jsx("div",{className:`cometchat-thread-header__message ${C.getSender()?.getUid()!==v.current?.getUid()?"cometchat-thread-header__message-incoming":"cometchat-thread-header__message-outgoing"} ${A()}`,children:T()}),r.jsxs("div",{className:"cometchat-thread-header__reply-bar",children:[!l&&r.jsxs("div",{className:"cometchat-thread-header__reply-bar-count",children:[y+" ",V(0===y||y>1?"thread_replies":"thread_reply")]}),r.jsx("div",{className:"cometchat-thread-header__reply-bar-divider"})]})]})]})})},t.K4o=s,t.u37=yn,t.v1j=A_,t.swD=zf,t.WNg=pt,t.G1l=dt,t.JXZ=ht,t.Vtf=ut,t.FzF=on,t.r7s=tn,t.t70=class{constructor(){this.disableCalling=!1}build(){return R_.fromBuilder(this)}setAppId(e){return this.appId=e,this}setRegion(e){return this.region=e,this}subscribePresenceForAllUsers(){return this.subscriptionType="ALL_USERS",this}subscribePresenceForRoles(e){return this.subscriptionType="ROLES",this.roles=e,this}subscribePresenceForFriends(){return this.subscriptionType="FRIENDS",this}setRoles(e){return this.roles=e,this}setAutoEstablishSocketConnection(e){return this.autoEstablishSocketConnection=e,this}setAuthKey(e){return this.authKey=e,this}setAdminHost(e){return this.adminHost=e,this}setClientHost(e){return this.clientHost=e,this}setExtensions(e){return this.extensions=e,this}setCallsExtension(e){return this.callingExtension=e,this}setStorageMode(e){return this.storageMode=e,this}},t.F2D=function(e){const t=Math.floor(e/60),n=Math.floor(e%60),r=Math.floor(60*(e-Math.floor(e)));let a="",o="",i="";return t>0&&(a=`${t}h`),n>0&&(o=`${n}m`),r>=0&&(i=`${r}s`),`${a} ${o} ${i}`},t.ZMA=V,t.Xbj=wt,t.yse=u,t._fR=l},8024:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/calls.28f11734184b2e2e4e71.svg"},8056:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1803),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-create-group__backdrop {\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 10000;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: #141414CC;\n}\n\n.cometchat-create-group {\n    display: flex;\n    width: 400px;\n    height: auto;\n    padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-10, 40px);\n    flex-direction: column;\n    align-items: center;\n    justify-content: space-between;\n    gap: var(--cometchat-padding-10, 40px);\n    position: relative;\n    border-radius: var(--cometchat-radius-5, 20px);\n    border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-groups .cometchat-list__header-menu .cometchat-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-create-group__title {\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    font: var(--cometchat-font-heading1-bold);\n    font-style: normal;\n}\n\n.cometchat-create-group__content {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-5, 20px);\n    align-self: stretch;\n}\n\n.cometchat-create-group__type-wrapper {\n    width: 100%;\n    text-align: left;\n    display: flex;\n    flex-direction: column;\n    gap: var(--cometchat-padding-1, 4px);\n\n}\n\n.cometchat-create-group__type-text {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-caption1-medium);\n    font-style: normal;\n}\n\n.cometchat-create-group__type-content {\n    display: flex;\n    align-items: flex-start;\n    align-self: stretch;\n    background: var(--cometchat-background-color-03, #F5F5F5);\n    border-radius: var(--cometchat-radius-Max, 1000px);\n\n}\n\n.cometchat-create-group__type {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n    font: var(--cometchat-font-heading4-medium);\n    font-style: normal;\n    cursor: pointer;\n    color: var(--cometchat-text-color-secondary, #727272);\n\n}\n\n\n.cometchat-create-group__type-selected {\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    border-radius: var(--cometchat-radius-Max, 1000px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-create-group__password-wrapper,\n.cometchat-create-group__name-wrapper {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    align-self: stretch;\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-caption1-medium);\n    font-style: normal;\n    gap: var(--cometchat-padding-1, 4px);\n}\n\n\n.cometchat-create-group__input {\n    display: flex;\n    height: 36px;\n    padding: var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    color: var(--cometchat-text-color-primary, #141414);\n    border: none;\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-02, #FAFAFA);\n}\n\n.cometchat-create-group__input:focus-visible {\n    outline: none;\n}\n\n.cometchat-create-group__submit-button {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: var(--cometchat-primary-button-background, #6852D6);\n    color: var(--cometchat-static-white, #FFF);\n    border: none;\n    font: var(--cometchat-font-button-medium);\n    font-style: normal;\n    cursor: pointer;\n}\n\n\n.cometchat-create-group__close-button {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    mask-size: contain;\n    -webkit-mask-size: contain;\n    position: absolute;\n    right: 16px;\n    top: 24px;\n    cursor: pointer;\n}\n\n.cometchat-create-group__close-button:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-groups .cometchat-list__header-menu .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n@media (max-width: 768px) {\n    .cometchat-create-group {\n        display: flex;\n        width: 320px;\n        padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-5, 20px) var(--cometchat-padding-10, 40px) var(--cometchat-padding-5, 20px);\n        flex-direction: column;\n        align-items: flex-start;\n        gap: var(--cometchat-padding-10, 40px);\n        border-radius: var(--cometchat-radius-5, 20px);\n        border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);\n        background: var(--cometchat-background-color-01, #FFF);\n        box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    }\n}`,""]);const p=u},8059:(e,t,n)=>{"use strict";n.d(t,{A:()=>ke});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(3191),c=n(2232),l=n(9678),u=n(1554),d=n(3613),p=n(4442),h=n(7845),m=n(9415),g=n(3525),f=n(2566),_=n(7317),b=n(8677),v=n(2673),y=n(7926),E=n(6184),C=n(4346),S=n(149),w=n(4444),k=n(2349),x=n(8240),T=n(8664),A=n(9809),R=n(2952),I=n(2619),O=n(738),N=n(3122),M=n(319),D=n(6536),L=n(642),P=n(4533),j=n(4370),U=n(5330),F=n(5401),B=n(2635),G=n(7775),V=n(5107),H=n(6092),z=n(7927),Y=n(7160),q=n(8857),K=n(6061),W=n(4397),J=n(8939),Z=n(5545),$=n(3219),Q=n(6960),X=n(1131),ee=n(5681),te=n(2720),ne=n(6628),re=n(8237),ae=n(8502),oe=n(9865),ie=n(7396),se=n(5934),ce=n(7265),le=n(2008),ue=n(6949),de=n(5098),pe=n(273),he=n(5280),me=n(6082),ge=n(7841),fe=n(7200),_e=n(3674),be=n(9614),ve=n(7213),ye=n(6227),Ee=n(7805),Ce=n(5594),Se=n(9282),we=i()(a());we.i(s.A),we.i(c.A),we.i(l.A),we.i(u.A),we.i(d.A),we.i(p.A),we.i(h.A),we.i(m.A),we.i(g.A),we.i(f.A),we.i(_.A),we.i(b.A),we.i(v.A),we.i(y.A),we.i(E.A),we.i(C.A),we.i(S.A),we.i(w.A),we.i(k.A),we.i(x.A),we.i(T.A),we.i(A.A),we.i(R.A),we.i(I.A),we.i(O.A),we.i(N.A),we.i(M.A),we.i(D.A),we.i(L.A),we.i(P.A),we.i(j.A),we.i(U.A),we.i(F.A),we.i(B.A),we.i(G.A),we.i(V.A),we.i(H.A),we.i(z.A),we.i(Y.A),we.i(q.A),we.i(K.A),we.i(W.A),we.i(J.A),we.i(Z.A),we.i($.A),we.i(Q.A),we.i(X.A),we.i(ee.A),we.i(te.A),we.i(ne.A),we.i(re.A),we.i(ae.A),we.i(oe.A),we.i(ie.A),we.i(se.A),we.i(ce.A),we.i(le.A),we.i(ue.A),we.i(de.A),we.i(pe.A),we.i(he.A),we.i(me.A),we.i(ge.A),we.i(fe.A),we.i(_e.A),we.i(be.A),we.i(ve.A),we.i(ye.A),we.i(Ee.A),we.i(Ce.A),we.i(Se.A),we.push([e.id,"/* @import url('./CometChatToolCallResultBubble.css');\n@import url('./CometChatToolCallArgumentBubble.css'); */\n.cometchat * {\n    box-sizing: border-box;\n}\n\n\n.cometchat-mentions > span{\n    color: var(--cometchat-text-color-highlight);\n    font: var(--cometchat-font-body-regular);\n}\n.cometchat-mentions{\n    display: inline-block;\n    width: fit-content;\n}\n.cometchat-mentions-outgoing,.cometchat-mentions-incoming{\n    border-radius: var(--cometchat-radius, 2px);\n    display: inline-flex;\n    padding: 0px var(--cometchat-padding, 2px);\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n}\n.cometchat-mentions-outgoing.cometchat-mentions-you{\n    background: rgba(255, 171, 0, 0.20);\n}\n.cometchat-mentions-outgoing.cometchat-mentions-other{\n    background: rgba(249, 248, 253, 0.20);\n}\n.cometchat-mentions-incoming.cometchat-mentions-you{\n    background: rgba(255, 171, 0, 0.20);\n}\n.cometchat-mentions-incoming.cometchat-mentions-other{\n    background: rgba(104, 82, 214, 0.20);\n}\n.cometchat-mentions-outgoing.cometchat-mentions-you > span{\n    color: var(--cometchat-warning-color);\n}\n.cometchat-mentions-outgoing.cometchat-mentions-other > span{\n    color: var(--cometchat-static-white);\n}\n.cometchat-mentions-incoming.cometchat-mentions-you > span{\n    color: var(--cometchat-warning-color);\n}\n.cometchat-mentions-incoming.cometchat-mentions-other > span{\n    color: var(--cometchat-text-color-highlight);\n}\n.cometchat-text-bubble-incoming .cometchat-url{\n    color: var(--cometchat-info-color);\n}\n.cometchat-text-bubble .cometchat-url{\n    text-decoration: underline;\n}\n\n.cometchat-message-preview .cometchat-url{\n    text-decoration: underline;\n}\n\n.cometchat-text-bubble .cometchat-text-highlight {\n    font: var(--cometchat-font-body-bold);\n}\n",""]);const ke=we},8065:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/Copy.4d5c5370c2badfa4ec72.svg"},8081:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Light.839cb7309f46fed11436.ttf"},8237:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-reactions {\n    display: flex;\n    padding: 0px var(--cometchat-padding-1, 4px);\n    align-items: flex-start;\n    align-content: flex-start;\n    gap: 2px;\n    align-self: stretch;\n    width: fit-content;\n    height: fit-content;\n}\n\n.cometchat-reactions__reaction,\n.cometchat-reactions__more-reaction {\n    display: inline-flex;\n    height: 24px;\n    padding: 2px var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex-shrink: 0;\n    border-radius: 20px;\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    cursor: pointer;\n}\n\n.cometchat-reactions__reaction-you {\n    display: inline-flex;\n    height: 23px;\n    padding: 2px var(--cometchat-padding-2, 8px);\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex-shrink: 0;\n    border-radius: 20px;\n    border: 1px solid var(--cometchat-extended-primary-color-300, #CCC4F1);\n    background: var(--cometchat-extended-primary-color-100, #EDEAFA);\n}\n\n.cometchat-reactions__reaction-emoji {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n}\n\n.cometchat-reactions__reaction-count,\n.cometchat-reactions__more-reaction-count {\n    color: var(--cometchat-text-color-primary, #141414);\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.cometchat-reactions-info-wrapper .cometchat-popover__content {\n    background: transparent;\n    box-shadow: none;\n    border: none;\n}",""]);const s=i},8240:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-fullscreen-viewer {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 10000;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: #141414CC;\n  -webkit-backdrop-filter: blur(4px);\n  backdrop-filter: blur(4px);\n}\n\n.cometchat-fullscreen-viewer__header {\n  width:fit-content;\n  position: absolute;\n  left: 10px;\n  top: 0px;\n}\n\n.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__header-item .cometchat-list-item {\n  background-color: transparent;\n}\n\n.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__header-item .cometchat-avatar img {\n  width: 100%;\n  height: 100%;\n}\n\n.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__header-item .cometchat-list-item__body-title {\n  overflow: hidden;\n  color: var(--cometchat-static-white, #FFF);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-heading4-medium);\n  font-style: normal;\n}\n\n.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__header-item .cometchat-list-item__body-subtitle  {\n  overflow: hidden;\n  color: var(--cometchat-text-color-tertiary, #A1A1A1);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-caption1-regular);\n}\n\n.cometchat-fullscreen-viewer__body-image {\n  max-width: 400px;\n  max-height: 600px;\n  flex-shrink: 0;\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-fullscreen-viewer__close-button {\n  position: absolute;\n  top: 10px;\n  right: 10px;\n  cursor: pointer;\n  mask-repeat: no-repeat;\n  background-color: var(--cometchat-primary-button-icon, #FFFFFF);\n  height: 32px;\n  width: 32px;\n  -webkit-mask: url(${d}) center center no-repeat;\n  mask: url(${d}) center center no-repeat;\n  -webkit-mask-size: 100%;\n  mask-size: 100%;\n}\n\n\n.cometchat-fullscreen-viewer__body-download-progress {\n  position: relative;\n  width: 100px;\n  height: 100px;\n}\n\n.cometchat-fullscreen-viewer__body-download-progress svg {\n  width: 100px;\n  height: 100px;\n  transform: rotate(-90deg);\n}\n\ncircle.cometchat-fullscreen-viewer__body-download-progress-background {\n  stroke: var(--cometchat-static-white);\n  stroke-dasharray: 113 113;\n  stroke-width: 2;\n  fill: none;\n  opacity: .2;\n}\n\ncircle.cometchat-fullscreen-viewer__body-download-progress-foreground {\n  stroke: var(--cometchat-static-white);\n  stroke-dasharray: 0 113;\n  stroke-width: 2;\n  fill: none;\n  stroke-linecap: round;\n}\n`,""]);const p=u},8258:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-Medium.e73e917f7bfa48666e00.ttf"},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@cometchat/chat-embed","version":"1.0.33","description":"CometChat Widget Builder No-Code Integration","cometChatCustomConfig":{"prodVersion":"1.0.32","devStagingVersion":"1.0.20-authtest7","prodName":"@cometchat/chat-embed","devName":"cometchat-visual-builder-no-code","name":"cometchat-visual-builder-react-no-code","version":"1.0.32","production":true},"author":"CometChat","dependencies":{"@cometchat/calls-sdk-javascript":"4.2.5","@cometchat/chat-uikit-react":"6.4.2","react":"18.2.0","react-dom":"18.2.0","react-frame-component":"^5.2.7","react-router-dom":"6.14.2","react-scripts":"^5.0.1","react-shadow":"^20.6.0","web-vitals":"2.1.4"},"scripts":{"start":"react-scripts start","build":"react-scripts build","build-lib":"rm -rf dist/ && webpack --mode production","test":"react-scripts test","eject":"react-scripts eject"},"eslintConfig":{"extends":["react-app","react-app/jest"]},"devDependencies":{"@svgr/webpack":"^8.1.0","@testing-library/jest-dom":"5.17.0","@testing-library/react":"13.4.0","@testing-library/user-event":"13.5.0","@types/jest":"27.5.2","@types/node":"16.18.38","@types/react":"18.2.15","@types/react-dom":"18.2.7","@typescript-eslint/eslint-plugin":"^8.15.0","@typescript-eslint/parser":"^8.15.0","copy-webpack-plugin":"^13.0.0","css-loader":"^7.1.2","eslint":"^8.0.0","raw-loader":"^4.0.2","sass":"^1.78.0","style-loader":"^4.0.0","ts-loader":"^9.5.2","typescript":"^4.9.5","webpack":"^5.99.9","webpack-cli":"^6.0.1"},"overrides":{"rimraf":"^4.0.0","glob":"^9.0.0","resolve-url-loader":{"postcss":"8.4.49"},"svgo":{"nth-check":"2.1.1"},"@svgr/webpack":{"nth-check":"2.1.1"},"cross-spawn":"7.0.6"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"homepage":"https://www.cometchat.com","main":"dist/main.js","files":["dist"],"publishConfig":{"access":"public"},"license":"SEE LICENSE IN LICENSE.md","bugs":{"url":"https://help.cometchat.com/hc/en-us"}}')},8357:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_thread.ef0eb6defdbb3b8a27b6.svg"},8366:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-transfer-ownership {\n    display: flex;\n    width: 420px;\n    height: 600px;\n    flex-direction: column;\n    align-items: flex-start;\n    flex-shrink: 0;\n    background: var(--cometchat-background-color-01);\n    border-radius: var(--cometchat-radius-5, 20px);\n}\n\n.cometchat-transfer-ownership-dialog__backdrop .cometchat-confirm-dialog .cometchat-confirm-dialog__button-group-submit .cometchat-button {\n    background: var(--cometchat-primary-color);\n}\n\n.cometchat-transfer-ownership-dialog__backdrop .cometchat-confirm-dialog__icon-wrapper {\n    display: none;\n}\n\n.cometchat-transfer-ownership-dialog__backdrop .cometchat-confirm-dialog__button-group-submit {\n    background: var(--cometchat-primary-button-background);\n}\n\n.cometchat-transfer-ownership>.cometchat {\n    overflow: hidden;\n    border-radius: inherit;\n}\n\n.cometchat-transfer-ownership__buttons-wrapper .cometchat-button {\n    width: 100%;\n    font: var(--cometchat-font-button-medium);\n}\n\n.cometchat-transfer-ownership__buttons-wrapper>.cometchat {\n    width: fit-content;\n}\n\n.cometchat-transfer-ownership__buttons-wrapper {\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n}\n\n.cometchat-transfer-ownership__cancel-button .cometchat-button {\n    background: var(--cometchat-background-color-01, #FFF);\n    border: 1px solid var(--cometchat-border-color-dark);\n}\n\n.cometchat-transfer-ownership__cancel-button .cometchat-button .cometchat-button__text {\n    color: var(--cometchat-neutral-color-900);\n}\n\n.cometchat-transfer-ownership .cometchat-list__header-title {\n    justify-content: center;\n}\n\n.cometchat-transfer-ownership .cometchat-group-members .cometchat-list-item:hover {\n    background: inherit;\n    cursor: default;\n}\n\n.cometchat-transfer-ownership__transfer-button-disabled .cometchat-button {\n    background: var(--cometchat-background-color-04, #E8E8E8);\n    color: var(--cometchat-static-white, #FFF);\n    pointer-events: none;\n}\n\n.cometchat-transfer-ownership .cometchat-list-item__tail-view .cometchat-radiobutton__label {\n    flex-direction: row-reverse;\n}\n\n.cometchat-transfer-ownership .cometchat-list-item .cometchat-list-item__body {\n    align-items: center;\n}\n\n.cometchat-transfer-ownership .cometchat-list-item .cometchat-list-item__body-subtitle {\n    display: none;\n}\n\n.cometchat-transfer-ownership_error-view {\n    margin-top: 4px;\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-body-regular);\n    font-style: normal;\n    display: flex;\n    padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    align-self: stretch;\n    border-radius: var(--cometchat-radius-2, 8px);\n    background: rgba(244, 70, 73, 0.10);\n\n}\n\n.cometchat-transfer-ownership__buttons {\n    display: flex;\n    justify-content: center;\n    padding: var(--cometchat-padding-5, 20px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n}\n\n@media (max-width: 768px) {\n    .cometchat-transfer-ownership {\n        height: 100vh;\n        width: 100vw;\n        border-radius: 0px;\n    }\n\n    .cometchat-transfer-ownership .cometchat-list__header-title {\n        justify-content: flex-start;\n    }\n}\n\n.cometchat-transfer-ownership__cancel-button .cometchat-button:hover {\n    background: transparent;\n}",""]);const s=i},8392:(e,t,n)=>{"use strict";e.exports=n.p+"assets/change_scope.b7ce2e760bde03b486b5.png"},8394:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6155),n.b),u=new URL(n(7556),n.b),d=new URL(n(1803),n.b),p=new URL(n(4091),n.b),h=new URL(n(2440),n.b),m=i()(a()),g=c()(l),f=c()(u),_=c()(d),b=c()(p),v=c()(h);m.push([e.id,`.side-component-wrapper,\n.cometchat-add-members-wrapper {\n    display: flex;\n    width: 30%;\n    max-width: 420px;\n    max-height: 100vh;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 0px;\n    flex-shrink: 0;\n    background: var(--cometchat-background-color-01, #FFF);\n    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n}\n\n.cometchat-leave-group__backdrop .cometchat-confirm-dialog .cometchat-confirm-dialog__icon-wrapper-icon {\n    -webkit-mask: url(${g}) center center no-repeat;\n    -webkit-mask-size: contain;\n}\n\n.cometchat-leave-group__backdrop,\n.cometchat-transfer-ownership-dialog__backdrop,\n.cometchat-delete-group__backdrop,\n.cometchat-transfer-ownership__backdrop,\n.cometchat-block-user-dialog__backdrop,\n.cometchat-delete-chat-dialog__backdrop {\n    position: absolute;\n    height: 100%;\n    width: 100%;\n    top: 0;\n    left: 0;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: rgba(0, 0, 0, 0.5);\n    z-index: 2;\n}\n\n.cometchat-message-information__popup-wrapper {\n    position: absolute;\n}\n\n.cometchat-block-user-dialog__backdrop .cometchat-confirm-dialog__icon-wrapper-icon {\n    -webkit-mask: url(${f});\n    -webkit-mask-size: contain;\n}\n\n.side-component-header {\n    display: flex;\n    min-height: 65px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    justify-content: space-between;\n    width: 100%;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n.side-component-content__title__wrapper{\n    width: 100%;\n    box-sizing: border-box;\n    padding: 0  var(--cometchat-padding-3, 12px);\n}\n\n.side-component-header__icon {\n    -webkit-mask: url(${_}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    -webkit-mask-size: contain;\n    cursor: pointer;\n    width: 24px;\n    height: 24px;\n}\n\n.side-component-header__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.side-component-header__text {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-bold, 700 20px Roboto);\n}\n\n.side-component-content {\n    display: flex;\n    padding-top: 40px;\n    height: calc(100vh - 64px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-5, 20px);\n    align-self: stretch;\n    overflow: auto;\n    border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.side-component-content__group {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    flex-shrink: 0;\n    align-self: stretch;\n    gap: 12px;\n}\n\n.side-component-content__avatar {\n    display: flex;\n    width: 120px;\n    height: 120px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max, 1500px);\n}\n\n.side-component-content__avatar .cometchat-avatar,\n.side-component-content__avatar .cometchat-avatar__image,\n.side-component-content__avatar .cometchat-avatar__text {\n    width: 120px;\n    height: 120px;\n}\n\n.side-component-content__avatar .cometchat-avatar__text {\n    font: 700 48px/57.6px var(--cometchat-font-family);\n    height: fit-content;\n    width: fit-content;\n    font-style: normal;\n}\n\n.side-component-content__title {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-align: center;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading3-medium, 500 20px Roboto);\n}\n\n.side-component-content__description {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-caption1-regular, 400 12px Roboto);\n}\n\n.side-component-content__action {\n    width: 100%;\n    border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n}\n\n.cometchat-root>.cometchat>.cometchat-toast {\n    bottom: 120px;\n}\n\n.side-component-content__action-item {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-5, 20px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    cursor: pointer;\n}\n\n.side-component-content__action-item-icon {\n    background: var(--cometchat-error-color, #F44649);\n    -webkit-mask-size: contain;\n    width: 24px;\n    height: 24px;\n}\n\n.side-component-content__action-item-icon-default-addMembersToGroups {\n    -webkit-mask: url(${b}) center center no-repeat;\n}\n\n.side-component-content__action-item-icon-deleteChat {\n    -webkit-mask: url(${v}) center center no-repeat;\n\n}\n\n.side-component-content__action-item-icon-joinLeaveGroup {\n    -webkit-mask: url(${g}) center center no-repeat;\n\n}\n\n.side-component-content__action-item-icon-deleteGroup {\n    -webkit-mask: url(${v}) center center no-repeat;\n}\n\n\n.side-component-content__action-item-icon-default {\n    background: var(--cometchat-icon-color-highlight);\n    -webkit-mask-size: contain;\n    width: 24px;\n    height: 24px;\n}\n\n.side-component-content__action-item-text {\n    color: var(--cometchat-error-color, #F44649);\n    font: var(--cometchat-font-heading4-regular, 400 16px Roboto);\n}\n\n.side-component-content__action-item-text-default {\n    color: var(--cometchat-text-color-highlight);\n    font: var(--cometchat-font-heading4-regular, 400 16px Roboto);\n}\n\n.side-component-group-members {\n    width: 100%;\n    flex: 1;\n    overflow: auto;\n    min-height: 40dvh;\n}\n\n.side-component-group-members-with-tabs {\n    width: 100%;\n    flex: 1;\n    overflow: auto;\n    min-height: calc(100% - 30px);\n}\n\n.side-component-group-members .cometchat-list__header-title {\n    display: none;\n}\n\n.side-component-group-members .cometchat-list__header-search-bar {\n    width: 100%;\n    padding: 0px var(--cometchat-padding-4, 16px);\n}\n\n.side-component-group-members .cometchat-list-item__leading-view,\n.side-component-group-members .cometchat-avatar,\n.side-component-group-members .cometchat-avatar__image,\n.side-component-group-members .cometchat-avatar__text {\n    width: 40px;\n    height: 40px;\n}\n\n.side-component-group-members .cometchat-list-item__tail-view {\n    width: fit-content;\n}\n\n.side-component-group-tabs-wrapper {\n    width: 100%;\n    padding: 0px var(--cometchat-padding-4, 16px);\n}\n\n.side-component-group-tabs {\n    display: flex;\n    align-items: center;\n    gap: 0px;\n    flex: 1 0 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-03, #F5F5F5);\n}\n\n.side-component-group-tabs__tab {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n    border-radius: var(--cometchat-radius-max, 1000px);\n}\n\n.side-component-group-tabs__tab-active {\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.side-component-group-tabs__tab-text {\n    color: var(--cometchat-text-color-secondary, #727272);\n    cursor: pointer;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n    width: min-content;\n}\n\n.side-component-group-tabs__tab-text-active {\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    cursor: default;\n}\n\n.cometchat-banned-members .cometchat-button {\n    width: 24px;\n    height: 24px;\n    background: transparent;\n    padding: 0px;\n    gap: 0px;\n}\n\n.side-component-group-members .cometchat-button__icon {\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask: url(${_}) center center no-repeat !important;\n}\n\n.cometchat-banned-members .cometchat-button:hover {\n    background: transparent;\n}\n\n.side-component-group-members .cometchat-list-item__body {\n    padding: 0px;\n}\n\n.cometchat-add-members-wrapper {\n    position: absolute;\n    top: 0px;\n    height: 100%;\n    width: -webkit-fill-available;\n    width: -moz-available;\n}\n\n@media (max-width: 768px) {\n    .side-component-wrapper {\n        min-width: 100vw;\n        height: 100vh;\n        position: fixed;\n        z-index: 4;\n    }\n\n    .cometchat-confirm-dialog {\n        display: flex;\n        width: 320px;\n        padding: var(--cometchat-padding-6, 24px);\n        flex-direction: column;\n        align-items: center;\n        gap: 12px;\n        align-self: stretch;\n        border-radius: var(--cometchat-radius-4, 16px);\n        background: var(--cometchat-background-color-01, #FFF);\n    }\n\n    .cometchat-change-scope {\n        display: flex;\n        width: 320px;\n        padding: var(--cometchat-padding-6, 24px) var(--cometchat-padding-6, 24px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-6, 24px);\n        flex-direction: column;\n        align-items: center;\n        gap: var(--cometchat-padding-3, 12px);\n        border-radius: var(--cometchat-radius-5, 20px);\n        border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n        background: var(--cometchat-background-color-01, #FFF);\n        box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n    }\n}\n\n.side-component-wrapper--threaded {\n    width: auto;\n    flex-grow: 1;\n    max-width: 100%;\n}\n\n.cometchat-add-members-wrapper {\n    max-width: 100%;\n}\n\n@media (max-height: 700px) {\n\n    .side-component-content::-webkit-scrollbar,\n    .side-component-content::-webkit-scrollbar-thumb {\n        display: none;\n    }\n}\n\n.side-component-group-members .cometchat-list__header {\n    border-bottom: none;\n}\n\n.side-component-wrapper__content {\n    width: 100%;\n    height: 100%;\n    overflow: hidden;\n}\n\n.side-component-wrapper__content-view {\n    width: 100%;\n    height: 100%;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.side-component-wrapper__content-top {\n    z-index: 2;\n}\n\n.side-component-wrapper__content-bottom {\n    z-index: 1;\n}\n\n.conversations-wrapper {\n    position: relative;\n}\n\n.selector-wrapper-search {\n    position: absolute;\n    left: 0;\n    top: 0;\n    height: 100%;\n    width: 100%;\n    overflow: hidden;\n    z-index: 1;\n}\n\n.cometchat-search-view__close-button .cometchat-button__icon {\n    -webkit-mask: url(${_}) center center no-repeat;\n    background: var(--cometchat-icon-color-primary, #141414);\n    -webkit-mask-size: contain;\n    cursor: pointer;\n    width: 24px;\n    height: 24px;\n}\n\n.cometchat-search-view__close-button .cometchat-button__icon:hover {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-search-view__close-button .cometchat-button:hover {\n    background: inherit;\n}\n\n.side-component-content__action-item-disabled {\n    cursor: default;\n    pointer-events: none;\n}\n\n.side-component-content__action-item-disabled .side-component-content__action-item-icon {\n    background: var(--cometchat-text-color-disabled, #DCDCDC);\n}\n\n.side-component-content__action-item-disabled .side-component-content__action-item-text {\n    color: var(--cometchat-text-color-disabled, #DCDCDC);\n}`,""]);const y=m},8403:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/lock.71f7e9ad8da2b826c5c8.svg"},8432:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_poll-message.a38228224d6a756b8aa0.svg"},8484:e=>{var t;self,t=()=>(()=>{var e={472:e=>{self,e.exports=function(){var e={3259:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={black:"#000",white:"#fff"}},7559:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},167:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},8768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"}},6594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"}},3165:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},2087:function(e,t,n){"use strict";var r=n(7462),a=n(5987),o=n(7294),i=n(6010),s=n(2543),c=n(3871),l=o.forwardRef(function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.color,d=void 0===u?"inherit":u,p=e.component,h=void 0===p?"svg":p,m=e.fontSize,g=void 0===m?"medium":m,f=e.htmlColor,_=e.titleAccess,b=e.viewBox,v=void 0===b?"0 0 24 24":b,y=(0,a.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(h,(0,r.Z)({className:(0,i.Z)(s.root,l,"inherit"!==d&&s["color".concat((0,c.Z)(d))],"default"!==g&&"medium"!==g&&s["fontSize".concat((0,c.Z)(g))]),focusable:"false",viewBox:v,color:f,"aria-hidden":!_||void 0,role:_?"img":void 0,ref:t},y),n,_?o.createElement("title",null,_):null)});l.muiName="SvgIcon",t.Z=(0,s.Z)(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(l)},9693:function(e,t,n){"use strict";n.d(t,{$n:function(){return p},Fq:function(){return u},_4:function(){return l},_j:function(){return d},mi:function(){return s}});var r=n(288);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var a=e.substring(t+1,e.length-1).split(",");return{type:n,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),i({type:l,values:u})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?d(e,t):p(e,t)}function u(e,t){return e=o(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,i(e)}function d(e,t){if(e=o(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function p(e,t){if(e=o(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return i(e)}},157:function(e,t,n){"use strict";n.d(t,{X:function(){return o},Z:function(){return i}});var r=n(7462),a=n(5987),o=["xs","sm","md","lg","xl"];function i(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,c=e.step,l=void 0===c?5:c,u=(0,a.Z)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=o.indexOf(t);return r===o.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[o[r+1]]?n[o[r+1]]:t)-l/100).concat(s,")")}return(0,r.Z)({keys:o,values:n,up:d,down:function(e){var t=o.indexOf(e)+1,r=n[o[t]];return t===o.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},u)}},8225:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(5987),a=n(5953),o=n(157),i=n(4942),s=n(7462);function c(e,t,n){var r;return(0,s.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,i.Z)({},e.up("sm"),(0,s.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,i.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,i.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var l=n(288),u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p=n(9693),h={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},m={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function g(e,t,n,r){var a=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.$n)(e.main,a):"dark"===t&&(e.dark=(0,p._j)(e.main,o)))}function f(e){return Math.round(1e5*e)/1e5}function _(e){return f(e)}var b={textTransform:"uppercase"},v='"Roboto", "Helvetica", "Arial", sans-serif';function y(e,t){var n="function"==typeof t?t(e):t,o=n.fontFamily,i=void 0===o?v:o,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,h=void 0===p?400:p,m=n.fontWeightMedium,g=void 0===m?500:m,y=n.fontWeightBold,E=void 0===y?700:y,C=n.htmlFontSize,S=void 0===C?16:C,w=n.allVariants,k=n.pxToRem,x=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=l/14,A=k||function(e){return"".concat(e/S*T,"rem")},R=function(e,t,n,r,a){return(0,s.Z)({fontFamily:i,fontWeight:e,fontSize:A(t),lineHeight:n},i===v?{letterSpacing:"".concat(f(r/t),"em")}:{},a,w)},I={h1:R(d,96,1.167,-1.5),h2:R(d,60,1.2,-.5),h3:R(h,48,1.167,0),h4:R(h,34,1.235,.25),h5:R(h,24,1.334,0),h6:R(g,20,1.6,.15),subtitle1:R(h,16,1.75,.15),subtitle2:R(g,14,1.57,.1),body1:R(h,16,1.5,.15),body2:R(h,14,1.43,.15),button:R(g,14,1.75,.4,b),caption:R(h,12,1.66,.4),overline:R(h,12,2.66,1,b)};return(0,a.Z)((0,s.Z)({htmlFontSize:S,pxToRem:A,round:_,fontFamily:i,fontSize:l,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:E},I),x,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var C=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],S={borderRadius:4},w=n(8681),k=n(3366),x=n(2781),T=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,f=void 0===i?{}:i,_=e.palette,b=void 0===_?{}:_,v=e.spacing,E=e.typography,T=void 0===E?{}:E,A=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),R=function(e){var t=e.primary,n=void 0===t?{light:"#7986cb",main:"#3f51b5",dark:"#303f9f"}:t,o=e.secondary,i=void 0===o?{light:"#ff4081",main:"#f50057",dark:"#c51162"}:o,c=e.error,f=void 0===c?{light:"#e57373",main:"#f44336",dark:"#d32f2f"}:c,_=e.warning,b=void 0===_?{light:"#ffb74d",main:"#ff9800",dark:"#f57c00"}:_,v=e.info,y=void 0===v?{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"}:v,E=e.success,C=void 0===E?{light:"#81c784",main:"#4caf50",dark:"#388e3c"}:E,S=e.type,w=void 0===S?"light":S,k=e.contrastThreshold,x=void 0===k?3:k,T=e.tonalOffset,A=void 0===T?.2:T,R=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,p.mi)(e,m.text.primary)>=x?m.text.primary:h.text.primary}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,s.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,l.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,l.Z)(5,JSON.stringify(e.main)));return g(e,"light",n,A),g(e,"dark",r,A),e.contrastText||(e.contrastText=I(e.main)),e},N={dark:m,light:h};return(0,a.Z)((0,s.Z)({common:u,type:w,primary:O(n),secondary:O(i,"A400","A200","A700"),error:O(f),warning:O(b),info:O(y),success:O(C),grey:d,contrastThreshold:x,getContrastText:I,augmentColor:O,tonalOffset:A},N[w]),R)}(b),I=(0,o.Z)(n),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,w.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map(function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(v),N=(0,a.Z)({breakpoints:I,direction:"ltr",mixins:c(I,O,f),overrides:{},palette:R,props:{},shadows:C,typography:y(R,T),spacing:O,shape:S,transitions:k.ZP,zIndex:x.Z},A),M=arguments.length,D=new Array(M>1?M-1:0),L=1;L<M;L++)D[L-1]=arguments[L];return D.reduce(function(e,t){return(0,a.Z)(e,t)},N)}},9700:function(e,t,n){"use strict";var r=(0,n(8225).Z)();t.Z=r},3366:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(5987),a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:a,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,c=t.easing,l=void 0===c?a.easeInOut:c,u=t.delay,d=void 0===u?0:u;return(0,r.Z)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(l," ").concat("string"==typeof d?d:i(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},2543:function(e,t,n){"use strict";var r=n(7462),a=n(8920),o=n(9700);t.Z=function(e,t){return(0,a.Z)(e,(0,r.Z)({defaultTheme:o.Z},t))}},2781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},3871:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(288);function a(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(this,r),t.apply(this,r)}},function(){})}n.d(t,{Z:function(){return r}})},3786:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7462),a=n(7294),o=n(2087);function i(e,t){var n=function(t,n){return a.createElement(o.Z,(0,r.Z)({ref:n},t),e)};return n.muiName=o.Z.muiName,a.memo(a.forwardRef(n))}},9437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i=this;clearTimeout(t),t=setTimeout(function(){e.apply(i,a)},n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},8546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return o.Z},debounce:function(){return i.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return c.Z},ownerDocument:function(){return l.Z},ownerWindow:function(){return u.Z},requirePropFactory:function(){return d},setRef:function(){return p.Z},unstable_useId:function(){return _.Z},unsupportedProp:function(){return h},useControlled:function(){return m.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return f.Z},useIsFocusVisible:function(){return b.Z}});var r=n(3871),a=n(2568),o=n(3786),i=n(9437);function s(e,t){return function(){return null}}var c=n(3711),l=n(626),u=n(713);function d(e){return function(){return null}}var p=n(4236);function h(e,t,n,r,a){return null}var m=n(2775),g=n(5192),f=n(3834),_=n(5001),b=n(4896)},3711:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294);function a(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},713:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(626);function a(e){return(0,r.Z)(e).defaultView||window}},4236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},5001:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294);function a(e){var t=r.useState(e),n=t[0],a=t[1],o=e||n;return r.useEffect(function(){null==n&&a("mui-".concat(Math.round(1e5*Math.random())))},[n]),o}},2775:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294);function a(e){var t=e.controlled,n=e.default,a=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),i=o[0],s=o[1];return[a?t:i,r.useCallback(function(e){a||s(e)},[])]}},5192:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return a(function(){t.current=e}),r.useCallback(function(){return t.current.apply(void 0,arguments)},[])}},3834:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),a=n(4236);function o(e,t){return r.useMemo(function(){return null==e&&null==t?null:function(n){(0,a.Z)(e,n),(0,a.Z)(t,n)}},[e,t])}},4896:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7294),a=n(3935),o=!0,i=!1,s=null,c={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&i&&(o=!0)}function p(e){var t,n,r,a=e.target;try{return a.matches(":focus-visible")}catch(e){}return o||(n=(t=a).type,!("INPUT"!==(r=t.tagName)||!c[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function h(){i=!0,window.clearTimeout(s),s=window.setTimeout(function(){i=!1},100)}function m(){return{isFocusVisible:p,onBlurVisible:h,ref:r.useCallback(function(e){var t,n=a.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))},[])}}},9114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=o,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=s(e).values;return"#".concat(t.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}).join(""))},t.hslToRgb=i,t.decomposeColor=s,t.recomposeColor=c,t.getContrastRatio=function(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=l,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):p(e,t)},t.fade=function(e,t){return u(e,t)},t.alpha=u,t.darken=d,t.lighten=p;var r=n(5218);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function i(e){var t=(e=s(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-o*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),c({type:l,values:u})}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.formatMuiErrorMessage)(3,e));var a=e.substring(t+1,e.length-1).split(",");return{type:n,values:a=a.map(function(e){return parseFloat(e)})}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e){var t="hsl"===(e=s(e)).type?s(i(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=s(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function d(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function p(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},4811:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,s=void 0===r?"px":r,c=e.step,l=void 0===c?5:c,u=(0,o.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=i.indexOf(t);return r===i.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-l/100).concat(s,")")}return(0,a.default)({keys:i,values:n,up:d,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},u)},t.keys=void 0;var a=r(n(434)),o=r(n(215)),i=["xs","sm","md","lg","xl"];t.keys=i},226:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,o.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)({paddingLeft:t(2),paddingRight:t(2)},n,(0,a.default)({},e.up("sm"),(0,o.default)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,a.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var a=r(n(8416)),o=r(n(434))},1091:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:l.default[300],main:l.default[500],dark:l.default[700]}:t,r=e.secondary,v=void 0===r?{light:u.default.A200,main:u.default.A400,dark:u.default.A700}:r,y=e.error,E=void 0===y?{light:d.default[300],main:d.default[500],dark:d.default[700]}:y,C=e.warning,S=void 0===C?{light:p.default[300],main:p.default[500],dark:p.default[700]}:C,w=e.info,k=void 0===w?{light:h.default[300],main:h.default[500],dark:h.default[700]}:w,x=e.success,T=void 0===x?{light:m.default[300],main:m.default[500],dark:m.default[700]}:x,A=e.type,R=void 0===A?"light":A,I=e.contrastThreshold,O=void 0===I?3:I,N=e.tonalOffset,M=void 0===N?.2:N,D=(0,o.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,g.getContrastRatio)(e,_.text.primary)>=O?_.text.primary:f.text.primary}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,a.default)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,i.formatMuiErrorMessage)(4,t));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return b(e,"light",n,M),b(e,"dark",r,M),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:_,light:f};return(0,i.deepmerge)((0,a.default)({common:s.default,type:R,primary:P(n),secondary:P(v,"A400","A200","A700"),error:P(E),warning:P(S),info:P(k),success:P(T),grey:c.default,contrastThreshold:O,getContrastText:L,augmentColor:P,tonalOffset:M},j[R]),D)},t.dark=t.light=void 0;var a=r(n(434)),o=r(n(215)),i=n(5218),s=r(n(515)),c=r(n(167)),l=r(n(8768)),u=r(n(124)),d=r(n(3165)),p=r(n(6594)),h=r(n(3259)),m=r(n(7559)),g=n(9114),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.default.white,default:c.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};t.light=f;var _={text:{primary:s.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:c.default[800],default:"#303030"},action:{active:s.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function b(e,t,n,r){var a=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,g.lighten)(e.main,a):"dark"===t&&(e.dark=(0,g.darken)(e.main,o)))}t.dark=_},3498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,r.createUnarySpacing)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map(function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n};var r=n(3312)},6002:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.createMuiTheme=function(){return g.apply(void 0,arguments)},t.default=void 0,r(n(8416));var a=r(n(215)),o=n(5218),i=r(n(4811)),s=r(n(226)),c=r(n(1091)),l=r(n(5184)),u=r(n(743)),d=r(n(9591)),p=r(n(3498)),h=r(n(5406)),m=r(n(8676));function g(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,g=void 0===r?{}:r,f=e.palette,_=void 0===f?{}:f,b=e.spacing,v=e.typography,y=void 0===v?{}:v,E=(0,a.default)(e,["breakpoints","mixins","palette","spacing","typography"]),C=(0,c.default)(_),S=(0,i.default)(n),w=(0,p.default)(b),k=(0,o.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,s.default)(S,w,g),overrides:{},palette:C,props:{},shadows:u.default,typography:(0,l.default)(C,y),spacing:w,shape:d.default,transitions:h.default,zIndex:m.default},E),x=arguments.length,T=new Array(x>1?x-1:0),A=1;A<x;A++)T[A-1]=arguments[A];return T.reduce(function(e,t){return(0,o.deepmerge)(e,t)},k)}var f=g;t.default=f},5184:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,d=void 0===r?u:r,p=n.fontSize,h=void 0===p?14:p,m=n.fontWeightLight,g=void 0===m?300:m,f=n.fontWeightRegular,_=void 0===f?400:f,b=n.fontWeightMedium,v=void 0===b?500:b,y=n.fontWeightBold,E=void 0===y?700:y,C=n.htmlFontSize,S=void 0===C?16:C,w=n.allVariants,k=n.pxToRem,x=(0,o.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=h/14,A=k||function(e){return"".concat(e/S*T,"rem")},R=function(e,t,n,r,o){return(0,a.default)({fontFamily:d,fontWeight:e,fontSize:A(t),lineHeight:n},d===u?{letterSpacing:"".concat(s(r/t),"em")}:{},o,w)},I={h1:R(g,96,1.167,-1.5),h2:R(g,60,1.2,-.5),h3:R(_,48,1.167,0),h4:R(_,34,1.235,.25),h5:R(_,24,1.334,0),h6:R(v,20,1.6,.15),subtitle1:R(_,16,1.75,.15),subtitle2:R(v,14,1.57,.1),body1:R(_,16,1.5,.15),body2:R(_,14,1.43,.15),button:R(v,14,1.75,.4,l),caption:R(_,12,1.66,.4),overline:R(_,12,2.66,1,l)};return(0,i.deepmerge)((0,a.default)({htmlFontSize:S,pxToRem:A,round:c,fontFamily:d,fontSize:h,fontWeightLight:g,fontWeightRegular:_,fontWeightMedium:v,fontWeightBold:E},I),x,{clone:!1})};var a=r(n(434)),o=r(n(215)),i=n(5218);function s(e){return Math.round(1e5*e)/1e5}function c(e){return s(e)}var l={textTransform:"uppercase"},u='"Roboto", "Helvetica", "Arial", sans-serif'},2719:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(0,r(n(6002)).default)();t.default=a},2427:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var a=r(n(434)),o=n(7652),i=r(n(2719));t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.makeStyles)(e,(0,a.default)({defaultTheme:i.default},t))}},743:function(e,t){"use strict";function n(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["none",n(0,2,1,-1,0,1,1,0,0,1,3,0),n(0,3,1,-2,0,2,2,0,0,1,5,0),n(0,3,3,-2,0,3,4,0,0,1,8,0),n(0,2,4,-1,0,4,5,0,0,1,10,0),n(0,3,5,-1,0,5,8,0,0,1,14,0),n(0,3,5,-1,0,6,10,0,0,1,18,0),n(0,4,5,-2,0,7,10,1,0,2,16,1),n(0,5,5,-3,0,8,10,1,0,3,14,2),n(0,5,6,-3,0,9,12,1,0,3,16,2),n(0,6,6,-3,0,10,14,1,0,4,18,3),n(0,6,7,-4,0,11,15,1,0,4,20,3),n(0,7,8,-4,0,12,17,2,0,5,22,4),n(0,7,8,-4,0,13,19,2,0,5,24,4),n(0,7,9,-4,0,14,21,2,0,5,26,4),n(0,8,9,-5,0,15,22,2,0,6,28,5),n(0,8,10,-5,0,16,24,2,0,6,30,5),n(0,8,11,-5,0,17,26,2,0,6,32,5),n(0,9,11,-5,0,18,28,2,0,7,34,6),n(0,9,12,-6,0,19,29,2,0,7,36,6),n(0,10,13,-6,0,20,31,3,0,8,38,7),n(0,10,13,-6,0,21,33,3,0,8,40,7),n(0,10,14,-6,0,22,35,3,0,8,42,7),n(0,11,14,-7,0,23,36,3,0,9,44,8),n(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=r},9591:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={borderRadius:4}},5406:function(e,t,n){"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.duration=t.easing=void 0;var a=r(n(215)),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=o;var i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return"".concat(Math.round(e),"ms")}t.duration=i;var c={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?i.standard:n,c=t.easing,l=void 0===c?o.easeInOut:c,u=t.delay,d=void 0===u?0:u;return(0,a.default)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:s(r)," ").concat(l," ").concat("string"==typeof d?d:s(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=c},8676:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},6220:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle");t.Z=i},5996:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");t.Z=i},3837:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");t.Z=i},3547:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertTwoTone");t.Z=i},1626:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75v1.25zm9 0H14v-1.25c0-.46-.2-.86-.52-1.22.88-.3 1.96-.53 3.02-.53 2.44 0 5 1.21 5 1.75v1.25zM7.5 12c1.93 0 3.5-1.57 3.5-3.5S9.43 5 7.5 5 4 6.57 4 8.5 5.57 12 7.5 12zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 5.5c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"}),"PeopleOutline");t.Z=i},9002:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"}),"RemoveCircle");t.Z=i},3788:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5 3.5z"}),"SwitchVideo");t.Z=i},1727:function(e,t,n){"use strict";var r=n(4836),a=n(5263);t.Z=void 0;var o=a(n(7294)),i=(0,r(n(2108)).default)(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.Z=i},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(8546)},6975:function(e,t,n){"use strict";n.d(t,{NU:function(){return m},ZP:function(){return g},tP:function(){return p}});var r,a=n(7462),o=n(5987),i=n(7294),s=n(5034),c=n(4013),l=n(246),u=(0,c.Ue)((0,l.Z)()),d=(0,s.Z)(),p=new Map,h={disableGeneration:!1,generateClassName:d,jss:u,sheetsCache:null,sheetsManager:p,sheetsRegistry:null},m=i.createContext(h);function g(e){var t=e.children,n=e.injectFirst,s=void 0!==n&&n,u=e.disableGeneration,d=void 0!==u&&u,p=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(m),g=(0,a.Z)({},h,{disableGeneration:d},p);if(!g.jss.options.insertionPoint&&s&&"undefined"!=typeof window){if(!r){var f=document.head;r=document.createComment("mui-inject-first"),f.insertBefore(r,f.firstChild)}g.jss=(0,c.Ue)({plugins:(0,l.Z)().plugins,insertionPoint:r})}return i.createElement(m.Provider,{value:g},t)}},3457:function(e,t,n){"use strict";var r=n(7462),a=n(7294),o=n(3800),i=n(159),s=n(7076);t.Z=function(e){var t=e.children,n=e.theme,c=(0,i.Z)(),l=a.useMemo(function(){var e=null===c?n:function(e,t){return"function"==typeof t?t(e):(0,r.Z)({},e,t)}(c,n);return null!=e&&(e[s.Z]=null!==c),e},[n,c]);return a.createElement(o.Z.Provider,{value:l},t)}},7076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},5034:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7076),a=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,o=e.productionPrefix,i=void 0===o?"jss":o,s=e.seed,c=void 0===s?"":s,l=""===c?"":"".concat(c,"-"),u=0,d=function(){return u+=1};return function(e,t){var o=t.options.name;if(o&&0===o.indexOf("Mui")&&!t.options.link&&!n){if(-1!==a.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(l).concat(o,"-").concat(e.key);return t.options.theme[r.Z]&&""===c?"".concat(s,"-").concat(d()):s}return"".concat(l).concat(i).concat(d())}}},150:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},3869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var a,o=t.props[n];for(a in o)void 0===r[a]&&(r[a]=o[a]);return r}n.d(t,{Z:function(){return r}})},7652:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheets:function(){return g},StylesContext:function(){return m.NU},StylesProvider:function(){return m.ZP},ThemeProvider:function(){return E.Z},createGenerateClassName:function(){return r.Z},createStyles:function(){return a.Z},getThemeProps:function(){return o.Z},jssPreset:function(){return i.Z},makeStyles:function(){return s.Z},mergeClasses:function(){return c.Z},sheetsManager:function(){return m.tP},styled:function(){return y},useTheme:function(){return C.Z},withStyles:function(){return S.Z},withTheme:function(){return k},withThemeCreator:function(){return w}});var r=n(5034),a=n(150),o=n(3869),i=n(246),s=n(3914),c=n(5835),l=n(7462),u=n(5671),d=n(3144),p=n(7294),h=n(4013),m=n(6975),g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.Z)(this,e),this.options=t}return(0,d.Z)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new h.xE;var n=(0,r.Z)();return p.createElement(m.ZP,(0,l.Z)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return p.createElement("style",(0,l.Z)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),f=n(5987),_=n(6010),b=n(8679),v=n.n(b);function y(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.name,o=(0,f.Z)(r,["name"]),i=a,c="function"==typeof t?function(e){return{root:function(n){return t((0,l.Z)({theme:e},n))}}}:{root:t},u=(0,s.Z)(c,(0,l.Z)({Component:e,name:a||e.displayName,classNamePrefix:i},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var d=p.forwardRef(function(t,r){var a,o,i,s=t.children,c=t.className,d=t.clone,h=t.component,m=(0,f.Z)(t,["children","className","clone","component"]),g=u(t),b=(0,_.Z)(g.root,c),v=m;if(n&&(a=v,o=n,i={},Object.keys(a).forEach(function(e){-1===o.indexOf(e)&&(i[e]=a[e])}),v=i),d)return p.cloneElement(s,(0,l.Z)({className:(0,_.Z)(s.props.className,b)},v));if("function"==typeof s)return s((0,l.Z)({className:b},v));var y=h||e;return p.createElement(y,(0,l.Z)({ref:r,className:b},v),s)});return v()(d,e),d}}var E=n(3457),C=n(159),S=n(8920);function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=p.forwardRef(function(n,r){var a=n.innerRef,o=(0,f.Z)(n,["innerRef"]),i=(0,C.Z)()||e;return p.createElement(t,(0,l.Z)({theme:i,ref:a||r},o))});return v()(n,t),n}}var k=w()},246:function(e,t,n){"use strict";n.d(t,{Z:function(){return De}});var r=n(4013),a=Date.now(),o="fnValues"+a,i="fnStyle"+ ++a,s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var a=(0,r.JH)(e,{},n);return a[i]=t,a},onProcessStyle:function(e,t){if(o in t||i in t)return e;var n={};for(var r in e){var a=e[r];"function"==typeof a&&(delete e[r],n[r]=a)}return t[o]=n,e},onUpdate:function(e,t,n,r){var a=t,s=a[i];s&&(a.style=s(e)||{});var c=a[o];if(c)for(var l in c)a.prop(l,c[l](e),r)}}},c=n(7462),l="@global",u=function(){function e(e,t,n){for(var a in this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,c.Z)({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),d=function(){function e(e,t,n){this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,c.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function h(e,t){for(var n=e.split(p),r="",a=0;a<n.length;a++)r+=t+" "+n[a].trim(),n[a+1]&&(r+=", ");return r}var m=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new u(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new d(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,a=r?r[l]:null;if(a){for(var o in a)t.addRule(o,a[o],(0,c.Z)({},n,{selector:h(o,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var a in r)if("@"===a[0]&&a.substr(0,7)===l){var o=h(a.substr(7),e.selector);t.addRule(o,r[a],(0,c.Z)({},n,{selector:o})),delete r[a]}}(e,t))}}},g=/\s*,\s*/g,f=/&/g,_=/\$([\w-]+)/g,b=function(){function e(e,t){return function(n,r){var a=e.getRule(r)||t&&t.getRule(r);return a?a.selector:r}}function t(e,t){for(var n=t.split(g),r=e.split(g),a="",o=0;o<n.length;o++)for(var i=n[o],s=0;s<r.length;s++){var c=r[s];a&&(a+=", "),a+=-1!==c.indexOf("&")?c.replace(f,i):i+" "+c}return a}function n(e,t,n){if(n)return(0,c.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var a=(0,c.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete a.name,a}return{onProcessStyle:function(r,a,o){if("style"!==a.type)return r;var i,s,l=a,u=l.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(i=n(l,u,i),p){var m=t(d,l.selector);s||(s=e(u,o)),m=m.replace(_,s);var g=l.key+"-"+d;"replaceRule"in u?u.replaceRule(g,r[d],(0,c.Z)({},i,{selector:m})):u.addRule(g,r[d],(0,c.Z)({},i,{selector:m}))}else h&&u.addRule(d,{},i).addRule(l.key,r[d],{selector:l.selector});delete r[d]}}return r}}},v=/[A-Z]/g,y=/^ms-/,E={};function C(e){return"-"+e.toLowerCase()}var S=function(e){if(E.hasOwnProperty(e))return E[e];var t=e.replace(v,C);return E[e]=y.test(t)?"-"+t:t};function w(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:S(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(w):t.fallbacks=w(e.fallbacks)),t}var k=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=w(e[t]);return e}return w(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=S(t);return t===r?e:(n.prop(r,e),null)}}},x=r.HZ&&CSS?CSS.px:"px",T=r.HZ&&CSS?CSS.ms:"ms",A=r.HZ&&CSS?CSS.percent:"%";function R(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var a in e)r[a]=e[a],r[a.replace(t,n)]=e[a];return r}var I=R({"animation-delay":T,"animation-duration":T,"background-position":x,"background-position-x":x,"background-position-y":x,"background-size":x,border:x,"border-bottom":x,"border-bottom-left-radius":x,"border-bottom-right-radius":x,"border-bottom-width":x,"border-left":x,"border-left-width":x,"border-radius":x,"border-right":x,"border-right-width":x,"border-top":x,"border-top-left-radius":x,"border-top-right-radius":x,"border-top-width":x,"border-width":x,"border-block":x,"border-block-end":x,"border-block-end-width":x,"border-block-start":x,"border-block-start-width":x,"border-block-width":x,"border-inline":x,"border-inline-end":x,"border-inline-end-width":x,"border-inline-start":x,"border-inline-start-width":x,"border-inline-width":x,"border-start-start-radius":x,"border-start-end-radius":x,"border-end-start-radius":x,"border-end-end-radius":x,margin:x,"margin-bottom":x,"margin-left":x,"margin-right":x,"margin-top":x,"margin-block":x,"margin-block-end":x,"margin-block-start":x,"margin-inline":x,"margin-inline-end":x,"margin-inline-start":x,padding:x,"padding-bottom":x,"padding-left":x,"padding-right":x,"padding-top":x,"padding-block":x,"padding-block-end":x,"padding-block-start":x,"padding-inline":x,"padding-inline-end":x,"padding-inline-start":x,"mask-position-x":x,"mask-position-y":x,"mask-size":x,height:x,width:x,"min-height":x,"max-height":x,"min-width":x,"max-width":x,bottom:x,left:x,top:x,right:x,inset:x,"inset-block":x,"inset-block-end":x,"inset-block-start":x,"inset-inline":x,"inset-inline-end":x,"inset-inline-start":x,"box-shadow":x,"text-shadow":x,"column-gap":x,"column-rule":x,"column-rule-width":x,"column-width":x,"font-size":x,"font-size-delta":x,"letter-spacing":x,"text-decoration-thickness":x,"text-indent":x,"text-stroke":x,"text-stroke-width":x,"word-spacing":x,motion:x,"motion-offset":x,outline:x,"outline-offset":x,"outline-width":x,perspective:x,"perspective-origin-x":A,"perspective-origin-y":A,"transform-origin":A,"transform-origin-x":A,"transform-origin-y":A,"transform-origin-z":A,"transition-delay":T,"transition-duration":T,"vertical-align":x,"flex-basis":x,"shape-margin":x,size:x,gap:x,grid:x,"grid-gap":x,"row-gap":x,"grid-row-gap":x,"grid-column-gap":x,"grid-template-rows":x,"grid-template-columns":x,"grid-auto-rows":x,"grid-auto-columns":x,"box-shadow-x":x,"box-shadow-y":x,"box-shadow-blur":x,"box-shadow-spread":x,"font-line-height":x,"text-shadow-x":x,"text-shadow-y":x,"text-shadow-blur":x});function O(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=O(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var a in t)t[a]=O(a,t[a],n);else for(var o in t)t[o]=O(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var i=n[e]||I[e];return!i||0===t&&i===x?t.toString():"function"==typeof i?i(t).toString():""+t+i}return t}var N=function(e){void 0===e&&(e={});var t=R(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=O(r,e[r],t);return e},onChangeValue:function(e,n){return O(n,e,t)}}},M=n(3827),D=n(2982),L="",P="",j="",U="",F=M.Z&&"ontouchstart"in document.documentElement;if(M.Z){var B={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},G=document.createElement("p").style;for(var V in B)if(V+"Transform"in G){L=V,P=B[V];break}"Webkit"===L&&"msHyphens"in G&&(L="ms",P=B.ms,U="edge"),"Webkit"===L&&"-apple-trailing-word"in G&&(j="apple")}var H=L,z=P,Y=j,q=U,K=F,W={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:z+e)}},J={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?z+"print-"+e:e)}},Z=/[-\s]+(.)?/g;function $(e,t){return t?t.toUpperCase():""}function Q(e){return e.replace(Z,$)}function X(e){return Q("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){var n="mask-image";if(Q(n)in t)return e;if(H+X(n)in t)return z+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Y||K?e:z+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:z+e)}},ae={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:z+e)}},oe={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==q?z+e:e)}},ie={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===Y?z+e:e)}},se={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+X(e)in t&&z+"column-"+e:"Moz"===H&&"page"+X(e)in t&&"page-"+e)}},ce={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+X(n)in t&&z+n}},le={supportedProperty:function(e,t){return Q(e)in t&&e}},ue={supportedProperty:function(e,t){var n=X(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?z+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},de={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+z+e:e)}},pe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?z+"scroll-chaining":e)}},he={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},me={supportedProperty:function(e,t){var n=he[e];return!!n&&H+X(n)in t&&z+n}},ge={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},fe=Object.keys(ge),_e=function(e){return z+e},be={supportedProperty:function(e,t,n){var r=n.multiple;if(fe.indexOf(e)>-1){var a=ge[e];if(!Array.isArray(a))return H+X(a)in t&&z+a;if(!r)return!1;for(var o=0;o<a.length;o++)if(!(H+X(a[0])in t))return!1;return a.map(_e)}return!1}},ve=[W,J,te,ne,re,ae,oe,ie,se,ce,le,ue,de,pe,me,be],ye=ve.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Ee=ve.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,(0,D.Z)(t.noPrefill)),e},[]),Ce={};if(M.Z){ee=document.createElement("p");var Se=window.getComputedStyle(document.documentElement,"");for(var we in Se)isNaN(we)||(Ce[Se[we]]=Se[we]);Ee.forEach(function(e){return delete Ce[e]})}function ke(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=Ce[e])return Ce[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<ye.length&&(Ce[e]=ye[n](e,ee.style,t),!Ce[e]);n++);try{ee.style[e]=""}catch(e){return!1}return Ce[e]}var xe,Te={},Ae={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Re=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ie(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?ke(t):", "+ke(n))||t||n}function Oe(e,t){var n=t;if(!xe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Te[r])return Te[r];try{xe.style[e]=n}catch(e){return Te[r]=!1,!1}if(Ae[e])n=n.replace(Re,Ie);else if(""===xe.style[e]&&("-ms-flex"===(n=z+n)&&(xe.style[e]="-ms-flexbox"),xe.style[e]=n,""===xe.style[e]))return Te[r]=!1,!1;return xe.style[e]="",Te[r]=n,Te[r]}M.Z&&(xe=document.createElement("p"));var Ne=function(){function e(t){for(var n in t){var a=t[n];if("fallbacks"===n&&Array.isArray(a))t[n]=a.map(e);else{var o=!1,i=ke(n);i&&i!==n&&(o=!0);var s=!1,c=Oe(i,(0,r.EK)(a));c&&c!==a&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=c||a)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===H?e:"@"+z+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Oe(t,(0,r.EK)(e))||e}}},Me=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},a=Object.keys(t).sort(e),o=0;o<a.length;o++)r[a[o]]=t[a[o]];return r}}};function De(){return{plugins:[s(),m(),b(),k(),N(),"undefined"==typeof window?null:Ne(),Me()]}}},3914:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(5987),a=n(7462),o=n(7294),i=n(4013),s=n(5835),c={set:function(e,t,n,r){var a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},l=n(159),u=n(6975),d=-1e9,p=n(5953),h={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,m=t.classNamePrefix,g=t.Component,f=t.defaultTheme,_=void 0===f?h:f,b=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),v=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],s=(0,a.Z)({},o);return Object.keys(i).forEach(function(e){s[e]=(0,p.Z)(s[e],i[e])}),s},options:{}}}(e),y=n||m||"makeStyles";return v.options={index:d+=1,name:n,meta:y,classNamePrefix:y},function(){var e,t,r,d,p,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=(0,l.Z)()||_,f=(0,a.Z)({},o.useContext(u.NU),b),y=o.useRef(),E=o.useRef();e=function(){var e={name:n,state:{},stylesCreator:v,stylesOptions:f,theme:m};return function(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,l=e.stylesCreator,u=e.name;if(!o.disableGeneration){var d=c.get(o.sheetsManager,l,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},c.set(o.sheetsManager,l,r,d));var p=(0,a.Z)({},l.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});p.generateId=p.serverGenerateClassName||p.generateClassName;var h=o.sheetsRegistry;if(0===d.refs){var m;o.sheetsCache&&(m=c.get(o.sheetsCache,l,r));var g=l.create(r,u);m||((m=o.jss.createStyleSheet(g,(0,a.Z)({link:!1},p))).attach(),o.sheetsCache&&c.set(o.sheetsCache,l,r,m)),h&&h.add(m),d.staticSheet=m,d.dynamicStyles=(0,i._$)(g)}if(d.dynamicStyles){var f=o.jss.createStyleSheet(d.dynamicStyles,(0,a.Z)({link:!0},p));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=(0,s.Z)({baseClasses:d.staticSheet.classes,newClasses:f.classes}),h&&h.add(f)}else n.classes=d.staticSheet.classes;d.refs+=1}}(e,h),E.current=!1,y.current=e,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,a=e.stylesCreator;if(!r.disableGeneration){var o=c.get(r.sheetsManager,a,n);o.refs-=1;var i=r.sheetsRegistry;0===o.refs&&(c.delete(r.sheetsManager,a,n),r.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),i&&i.remove(t.dynamicSheet))}}(e)}},t=[m,v],d=o.useRef([]),p=o.useMemo(function(){return{}},t),d.current!==p&&(d.current=p,r=e()),o.useEffect(function(){return function(){r&&r()}},[p]),o.useEffect(function(){E.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(y.current,h),E.current=!0});var C=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,a=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,a=!0),a&&(r.cacheClasses.value=(0,s.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(y.current,h.classes,g);return C}}},5835:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7462);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var a=(0,r.Z)({},t);return Object.keys(n).forEach(function(e){n[e]&&(a[e]="".concat(t[e]," ").concat(n[e]))}),a}},3800:function(e,t,n){"use strict";var r=n(7294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),a=n(3800);function o(){return r.useContext(a.Z)}},8920:function(e,t,n){"use strict";var r=n(7462),a=n(5987),o=n(7294),i=n(8679),s=n.n(i),c=n(3914),l=n(3869),u=n(159);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,h=t.name,m=(0,a.Z)(t,["defaultTheme","withTheme","name"]),g=h,f=(0,c.Z)(e,(0,r.Z)({defaultTheme:i,Component:n,name:h||n.displayName,classNamePrefix:g},m)),_=o.forwardRef(function(e,t){e.classes;var s,c=e.innerRef,d=(0,a.Z)(e,["classes","innerRef"]),m=f((0,r.Z)({},n.defaultProps,e)),g=d;return("string"==typeof h||p)&&(s=(0,u.Z)()||i,h&&(g=(0,l.Z)({theme:s,name:h,props:d})),p&&!g.theme&&(g.theme=s)),o.createElement(n,(0,r.Z)({ref:c||t,classes:m},g))});return s()(_,n),_}}},1410:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(2982),a=n(7462),o=n(1002),i=n(9668),s={xs:0,sm:600,md:960,lg:1280,xl:1920},c={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(s[e],"px)")}};function l(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||c;return t.reduce(function(e,a,o){return e[r.up(r.keys[o])]=n(t[o]),e},{})}if("object"===(0,o.Z)(t)){var a=e.theme.breakpoints||c;return Object.keys(t).reduce(function(e,r){return e[a.up(r)]=n(t[r]),e},{})}return n(t)}t.Z=function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||c,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e((0,a.Z)({theme:t.theme},t[o]))),n},null);return(0,i.Z)(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat((0,r.Z)(e.filterProps)),t}},3312:function(e,t,n){"use strict";n.r(t),n.d(t,{alignContent:function(){return P},alignItems:function(){return L},alignSelf:function(){return G},bgcolor:function(){return oe},border:function(){return u},borderBottom:function(){return h},borderColor:function(){return g},borderLeft:function(){return m},borderRadius:function(){return f},borderRight:function(){return p},borderTop:function(){return d},borders:function(){return _},bottom:function(){return de},boxSizing:function(){return we},breakpoints:function(){return a.Z},color:function(){return ae},compose:function(){return c},createUnarySpacing:function(){return xe.h},css:function(){return C},display:function(){return I},flex:function(){return U},flexBasis:function(){return O},flexDirection:function(){return N},flexGrow:function(){return F},flexShrink:function(){return B},flexWrap:function(){return M},flexbox:function(){return z},fontFamily:function(){return Te},fontSize:function(){return Ae},fontStyle:function(){return Re},fontWeight:function(){return Ie},grid:function(){return re},gridArea:function(){return ne},gridAutoColumns:function(){return $},gridAutoFlow:function(){return Z},gridAutoRows:function(){return Q},gridColumn:function(){return W},gridColumnGap:function(){return q},gridGap:function(){return Y},gridRow:function(){return J},gridRowGap:function(){return K},gridTemplateAreas:function(){return te},gridTemplateColumns:function(){return X},gridTemplateRows:function(){return ee},height:function(){return ve},justifyContent:function(){return D},justifyItems:function(){return V},justifySelf:function(){return H},left:function(){return pe},letterSpacing:function(){return Oe},lineHeight:function(){return Ne},maxHeight:function(){return ye},maxWidth:function(){return _e},minHeight:function(){return Ee},minWidth:function(){return be},order:function(){return j},palette:function(){return ie},position:function(){return se},positions:function(){return he},right:function(){return ue},shadows:function(){return me},sizeHeight:function(){return Se},sizeWidth:function(){return Ce},sizing:function(){return ke},spacing:function(){return xe.Z},style:function(){return i},styleFunctionSx:function(){return S},textAlign:function(){return Me},top:function(){return le},typography:function(){return De},width:function(){return fe},zIndex:function(){return ce}});var r=n(4942),a=n(1410);function o(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}var i=function(e){var t=e.prop,n=e.cssProperty,i=void 0===n?e.prop:n,s=e.themeKey,c=e.transform,l=function(e){if(null==e[t])return null;var n=e[t],l=o(e.theme,s)||{};return(0,a.k)(e,n,function(e){var t;return"function"==typeof l?t=l(e):Array.isArray(l)?t=l[e]||e:(t=o(l,e)||e,c&&(t=c(t))),!1===i?t:(0,r.Z)({},i,t)})};return l.propTypes={},l.filterProps=[t],l},s=n(9668),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?(0,s.Z)(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r};function l(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var u=i({prop:"border",themeKey:"borders",transform:l}),d=i({prop:"borderTop",themeKey:"borders",transform:l}),p=i({prop:"borderRight",themeKey:"borders",transform:l}),h=i({prop:"borderBottom",themeKey:"borders",transform:l}),m=i({prop:"borderLeft",themeKey:"borders",transform:l}),g=i({prop:"borderColor",themeKey:"palette"}),f=i({prop:"borderRadius",themeKey:"shape"}),_=c(u,d,p,h,m,g,f),b=n(2982),v=n(7462);function y(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function E(e){var t=function(t){var n=e(t);return t.css?(0,v.Z)({},(0,s.Z)(n,e((0,v.Z)({theme:t.theme},t.css))),y(t.css,[e.filterProps])):t.sx?(0,v.Z)({},(0,s.Z)(n,e((0,v.Z)({theme:t.theme},t.sx))),y(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,b.Z)(e.filterProps)),t}function C(e){return E(e)}var S=E,w=i({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),k=i({prop:"display"}),x=i({prop:"overflow"}),T=i({prop:"textOverflow"}),A=i({prop:"visibility"}),R=i({prop:"whiteSpace"}),I=c(w,k,x,T,A,R),O=i({prop:"flexBasis"}),N=i({prop:"flexDirection"}),M=i({prop:"flexWrap"}),D=i({prop:"justifyContent"}),L=i({prop:"alignItems"}),P=i({prop:"alignContent"}),j=i({prop:"order"}),U=i({prop:"flex"}),F=i({prop:"flexGrow"}),B=i({prop:"flexShrink"}),G=i({prop:"alignSelf"}),V=i({prop:"justifyItems"}),H=i({prop:"justifySelf"}),z=c(O,N,M,D,L,P,j,U,F,B,G,V,H),Y=i({prop:"gridGap"}),q=i({prop:"gridColumnGap"}),K=i({prop:"gridRowGap"}),W=i({prop:"gridColumn"}),J=i({prop:"gridRow"}),Z=i({prop:"gridAutoFlow"}),$=i({prop:"gridAutoColumns"}),Q=i({prop:"gridAutoRows"}),X=i({prop:"gridTemplateColumns"}),ee=i({prop:"gridTemplateRows"}),te=i({prop:"gridTemplateAreas"}),ne=i({prop:"gridArea"}),re=c(Y,q,K,W,J,Z,$,Q,X,ee,te,ne),ae=i({prop:"color",themeKey:"palette"}),oe=i({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),ie=c(ae,oe),se=i({prop:"position"}),ce=i({prop:"zIndex",themeKey:"zIndex"}),le=i({prop:"top"}),ue=i({prop:"right"}),de=i({prop:"bottom"}),pe=i({prop:"left"}),he=c(se,ce,le,ue,de,pe),me=i({prop:"boxShadow",themeKey:"shadows"});function ge(e){return e<=1?"".concat(100*e,"%"):e}var fe=i({prop:"width",transform:ge}),_e=i({prop:"maxWidth",transform:ge}),be=i({prop:"minWidth",transform:ge}),ve=i({prop:"height",transform:ge}),ye=i({prop:"maxHeight",transform:ge}),Ee=i({prop:"minHeight",transform:ge}),Ce=i({prop:"size",cssProperty:"width",transform:ge}),Se=i({prop:"size",cssProperty:"height",transform:ge}),we=i({prop:"boxSizing"}),ke=c(fe,_e,be,ve,ye,Ee,we),xe=n(8681),Te=i({prop:"fontFamily",themeKey:"typography"}),Ae=i({prop:"fontSize",themeKey:"typography"}),Re=i({prop:"fontStyle",themeKey:"typography"}),Ie=i({prop:"fontWeight",themeKey:"typography"}),Oe=i({prop:"letterSpacing"}),Ne=i({prop:"lineHeight"}),Me=i({prop:"textAlign"}),De=c(Te,Ae,Re,Ie,Oe,Ne,Me)},9668:function(e,t,n){"use strict";var r=n(5953);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},8681:function(e,t,n){"use strict";n.d(t,{h:function(){return h},Z:function(){return g}});var r,a,o=n(885),i=n(1410),s=n(9668),c={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(r=function(e){if(e.length>2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,o.Z)(t,2),r=n[0],a=n[1],i=c[r],s=l[a]||"";return Array.isArray(s)?s.map(function(e){return i+e}):[i+s]},a={},function(e){return void 0===a[e]&&(a[e]=r(e)),a[e]}),p=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function h(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function m(e){var t=h(e.theme);return Object.keys(e).map(function(n){if(-1===p.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}(d(n),t),a=e[n];return(0,i.k)(e,a,r)}).reduce(s.Z,{})}m.propTypes={},m.filterProps=p;var g=m},5953:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7462),a=n(1002);function o(e){return e&&"object"===(0,a.Z)(e)&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},a=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach(function(r){"__proto__"!==r&&(o(t[r])&&r in e?a[r]=i(e[r],t[r],n):a[r]=t[r])}),a}},288:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},5218:function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,{HTMLElementType:function(){return b},chainPropTypes:function(){return r},deepmerge:function(){return a.Z},elementAcceptingRef:function(){return c},elementTypeAcceptingRef:function(){return l},exactProp:function(){return u},formatMuiErrorMessage:function(){return d.Z},getDisplayName:function(){return _},ponyfillGlobal:function(){return v},refType:function(){return y}});var a=n(5953),o=n(5697),i=n.n(o),s=(i().element,function(){return null});s.isRequired=(i().element.isRequired,function(){return null});var c=s,l=(o.elementType,function(){return null});function u(e){return e}n(4942),n(7462);var d=n(288),p=n(1002),h=n(9864),m=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||(t="".concat(e).match(m))&&t[1]||n}function f(e,t,n){var r=g(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function _(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return g(e,"Component");if("object"===(0,p.Z)(e))switch(e.$$typeof){case h.ForwardRef:return f(e,e.render,"ForwardRef");case h.Memo:return f(e,e.type,"memo");default:return}}}function b(e,t,n,r,a){return null}var v="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),y=i().oneOfType([i().func,i().object])},6010:function(e,t,n){"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}t.Z=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},3762:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,".awssld--cubeAnimation {\n  --cube-animation-duration: 675ms;\n  --cube-animation-perspective: 1800px;\n  --cube-animation-ease-in: cubic-bezier(0.8, 0, 1, 0.8);\n  --cube-animation-ease-out: cubic-bezier(0, 0.2, 0.2, 1);\n  --cube-translateZ-distance: -225px; }\n  .awssld--cubeAnimation .awssld__container {\n    -webkit-perspective: var(--cube-animation-perspective);\n            perspective: var(--cube-animation-perspective); }\n  .awssld--cubeAnimation .awssld--moveRight {\n    -webkit-transform-origin: 0% 50%;\n            transform-origin: 0% 50%;\n    -webkit-animation: cubeLeftIn var(--cube-animation-duration) both var(--cube-animation-ease-in);\n            animation: cubeLeftIn var(--cube-animation-duration) both var(--cube-animation-ease-in); }\n  .awssld--cubeAnimation .awssld--moveLeft {\n    -webkit-transform-origin: 100% 50%;\n            transform-origin: 100% 50%;\n    -webkit-animation: cubeRightIn var(--cube-animation-duration) both var(--cube-animation-ease-in);\n            animation: cubeRightIn var(--cube-animation-duration) both var(--cube-animation-ease-in); }\n  .awssld--cubeAnimation .awssld--exit.awssld--moveLeft {\n    -webkit-transform-origin: 100% 50%;\n            transform-origin: 100% 50%;\n    -webkit-animation: cubeLeftOut var(--cube-animation-duration) both var(--cube-animation-ease-in);\n            animation: cubeLeftOut var(--cube-animation-duration) both var(--cube-animation-ease-in); }\n  .awssld--cubeAnimation .awssld--exit.awssld--moveRight {\n    -webkit-transform-origin: 0% 50%;\n            transform-origin: 0% 50%;\n    -webkit-animation: cubeRightOut var(--cube-animation-duration) both var(--cube-animation-ease-in);\n            animation: cubeRightOut var(--cube-animation-duration) both var(--cube-animation-ease-in); }\n\n@-webkit-keyframes cubeLeftOut {\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg);\n            transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg); }\n  100% {\n    -webkit-transform: translateX(-100%) rotateY(-90deg);\n            transform: translateX(-100%) rotateY(-90deg); } }\n\n@keyframes cubeLeftOut {\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg);\n            transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg); }\n  100% {\n    -webkit-transform: translateX(-100%) rotateY(-90deg);\n            transform: translateX(-100%) rotateY(-90deg); } }\n\n@-webkit-keyframes cubeRightOut {\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg);\n            transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg); }\n  100% {\n    -webkit-transform: translateX(100%) rotateY(90deg);\n            transform: translateX(100%) rotateY(90deg); } }\n\n@keyframes cubeRightOut {\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg);\n            transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg); }\n  100% {\n    -webkit-transform: translateX(100%) rotateY(90deg);\n            transform: translateX(100%) rotateY(90deg); } }\n\n@-webkit-keyframes cubeLeftIn {\n  0% {\n    -webkit-transform: translateX(100%) rotateY(90deg);\n            transform: translateX(100%) rotateY(90deg); }\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg);\n            transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg); } }\n\n@keyframes cubeLeftIn {\n  0% {\n    -webkit-transform: translateX(100%) rotateY(90deg);\n            transform: translateX(100%) rotateY(90deg); }\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg);\n            transform: translateX(50%) translateZ(var(--cube-translateZ-distance)) rotateY(45deg); } }\n\n@-webkit-keyframes cubeRightIn {\n  0% {\n    -webkit-transform: translateX(-100%) rotateY(-90deg);\n            transform: translateX(-100%) rotateY(-90deg); }\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg);\n            transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg); } }\n\n@keyframes cubeRightIn {\n  0% {\n    -webkit-transform: translateX(-100%) rotateY(-90deg);\n            transform: translateX(-100%) rotateY(-90deg); }\n  50% {\n    -webkit-animation-timing-function: var(--cube-animation-ease-out);\n            animation-timing-function: var(--cube-animation-ease-out);\n    -webkit-transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg);\n            transform: translateX(-50%) translateZ(var(--cube-translateZ-distance)) rotateY(-45deg); } }\n\n",""]),t.default=a},2058:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,".awssld__container figure, .awssld__content, .awssld__box {\n  display: block;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  top: 0;\n  left: 0; }\n\n.awssld__controls button, .awssld__bullets button {\n  outline-color: 0;\n  outline-style: none;\n  outline-width: 0; }\n\n.awssld {\n  --organic-arrow-thickness: 4px;\n  --organic-arrow-height: 40px;\n  --slider-height-percentage: 60%;\n  --loader-bar-color: #851515;\n  --loader-bar-height: 6px;\n  --control-button-width: 10%;\n  --control-button-height: 25%;\n  --control-button-opacity: 0.5;\n  --control-button-hover-opacity: 0.75;\n  --control-button-background: transparent;\n  --transition-bezier: cubic-bezier(0.5, 0.075, 0.25, 0.95);\n  --slider-transition-duration: 575ms;\n  --organic-arrow-color: #6a6a6a;\n  --organic-arrow-border-radius: 0;\n  --control-bullet-color: #6a6a6a;\n  --control-bullet-active-color: #6a6a6a;\n  --content-background-color: #2f2f2f; }\n\n.awssld {\n  display: block;\n  position: relative;\n  width: 100%;\n  max-width: 100%; }\n  .awssld__wrapper {\n    display: block;\n    overflow: hidden;\n    position: relative;\n    height: 100%;\n    width: 100%; }\n  .awssld__container {\n    display: block;\n    width: 100%;\n    height: 0;\n    padding-bottom: var(--slider-height-percentage); }\n    @media all and (max-width: 500px) {\n      .awssld__container {\n        padding-bottom: calc(var(--slider-height-percentage) * 1.25); } }\n  .awssld__startUp {\n    background-color: red;\n    height: 100%;\n    width: 100%; }\n    .awssld__startUp > div {\n      height: 100%;\n      width: 100%;\n      display: flex;\n      align-items: center;\n      justify-content: center; }\n    .awssld__startUp img {\n      width: 35%;\n      height: auto; }\n  .awssld__content {\n    background-color: var(--content-background-color);\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    justify-content: center; }\n    .awssld__content > img,\n    .awssld__content > video {\n      object-fit: cover;\n      width: 100%;\n      height: 100%;\n      position: absolute;\n      top: 0;\n      left: 0; }\n  .awssld__controls button {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: var(--control-button-width);\n    height: var(--control-button-height);\n    position: absolute;\n    z-index: 10;\n    top: calc(50% - (0.5 * var(--control-button-height)));\n    border: none;\n    background-color: var(--control-button-background);\n    color: #fff;\n    cursor: pointer; }\n    .awssld__controls button .awssld__controls__arrow-left,\n    .awssld__controls button .awssld__controls__arrow-right {\n      opacity: var(--control-button-opacity); }\n    .awssld__controls button:hover .awssld__controls__arrow-left,\n    .awssld__controls button:hover .awssld__controls__arrow-right {\n      opacity: var(--control-button-opacity-hover); }\n  .awssld__controls--active .awssld__controls__arrow-left {\n    opacity: var(--control-button-opacity-hover);\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); }\n  .awssld__controls--active .awssld__controls__arrow-right {\n    opacity: var(--control-button-opacity-hover);\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); }\n  .awssld__controls--hidden {\n    display: none; }\n  @media all and (max-width: 520px) {\n    .awssld__controls {\n      visibility: hidden; } }\n  .awssld__bar {\n    display: block;\n    width: 100%;\n    height: var(--loader-bar-height);\n    background-color: var(--loader-bar-color);\n    position: absolute;\n    top: 0;\n    left: 0;\n    z-index: 101;\n    transition: -webkit-transform 3000ms var(--transition-bezier);\n    transition: transform 3000ms var(--transition-bezier);\n    transition: transform 3000ms var(--transition-bezier), -webkit-transform 3000ms var(--transition-bezier);\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); }\n    .awssld__bar--active {\n      -webkit-transform: translate3d(-20%, 0, 0);\n              transform: translate3d(-20%, 0, 0); }\n    .awssld__bar--end {\n      transition-duration: 300ms;\n      -webkit-transform: translate3d(0, 0, 0);\n              transform: translate3d(0, 0, 0); }\n  .awssld__next {\n    right: 0; }\n  .awssld__prev {\n    left: 0; }\n  .awssld__box {\n    z-index: 1;\n    visibility: hidden; }\n  .awssld--animated {\n    will-change: transform;\n    visibility: visible; }\n  .awssld--animated-mobile {\n    will-change: transform;\n    transition: -webkit-transform 325ms cubic-bezier(0.15, 0.65, 0.1, 1);\n    transition: transform 325ms cubic-bezier(0.15, 0.65, 0.1, 1);\n    transition: transform 325ms cubic-bezier(0.15, 0.65, 0.1, 1), -webkit-transform 325ms cubic-bezier(0.15, 0.65, 0.1, 1); }\n  .awssld--active {\n    visibility: visible;\n    z-index: 2;\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); }\n  .awssld--moveRight, .awssld--moveLeft {\n    -webkit-backface-visibility: hidden;\n            backface-visibility: hidden; }\n  .awssld--moveRight {\n    -webkit-animation: slideFromRight var(--slider-transition-duration) both var(--transition-bezier);\n            animation: slideFromRight var(--slider-transition-duration) both var(--transition-bezier); }\n  .awssld--moveLeft {\n    -webkit-animation: slideFromLeft var(--slider-transition-duration) both var(--transition-bezier);\n            animation: slideFromLeft var(--slider-transition-duration) both var(--transition-bezier); }\n  .awssld--exit {\n    z-index: 0; }\n    .awssld--exit.awssld--moveLeft {\n      -webkit-animation: slideToLeft var(--slider-transition-duration) both var(--transition-bezier);\n              animation: slideToLeft var(--slider-transition-duration) both var(--transition-bezier); }\n    .awssld--exit.awssld--moveRight {\n      -webkit-animation: slideToRight var(--slider-transition-duration) both var(--transition-bezier);\n              animation: slideToRight var(--slider-transition-duration) both var(--transition-bezier); }\n  .awssld--first .awssld__prev {\n    visibility: hidden; }\n  .awssld--last .awssld__next {\n    visibility: hidden; }\n  .awssld--fill-parent {\n    position: absolute !important;\n    width: 100% !important;\n    height: 100% !important;\n    top: 0;\n    left: 0; }\n    .awssld--fill-parent .awssld__container {\n      height: 100%;\n      padding: 0; }\n  .awssld__bullets {\n    position: absolute;\n    bottom: -40px;\n    width: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center; }\n    .awssld__bullets button {\n      padding: 0;\n      display: block;\n      width: 16px;\n      height: 16px;\n      margin: 5px;\n      border-radius: 50%;\n      background: var(--control-bullet-color);\n      text-indent: -9999px;\n      overflow: hidden;\n      cursor: pointer;\n      border: none;\n      transition: background-color 0.175s ease-out, -webkit-transform 0.225s cubic-bezier(0.8, 1.35, 0.75, 1.45);\n      transition: transform 0.225s cubic-bezier(0.8, 1.35, 0.75, 1.45), background-color 0.175s ease-out;\n      transition: transform 0.225s cubic-bezier(0.8, 1.35, 0.75, 1.45), background-color 0.175s ease-out, -webkit-transform 0.225s cubic-bezier(0.8, 1.35, 0.75, 1.45); }\n      .awssld__bullets button:hover {\n        -webkit-transform: scale(1.2);\n                transform: scale(1.2); }\n    .awssld__bullets .awssld__bullets--loading {\n      -webkit-transform: scale(1.2);\n              transform: scale(1.2); }\n    .awssld__bullets .awssld__bullets--active {\n      -webkit-transform: scale(1.5);\n              transform: scale(1.5);\n      background: var(--control-bullet-active-color); }\n      .awssld__bullets .awssld__bullets--active:hover {\n        -webkit-transform: scale(1.5);\n                transform: scale(1.5); }\n  .awssld__controls__arrow-left, .awssld__controls__arrow-right {\n    width: 100%;\n    height: var(--organic-arrow-height);\n    position: relative;\n    display: block;\n    transition: opacity 0.2s ease-out, -webkit-transform 0.2s ease-out 0.125s;\n    transition: transform 0.2s ease-out 0.125s, opacity 0.2s ease-out;\n    transition: transform 0.2s ease-out 0.125s, opacity 0.2s ease-out, -webkit-transform 0.2s ease-out 0.125s; }\n    .awssld__controls__arrow-left:before, .awssld__controls__arrow-left:after, .awssld__controls__arrow-right:before, .awssld__controls__arrow-right:after {\n      content: ' ';\n      position: absolute;\n      right: calc( 50% - ( 0.7071 * (var(--organic-arrow-height) + var(--organic-arrow-thickness)) ) / 2);\n      height: 100%;\n      border-radius: var(--organic-arrow-border-radius);\n      width: var(--organic-arrow-thickness);\n      background-color: var(--organic-arrow-color);\n      transition: background-color 0.15s ease-out, -webkit-transform 0.15s ease-out;\n      transition: transform 0.15s ease-out, background-color 0.15s ease-out;\n      transition: transform 0.15s ease-out, background-color 0.15s ease-out, -webkit-transform 0.15s ease-out; }\n    .awssld__controls__arrow-left:before, .awssld__controls__arrow-right:before {\n      -webkit-transform-origin: 100% 100% 0;\n              transform-origin: 100% 100% 0;\n      top: -50%;\n      -webkit-transform: rotate(-45deg);\n              transform: rotate(-45deg); }\n    .awssld__controls__arrow-left:after, .awssld__controls__arrow-right:after {\n      -webkit-transform-origin: 100% 0% 0;\n              transform-origin: 100% 0% 0;\n      top: 50%;\n      -webkit-transform: rotate(45deg);\n              transform: rotate(45deg); }\n  .awssld__controls__arrow-right--active {\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); }\n    .awssld__controls__arrow-right--active:after {\n      -webkit-transform: rotate(90deg) translate3d(50%, 0, 0) !important;\n              transform: rotate(90deg) translate3d(50%, 0, 0) !important; }\n    .awssld__controls__arrow-right--active:before {\n      -webkit-transform: rotate(-90deg) translate3d(50%, 0, 0) !important;\n              transform: rotate(-90deg) translate3d(50%, 0, 0) !important; }\n  .awssld__controls__arrow-left:before, .awssld__controls__arrow-left:after {\n    right: auto;\n    left: calc( 50% - ( 0.7071 * (var(--organic-arrow-height) + var(--organic-arrow-thickness)) ) / 2); }\n  .awssld__controls__arrow-left:before {\n    -webkit-transform-origin: 0 100% 0;\n            transform-origin: 0 100% 0;\n    top: -50%;\n    -webkit-transform: rotate(45deg);\n            transform: rotate(45deg); }\n  .awssld__controls__arrow-left:after {\n    -webkit-transform-origin: 0 0 0;\n            transform-origin: 0 0 0;\n    top: 50%;\n    -webkit-transform: rotate(-45deg);\n            transform: rotate(-45deg); }\n  .awssld__controls__arrow-left--active {\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); }\n    .awssld__controls__arrow-left--active:after {\n      -webkit-transform: rotate(-90deg) translate3d(-50%, 0, 0) !important;\n              transform: rotate(-90deg) translate3d(-50%, 0, 0) !important; }\n    .awssld__controls__arrow-left--active:before {\n      -webkit-transform: rotate(90deg) translate3d(-50%, 0, 0) !important;\n              transform: rotate(90deg) translate3d(-50%, 0, 0) !important; }\n  .awssld__controls button:hover .awssld__controls__arrow-left:before {\n    opacity: 1;\n    -webkit-transform: rotate(30deg);\n            transform: rotate(30deg); }\n  .awssld__controls button:hover .awssld__controls__arrow-left:after {\n    opacity: 1;\n    -webkit-transform: rotate(-30deg);\n            transform: rotate(-30deg); }\n  .awssld__controls button:hover .awssld__controls__arrow-right:before {\n    opacity: 1;\n    -webkit-transform: rotate(-30deg);\n            transform: rotate(-30deg); }\n  .awssld__controls button:hover .awssld__controls__arrow-right:after {\n    opacity: 1;\n    -webkit-transform: rotate(30deg);\n            transform: rotate(30deg); }\n  .awssld__timer {\n    --timer-delay: 2000ms;\n    --timer-release: 200ms;\n    --timer-height: 4px;\n    --timer-background-color: rgba(0, 0, 0, 0.15);\n    width: 100%;\n    height: var(--timer-height);\n    background-color: var(--timer-background-color);\n    position: absolute;\n    top: 0;\n    left: 0;\n    z-index: 100;\n    -webkit-transform: translateX(-100%);\n            transform: translateX(-100%); }\n    .awssld__timer--animated {\n      will-change: transform;\n      transition: -webkit-transform var(--timer-delay) linear;\n      transition: transform var(--timer-delay) linear;\n      transition: transform var(--timer-delay) linear, -webkit-transform var(--timer-delay) linear; }\n    .awssld__timer--run {\n      -webkit-transform: translateX(0);\n              transform: translateX(0); }\n    .awssld__timer--fast {\n      transition: -webkit-transform calc(var(--timer-release) / 2) linear;\n      transition: transform calc(var(--timer-release) / 2) linear;\n      transition: transform calc(var(--timer-release) / 2) linear, -webkit-transform calc(var(--timer-release) / 2) linear;\n      -webkit-transform: translateX(-0.00001px);\n              transform: translateX(-0.00001px); }\n    .awssld__timer--end {\n      -webkit-transform: translateX(-0.0001px);\n              transform: translateX(-0.0001px);\n      transition: -webkit-transform var(--timer-release) linear;\n      transition: transform var(--timer-release) linear;\n      transition: transform var(--timer-release) linear, -webkit-transform var(--timer-release) linear; }\n    .awssld__timer--hidden {\n      display: none; }\n\n@-webkit-keyframes slideFromLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); } }\n\n@keyframes slideFromLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); } }\n\n@-webkit-keyframes slideFromRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); } }\n\n@keyframes slideFromRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); } }\n\n@-webkit-keyframes slideToLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); }\n  to {\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); } }\n\n@keyframes slideToLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); }\n  to {\n    -webkit-transform: translate3d(-100%, 0, 0);\n            transform: translate3d(-100%, 0, 0); } }\n\n@-webkit-keyframes slideToRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); } }\n\n@keyframes slideToRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0); }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0);\n            transform: translate3d(100%, 0, 0); } }\n\n",""]),t.default=a},2569:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,'.ccccn .cc-App {\n  text-align: center;\n  height: 100%;\n  position: relative;\n}\n\n.ccccn .cc-App-header {\n  /* background-color: #282c34; */\n  justify-content: center;\n  height: 100%;\n}\n\n/* .tool {\n  cursor: help;\n  position: relative;\n  transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26) 0.2s;\n} */\n\n/*== common styles for both parts of tool tip ==*/\n/* .tool::before,\n.tool::after {\n  left: 50%;\n  position: absolute;\n  opacity: 1;\n  transform: scale(1) translateY(0);\n  z-index: 100;\n} */\n\n/*== pointer tip ==*/\n/* .tool::before {\n  border-style: solid;\n  border-width: 1em 0.75em 0 0.75em;\n  border-color: #3e474f transparent transparent transparent;\n  bottom: 100%;\n  content: "";\n  margin-left: -0.5em;\n  transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26),\n    opacity 0.65s 0.5s;\n  transform: scale(0.6) translateY(-90%);\n} */\n\n/*== speech bubble ==*/\n/* .tool::after {\n  background: #3e474f;\n  border-radius: 0.25em;\n  bottom: 180%;\n  color: #edeff0;\n  content: attr(data-tip);\n  margin-left: -8.75em;\n  padding: 1em;\n  transition: all 0.65s cubic-bezier(0.84, -0.18, 0.31, 1.26) 0.2s;\n  transform: scale(0.6) translateY(50%);\n  width: 17.5em;\n} */\n\n@media (max-width: 760px) {\n  .ccccn .tool::after {\n    font-size: 0.75em;\n    margin-left: -5em;\n    width: 10em;\n  }\n}\n\n#cc-container {\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n',""]),t.default=a},3349:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,".ccccn .bottom-buttons-icon-color {\n  color: #fff;\n  height: 24px;\n  width: 24px;\n}\n.ccccn .bottom-buttons-icon-button {\n  border: none;\n  outline: none;\n  margin-right: 4px;\n}\n.ccccn .cc-bottom-buttons-icon-container {\n  min-height: 50px;\n  min-width: 50px;\n  height: 7vh;\n  width: 7vh;\n  background-color: #31383e;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.ccccn .cc-bottom-buttons-with-padding {\n  height: 80px;\n  /* width: 100vw; */\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-height: 80px;\n  background-image: linear-gradient(rgb(28, 34, 38), rgb(19, 23, 26));\n  padding-right: 20vh;\n}\n\n@media (max-width: 600px) {\n  .ccccn .cc-bottom-buttons-with-padding {\n    padding-right: 0px;\n  }\n}\n\n.ccccn .cc-bottom-buttons {\n  height: var(--ccccn-bottom-button-container-height);\n  /* width: 100vw; */\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-image: linear-gradient(rgb(28, 34, 38), rgb(19, 23, 26));\n  position: relative;\n}\n\n.ccccn .bottom-buttons-other-options {\n  position: absolute;\n  display: flex;\n  right: 8px;\n  bottom: 8px;\n}\n\n.ccccn .dialog-form {\n  padding: 16px;\n}\n.ccccn .settings-dropdown-style {\n  min-width: 250px;\n  max-width: 250px;\n  width: 250px;\n}\n\n.ccccn .settings-icon-button {\n  border: none;\n  outline: none;\n}\n\n.ccccn .color-white {\n  color: #fff;\n}\n\n.ccccn .setting-menu-icon-container {\n  margin-right: 16px;\n}\n\n.ccccn .track-error-container {\n  position: absolute;\n  bottom: 0;\n  right: -4px;\n  background-color: #31383e;\n  border-radius: 50%;\n  aspect-ratio: 1px;\n  height: 24px;\n  width: 24px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.ccccn .track-error-icon {\n  aspect-ratio: 1px;\n  height: 16px;\n  width: 16px;\n  color: #fff;\n}\n\n.ccccn .cc-audio-icon-container-muted {\n  background-color: #d93438;\n}\n\n.ccccn .cc-end-call-icon-container {\n  background-color: #d93438;\n}\n\n.ccccn .cc-video-icon-container-muted {\n  background-color: #d93438;\n}\n",""]),t.default=a},5252:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r),o=n(1667),i=n.n(o),s=n(5860),c=n(6988),l=n(2040),u=n(1898),d=n(221),p=n(2273),h=n(2234),m=n(3478),g=n(7443),f=n(5028),_=n(8996),b=n(5775),v=n(710),y=n(9742),E=a()(!1),C=i()(s.Z),S=i()(c.Z),w=i()(l.Z),k=i()(u.Z),x=i()(d.Z),T=i()(p.Z),A=i()(h.Z),R=i()(m.Z),I=i()(g.Z),O=i()(f.Z),N=i()(_.Z),M=i()(b.Z),D=i()(v.Z),L=i()(y.Z);E.push([e.id,".ccccn .btn-circle {\n  background-color: #4d4c4f;\n  width: 4vw;\n  height: 4vw;\n  border-radius: 50%;\n  line-height: normal;\n  margin: 5px;\n  outline: none !important;\n  border: none;\n  z-index: 5;\n}\n\n.ccccn .mob-btn {\n  width: 12vw;\n  height: 12vw;\n}\n\n.ccccn .mob-icon {\n  height: 8vw;\n  width: 8vw;\n}\n\n.ccccn .btn-circle.red {\n  background-color: #ec4c3a;\n}\n\n.ccccn button:active {\n  outline: none !important;\n  border: none;\n}\n\n.ccccn .end-call-icon {\n  margin: 0 auto;\n  background: url("+C+");\n  height: 2.5vw;\n  width: 2.5vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n.ccccn .audio-mute {\n  margin: 0 auto;\n  background: url("+S+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .audio-un-mute {\n  margin: 0 auto;\n  background: url("+w+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .video-un-mute {\n  margin: 0 auto;\n  background: url("+k+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .video-mute {\n  margin: 0 auto;\n  background: url("+x+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .fileShare {\n  margin: 0 auto;\n  background: url("+T+");\n  height: 3vw;\n  width: 3vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .screen-share-on {\n  margin: 0 auto;\n  background: url("+A+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .screen-share-off {\n  margin: 0 auto;\n  background: url("+R+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .display-mode-change {\n  margin: 0 auto;\n  background: url("+I+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .recording {\n  margin: 0 auto;\n  background: url("+O+");\n  height: 1.5vw;\n  width: 1.5vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n.ccccn .stop-recording {\n  margin: 0 auto;\n  background: url("+N+");\n  height: 3vw;\n  width: 3vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .display-mode-grid {\n  margin: 0 auto;\n  background: url("+M+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n\n.ccccn .button-container {\n  position: relative;\n  display: inline-block;\n  display: flex;\n  justify-content: center;\n  padding: 0.2%;\n}\n\n.ccccn .button-background2 {\n  background-color: rgba(46, 47, 48, 0.6);\n  border-radius: 25px;\n}\n\n.ccccn .transparent {\n  opacity: 0.4;\n}\n\n.ccccn .video-source-list {\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n}\n\n.ccccn .change-source-button {\n  position: absolute;\n  bottom: 5px;\n  right: 5px;\n  height: 1.5vw;\n  width: 1.5vw;\n  border-radius: 50%;\n  background-color: rgba(255, 255, 255, 0.5);\n  z-index: 100;\n}\n\n.ccccn .dropbtn {\n  background-color: #4caf50;\n  color: white;\n  padding: 16px;\n  font-size: 16px;\n  border: none;\n}\n\n.ccccn .dropdown {\n  position: relative;\n  display: inline-block;\n}\n\n.ccccn .dropdown-content {\n  display: none;\n  position: absolute;\n  background-color: #555;\n  min-width: 180px;\n  padding: 10px;\n  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n  z-index: 10000;\n  border-radius: 8px;\n}\n\n.ccccn .dropdown-content a {\n  color: black;\n  padding: 12px 16px;\n  text-decoration: none;\n  display: block;\n}\n\n.ccccn .dropdown-content a:hover {\n  background-color: #555;\n}\n\n.ccccn .dropdown:hover .dropdown-content {\n  display: block;\n}\n\n.ccccn .dropdown:hover .dropbtn {\n  background-color: #3e8e41;\n}\n\n.ccccn .more-option {\n  margin: 0 auto;\n  background: url("+D+");\n  height: 2vw;\n  width: 2vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n.ccccn .streaming {\n  margin: 0 auto;\n  background: url("+L+");\n  height: 1.5vw;\n  width: 1.5vw;\n  display: block;\n  background-size: contain;\n  background-repeat: no-repeat;\n}\n.ccccn .padding-right-12 {\n  right: 12%;\n}\n.ccccn .padding-right-0 {\n  right: 0%;\n}\n",""]),t.default=E},2386:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,"/* Modal Overlay (Background Blur) */\n.ccccn .modal-overlay {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(150, 150, 150, 0.3);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n/* Modal Box */\n.ccccn .modal {\n  background-color: #1a1a1a;\n  color: white;\n  padding: 16px 20px;\n  width: 372px;\n  max-width: 372px;\n  border-radius: 20px;\n  text-align: center;\n  box-shadow: 1px 1px 7px 8px rgb(0 0 0 / 25%);\n  /* box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03); */\n}\n\n/* Timer Circle */\n.ccccn .timer-circle {\n  width: 80px;\n  height: 80px;\n  background-color: #0f488e;\n  color: #fff;\n  border-radius: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 18px;\n  font-weight: 700;\n  margin: 0 auto 15px;\n  /* font-family: 'Roboto'; */\n}\n\n/* Title */\n.ccccn .modal-title {\n  font-size: 18px;\n  margin-bottom: 10px;\n  /* font-family: 'Roboto'; */\n  font-weight: 500;\n  color: #ffffff;\n}\n\n/* Description */\n.ccccn .modal-text {\n  font-size: 14px;\n  /* font-family: 'Roboto'; */\n  font-weight: 400;\n  color: #b0b0b0;\n  margin-bottom: 20px;\n}\n\n/* Buttons Container */\n.ccccn .modal-buttons {\n  display: flex;\n  justify-content: space-between;\n  grid-gap: 8px;\n  gap: 8px;\n}\n\n/* Buttons */\n.ccccn .leave-button,\n.ccccn .stay-button {\n  flex: 1 1;\n  padding: 8px 20px;\n  border: 1px solid #4c4c4c;\n  border-radius: 8px;\n  cursor: pointer;\n  font-size: 14px;\n  text-align: center;\n  color: white;\n  outline: none;\n}\n\n/* Leave Button */\n.ccccn .leave-button {\n  /* background-color: transparent; */\n}\n\n/* Stay Button */\n.ccccn .stay-button {\n  border: 1px solid #1E79E7;\n  background-color: #1E79E7;\n}\n\n/* Hover Effects */\n.ccccn .leave-button:hover,\n.ccccn .stay-button:hover {\n  opacity: 0.8;\n}\n",""]),t.default=a},8855:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,'.ccccn .Main-Video {\n  min-width: 100%;\n  align-items: center;\n  justify-content: center;\n  position: fixed;\n}\n\n.ccccn .button-bar {\n  position: absolute;\n  left: 0;\n  bottom: 0;\n}\n\n.ccccn .stack-top {\n  z-index: 9;\n  margin: 5px;\n}\n\n.ccccn .thumb-container {\n  right: 0;\n  top: 0;\n  z-index: 10;\n  margin: unset;\n  -webkit-padding-start: unset;\n          padding-inline-start: unset;\n  display: inline;\n}\n\n.ccccn .cc-video-container {\n  width: 25vh;\n  height: 25vh;\n  height: calc(100 * var(--vh));\n}\n\n.ccccn #main-video video {\n  cursor: initial;\n}\n\n.ccccn .main-video-container {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  /* position: fixed; */\n  /* transform: rotateY(180deg) */\n}\n\n.ccccn .main-video-avatar {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.ccccn .main-video-avatar-center {\n  /* height: 85vh; */\n}\n\n.ccccn .Main-Video-Mob {\n  background-color: #000000;\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  /* position: fixed; */\n}\n\n.ccccn .thumb-video-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n\n  display: flex;\n  align-items: center;\n  border-radius: 0.7rem;\n  justify-content: center;\n}\n\n.ccccn .thumb-mobile {\n  width: 15vh;\n  height: 15vh;\n  margin-bottom: 5px;\n}\n\n.ccccn .Main-Video-Background {\n  min-width: 100%;\n  min-height: 100%;\n}\n\n.ccccn .change-mode {\n  position: absolute;\n  left: 0;\n  top: 0;\n  z-index: 5;\n}\n\n.ccccn .grid-container {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n}\n\n@-webkit-keyframes slide-out-right {\n  from {\n    display: block;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    display: none;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n@keyframes slide-out-right {\n  from {\n    display: block;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    display: none;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n@-webkit-keyframes slide-out-left {\n  from {\n    display: none;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n  to {\n    display: block;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes slide-out-left {\n  from {\n    display: none;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n  }\n  to {\n    display: block;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.ccccn .slide-out-right {\n  -webkit-animation-name: slide-out-right;\n  animation-name: slide-out-right;\n}\n\n.ccccn .slide-out-left {\n  -webkit-animation-name: slide-out-left;\n  animation-name: slide-out-left;\n}\n\n.ccccn .animated {\n  -webkit-animation-duration: 250ms;\n  animation-duration: 250ms;\n  -webkit-animation-fill-mode: both;\n  animation-fill-mode: both;\n}\n\n@-webkit-keyframes fade-in-down {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n  }\n}\n\n@keyframes fade-in-down {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n  }\n}\n\n.ccccn .fade-in-down {\n  -webkit-animation-name: fade-in-down;\n  animation-name: fade-in-down;\n}\n\n@-webkit-keyframes fade-in-up {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n  }\n\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes fade-in-up {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n  }\n\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.ccccn .fade-in-up {\n  -webkit-animation-name: fade-in-up;\n  animation-name: fade-in-up;\n}\n\n.ccccn .Main-Video__bottom-user-name {\n  position: absolute;\n  z-index: 0;\n  font-size: 14px;\n  border-radius: 0.375rem;\n  text-transform: capitalize;\n  padding: 0.5rem 0.75rem;\n  margin-left: 0.3rem;\n  margin-bottom: 0.3rem;\n  top: 0;\n  right: 0;\n}\n@media (max-width: 400px) {\n  .ccccn .Main-Video__bottom-user-name {\n    left: 0px;\n    margin-bottom: 0;\n    margin-left: 0;\n  }\n  /* .local-video-stream video {\n    width: 100px;\n  } */\n  .ccccn .local-video-stream {\n    display: flex;\n    justify-content: flex-end;\n  }\n}\n\n.ccccn .local-video-stream {\n  width: 200px;\n}\n\n.ccccn .popup {\n  position: relative;\n  display: inline-block;\n  cursor: pointer;\n  -webkit-user-select: none;\n  user-select: none;\n}\n\n/* The actual popup */\n.ccccn .popup .popup-text {\n  width: 250px;\n\n  background-color: #555;\n  color: #fff;\n  /* text-align: center; */\n  border-radius: 6px;\n\n  position: absolute;\n  z-index: 1;\n  bottom: 125%;\n  left: 50%;\n  margin-left: -80px;\n}\n.ccccn .popup .popup-text::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border-width: 5px;\n  border-style: solid;\n  border-color: #555 transparent transparent transparent;\n}\n\n/* Toggle this class - hide and show the popup */\n.ccccn .popup .show {\n  visibility: visible;\n  -webkit-animation: fadeIn 1s;\n  animation: fadeIn 1s;\n}\n\n/* Add animation (fade in the popup) */\n@-webkit-keyframes fadeIn {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\n@keyframes fadeIn {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\n.ccccn input[type="radio"]:after {\n  width: 15px;\n  height: 15px;\n  border-radius: 15px;\n  top: -2px;\n  left: -1px;\n  position: relative;\n  background-color: #d1d3d1;\n  content: "";\n  display: inline-block;\n  visibility: visible;\n  border: 2px solid white;\n}\n\n.ccccn input[type="radio"]:checked:after {\n  width: 15px;\n  height: 15px;\n  border-radius: 15px;\n  top: -2px;\n  left: -1px;\n  position: relative;\n  background-color: #458b00;\n  content: "";\n  display: inline-block;\n  visibility: visible;\n  border: 2px solid white;\n}\n.ccccn .grid-shadow {\n  box-shadow: 15px 0px 10px 5px rgba(0, 0, 0, 0.41);\n}\n\n.ccccn .lds-default {\n  display: inline-block;\n  position: relative;\n  width: 80px;\n  height: 80px;\n}\n.ccccn .lds-default div {\n  position: absolute;\n  width: 6px;\n  height: 6px;\n  background: #fff;\n  border-radius: 50%;\n  -webkit-animation: lds-default 1.2s linear infinite;\n          animation: lds-default 1.2s linear infinite;\n}\n.ccccn .lds-default div:nth-child(1) {\n  -webkit-animation-delay: 0s;\n          animation-delay: 0s;\n  top: 37px;\n  left: 66px;\n}\n.ccccn .lds-default div:nth-child(2) {\n  -webkit-animation-delay: -0.1s;\n          animation-delay: -0.1s;\n  top: 22px;\n  left: 62px;\n}\n.ccccn .lds-default div:nth-child(3) {\n  -webkit-animation-delay: -0.2s;\n          animation-delay: -0.2s;\n  top: 11px;\n  left: 52px;\n}\n.ccccn .lds-default div:nth-child(4) {\n  -webkit-animation-delay: -0.3s;\n          animation-delay: -0.3s;\n  top: 7px;\n  left: 37px;\n}\n.ccccn .lds-default div:nth-child(5) {\n  -webkit-animation-delay: -0.4s;\n          animation-delay: -0.4s;\n  top: 11px;\n  left: 22px;\n}\n.ccccn .lds-default div:nth-child(6) {\n  -webkit-animation-delay: -0.5s;\n          animation-delay: -0.5s;\n  top: 22px;\n  left: 11px;\n}\n.ccccn .lds-default div:nth-child(7) {\n  -webkit-animation-delay: -0.6s;\n          animation-delay: -0.6s;\n  top: 37px;\n  left: 7px;\n}\n.ccccn .lds-default div:nth-child(8) {\n  -webkit-animation-delay: -0.7s;\n          animation-delay: -0.7s;\n  top: 52px;\n  left: 11px;\n}\n.ccccn .lds-default div:nth-child(9) {\n  -webkit-animation-delay: -0.8s;\n          animation-delay: -0.8s;\n  top: 62px;\n  left: 22px;\n}\n.ccccn .lds-default div:nth-child(10) {\n  -webkit-animation-delay: -0.9s;\n          animation-delay: -0.9s;\n  top: 66px;\n  left: 37px;\n}\n.ccccn .lds-default div:nth-child(11) {\n  -webkit-animation-delay: -1s;\n          animation-delay: -1s;\n  top: 62px;\n  left: 52px;\n}\n.ccccn .lds-default div:nth-child(12) {\n  -webkit-animation-delay: -1.1s;\n          animation-delay: -1.1s;\n  top: 52px;\n  left: 62px;\n}\n@-webkit-keyframes lds-default {\n  0%,\n  20%,\n  80%,\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    -webkit-transform: scale(1.5);\n            transform: scale(1.5);\n  }\n}\n@keyframes lds-default {\n  0%,\n  20%,\n  80%,\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    -webkit-transform: scale(1.5);\n            transform: scale(1.5);\n  }\n}\n\n.ccccn .main-tile-container {\n  height: 100%;\n  display: flex;\n  flex: 1 1;\n  flex-direction: row;\n  justify-content: flex-start;\n}\n\n.ccccn .main-tile-container-portrait {\n  height: 100%;\n  display: flex;\n  flex: 1 1;\n  flex-direction: column;\n  justify-content: flex-start;\n}\n\n.ccccn .tile-main-video-container {\n  display: flex;\n  flex: 1 1;\n  height: 89%;\n  margin-top: 5px;\n  margin-left: 2%;\n  margin-right: 2%;\n  margin-bottom: 5%;\n  position: relative;\n  justify-content: center;\n  background-color: #000;\n  border-radius: 10px;\n}\n\n.ccccn .tile-main-video-container-portrait {\n  display: flex;\n  width: 90%;\n  height: 63%;\n  margin-left: 5%;\n  margin-right: 5%;\n  margin-bottom: 5%;\n  margin-top: 5%;\n  position: relative;\n  justify-content: center;\n  background-color: #000;\n  border-radius: 20;\n}\n\n.ccccn .tile-list-container-portrait {\n  width: 100vw;\n  height: 20%;\n  padding-left: 1%;\n  padding-right: 1%;\n  padding-top: 0.5%;\n  display: flex;\n  align-items: center;\n  flex-direction: row;\n  overflow-x: auto;\n}\n.ccccn .tile-list-container {\n  width: 15%;\n  padding-left: 0%;\n  display: flex;\n  align-items: center;\n  flex-direction: column;\n  padding-top: 0.5%;\n  overflow-y: auto;\n}\n\n.ccccn .local-spotlight-stream-container {\n  width: 12vw;\n}\n.ccccn .grid-container {\n  position: relative;\n  display: flex;\n  height: 100%;\n  padding-left: 1px;\n  padding-right: 1px;\n  margin-left: 0.5%;\n  margin-right: 0.5%;\n\n  justify-content: center;\n  align-items: center;\n}\n.ccccn .main-video-name {\n  color: #fff;\n  position: absolute;\n  top: 5px;\n  left: 5px;\n}\n.ccccn .screen-share-text {\n  color: #fff;\n}\n\n.ccccn .aspect-ratio-1 {\n  aspect-ratio: 1;\n}\n\n/* NEW UI  */\n.ccccn .cc-main-container {\n  /* height: 100vh;\n  height: calc(100 * var(--vh));\n  width: 100vw; */\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  background-color: #1c2226;\n  position: relative;\n}\n\n.ccccn .main-container-recording-icon {\n  color: red;\n  margin-right: 4px;\n}\n\n@-webkit-keyframes rec-blinker {\n  from {\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n@keyframes rec-blinker {\n  from {\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n.ccccn .main-container-recording-icon {\n  text-decoration: blink;\n  -webkit-animation-name: rec-blinker;\n          animation-name: rec-blinker;\n  -webkit-animation-duration: 0.8s;\n          animation-duration: 0.8s;\n  -webkit-animation-iteration-count: infinite;\n          animation-iteration-count: infinite;\n  -webkit-animation-timing-function: ease-in-out;\n          animation-timing-function: ease-in-out;\n  -webkit-animation-direction: alternate;\n          animation-direction: alternate;\n}\n\n.ccccn .layout {\n  display: flex;\n  height: 100%;\n  width: 100%;\n  flex: 1 1;\n  position: relative;\n  flex-direction: row;\n}\n\n.ccccn .main-container-recording-text {\n  color: rgb(255, 255, 255);\n}\n\n.ccccn .loading-container {\n  display: flex;\n  flex: 1 1;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  height: 100%;\n  padding: 0 24px;\n}\n\n.ccccn .reconnect-loading {\n  position: fixed;\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex: 1 1;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  background-color: #000000d0;\n}\n\n.ccccn .loading-text {\n  margin-top: 8px;\n  color: rgb(255, 255, 255);\n}\n\n.ccccn .scroll::-webkit-scrollbar {\n  display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.ccccn .scroll {\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none;\n\n  overflow-y: auto; /* Firefox */\n}\n\n.ccccn .mainVideoContainer {\n  /* height: calc(calc(100 * var(--vh)) - 80px); */\n  height: calc(100% - var(--ccccn-bottom-button-container-height));\n  display: flex;\n  z-index: 0;\n}\n\n.ccccn .safari-video-container {\n  min-width: 25vh;\n\n  width: 0;\n}\n\n/* for mobile specific css */\n@media (max-width: 600px) {\n  .ccccn .recording-text-container {\n    position: absolute;\n    left: 16px;\n    top: 16px;\n    bottom: auto;\n    z-index: 1;\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n  }\n}\n@media (min-width: 600px) {\n  .ccccn .recording-text-container {\n    position: absolute;\n    left: 16px;\n    bottom: 24px;\n    z-index: 1;\n\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n  }\n}\n\n.ccccn .cc-name-label {\n  padding: 8px;\n  border-radius: 4px;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n',""]),t.default=a},4255:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,":root {\n  --ccccn-no-of-tiles: 4;\n}\n\n@media (hover: none) {\n  :root {\n    --ccccn-no-of-tiles: 2;\n  }\n}\n\n.ccccn .local-video-container {\n  position: fixed;\n  height: 20vh;\n  width: 15vw;\n  aspect-ratio: 3/2;\n  min-width: 150px;\n  background-color: rgb(36, 43, 48);\n  align-items: center;\n  justify-content: center;\n  display: flex;\n  bottom: 8px;\n  bottom: var(--ccccn-bottom-button-container-height);\n  right: var(--ccccn-padding-around-video);\n  -webkit-user-select: none;\n          user-select: none;\n  cursor: grab;\n}\n\n.ccccn .cc-video-container {\n  display: flex;\n  flex: 1 1;\n  background-color: rgb(36, 43, 48);\n  justify-content: center;\n  align-items: center;\n  flex-direction: row;\n  position: relative;\n  height: 100%;\n  width: 100%;\n  transition: all 5s ease 0s;\n  border-radius: 8px;\n  box-shadow: rgba(36, 43, 48, 0.7);\n}\n\n.ccccn .video-container-user-name {\n  position: absolute;\n  flex-direction: row;\n  display: flex;\n  left: 8px;\n  top: 8px;\n  right: 30%;\n  text-align: left;\n}\n\n.ccccn .video-container-user-name-text {\n  color: rgb(255, 255, 255);\n  width: 100%;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.ccccn .side-bar {\n  display: flex;\n  flex: 1 1;\n  height: 100%;\n  width: 100%;\n  flex-direction: row;\n}\n.ccccn .side-bar-container {\n  display: flex;\n  flex: 1 1;\n  width: 100%;\n  height: 100%;\n}\n\n.ccccn .side-bar-main-user-container {\n  display: flex;\n  flex: 1 1;\n  padding-top: 8px;\n  padding-left: 8px;\n}\n\n.ccccn .side-bar-main-user-video {\n  display: flex;\n  flex: 1 1;\n  position: relative;\n}\n.ccccn .video-element {\n  /* aspect-ratio: 1; */\n}\n.ccccn .side-bar-main-user-video-pin-icon {\n  position: absolute;\n  z-index: 10;\n  color: rgb(255, 255, 255);\n  height: 5%;\n  top: 8px;\n  right: 8px;\n}\n\n.ccccn .side-bar-tile-list {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  width: 20%;\n  max-width: 20vh;\n  min-width: 100px;\n  margin-left: 8px;\n  margin-right: 8px;\n}\n.ccccn .side-bar-tile-wrapper {\n  display: flex;\n  flex: 1 1;\n  position: relative;\n  max-height: calc(20% - 8px);\n  max-height: calc(100% / 4 - 8px);\n  max-height: calc(100% / var(--ccccn-no-of-tiles) - 8px);\n  width: 100%;\n  max-width: 20vh;\n  min-width: 100px;\n  margin-top: 8px;\n}\n\n.ccccn .side-bar-tile-container {\n  display: flex;\n  flex: 1 1;\n  background-color: rgb(36, 43, 48);\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  height: 100%;\n  flex-direction: column;\n}\n.ccccn .side-bar-tile-wrapper:hover #pin {\n  display: flex;\n}\n\n.ccccn .side-bar-tile-more-people-icon-container {\n  height: 30%;\n  aspect-ratio: 1 / 1;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.ccccn .side-bar-tile-more-people-icon-badge {\n  color: rgb(255, 255, 255);\n  margin: 4px;\n}\n.ccccn .side-bar-tile-more-text {\n  color: rgb(255, 255, 255);\n}\n.ccccn .side-bar-tile-pin-icon-container {\n  position: absolute;\n  flex: 1 1;\n  background-color: rgba(0, 0, 0, 0.2);\n  z-index: 10000;\n  justify-content: center;\n  align-items: center;\n  height: 100%;\n  width: 100%;\n  display: none;\n  cursor: pointer;\n}\n.ccccn .side-bar-tile-pin-icon {\n  width: 20%;\n}\n\n.ccccn .side-bar-tile-audio-icon {\n  position: absolute;\n  z-index: 10;\n  top: 8px;\n  right: 8px;\n}\n\n.ccccn .single-main-container {\n  display: flex;\n  flex: 1 1;\n  height: 100%;\n  padding: 16px;\n}\n\n.ccccn .spotlight-main-container {\n  display: flex;\n  position: relative;\n  flex: 1 1;\n  height: 100%;\n  padding-top: var(--ccccn-padding-around-video);\n  padding-left: var(--ccccn-padding-around-video);\n  padding-right: var(--ccccn-padding-around-video);\n}\n\n.ccccn .tile-main-container {\n  flex: 1 1;\n  display: flex;\n  height: 100%;\n  background-color: #1c2226;\n}\n.ccccn .tile-more-people-icon-container {\n  height: 30%;\n  aspect-ratio: 1 / 1;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.ccccn .tile-more-people-badge {\n  color: rgb(255, 255, 255);\n  margin: 4px;\n}\n.ccccn .tile-more-people-text {\n  color: rgb(255, 255, 255);\n}\n.ccccn .tile-list-wrapper {\n  height: 100%;\n  width: 100%;\n  justify-content: center;\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  padding-left: 4px;\n}\n\n.ccccn .tile-wrapper {\n  display: flex;\n  flex: 1 1;\n  background-color: rgb(36, 43, 48);\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  height: 100%;\n  flex-direction: column;\n}\n\n.ccccn .tile-pinned-ui-main-container {\n  display: flex;\n  flex: 1 1;\n  flex-direction: column;\n  max-height: 88vh;\n}\n\n.ccccn .tile-pinned-ui-main-video-container {\n  flex: 1 1;\n  display: flex;\n  position: relative;\n  max-height: 65%;\n  margin: 8px;\n}\n\n.ccccn .tile-pinned-ui-un-pin-icon {\n  z-index: 1000;\n  color: rgb(255, 255, 255);\n}\n\n.ccccn .tile-pinned-ui-other-user-container {\n  height: 30%;\n  display: flex;\n  width: 100%;\n  padding-left: 4px;\n}\n.ccccn .tile-pinned-ui-more-user-container {\n  max-width: 25%;\n  flex: 1 1;\n  display: flex;\n  margin-right: 8px;\n}\n.ccccn .tile-pinned-ui-more-user-wrapper {\n  display: flex;\n  flex: 1 1;\n  background-color: rgb(36, 43, 48);\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  height: 100%;\n}\n\n.ccccn .tile-pinned-ui-remaining-user {\n  max-width: 25%;\n  flex: 1 1;\n  display: flex;\n  position: relative;\n  margin-right: 4px;\n}\n\n.ccccn .show-border {\n  border-width: 2px;\n}\n.ccccn .pin-image {\n  height: 20px;\n  cursor: pointer;\n}\n\n.ccccn .grid-row {\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  flex: 1 1;\n  width: 100%;\n  padding-top: 0.5%;\n  margin-bottom: 0.5%;\n}\n\n@media (max-width: 600px) {\n  .ccccn .side-bar-container {\n    flex-direction: column;\n  }\n  .ccccn .side-bar-main-user-container {\n    padding-right: 8px;\n    height: 80%;\n  }\n  .ccccn .side-bar-tile-list {\n    display: flex;\n    flex-direction: row;\n    justify-content: flex-start;\n    height: 20%;\n    width: 100vw;\n    max-width: none;\n    margin-left: 0px;\n    margin-right: 0px;\n    padding-left: 8px;\n    padding-right: 8px;\n    grid-gap: 8px;\n    gap: 8px;\n  }\n  .ccccn .side-bar-tile-wrapper {\n    max-width: 32vw;\n    width: auto;\n    aspect-ratio: 1 / 1;\n    max-height: 100%;\n  }\n}\n\n.ccccn .pin-option {\n  display: none;\n  position: absolute;\n  top: 9px;\n  border-radius: 50%;\n  padding: 5px;\n  height: 30px;\n  width: 30px;\n  aspect-ratio: 1px;\n  right: 8px;\n  z-index: 10;\n  justify-content: center;\n  align-items: center;\n  background-color: #707070;\n  cursor: pointer;\n}\n.ccccn .grid-box {\n  display: flex;\n  flex: 1 1;\n  border-width: 2px;\n  margin-right: 5px;\n  border-color: transparent;\n  border-radius: 8px;\n  position: relative;\n}\n.ccccn .grid-box:hover .pin-option {\n  display: flex;\n}\n\n.ccccn .grid-main-container {\n  flex: 1 1;\n  display: flex;\n}\n\n.ccccn .show-border {\n  border-width: 2px;\n  border-color: #1e79e7;\n}\n\n.ccccn .grid-row {\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  flex: 1 1;\n  width: 100%;\n  padding-top: 0.5%;\n  margin-bottom: 0.5%;\n}\n\n.ccccn .red {\n  color: red;\n}\n\n.ccccn .flipped-video {\n  -webkit-transform: scaleX(-1);\n  transform: scaleX(-1);\n}\n\n.ccccn .paginated-pinned-view {\n  display: flex;\n  height: 100%;\n  width: 100%;\n}\n\n.ccccn .paginated-pinned-view-text {\n  justify-content: center;\n  align-items: center;\n  background-color: #000;\n}\n\n@media all and (max-width: 520px) {\n  .ccccn .awssld__controls {\n    visibility: visible !important;\n  }\n}\n.ccccn .awssld__controls button:focus {\n  outline: none;\n}\n\n.ccccn .awssld__bullets {\n  position: absolute;\n  bottom: 10px !important;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  z-index: 2;\n}\n\n.ccccn .awssld__bullets button {\n  height: 8px !important;\n  width: 8px !important;\n  outline: none !important;\n}\n\n.ccccn .awssld__bullets--active {\n  background-color: #1e79e7 !important;\n}\n\n.ccccn .awssld__next {\n  width: 7% !important;\n}\n\n.ccccn .awssld__prev {\n  width: 7% !important;\n}\n\n.ccccn .awssld__controls__arrow-right {\n  height: 20% !important;\n}\n.ccccn .awssld__controls__arrow-left:before,\n.ccccn .awssld__controls__arrow-left:after,\n.ccccn .awssld__controls__arrow-right:before,\n.ccccn .awssld__controls__arrow-right:after {\n  background-color: rgb(49, 56, 62) !important;\n}\n.ccccn .awssld__controls__arrow-left {\n  height: 20% !important;\n}\n\n.ccccn .paginated-container {\n  display: flex;\n  flex: 1 1;\n  padding: 8;\n}\n\n.ccccn .absolute-top-left {\n  display: flex;\n  align-items: center;\n  grid-gap: 8px;\n  gap: 8px;\n  position: absolute;\n  top: 8px;\n  left: 8px;\n}\n\n.ccccn .absolute-top-right {\n  display: flex;\n  align-items: center;\n  grid-gap: 8px;\n  gap: 8px;\n  position: absolute;\n  top: 8px;\n  right: 8px;\n}\n\n.ccccn .absolute-bottom-left {\n  display: flex;\n  align-items: center;\n  grid-gap: 8px;\n  gap: 8px;\n  position: absolute;\n  bottom: 8px;\n  left: 8px;\n}\n\n.ccccn .absolute-bottom-right {\n  display: flex;\n  align-items: center;\n  grid-gap: 8px;\n  gap: 8px;\n  position: absolute;\n  bottom: 8px;\n  right: 8px;\n}\n\n.ccccn .awssld__bullets {\n  width: 50% !important;\n  margin-left: 25%;\n  margin-right: 25%;\n}\n",""]),t.default=a},7690:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,'.ccccn .main-video-container video {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  object-fit: contain;\n}\n\n.ccccn .Main-Video-Mob video {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: 4px 11px 18px -4px rgba(0, 0, 0, 0.75);\n}\n\n.ccccn .thumb-video-container video {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  object-fit: cover;\n}\n\n.ccccn .rotate-180 {\n  transform: rotateY(180deg);\n  -webkit-transform: rotateY(180deg);\n  -moz-transform: rotateY(180deg);\n  -moz-transform: rotateY(180deg);\n}\n\n.ccccn .Main-Video-Background video {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  object-fit: cover;\n}\n\n.ccccn .grid-container video {\n  height: 100%;\n  width: 100%;\n  min-width: 100%;\n  min-height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  object-fit: cover;\n}\n\n.ccccn .video-thumb {\n  height: 300px;\n  width: 300px;\n  min-width: 300px;\n  min-height: 300px;\n}\n\n.ccccn .remote-audio {\n  min-width: 0px;\n  min-height: 0px;\n  display: none;\n}\n\n.ccccn .stream-component {\n  position: absolute;\n  padding: 10px;\n  color: #fff;\n  font-weight: bold;\n  border-bottom-right-radius: 4px;\n  opacity: 0.5;\n  z-index: 5;\n}\n\n.ccccn .user-icons {\n  right: 5px;\n  background: none;\n  opacity: 0.7;\n}\n\n.ccccn .mob-font {\n  font-size: small;\n}\n\n.ccccn .pin-wrapper {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  background: #282c34;\n  z-index: 2;\n  opacity: 0.5;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.ccccn .audioindicator {\n  display: inline-block;\n  display: flex;\n  justify-content: space-around;\n  width: 24px;\n  border: none;\n}\n\n.ccccn .audiodot-top,\n.ccccn .audiodot-bottom,\n.ccccn .audiodot-middle {\n  opacity: 1;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  display: inline-block;\n  background: rgba(9, 36, 77, 0.9);\n  margin: 1px 0 1px 0;\n  transition: opacity 0.25s ease-in-out;\n  -moz-transition: opacity 0.25s ease-in-out;\n}\n\n.ccccn span.audiodot-top,\n.ccccn span.audiodot-bottom,\n.ccccn span.audiodot-middle {\n  content: "";\n  opacity: 1;\n  display: inline-block;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  -webkit-filter: blur(0.5px);\n  filter: blur(0.5px);\n  background: #44a5ff;\n}\n.ccccn .hide-scroll {\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n.ccccn .hide-scroll::-webkit-scrollbar {\n  display: none;\n}\n\n.ccccn .tile-container-mob {\n  width: 15vh;\n  position: relative;\n  margin-left: 10px;\n}\n.ccccn .tile-container {\n  width: 90%;\n  position: relative;\n  aspect-ratio: 1;\n  min-height: 10.5vw;\n  max-height: 10.5vw;\n  background-color: #000000;\n  margin-bottom: 10px;\n  border-radius: 0.7rem;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n',""]),t.default=a},5088:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Inter);"]),a.push([e.id,'/* html {\n  overflow: hidden;\n}\nbody {\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;\n} */\n.ccccn .user-stats {\n  opacity: 0;\n  position: absolute;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  transition: opacity 250ms ease-out;\n  left: 0;\n  display: flex;\n  align-items: flex-end;\n  z-index: 1;\n}\n\n.ccccn .video-tiles:hover .user-stats {\n  opacity: 1;\n  background-color: rgb(0, 0, 0, 0.7);\n}\n\n.ccccn [data-id] {\n  text-transform: capitalize;\n}\n\n.ccccn *::-webkit-scrollbar-track {\n  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n\n  border-radius: 10px;\n  background-color: #2d3748;\n}\n\n.ccccn *::-webkit-scrollbar {\n  width: 12px;\n  background-color: #2d3748;\n}\n\n.ccccn *::-webkit-scrollbar-thumb {\n  border-radius: 10px;\n  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n  background-color: #1a202c;\n}\n\n@media (max-width: 991px) {\n  .ccccn .hidden-md-down {\n    display: none !important;\n  }\n}\n\n:root {\n  --ccccn-bottom-button-container-height: 80px;\n  --ccccn-padding-around-video: 8px;\n}\n.ccccn * {\n  font-family: Inter;\n}\n\n.ccccn .cc-snackbar-root-override {\n  position: absolute !important;\n}\n',""]),t.default=a},825:function(e,t,n){"use strict";n.r(t);var r=n(3645),a=n.n(r)()(!1);a.push([e.id,'.ccccn button {\n  background-color: transparent;\n  background-image: none;\n}\n\n.ccccn button:focus {\n  outline: 1px dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n}\n\n.ccccn ol,\n.ccccn ul {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n\n.ccccn *,\n.ccccn ::before,\n.ccccn ::after {\n  box-sizing: border-box;\n  border-width: 0;\n  border-style: solid;\n  border-color: #e2e8f0;\n}\n\n.ccccn hr {\n  border-top-width: 1px;\n}\n\n.ccccn img {\n  border-style: solid;\n}\n\n.ccccn button,\n.ccccn [role="button"] {\n  cursor: pointer;\n}\n\n.ccccn button,\n.ccccn input,\n.ccccn optgroup,\n.ccccn select,\n.ccccn textarea {\n  padding: 0;\n}\n\n.ccccn pre,\n.ccccn code,\n.ccccn kbd,\n.ccccn samp {\n  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n}\n\n.ccccn img,\n.ccccn svg,\n.ccccn video,\n.ccccn canvas,\n.ccccn audio,\n.ccccn iframe,\n.ccccn embed,\n.ccccn object {\n  display: block;\n}\n\n.ccccn img,\n.ccccn video {\n  max-width: 100%;\n}\n',""]),t.default=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,r,a,o=e[1]||"",i=e[3];if(!i)return o;if(t&&"function"==typeof btoa){var s=(n=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(a," */")),c=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},7443:function(e,t,n){"use strict";t.Z=n.p+"static/media/change_mode.svg"},8996:function(e,t,n){"use strict";t.Z=n.p+"static/media/cross-inside-circle.svg"},2273:function(e,t,n){"use strict";t.Z=n.p+"static/media/file_share.svg"},5775:function(e,t,n){"use strict";t.Z=n.p+"static/media/grid_mode.svg"},6988:function(e,t,n){"use strict";t.Z=n.p+"static/media/icon_audio_mute.svg"},2040:function(e,t,n){"use strict";t.Z=n.p+"static/media/icon_audio_unmute.svg"},5860:function(e,t,n){"use strict";t.Z=n.p+"static/media/icon_hangup.svg"},221:function(e,t,n){"use strict";t.Z=n.p+"static/media/icon_video_mute.svg"},1898:function(e,t,n){"use strict";t.Z=n.p+"static/media/icon_video_unmute.svg"},710:function(e,t,n){"use strict";t.Z=n.p+"static/media/record.svg"},5028:function(e,t,n){"use strict";t.Z=n.p+"static/media/recording.svg"},3478:function(e,t,n){"use strict";t.Z=n.p+"static/media/screen_share_disabled.svg"},2234:function(e,t,n){"use strict";t.Z=n.p+"static/media/screenshare-enabled.svg"},9742:function(e,t,n){"use strict";t.Z=n.p+"static/media/streaming.svg"},8679:function(e,t,n){"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=h(n);a&&a!==m&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),g=c(n),f=0;f<i.length;++f){var _=i[f];if(!(o[_]||r&&r[_]||g&&g[_]||s&&s[_])){var b=p(n,_);try{l(t,_,b)}catch(e){}}}}return t}},3827:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.Z=a},4013:function(e,t,n){"use strict";n.d(t,{EK:function(){return h},HZ:function(){return fe},JH:function(){return d},RB:function(){return W},Ue:function(){return ge},_$:function(){return _e},xE:function(){return $}});var r=n(7462),a=n(3827),o=n(3144),i=n(1721),s=n(7326),c=n(5245),l={}.constructor;function u(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(u);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=u(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,a=u(t);return r.plugins.onCreateRule(e,a,n)||(e[0],null)}var p=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},h=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=p(e[n]," ");else t=p(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function m(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function f(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var a=n.indent,o=void 0===a?0:a,i=t.fallbacks;!1===n.format&&(o=-1/0);var s=m(n),c=s.linebreak,l=s.space;if(e&&o++,i)if(Array.isArray(i))for(var u=0;u<i.length;u++){var d=i[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=c),r+=g(p+":"+l+h(f)+";",o))}}else for(var _ in i){var b=i[_];null!=b&&(r&&(r+=c),r+=g(_+":"+l+h(b)+";",o))}for(var v in t){var y=t[v];null!=y&&"fallbacks"!==v&&(r&&(r+=c),r+=g(v+":"+l+h(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+c+r+c),g(""+e+l+"{"+r,--o)+g("}",o)):r}var _=/([[\].#*$><+~=|^:(),"'`\s])/g,b="undefined"!=typeof CSS&&CSS.escape,v=function(e){return b?b(e):e.replace(_,"\\$1")},y=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,a=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:a&&(this.renderer=new a)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var a=t;n&&!1===n.process||(a=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==a||!1===a,i=e in this.style;if(o&&!i&&!r)return this;var s=o&&i;if(s?delete this.style[e]:this.style[e]=a,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,a),this;var c=this.options.sheet;return c&&c.attached,this},e}(),E=function(e){function t(t,n,r){var a;a=e.call(this,t,n,r)||this;var o=r.selector,i=r.scoped,c=r.sheet,l=r.generateId;return o?a.selectorText=o:!1!==i&&(a.id=l((0,s.Z)((0,s.Z)(a)),c),a.selectorText="."+v(a.id)),a}(0,i.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=h(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return f(this.selectorText,this.style,n)},(0,o.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(y),C={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new E(e,t,n)}},S={indent:1,children:!0},w=/@([\w-]+)/,k=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var a=e.match(w);for(var o in this.at=a?a[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new W((0,r.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=S);var t=m(e).linebreak;if(null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),x=/@media|@supports\s+/,T={onCreateRule:function(e,t,n){return x.test(e)?new k(e,t,n):null}},A={indent:1,children:!0},R=/@keyframes\s+([\w-]+)/,I=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=e.match(R);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var c in this.id=!1===o?this.name:v(s(this,i)),this.rules=new W((0,r.Z)({},n,{parent:this})),t)this.rules.add(c,t[c],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=A);var t=m(e).linebreak;if(null==e.indent&&(e.indent=A.indent),null==e.children&&(e.children=A.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),O=/@keyframes\s+/,N=/\$([\w-]+)/g,M=function(e,t){return"string"==typeof e?e.replace(N,function(e,n){return n in t?t[n]:e}):e},D=function(e,t,n){var r=e[t],a=M(r,n);a!==r&&(e[t]=a)},L={onCreateRule:function(e,t,n){return"string"==typeof e&&O.test(e)?new I(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return M(e,r.keyframes);default:return e}}},P=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return f(this.key,this.style,n)},t}(y),j={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new P(e,t,n):null}},U=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=m(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=f(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return f(this.at,this.style,e)},e}(),F=/@font-face/,B={onCreateRule:function(e,t,n){return F.test(e)?new U(e,t,n):null}},G=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return f(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new G(e,t,n):null}},H=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),z={"@charset":!0,"@import":!0,"@namespace":!0},Y=[C,T,L,j,B,V,{onCreateRule:function(e,t,n){return e in z?new H(e,t,n):null}}],q={process:!0},K={force:!0,process:!0},W=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var a=this.options,o=a.parent,i=a.sheet,s=a.jss,c=a.Renderer,l=a.generateId,u=a.scoped,p=(0,r.Z)({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:c,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),h=e;e in this.raw&&(h=e+"-d"+this.counter++),this.raw[h]=t,h in this.classes&&(p.selector="."+v(this.classes[h]));var m=d(h,t,p);if(!m)return null;this.register(m);var g=void 0===p.index?this.index.length:p.index;return this.index.splice(g,0,m),m},t.replace=function(e,t,n){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var i=n;return-1!==o&&(i=(0,r.Z)({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof E?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof I&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof E?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof I&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=q);var a=this.options,o=a.jss.plugins,i=a.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,i,r),r.process&&s&&s!==t.style){for(var c in o.onProcessStyle(t.style,t,i),t.style){var l=t.style[c];l!==s[c]&&t.prop(c,l,K)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,K)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,a=m(e).linebreak,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+=a),t+=i)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new W(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var a=this.rules.add(e,t,n);return a?(this.options.jss.plugins.onProcessRule(a),this.attached?this.deployed?(r?r.push(a):(this.insertRule(a),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),a):a:(this.deployed=!1,a)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var a=this.rules.replace(e,t,n);return a&&this.options.jss.plugins.onProcessRule(a),this.attached?this.deployed?(this.renderer&&(a?r.renderable&&this.renderer.replaceRule(r.renderable,a):this.renderer.deleteRule(r)),a):a:(this.deployed=!1,a)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var a=this.addRule(r,e[r],t);a&&n.push(a)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Z=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var a=this.registry.onCreateRule[r](e,t,n);if(a)return a}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var a=0;a<this.registry.onUpdate.length;a++)this.registry.onUpdate[a](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,a=0;a<this.registry.onChangeValue.length;a++)r=this.registry.onChangeValue[a](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),$=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,c.Z)(t,["attached"]),a=m(r).linebreak,o="",i=0;i<this.registry.length;i++){var s=this.registry[i];null!=n&&s.attached!==n||(o&&(o+=a),o+=s.toString(r))}return o},(0,o.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Q=new $,X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==X[ee]&&(X[ee]=0);var te=X[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var a="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(a=String(r.options.jss.id))),e.minify?""+(o||"c")+te+a+t:o+n.key+"-"+te+(a?"-"+a:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},ae=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},oe=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=h(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var a=r?r.indexOf("!important"):-1,o=a>-1?r.substr(0,a-1):r;e.style.setProperty(t,o,a>-1?"important":"")}}catch(e){return!1}return!0},ie=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ce=re(function(){return document.querySelector("head")}),le=re(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ue=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},pe=function(){function e(e){this.getPropertyValue=ae,this.setProperty=oe,this.removeProperty=ie,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,a=n.meta,o=n.element;this.element=o||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),a&&this.element.setAttribute("data-meta",a);var i=le();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var a=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var a=n,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,a=n;if("conditional"===e.type||"keyframes"===e.type){var o=de(n,t);if(!1===(a=ue(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,a)}return this.insertRules(r.rules,a),a}var i=e.toString();if(!i)return!1;var s=de(n,t),c=ue(n,i,s);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),he=0,me=function(){function e(e){this.id=he++,this.version="10.9.2",this.plugins=new Z,this.options={id:{minify:!1},createGenerateId:ne,Renderer:a.Z?pe:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Q.index?0:Q.index+1);var a=new J(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(a),a},t.removeStyleSheet=function(e){return e.detach(),Q.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var a=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var o=d(e,t,a);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),ge=function(e){return new me(e)},fe="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var n in e){var r=e[n],a=typeof r;if("function"===a)t||(t={}),t[n]=r;else if("object"===a&&null!==r&&!Array.isArray(r)){var o=_e(r);o&&(t||(t={}),t[n]=o)}}return t}ge()},9483:function(e,t,n){e.exports=function e(t,n,r){function a(i,s){if(!n[i]){if(!t[i]){if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){return a(t[i][1][e]||e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var o=void 0,i=0;i<r.length;i++)a(r[i]);return a}({1:[function(e,t,r){(function(e){"use strict";var n,r,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var o=0,i=new a(u),s=e.document.createTextNode("");i.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function a(){}var o={},i=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==a&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function a(t){n||(n=!0,o.resolve(e,t))}var i=m(function(){t(a,r)});"error"===i.status&&r(i.value)}function m(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===i)return this;var n=new this.constructor(a);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=m(p,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var a=-1,i=e.queue.length;++a<i;)e.queue[a].callFulfilled(t)}return e},o.reject=function(e,t){e.state=i,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(a),e)},l.reject=function(e){var t=new this(a);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var i=new Array(n),s=0,c=-1,l=new this(a);++c<n;)u(e[c],c);return l;function u(e,a){t.resolve(e).then(function(e){i[a]=e,++s!==n||r||(r=!0,o.resolve(l,i))},function(e){r||(r=!0,o.reject(l,e))})}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t,n=e.length,r=!1;if(!n)return this.resolve([]);for(var i=-1,s=new this(a);++i<n;)t=e[i],this.resolve(t).then(function(e){r||(r=!0,o.resolve(s,e))},function(e){r||(r=!0,o.reject(s,e))});return s}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var i=Promise;function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",p=void 0,h={},m=Object.prototype.toString,g="readonly",f="readwrite";function _(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}function b(e){return"boolean"==typeof p?i.resolve(p):function(e){return new i(function(t){var n=e.transaction(d,f),r=o([""]);n.objectStore(d).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return p=e})}function v(e){var t=h[e.name],n={};n.promise=new i(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function E(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function C(e,t){return new i(function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);v(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=a.open.apply(a,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(d)}catch(n){if("ConstraintError"!==n.name)throw n}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},n(t),y(e)}})}function S(e){return C(e,!1)}function w(e){return C(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,a=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),a||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function x(e){return o([_(atob(e.data))],{type:e.type})}function T(e){return e&&e.__local_forage_encoded_blob}function A(e){var t=this,n=t._initReady().then(function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return c(n,e,e),n}function R(e,t,n,r){void 0===r&&(r=1);try{var a=e.db.transaction(e.storeName,t);n(null,a)}catch(a){if(r>0&&(!e.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return i.resolve().then(function(){if(!e.db||"NotFoundError"===a.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e)}).then(function(){return function(e){v(e);for(var t=h[e.name],n=t.forages,r=0;r<n.length;r++){var a=n[r];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,S(e).then(function(t){return e.db=t,k(e)?w(e):t}).then(function(r){e.db=t.db=r;for(var a=0;a<n.length;a++)n[a]._dbInfo.db=r}).catch(function(t){throw E(e,t),t})}(e).then(function(){R(e,t,n,r-1)})}).catch(n);n(a)}}var I={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var a=h[n.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},h[n.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=A);var o=[];function s(){return i.resolve()}for(var c=0;c<a.forages.length;c++){var l=a.forages[c];l!==t&&o.push(l._initReady().catch(s))}var u=a.forages.slice(0);return i.all(o).then(function(){return n.db=a.db,S(n)}).then(function(e){return n.db=e,k(n,t._defaultConfig.version)?w(n):e}).then(function(e){n.db=a.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})},_support:function(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new i(function(t,r){n.ready().then(function(){R(n._dbInfo,g,function(a,o){if(a)return r(a);try{var i=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;i.onsuccess=function(){var n=i.result;if(n){var r=n.value;T(r)&&(r=x(r));var a=e(r,n.key,s++);void 0!==a?t(a):n.continue()}else t()},i.onerror=function(){r(i.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new i(function(t,r){n.ready().then(function(){R(n._dbInfo,g,function(a,o){if(a)return r(a);try{var i=o.objectStore(n._dbInfo.storeName).get(e);i.onsuccess=function(){var e=i.result;void 0===e&&(e=null),T(e)&&(e=x(e)),t(e)},i.onerror=function(){r(i.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var a=new i(function(n,a){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===m.call(t)?b(o.db).then(function(e){return e?t:(n=t,new i(function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)}));var n}):t}).then(function(t){R(r._dbInfo,f,function(o,i){if(o)return a(o);try{var s=i.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=s.put(t,e);i.oncomplete=function(){void 0===t&&(t=null),n(t)},i.onabort=i.onerror=function(){var e=c.error?c.error:c.transaction.error;a(e)}}catch(e){a(e)}})}).catch(a)});return s(a,n),a},removeItem:function(e,t){var n=this;e=l(e);var r=new i(function(t,r){n.ready().then(function(){R(n._dbInfo,f,function(a,o){if(a)return r(a);try{var i=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(i.error)},o.onabort=function(){var e=i.error?i.error:i.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){R(t._dbInfo,f,function(r,a){if(r)return n(r);try{var o=a.objectStore(t._dbInfo.storeName).clear();a.oncomplete=function(){e()},a.onabort=a.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){R(t._dbInfo,g,function(r,a){if(r)return n(r);try{var o=a.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new i(function(t,r){e<0?t(null):n.ready().then(function(){R(n._dbInfo,g,function(a,o){if(a)return r(a);try{var i=o.objectStore(n._dbInfo.storeName),s=!1,c=i.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){R(t._dbInfo,g,function(r,a){if(r)return n(r);try{var o=a.objectStore(t._dbInfo.storeName).openKeyCursor(),i=[];o.onsuccess=function(){var t=o.result;t?(i.push(t.key),t.continue()):e(i)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var o=e.name===r.name&&this._dbInfo.db?i.resolve(this._dbInfo.db):S(e).then(function(t){var n=h[e.name],r=n.forages;n.db=t;for(var a=0;a<r.length;a++)r[a]._dbInfo.db=t;return t});n=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;v(e);var r=h[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var c=o[s];c._dbInfo.db=null,c._dbInfo.version=n}var l=new i(function(t,r){var o=a.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}});return l.then(function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,y(n._dbInfo)}}).catch(function(t){throw(E(e,t)||i.resolve()).catch(function(){}),t})}}):o.then(function(t){v(e);var n=h[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var s=new i(function(t,n){var r=a.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}});return s.then(function(e){n.db=e;for(var t=0;t<r.length;t++)y(r[t]._dbInfo)}).catch(function(t){throw(E(e,t)||i.resolve()).catch(function(){}),t})})}else n=i.reject("Invalid arguments");return s(n,t),n}},O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=/^~~local_forage_type~([^~]+)~/,M="__lfsc__:",D="arbf",L="blob",P="si08",j="ui08",U="uic8",F="si16",B="si32",G="ur16",V="ui32",H="fl32",z="fl64",Y=Object.prototype.toString;function q(e){var t,n,r,a,o,i=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var l=new ArrayBuffer(i),u=new Uint8Array(l);for(t=0;t<s;t+=4)n=O.indexOf(e[t]),r=O.indexOf(e[t+1]),a=O.indexOf(e[t+2]),o=O.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|a>>2,u[c++]=(3&a)<<6|63&o;return l}function K(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=O[n[t]>>2],r+=O[(3&n[t])<<4|n[t+1]>>4],r+=O[(15&n[t+1])<<2|n[t+2]>>6],r+=O[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var W={serialize:function(e,t){var n="";if(e&&(n=Y.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===Y.call(e.buffer))){var r,a=M;e instanceof ArrayBuffer?(r=e,a+=D):(r=e.buffer,"[object Int8Array]"===n?a+=P:"[object Uint8Array]"===n?a+=j:"[object Uint8ClampedArray]"===n?a+=U:"[object Int16Array]"===n?a+=F:"[object Uint16Array]"===n?a+=G:"[object Int32Array]"===n?a+=B:"[object Uint32Array]"===n?a+=V:"[object Float32Array]"===n?a+=H:"[object Float64Array]"===n?a+=z:t(new Error("Failed to get type for BinaryArray"))),t(a+K(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+K(this.result);t(M+L+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==M)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===L&&N.test(n)){var a=n.match(N);t=a[1],n=n.substring(a[0].length)}var i=q(n);switch(r){case D:return i;case L:return o([i],{type:t});case P:return new Int8Array(i);case j:return new Uint8Array(i);case U:return new Uint8ClampedArray(i);case F:return new Int16Array(i);case G:return new Uint16Array(i);case B:return new Int32Array(i);case V:return new Uint32Array(i);case H:return new Float32Array(i);case z:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}},stringToBuffer:q,bufferToString:K};function J(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Z(e,t,n,r,a,o){e.executeSql(n,r,a,function(e,i){i.code===i.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,s){s.rows.length?o(e,i):J(e,t,function(){e.executeSql(n,r,a,o)},o)},o):o(e,i)},o)}function $(e,t,n,r){var a=this;e=l(e);var o=new i(function(o,i){a.ready().then(function(){void 0===t&&(t=null);var s=t,c=a._dbInfo;c.serializer.serialize(t,function(t,l){l?i(l):c.db.transaction(function(n){Z(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(s)},function(e,t){i(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o($.apply(a,[e,s,n,r-1]));i(t)}})})}).catch(i)});return s(o,n),o}var Q={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var a=new i(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(a){J(a,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=W,a},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new i(function(t,r){n.ready().then(function(){var a=n._dbInfo;a.db.transaction(function(n){Z(n,a,"SELECT * FROM "+a.storeName,[],function(n,r){for(var o=r.rows,i=o.length,s=0;s<i;s++){var c=o.item(s),l=c.value;if(l&&(l=a.serializer.deserialize(l)),void 0!==(l=e(l,c.key,s+1)))return void t(l)}t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new i(function(t,r){n.ready().then(function(){var a=n._dbInfo;a.db.transaction(function(n){Z(n,a,"SELECT * FROM "+a.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=a.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},setItem:function(e,t,n){return $.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new i(function(t,r){n.ready().then(function(){var a=n._dbInfo;a.db.transaction(function(n){Z(n,a,"DELETE FROM "+a.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new i(function(t,r){n.ready().then(function(){var a=n._dbInfo;a.db.transaction(function(n){Z(n,a,"SELECT key FROM "+a.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new i(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],a=0;a<n.rows.length;a++)r.push(n.rows.item(a).key);e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,a=this;return s(r=e.name?new i(function(t){var r;r=e.name===n.name?a._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new i(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var a=[],o=0;o<r.rows.length;o++)a.push(r.rows.item(o).name);t({db:e,storeNames:a})},function(e,t){n(t)})},function(e){n(e)})})}(r))}).then(function(e){return new i(function(t,n){e.db.transaction(function(r){function a(e){return new i(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],s=0,c=e.storeNames.length;s<c;s++)o.push(a(e.storeNames[s]));i.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):i.reject("Invalid arguments"),t),r}};function X(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var ee={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=X(e,this._defaultConfig),!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=W,i.resolve()):i.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,a=r.length,o=localStorage.length,i=1,s=0;s<o;s++){var c=localStorage.key(s);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(a),i++)))return l}}});return s(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return s(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var a=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new i(function(a,o){var i=r._dbInfo;i.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(i.keyPrefix+e,t),a(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return s(a,n),a},removeItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return s(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return s(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return s(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],a=0;a<n;a++){var o=localStorage.key(a);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return s(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,a=this;return r=e.name?new i(function(t){e.storeName?t(X(e,a._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):i.reject("Invalid arguments"),s(r,t),r}},te=function(e,t){for(var n=e.length,r=0;r<n;){if((a=e[r])===(o=t)||"number"==typeof a&&"number"==typeof o&&isNaN(a)&&isNaN(o))return!0;r++}var a,o;return!1},ne=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},re={},ae={},oe={INDEXEDDB:I,WEBSQL:Q,LOCALSTORAGE:ee},ie=[oe.INDEXEDDB._driver,oe.WEBSQL._driver,oe.LOCALSTORAGE._driver],se=["dropInstance"],ce=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(se),le={description:"",driver:ie.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ue(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function de(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(ne(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var pe=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oe)if(oe.hasOwnProperty(n)){var r=oe[n],a=r._driver;this[n]=a,re[a]||this.defineDriver(r)}this._defaultConfig=de({},le),this._config=de({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new i(function(t,n){try{var r=e._driver,a=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(a);for(var o=ce.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!te(se,u)||e[u])&&"function"!=typeof e[u])return void n(a)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=i.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=se.length;n<r;n++){var a=se[n];e[a]||(e[a]=t(a))}}();var d=function(n){re[r],re[r]=e,ae[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}});return c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=re[e]?i.resolve(re[e]):i.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=i.resolve(W);return c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;ne(e)||(e=[e]);var a=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch(function(){return i.resolve()}):i.resolve();return this._driverSet=l.then(function(){var e=a[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var a=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(a).then(s).catch(n)}o();var c=new Error("No available storage method found.");return r._driverSet=i.reject(c),r._driverSet}()}}(a)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=i.reject(e),r._driverSet}),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];this.supports(a)&&t.push(a)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ce.length;e<t;e++)ue(this,ce[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),he=new pe;t.exports=he},{3:3}]},{},[4])(4)},1296:function(e,t,n){var r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=o.test(e);return n||i.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,o,i,s,c,l=0,u=!1,d=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,o=a;return r=a=void 0,l=t,i=e.apply(o,n)}function v(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function y(){var e=m();if(v(e))return E(e);s=setTimeout(y,function(e){var n=t-(e-c);return d?h(n,o-(e-l)):n}(e))}function E(e){return s=void 0,_&&r?b(e):(r=a=void 0,i)}function C(){var e=m(),n=v(e);if(r=arguments,a=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(y,t),u?b(e):i}(c);if(d)return s=setTimeout(y,t),b(c)}return void 0===s&&(s=setTimeout(y,t)),i}return t=f(t)||0,g(n)&&(u=!!n.leading,o=(d="maxWait"in n)?p(f(n.maxWait)||0,t):o,_="trailing"in n?!!n.trailing:_),C.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=a=s=void 0},C.flush=function(){return void 0===s?i:E(m())},C}},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))n.call(o,l)&&(s[l]=o[l]);if(t){i=t(o);for(var u=0;u<i.length;u++)r.call(o,i[u])&&(s[i[u]]=o[i[u]])}}return s}},2024:function(e,t,n){"use strict";var r=n(5877);e.exports={generate:function(){var e=r.v1();return e.substr(14,4)+e.substr(9,4)+e.substr(0,8)+e.substr(19,4)+e.substr(24,e.length)},toBinary16:function(e){return new Buffer(e,"hex")},fromBinary16:function(e){return e.toString("hex")}}},2703:function(e,t,n){"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4598:function(e){e.exports='function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}/*!\n * jQuery JavaScript Library v3.5.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2020-05-04T22:49Z\n */(function(global,factory){"use strict";if((typeof module==="undefined"?"undefined":_typeof(module))==="object"&&_typeof(module.exports)==="object"){// For CommonJS and CommonJS-like environments where a proper `window`\n// is present, execute the factory and get jQuery.\n// For environments that do not have a `window` with a `document`\n// (such as Node.js), expose a factory as module.exports.\n// This accentuates the need for the creation of a real `window`.\n// e.g. var jQuery = require("jquery")(window);\n// See ticket #14549 for more info.\nmodule.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}return factory(w);};}else{factory(global);}// Pass this if window is not defined yet\n})(typeof window!=="undefined"?window:this,function(window,noGlobal){// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n"use strict";var arr=[];var getProto=Object.getPrototypeOf;var _slice=arr.slice;var flat=arr.flat?function(array){return arr.flat.call(array);}:function(array){return arr.concat.apply([],array);};var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var support={};var isFunction=function isFunction(obj){// Support: Chrome <=57, Firefox <=52\n// In some browsers, typeof returns "function" for HTML <object> elements\n// (i.e., `typeof document.createElement( "object" ) === "function"`).\n// We don\'t want to classify *any* DOM node as a function.\nreturn typeof obj==="function"&&typeof obj.nodeType!=="number";};var isWindow=function isWindow(obj){return obj!=null&&obj===obj.window;};var document=window.document;var preservedScriptAttributes={type:true,src:true,nonce:true,noModule:true};function DOMEval(code,node,doc){doc=doc||document;var i,val,script=doc.createElement("script");script.text=code;if(node){for(i in preservedScriptAttributes){// Support: Firefox 64+, Edge 18+\n// Some browsers don\'t support the "nonce" property on scripts.\n// On the other hand, just using `getAttribute` is not enough as\n// the `nonce` attribute is reset to an empty string whenever it\n// becomes browsing-context connected.\n// See https://github.com/whatwg/html/issues/2369\n// See https://html.spec.whatwg.org/#nonce-attributes\n// The `node.getAttribute` check was added for the sake of\n// `jQuery.globalEval` so that it can fake a nonce-containing node\n// via an object.\nval=node[i]||node.getAttribute&&node.getAttribute(i);if(val){script.setAttribute(i,val);}}}doc.head.appendChild(script).parentNode.removeChild(script);}function toType(obj){if(obj==null){return obj+"";}// Support: Android <=2.3 only (functionish RegExp)\nreturn _typeof(obj)==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":_typeof(obj);}/* global Symbol */ // Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\nvar version="3.5.1",// Define a local copy of jQuery\njQuery=function jQuery(selector,context){// The jQuery object is actually just the init constructor \'enhanced\'\n// Need init if jQuery is called (just allow error to be thrown if not included)\nreturn new jQuery.fn.init(selector,context);};jQuery.fn=jQuery.prototype={// The current version of jQuery being used\njquery:version,constructor:jQuery,// The default length of a jQuery object is 0\nlength:0,toArray:function toArray(){return _slice.call(this);},// Get the Nth element in the matched element set OR\n// Get the whole matched element set as a clean array\nget:function get(num){// Return all the elements in a clean array\nif(num==null){return _slice.call(this);}// Return just the one element from the set\nreturn num<0?this[num+this.length]:this[num];},// Take an array of elements and push it onto the stack\n// (returning the new matched element set)\npushStack:function pushStack(elems){// Build a new jQuery matched element set\nvar ret=jQuery.merge(this.constructor(),elems);// Add the old object onto the stack (as a reference)\nret.prevObject=this;// Return the newly-formed element set\nreturn ret;},// Execute a callback for every element in the matched set.\neach:function each(callback){return jQuery.each(this,callback);},map:function map(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function slice(){return this.pushStack(_slice.apply(this,arguments));},first:function first(){return this.eq(0);},last:function last(){return this.eq(-1);},even:function even(){return this.pushStack(jQuery.grep(this,function(_elem,i){return(i+1)%2;}));},odd:function odd(){return this.pushStack(jQuery.grep(this,function(_elem,i){return i%2;}));},eq:function eq(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function end(){return this.prevObject||this.constructor();},// For internal use only.\n// Behaves like an Array\'s method, not like a jQuery method.\npush:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;// Handle a deep copy situation\nif(typeof target==="boolean"){deep=target;// Skip the boolean and the target\ntarget=arguments[i]||{};i++;}// Handle case when target is a string or something (possible in deep copy)\nif(_typeof(target)!=="object"&&!isFunction(target)){target={};}// Extend jQuery itself if only one argument is passed\nif(i===length){target=this;i--;}for(;i<length;i++){// Only deal with non-null/undefined values\nif((options=arguments[i])!=null){// Extend the base object\nfor(name in options){copy=options[name];// Prevent Object.prototype pollution\n// Prevent never-ending loop\nif(name==="__proto__"||target===copy){continue;}// Recurse if we\'re merging plain objects or arrays\nif(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))){src=target[name];// Ensure proper type for the source value\nif(copyIsArray&&!Array.isArray(src)){clone=[];}else if(!copyIsArray&&!jQuery.isPlainObject(src)){clone={};}else{clone=src;}copyIsArray=false;// Never move original objects, clone them\ntarget[name]=jQuery.extend(deep,clone,copy);// Don\'t bring in undefined values\n}else if(copy!==undefined){target[name]=copy;}}}}// Return the modified object\nreturn target;};jQuery.extend({// Unique for each copy of jQuery on the page\nexpando:"jQuery"+(version+Math.random()).replace(/\\D/g,""),// Assume jQuery is ready without the ready module\nisReady:true,error:function error(msg){throw new Error(msg);},noop:function noop(){},isPlainObject:function isPlainObject(obj){var proto,Ctor;// Detect obvious negatives\n// Use toString instead of jQuery.type to catch host objects\nif(!obj||toString.call(obj)!=="[object Object]"){return false;}proto=getProto(obj);// Objects with no prototype (e.g., `Object.create( null )`) are plain\nif(!proto){return true;}// Objects with prototype are plain iff they were constructed by a global Object function\nCtor=hasOwn.call(proto,"constructor")&&proto.constructor;return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString;},isEmptyObject:function isEmptyObject(obj){var name;for(name in obj){return false;}return true;},// Evaluates a script in a provided context; falls back to the global one\n// if not specified.\nglobalEval:function globalEval(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc);},each:function each(obj,callback){var length,i=0;if(isArrayLike(obj)){length=obj.length;for(;i<length;i++){if(callback.call(obj[i],i,obj[i])===false){break;}}}else{for(i in obj){if(callback.call(obj[i],i,obj[i])===false){break;}}}return obj;},// results is for internal usage only\nmakeArray:function makeArray(arr,results){var ret=results||[];if(arr!=null){if(isArrayLike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr);}else{push.call(ret,arr);}}return ret;},inArray:function inArray(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i);},// Support: Android <=4.0 only, PhantomJS 1 only\n// push.apply(_, arraylike) throws on ancient WebKit\nmerge:function merge(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j];}first.length=i;return first;},grep:function grep(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;// Go through the array, only saving the items\n// that pass the validator function\nfor(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}return matches;},// arg is for internal usage only\nmap:function map(elems,callback,arg){var length,value,i=0,ret=[];// Go through the array, translating each of the items to their new values\nif(isArrayLike(elems)){length=elems.length;for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}// Go through every key on the object,\n}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}// Flatten any nested arrays\nreturn flat(ret);},// A global GUID counter for objects\nguid:1,// jQuery.support is not used in Core but other projects attach their\n// properties to it so it needs to exist.\nsupport:support});if(typeof Symbol==="function"){jQuery.fn[Symbol.iterator]=arr[Symbol.iterator];}// Populate the class2type map\njQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase();});function isArrayLike(obj){// Support: real iOS 8.2 only (not reproducible in simulator)\n// `in` check used to prevent JIT error (gh-2145)\n// hasOwn isn\'t used here due to false negatives\n// regarding Nodelist length in IE\nvar length=!!obj&&"length"in obj&&obj.length,type=toType(obj);if(isFunction(obj)||isWindow(obj)){return false;}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj;}var Sizzle=/*!\n * Sizzle CSS Selector Engine v2.3.5\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2020-03-14\n */function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,// Local document vars\nsetDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,// Instance-specific data\nexpando="sizzle"+1*new Date(),preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function sortOrder(a,b){if(a===b){hasDuplicate=true;}return 0;},// Instance methods\nhasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,pushNative=arr.push,push=arr.push,slice=arr.slice,// Use a stripped-down indexOf as it\'s faster than native\n// https://jsperf.com/thor-indexof-vs-for/5\nindexOf=function indexOf(list,elem){var i=0,len=list.length;for(;i<len;i++){if(list[i]===elem){return i;}}return-1;},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|"+"ismap|loop|multiple|open|readonly|required|scoped",// Regular expressions\n// http://www.w3.org/TR/css3-selectors/#whitespace\nwhitespace="[\\\\x20\\\\t\\\\r\\\\n\\\\f]",// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\nidentifier="(?:\\\\\\\\[\\\\da-fA-F]{1,6}"+whitespace+"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+",// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\nattributes="\\\\["+whitespace+"*("+identifier+")(?:"+whitespace+// Operator (capture 2)\n"*([*^$|!~]?=)"+whitespace+// "Attribute values must be CSS identifiers [capture 5]\n// or strings [capture 3 or capture 4]"\n"*(?:\'((?:\\\\\\\\.|[^\\\\\\\\\'])*)\'|\\"((?:\\\\\\\\.|[^\\\\\\\\\\"])*)\\"|("+identifier+"))|)"+whitespace+"*\\\\]",pseudos=":("+identifier+")(?:\\\\(("+// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n// 1. quoted (capture 3; capture 4 or capture 5)\n"(\'((?:\\\\\\\\.|[^\\\\\\\\\'])*)\'|\\"((?:\\\\\\\\.|[^\\\\\\\\\\"])*)\\")|"+// 2. simple (capture 6)\n"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+attributes+")*)|"+// 3. anything else (capture 2)\n".*"+")\\\\)|)",// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\nrwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={"ID":new RegExp("^#("+identifier+")"),"CLASS":new RegExp("^\\\\.("+identifier+")"),"TAG":new RegExp("^("+identifier+"|[*])"),"ATTR":new RegExp("^"+attributes),"PSEUDO":new RegExp("^"+pseudos),"CHILD":new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\("+whitespace+"*(even|odd|(([+-]|)(\\\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\\\d+)|))"+whitespace+"*\\\\)|)","i"),"bool":new RegExp("^(?:"+booleans+")$","i"),// For use in libraries implementing .is()\n// We use this for POS matching in `select`\n"needsContext":new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\("+whitespace+"*((?:-\\\\d)?\\\\d*)"+whitespace+"*\\\\)|)(?=[^-]|$)","i")},rhtml=/HTML$/i,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\\d$/i,rnative=/^[^{]+\\{\\s*\\[native \\w/,// Easily-parseable/retrievable ID or TAG or CLASS selectors\nrquickExpr=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,rsibling=/[+~]/,// CSS escapes\n// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\nrunescape=new RegExp("\\\\\\\\[\\\\da-fA-F]{1,6}"+whitespace+"?|\\\\\\\\([^\\\\r\\\\n\\\\f])","g"),funescape=function funescape(escape,nonHex){var high="0x"+escape.slice(1)-0x10000;return nonHex?// Strip the backslash prefix from a non-hex escape sequence\nnonHex:// Replace a hexadecimal escape sequence with the encoded Unicode code point\n// Support: IE <=11+\n// For values outside the Basic Multilingual Plane (BMP), manually construct a\n// surrogate pair\nhigh<0?String.fromCharCode(high+0x10000):String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);},// CSS string/identifier serialization\n// https://drafts.csswg.org/cssom/#common-serializing-idioms\nrcssescape=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,fcssescape=function fcssescape(ch,asCodePoint){if(asCodePoint){// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\nif(ch==="\\0"){return"\\uFFFD";}// Control characters and (dependent upon position) numbers get escaped as code points\nreturn ch.slice(0,-1)+"\\\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";}// Other potentially-special ASCII characters get backslash-escaped\nreturn"\\\\"+ch;},// Used for iframes\n// See setDocument()\n// Removing the function wrapper causes a "Permission Denied"\n// error in IE\nunloadHandler=function unloadHandler(){setDocument();},inDisabledFieldset=addCombinator(function(elem){return elem.disabled===true&&elem.nodeName.toLowerCase()==="fieldset";},{dir:"parentNode",next:"legend"});// Optimize for push.apply( _, NodeList )\ntry{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes);// Support: Android<4.0\n// Detect silently failing push.apply\n// eslint-disable-next-line no-unused-expressions\narr[preferredDoc.childNodes.length].nodeType;}catch(e){push={apply:arr.length?// Leverage slice if possible\nfunction(target,els){pushNative.apply(target,slice.call(els));}:// Support: IE<9\n// Otherwise append directly\nfunction(target,els){var j=target.length,i=0;// Can\'t trust NodeList.length\nwhile(target[j++]=els[i++]){}target.length=j-1;}};}function Sizzle(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,// nodeType defaults to 9, since context defaults to document\nnodeType=context?context.nodeType:9;results=results||[];// Return early from calls with invalid selector or context\nif(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results;}// Try to shortcut find operations (as opposed to filters) in HTML documents\nif(!seed){setDocument(context);context=context||document;if(documentIsHTML){// If the selector is sufficiently simple, try using a "get*By*" DOM method\n// (excepting DocumentFragment context, where the methods don\'t exist)\nif(nodeType!==11&&(match=rquickExpr.exec(selector))){// ID selector\nif(m=match[1]){// Document context\nif(nodeType===9){if(elem=context.getElementById(m)){// Support: IE, Opera, Webkit\n// TODO: identify versions\n// getElementById can match elements by name instead of ID\nif(elem.id===m){results.push(elem);return results;}}else{return results;}// Element context\n}else{// Support: IE, Opera, Webkit\n// TODO: identify versions\n// getElementById can match elements by name instead of ID\nif(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}// Type selector\n}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;// Class selector\n}else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}// Take advantage of querySelectorAll\nif(support.qsa&&!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))&&(// Support: IE 8 only\n// Exclude object elements\nnodeType!==1||context.nodeName.toLowerCase()!=="object")){newSelector=selector;newContext=context;// qSA considers elements outside a scoping root when evaluating child or\n// descendant combinators, which is not what we want.\n// In such cases, we work around the behavior by prefixing every selector in the\n// list with an ID selector referencing the scope context.\n// The technique has to be used as well when a leading combinator is used\n// as such selectors are not recognized by querySelectorAll.\n// Thanks to Andrew Dupont for this technique.\nif(nodeType===1&&(rdescend.test(selector)||rcombinators.test(selector))){// Expand context for sibling selectors\nnewContext=rsibling.test(selector)&&testContext(context.parentNode)||context;// We can use :scope instead of the ID hack if the browser\n// supports it & if we\'re not changing the context.\nif(newContext!==context||!support.scope){// Capture the context ID, setting it first if necessary\nif(nid=context.getAttribute("id")){nid=nid.replace(rcssescape,fcssescape);}else{context.setAttribute("id",nid=expando);}}// Prefix every selector in the list\ngroups=tokenize(selector);i=groups.length;while(i--){groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i]);}newSelector=groups.join(",");}try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){nonnativeSelectorCache(selector,true);}finally{if(nid===expando){context.removeAttribute("id");}}}}}// All others\nreturn select(selector.replace(rtrim,"$1"),context,results,seed);}/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */function createCache(){var keys=[];function cache(key,value){// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)\nif(keys.push(key+" ")>Expr.cacheLength){// Only keep the most recent entries\ndelete cache[keys.shift()];}return cache[key+" "]=value;}return cache;}/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */function markFunction(fn){fn[expando]=true;return fn;}/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el);}catch(e){return false;}finally{// Remove from its parent by default\nif(el.parentNode){el.parentNode.removeChild(el);}// release memory in IE\nel=null;}}/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */function addHandle(attrs,handler){var arr=attrs.split("|"),i=arr.length;while(i--){Expr.attrHandle[arr[i]]=handler;}}/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;// Use IE sourceIndex if available on both nodes\nif(diff){return diff;}// Check if b follows a\nif(cur){while(cur=cur.nextSibling){if(cur===b){return-1;}}}return a?1:-1;}/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};}/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};}/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */function createDisabledPseudo(disabled){// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\nreturn function(elem){// Only certain elements can match :enabled or :disabled\n// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\nif("form"in elem){// Check for inherited disabledness on relevant non-disabled elements:\n// * listed form-associated elements in a disabled fieldset\n//   https://html.spec.whatwg.org/multipage/forms.html#category-listed\n//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n// * option elements in a disabled optgroup\n//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n// All such elements have a "form" property.\nif(elem.parentNode&&elem.disabled===false){// Option elements defer to a parent optgroup if present\nif("label"in elem){if("label"in elem.parentNode){return elem.parentNode.disabled===disabled;}else{return elem.disabled===disabled;}}// Support: IE 6 - 11\n// Use the isDisabled shortcut property to check for disabled fieldset ancestors\nreturn elem.isDisabled===disabled||// Where there is no isDisabled, check manually\n/* jshint -W018 */elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled;}return elem.disabled===disabled;// Try to winnow out elements that can\'t be disabled before trusting the disabled property.\n// Some victims get caught in our net (label, legend, menu, track), but it shouldn\'t\n// even exist on them, let alone have a boolean value.\n}else if("label"in elem){return elem.disabled===disabled;}// Remaining elements are neither :enabled nor :disabled\nreturn false;};}/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;// Match elements found at the specified indexes\nwhile(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j]);}}});});}/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context;}// Expose support vars for convenience\nsupport=Sizzle.support={};/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */isXML=Sizzle.isXML=function(elem){var namespace=elem.namespaceURI,docElem=(elem.ownerDocument||elem).documentElement;// Support: IE <=8\n// Assume HTML when documentElement doesn\'t yet exist, such as inside loading iframes\n// https://bugs.jquery.com/ticket/4833\nreturn!rhtml.test(namespace||docElem&&docElem.nodeName||"HTML");};/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;// Return early if doc is invalid or already selected\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif(doc==document||doc.nodeType!==9||!doc.documentElement){return document;}// Update global variables\ndocument=doc;docElem=document.documentElement;documentIsHTML=!isXML(document);// Support: IE 9 - 11+, Edge 12 - 18+\n// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif(preferredDoc!=document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){// Support: IE 11, Edge\nif(subWindow.addEventListener){subWindow.addEventListener("unload",unloadHandler,false);// Support: IE 9 - 10 only\n}else if(subWindow.attachEvent){subWindow.attachEvent("onunload",unloadHandler);}}// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n// IE/Edge & older browsers don\'t support the :scope pseudo-class.\n// Support: Safari 6.0 only\n// Safari 6.0 supports :scope but it\'s an alias of :root there.\nsupport.scope=assert(function(el){docElem.appendChild(el).appendChild(document.createElement("div"));return typeof el.querySelectorAll!=="undefined"&&!el.querySelectorAll(":scope fieldset div").length;});/* Attributes\n\t---------------------------------------------------------------------- */ // Support: IE<8\n// Verify that getAttribute really returns attributes and not properties\n// (excepting IE8 booleans)\nsupport.attributes=assert(function(el){el.className="i";return!el.getAttribute("className");});/* getElement(s)By*\n\t---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements\nsupport.getElementsByTagName=assert(function(el){el.appendChild(document.createComment(""));return!el.getElementsByTagName("*").length;});// Support: IE<9\nsupport.getElementsByClassName=rnative.test(document.getElementsByClassName);// Support: IE<10\n// Check if getElementById returns elements by name\n// The broken getElementById methods don\'t pick up programmatically-set names,\n// so use a roundabout getElementsByName test\nsupport.getById=assert(function(el){docElem.appendChild(el).id=expando;return!document.getElementsByName||!document.getElementsByName(expando).length;});// ID filter and find\nif(support.getById){Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId;};};Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[];}};}else{Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId;};};// Support: IE 6 - 7 only\n// getElementById is not reliable as a find shortcut\nExpr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){// Verify the id attribute\nnode=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}// Fall back on getElementsByName\nelems=context.getElementsByName(id);i=0;while(elem=elems[i++]){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}}}return[];}};}// Tag\nExpr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag);// DocumentFragment nodes don\'t have gEBTN\n}else if(support.qsa){return context.querySelectorAll(tag);}}:function(tag,context){var elem,tmp=[],i=0,// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\nresults=context.getElementsByTagName(tag);// Filter out possible comments\nif(tag==="*"){while(elem=results[i++]){if(elem.nodeType===1){tmp.push(elem);}}return tmp;}return results;};// Class\nExpr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){return context.getElementsByClassName(className);}};/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */ // QSA and matchesSelector support\n// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\nrbuggyMatches=[];// qSa(:focus) reports false when true (Chrome 21)\n// We allow this because of a bug in IE8/9 that throws an error\n// whenever `document.activeElement` is accessed on an iframe\n// So, we allow :focus to pass through QSA all the time to avoid the IE error\n// See https://bugs.jquery.com/ticket/13378\nrbuggyQSA=[];if(support.qsa=rnative.test(document.querySelectorAll)){// Build QSA regex\n// Regex strategy adopted from Diego Perini\nassert(function(el){var input;// Select is set to empty string on purpose\n// This is to test IE\'s treatment of not explicitly\n// setting a boolean content attribute,\n// since its presence should be enough\n// https://bugs.jquery.com/ticket/12359\ndocElem.appendChild(el).innerHTML="<a id=\'"+expando+"\'></a>"+"<select id=\'"+expando+"-\\r\\\\\' msallowcapture=\'\'>"+"<option selected=\'\'></option></select>";// Support: IE8, Opera 11-12.16\n// Nothing should be selected when empty strings follow ^= or $= or *=\n// The test attribute must be unknown in Opera but "safe" for WinRT\n// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\nif(el.querySelectorAll("[msallowcapture^=\'\']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:\'\'|\\"\\")");}// Support: IE8\n// Boolean attributes and "value" are not treated correctly\nif(!el.querySelectorAll("[selected]").length){rbuggyQSA.push("\\\\["+whitespace+"*(?:value|"+booleans+")");}// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\nif(!el.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=");}// Support: IE 11+, Edge 15 - 18+\n// IE 11/Edge don\'t find elements on a `[name=\'\']` query in some cases.\n// Adding a temporary attribute to the document before the selection works\n// around the issue.\n// Interestingly, IE 10 & older don\'t seem to have the issue.\ninput=document.createElement("input");input.setAttribute("name","");el.appendChild(input);if(!el.querySelectorAll("[name=\'\']").length){rbuggyQSA.push("\\\\["+whitespace+"*name"+whitespace+"*="+whitespace+"*(?:\'\'|\\"\\")");}// Webkit/Opera - :checked should return selected option elements\n// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n// IE8 throws error here and will not see later tests\nif(!el.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}// Support: Safari 8+, iOS 8+\n// https://bugs.webkit.org/show_bug.cgi?id=136851\n// In-page `selector#id sibling-combinator selector` fails\nif(!el.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]");}// Support: Firefox <=3.6 - 5 only\n// Old Firefox doesn\'t throw on a badly-escaped identifier.\nel.querySelectorAll("\\\\\\f");rbuggyQSA.push("[\\\\r\\\\n\\\\f]");});assert(function(el){el.innerHTML="<a href=\'\' disabled=\'disabled\'></a>"+"<select disabled=\'disabled\'><option/></select>";// Support: Windows 8 Native Apps\n// The type and name attributes are restricted during .innerHTML assignment\nvar input=document.createElement("input");input.setAttribute("type","hidden");el.appendChild(input).setAttribute("name","D");// Support: IE8\n// Enforce case-sensitivity of name attribute\nif(el.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=");}// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n// IE8 throws error here and will not see later tests\nif(el.querySelectorAll(":enabled").length!==2){rbuggyQSA.push(":enabled",":disabled");}// Support: IE9-11+\n// IE\'s :disabled selector does not pick up the children of disabled fieldsets\ndocElem.appendChild(el).disabled=true;if(el.querySelectorAll(":disabled").length!==2){rbuggyQSA.push(":enabled",":disabled");}// Support: Opera 10 - 11 only\n// Opera 10-11 does not throw on post-comma invalid pseudos\nel.querySelectorAll("*,:x");rbuggyQSA.push(",.*:");});}if(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)){assert(function(el){// Check to see if it\'s possible to do matchesSelector\n// on a disconnected node (IE 9)\nsupport.disconnectedMatch=matches.call(el,"*");// This should fail with an exception\n// Gecko does not error, returns false instead\nmatches.call(el,"[s!=\'\']:x");rbuggyMatches.push("!=",pseudos);});}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));/* Contains\n\t---------------------------------------------------------------------- */hasCompare=rnative.test(docElem.compareDocumentPosition);// Element contains another\n// Purposefully self-exclusive\n// As in, an element does not contain itself\ncontains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16));}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true;}}}return false;};/* Sorting\n\t---------------------------------------------------------------------- */ // Document order sorting\nsortOrder=hasCompare?function(a,b){// Flag for duplicate removal\nif(a===b){hasDuplicate=true;return 0;}// Sort on method existence if only one input has compareDocumentPosition\nvar compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare;}// Calculate position if both inputs belong to the same document\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\ncompare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):// Otherwise we know they are disconnected\n1;// Disconnected nodes\nif(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){// Choose the first element that is related to our preferred document\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif(a==document||a.ownerDocument==preferredDoc&&contains(preferredDoc,a)){return-1;}// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif(b==document||b.ownerDocument==preferredDoc&&contains(preferredDoc,b)){return 1;}// Maintain original order\nreturn sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;}return compare&4?-1:1;}:function(a,b){// Exit early if the nodes are identical\nif(a===b){hasDuplicate=true;return 0;}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];// Parentless nodes are either documents or disconnected\nif(!aup||!bup){// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n/* eslint-disable eqeqeq */return a==document?-1:b==document?1:/* eslint-enable eqeqeq */aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;// If the nodes are siblings, we can do a quick check\n}else if(aup===bup){return siblingCheck(a,b);}// Otherwise we need full lists of their ancestors for comparison\ncur=a;while(cur=cur.parentNode){ap.unshift(cur);}cur=b;while(cur=cur.parentNode){bp.unshift(cur);}// Walk down the tree looking for a discrepancy\nwhile(ap[i]===bp[i]){i++;}return i?// Do a sibling check if the nodes have a common ancestor\nsiblingCheck(ap[i],bp[i]):// Otherwise nodes in our document sort first\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n/* eslint-disable eqeqeq */ap[i]==preferredDoc?-1:bp[i]==preferredDoc?1:/* eslint-enable eqeqeq */0;};return document;};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){setDocument(elem);if(support.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);// IE 9\'s matchesSelector returns false on disconnected nodes\nif(ret||support.disconnectedMatch||// As well, disconnected nodes are said to be in a document\n// fragment in IE 9\nelem.document&&elem.document.nodeType!==11){return ret;}}catch(e){nonnativeSelectorCache(expr,true);}}return Sizzle(expr,document,null,[elem]).length>0;};Sizzle.contains=function(context,elem){// Set document vars if needed\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif((context.ownerDocument||context)!=document){setDocument(context);}return contains(context,elem);};Sizzle.attr=function(elem,name){// Set document vars if needed\n// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif((elem.ownerDocument||elem)!=document){setDocument(elem);}var fn=Expr.attrHandle[name.toLowerCase()],// Don\'t get fooled by Object.prototype properties (jQuery #13807)\nval=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null;};Sizzle.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape);};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);};/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;// Unless we *know* we can detect duplicates, assume their presence\nhasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i);}}while(j--){results.splice(duplicates[j],1);}}// Clear input after sorting to release objects\n// See https://github.com/jquery/sizzle/pull/225\nsortInput=null;return results;};/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){// If no nodeType, this is expected to be an array\nwhile(node=elem[i++]){// Do not traverse comment nodes\nret+=getText(node);}}else if(nodeType===1||nodeType===9||nodeType===11){// Use textContent for elements\n// innerText usage removed for consistency of new lines (jQuery #11153)\nif(typeof elem.textContent==="string"){return elem.textContent;}else{// Traverse its children\nfor(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}// Do not include comment or processing instruction nodes\nreturn ret;};Expr=Sizzle.selectors={// Can be adjusted by the user\ncacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function ATTR(match){match[1]=match[1].replace(runescape,funescape);// Move the given value to match[3] whether quoted or unquoted\nmatch[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" ";}return match.slice(0,4);},"CHILD":function CHILD(match){/* matches from matchExpr["CHILD"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){// nth-* requires argument\nif(!match[3]){Sizzle.error(match[0]);}// numeric x and y parameters for Expr.filter.CHILD\n// remember that false/true cast respectively to 0/1\nmatch[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd");// other types prohibit arguments\n}else if(match[3]){Sizzle.error(match[0]);}return match;},"PSEUDO":function PSEUDO(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null;}// Accept quoted arguments as-is\nif(match[3]){match[2]=match[4]||match[5]||"";// Strip excess characters from unquoted arguments\n}else if(unquoted&&rpseudo.test(unquoted)&&(// Get excess from tokenize (recursively)\nexcess=tokenize(unquoted,true))&&(// advance to the next closing parenthesis\nexcess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){// excess is a negative index\nmatch[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess);}// Return only captures needed by the pseudo filter method (type and argument)\nreturn match.slice(0,3);}},filter:{"TAG":function TAG(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true;}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;};},"CLASS":function CLASS(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"");});},"ATTR":function ATTR(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!=";}if(!operator){return true;}result+="";/* eslint-disable max-len */return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false;/* eslint-enable max-len */};},"CHILD":function CHILD(type,what,_argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?// Shortcut for :nth-*(n)\nfunction(elem){return!!elem.parentNode;}:function(elem,_context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=false;if(parent){// :(first|last|only)-(child|of-type)\nif(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false;}}// Reverse direction for :only-* (if we haven\'t yet done so)\nstart=dir=type==="only"&&!start&&"nextSibling";}return true;}start=[forward?parent.firstChild:parent.lastChild];// non-xml :nth-child(...) stores cache data on `parent`\nif(forward&&useCache){// Seek `elem` from a previously-cached index\n// ...in a gzip-friendly way\nnode=parent;outerCache=node[expando]||(node[expando]={});// Support: IE <9 only\n// Defend against cloned attroperties (jQuery gh-1709)\nuniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(// Fallback to seeking `elem` from the start\ndiff=nodeIndex=0)||start.pop()){// When found, cache indexes on `parent` and break\nif(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break;}}}else{// Use previously-cached element index if available\nif(useCache){// ...in a gzip-friendly way\nnode=elem;outerCache=node[expando]||(node[expando]={});// Support: IE <9 only\n// Defend against cloned attroperties (jQuery gh-1709)\nuniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex;}// xml :nth-child(...)\n// or :nth-last-child(...) or :nth(-last)?-of-type(...)\nif(diff===false){// Use the same loop as above to seek `elem` from the start\nwhile(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){// Cache the index of each encountered element\nif(useCache){outerCache=node[expando]||(node[expando]={});// Support: IE <9 only\n// Defend against cloned attroperties (jQuery gh-1709)\nuniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff];}if(node===elem){break;}}}}}// Incorporate the offset, then check against cycle size\ndiff-=last;return diff===first||diff%first===0&&diff/first>=0;}};},"PSEUDO":function PSEUDO(pseudo,argument){// pseudo-class names are case-insensitive\n// http://www.w3.org/TR/selectors/#pseudo-classes\n// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n// Remember that setFilters inherits from pseudos\nvar args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);// The user may use createPseudo to indicate that\n// arguments are needed to create the filter function\n// just as Sizzle does\nif(fn[expando]){return fn(argument);}// But maintain support for old signatures\nif(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}return fn;}},pseudos:{// Potentially complex pseudos\n"not":markFunction(function(selector){// Trim the selector passed to compile\n// to avoid treating leading and trailing\n// spaces as combinators\nvar input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,_context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;// Match elements unmatched by `matcher`\nwhile(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem);}}}):function(elem,_context,xml){input[0]=elem;matcher(input,null,xml,results);// Don\'t keep the element (issue #299)\ninput[0]=null;return!results.pop();};}),"has":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),"contains":markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||getText(elem)).indexOf(text)>-1;};}),// "Whether an element is represented by a :lang() selector\n// is based solely on the element\'s language value\n// being equal to the identifier C,\n// or beginning with the identifier C immediately followed by "-".\n// The matching of C against the element\'s language value is performed case-insensitively.\n// The identifier C does not have to be a valid language name."\n// http://www.w3.org/TR/selectors/#lang-pseudo\n"lang":markFunction(function(lang){// lang value must be a valid identifier\nif(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang);}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0;}}while((elem=elem.parentNode)&&elem.nodeType===1);return false;};}),// Miscellaneous\n"target":function target(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id;},"root":function root(elem){return elem===docElem;},"focus":function focus(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);},// Boolean properties\n"enabled":createDisabledPseudo(false),"disabled":createDisabledPseudo(true),"checked":function checked(elem){// In CSS3, :checked should return both checked and selected elements\n// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\nvar nodeName=elem.nodeName.toLowerCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem.selected;},"selected":function selected(elem){// Accessing this property makes selected-by-default\n// options in Safari work properly\nif(elem.parentNode){// eslint-disable-next-line no-unused-expressions\nelem.parentNode.selectedIndex;}return elem.selected===true;},// Contents\n"empty":function empty(elem){// http://www.w3.org/TR/selectors/#empty-pseudo\n// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n//   but not by others (comment: 8; processing instruction: 7; etc.)\n// nodeType < 6 works because attributes (2) do not appear as children\nfor(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false;}}return true;},"parent":function parent(elem){return!Expr.pseudos["empty"](elem);},// Element/input types\n"header":function header(elem){return rheader.test(elem.nodeName);},"input":function input(elem){return rinputs.test(elem.nodeName);},"button":function button(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button";},"text":function text(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&(// Support: IE<8\n// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"\n(attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text");},// Position-in-collection\n"first":createPositionalPseudo(function(){return[0];}),"last":createPositionalPseudo(function(_matchIndexes,length){return[length-1];}),"eq":createPositionalPseudo(function(_matchIndexes,length,argument){return[argument<0?argument+length:argument];}),"even":createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i);}return matchIndexes;}),"odd":createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i);}return matchIndexes;}),"lt":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument>length?length:argument;for(;--i>=0;){matchIndexes.push(i);}return matchIndexes;}),"gt":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i);}return matchIndexes;})}};Expr.pseudos["nth"]=Expr.pseudos["eq"];// Add button/input type pseudos\nfor(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i);}for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i);}// Easy API for creating new setFilters\nfunction setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters();tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0);}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){// Comma and first run\nif(!matched||(match=rcomma.exec(soFar))){if(match){// Don\'t consume trailing commas as valid\nsoFar=soFar.slice(match[0].length)||soFar;}groups.push(tokens=[]);}matched=false;// Combinators\nif(match=rcombinators.exec(soFar)){matched=match.shift();tokens.push({value:matched,// Cast descendant combinators to space\ntype:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length);}// Filters\nfor(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length);}}if(!matched){break;}}// Return the length of the invalid excess\n// if we\'re just parsing\n// Otherwise, throw an error or return tokens\nreturn parseOnly?soFar.length:soFar?Sizzle.error(selector):// Cache the tokens\ntokenCache(selector,groups).slice(0);};function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value;}return selector;}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&key==="parentNode",doneName=done++;return combinator.first?// Check against closest ancestor/preceding element\nfunction(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml);}}return false;}:// Check against all ancestor/preceding elements\nfunction(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];// We can\'t set arbitrary data on XML nodes, so they don\'t benefit from combinator caching\nif(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true;}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});// Support: IE <9 only\n// Defend against cloned attroperties (jQuery gh-1709)\nuniqueCache=outerCache[elem.uniqueID]||(outerCache[elem.uniqueID]={});if(skip&&skip===elem.nodeName.toLowerCase()){elem=elem[dir]||elem;}else if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName){// Assign to newCache so results back-propagate to previous elements\nreturn newCache[2]=oldCache[2];}else{// Reuse newcache so results back-propagate to previous elements\nuniqueCache[key]=newCache;// A match means we\'re done; a fail means we have to keep checking\nif(newCache[2]=matcher(elem,context,xml)){return true;}}}}}return false;};}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}return true;}:matchers[0];}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results);}return results;}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}return newUnmatched;}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,// Get initial elements from seed or context\nelems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),// Prefilter to get matcher input, preserving a map for seed-results synchronization\nmatcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\npostFinder||(seed?preFilter:preexisting||postFilter)?// ...intermediate processing is necessary\n[]:// ...otherwise use results directly\nresults:matcherIn;// Find primary matches\nif(matcher){matcher(matcherIn,matcherOut,context,xml);}// Apply postFilter\nif(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);// Un-match failing elements by moving them back to matcherIn\ni=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);}}}if(seed){if(postFinder||preFilter){if(postFinder){// Get the final matcherOut by condensing this intermediate into postFinder contexts\ntemp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){// Restore matcherIn since elem is not yet a final match\ntemp.push(matcherIn[i]=elem);}}postFinder(null,matcherOut=[],temp,xml);}// Move matched elements from seed to results to keep them synchronized\ni=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);}}}// Add elements to results, through postFinder if defined\n}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,// The foundational matcher ensures that elements are reachable from top-level context(s)\nmatchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));// Avoid hanging onto element (issue #299)\ncheckContext=null;return ret;}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)];}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);// Return special upon seeing a positional matcher\nif(matcher[expando]){// Find the next relative operator (if any) for proper handling\nj=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break;}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(// If the preceding token was a descendant combinator, insert an implicit any-element `*`\ntokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens));}matchers.push(matcher);}}return elementMatcher(matchers);}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function superMatcher(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,// We must always have either seed elements or outermost context\nelems=seed||byElement&&Expr.find["TAG"]("*",outermost),// Use integer dirruns iff this is the outermost matcher\ndirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||0.1,len=elems.length;if(outermost){// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\noutermostContext=context==document||context||outermost;}// Add elements passing elementMatchers directly to results\n// Support: IE<9, Safari\n// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id\nfor(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;// Support: IE 11+, Edge 17 - 18+\n// IE/Edge sometimes throw a "Permission denied" error when strict-comparing\n// two documents; shallow comparisons work.\n// eslint-disable-next-line eqeqeq\nif(!context&&elem.ownerDocument!=document){setDocument(elem);xml=!documentIsHTML;}while(matcher=elementMatchers[j++]){if(matcher(elem,context||document,xml)){results.push(elem);break;}}if(outermost){dirruns=dirrunsUnique;}}// Track unmatched elements for set filters\nif(bySet){// They will have gone through all possible matchers\nif(elem=!matcher&&elem){matchedCount--;}// Lengthen the array for every element, matched or not\nif(seed){unmatched.push(elem);}}}// `i` is now the count of elements visited above, and adding it to `matchedCount`\n// makes the latter nonnegative.\nmatchedCount+=i;// Apply set filters to unmatched elements\n// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n// equals `i`), unless we didn\'t visit _any_ elements in the above loop because we have\n// no element matchers and no seed.\n// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that\n// case, which will result in a "00" `matchedCount` that differs from `i` but is also\n// numerically zero.\nif(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml);}if(seed){// Reintegrate element matches to eliminate the need for sorting\nif(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}}// Discard index placeholder values to get only actual matches\nsetMatched=condense(setMatched);}// Add matches to results\npush.apply(results,setMatched);// Seedless set matches succeeding multiple successful matchers stipulate sorting\nif(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){Sizzle.uniqueSort(results);}}// Override manipulation of globals by nested matchers\nif(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;}return unmatched;};return bySet?markFunction(superMatcher):superMatcher;}compile=Sizzle.compile=function(selector,match/* Internal Use Only */){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){// Generate a function of recursive functions that can be used to check each element\nif(!match){match=tokenize(selector);}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}}// Cache the compiled function\ncached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));// Save selector and tokenization\ncached.selector=selector;}return cached;};/**\n * A low-level selection function that works with Sizzle\'s compiled\n *  selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n *  selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);results=results||[];// Try to minimize operations if there is only one selector in the list and no seed\n// (the latter of which guarantees us context)\nif(match.length===1){// Reduce context if the leading compound selector is an ID\ntokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results;// Precompiled matchers will still verify ancestry, so step up a level\n}else if(compiled){context=context.parentNode;}selector=selector.slice(tokens.shift().value.length);}// Fetch a seed set for right-to-left matching\ni=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];// Abort if we hit a combinator\nif(Expr.relative[type=token.type]){break;}if(find=Expr.find[type]){// Search, expanding context for leading sibling combinators\nif(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){// If seed is empty or no tokens remain, we can return early\ntokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}break;}}}}// Compile and execute a filtering function if one is not provided\n// Provide `match` to avoid retokenization if we modified the selector above\n(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results;};// One-time assignments\n// Sort stability\nsupport.sortStable=expando.split("").sort(sortOrder).join("")===expando;// Support: Chrome 14-35+\n// Always assume duplicates if they aren\'t passed to the comparison function\nsupport.detectDuplicates=!!hasDuplicate;// Initialize against the default document\nsetDocument();// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached=assert(function(el){// Should return 1, but returns 4 (following)\nreturn el.compareDocumentPosition(document.createElement("fieldset"))&1;});// Support: IE<8\n// Prevent attribute/property "interpolation"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif(!assert(function(el){el.innerHTML="<a href=\'#\'></a>";return el.firstChild.getAttribute("href")==="#";})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2);}});}// Support: IE<9\n// Use defaultValue in place of getAttribute("value")\nif(!support.attributes||!assert(function(el){el.innerHTML="<input/>";el.firstChild.setAttribute("value","");return el.firstChild.getAttribute("value")==="";})){addHandle("value",function(elem,_name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue;}});}// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif(!assert(function(el){return el.getAttribute("disabled")==null;})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null;}});}return Sizzle;}(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;// Deprecated\njQuery.expr[":"]=jQuery.expr.pseudos;jQuery.uniqueSort=jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;jQuery.escapeSelector=Sizzle.escape;var dir=function dir(elem,_dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[_dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&jQuery(elem).is(until)){break;}matched.push(elem);}}return matched;};var _siblings=function siblings(n,elem){var matched=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n);}}return matched;};var rneedsContext=jQuery.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();};var rsingleTag=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;// Implement the identical functionality for filter and not\nfunction winnow(elements,qualifier,not){if(isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not;});}// Single element\nif(qualifier.nodeType){return jQuery.grep(elements,function(elem){return elem===qualifier!==not;});}// Arraylike of elements (jQuery, arguments, Array)\nif(typeof qualifier!=="string"){return jQuery.grep(elements,function(elem){return indexOf.call(qualifier,elem)>-1!==not;});}// Filtered directly for both simple and complex selectors\nreturn jQuery.filter(qualifier,elements,not);}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")";}if(elems.length===1&&elem.nodeType===1){return jQuery.find.matchesSelector(elem,expr)?[elem]:[];}return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1;}));};jQuery.fn.extend({find:function find(selector){var i,ret,len=this.length,self=this;if(typeof selector!=="string"){return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true;}}}));}ret=this.pushStack([]);for(i=0;i<len;i++){jQuery.find(selector,self[i],ret);}return len>1?jQuery.uniqueSort(ret):ret;},filter:function filter(selector){return this.pushStack(winnow(this,selector||[],false));},not:function not(selector){return this.pushStack(winnow(this,selector||[],true));},is:function is(selector){return!!winnow(this,// If this is a positional/relative selector, check membership in the returned set\n// so $("p:first").is("p:last") won\'t return true for a doc with two "p".\ntypeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length;}});// Initialize a jQuery object\n// A central reference to the root jQuery(document)\nvar rootjQuery,// A simple way to check for HTML strings\n// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n// Strict HTML recognition (#11290: must start with <)\n// Shortcut simple #id case for speed\nrquickExpr=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,init=jQuery.fn.init=function(selector,context,root){var match,elem;// HANDLE: $(""), $(null), $(undefined), $(false)\nif(!selector){return this;}// Method init() accepts an alternate rootjQuery\n// so migrate can support jQuery.sub (gh-2101)\nroot=root||rootjQuery;// Handle HTML strings\nif(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){// Assume that strings that start and end with <> are HTML and skip the regex check\nmatch=[null,selector,null];}else{match=rquickExpr.exec(selector);}// Match html or make sure no context is specified for #id\nif(match&&(match[1]||!context)){// HANDLE: $(html) -> $(array)\nif(match[1]){context=context instanceof jQuery?context[0]:context;// Option to run scripts is true for back-compat\n// Intentionally let the error be thrown if parseHTML is not present\njQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));// HANDLE: $(html, props)\nif(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){// Properties of context are called as methods if possible\nif(isFunction(this[match])){this[match](context[match]);// ...and otherwise set as attributes\n}else{this.attr(match,context[match]);}}}return this;// HANDLE: $(#id)\n}else{elem=document.getElementById(match[2]);if(elem){// Inject the element directly into the jQuery object\nthis[0]=elem;this.length=1;}return this;}// HANDLE: $(expr, $(...))\n}else if(!context||context.jquery){return(context||root).find(selector);// HANDLE: $(expr, context)\n// (which is just equivalent to: $(context).find(expr)\n}else{return this.constructor(context).find(selector);}// HANDLE: $(DOMElement)\n}else if(selector.nodeType){this[0]=selector;this.length=1;return this;// HANDLE: $(function)\n// Shortcut for document ready\n}else if(isFunction(selector)){return root.ready!==undefined?root.ready(selector):// Execute immediately if ready is not present\nselector(jQuery);}return jQuery.makeArray(selector,this);};// Give the init function the jQuery prototype for later instantiation\ninit.prototype=jQuery.fn;// Initialize central reference\nrootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,// Methods guaranteed to produce a unique set when starting from a unique set\nguaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({has:function has(target){var targets=jQuery(target,this),l=targets.length;return this.filter(function(){var i=0;for(;i<l;i++){if(jQuery.contains(this,targets[i])){return true;}}});},closest:function closest(selectors,context){var cur,i=0,l=this.length,matched=[],targets=typeof selectors!=="string"&&jQuery(selectors);// Positional selectors never match, since there\'s no _selection_ context\nif(!rneedsContext.test(selectors)){for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){// Always skip document fragments\nif(cur.nodeType<11&&(targets?targets.index(cur)>-1:// Don\'t pass non-elements to Sizzle\ncur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break;}}}}return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched);},// Determine the position of an element within the set\nindex:function index(elem){// No argument, return index in parent\nif(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;}// Index in selector\nif(typeof elem==="string"){return indexOf.call(jQuery(elem),this[0]);}// Locate the position of the desired element\nreturn indexOf.call(this,// If it receives a jQuery object, the first element is used\nelem.jquery?elem[0]:elem);},add:function add(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(selector,context))));},addBack:function addBack(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}return cur;}jQuery.each({parent:function parent(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function parents(elem){return dir(elem,"parentNode");},parentsUntil:function parentsUntil(elem,_i,until){return dir(elem,"parentNode",until);},next:function next(elem){return sibling(elem,"nextSibling");},prev:function prev(elem){return sibling(elem,"previousSibling");},nextAll:function nextAll(elem){return dir(elem,"nextSibling");},prevAll:function prevAll(elem){return dir(elem,"previousSibling");},nextUntil:function nextUntil(elem,_i,until){return dir(elem,"nextSibling",until);},prevUntil:function prevUntil(elem,_i,until){return dir(elem,"previousSibling",until);},siblings:function siblings(elem){return _siblings((elem.parentNode||{}).firstChild,elem);},children:function children(elem){return _siblings(elem.firstChild);},contents:function contents(elem){if(elem.contentDocument!=null&&// Support: IE 11+\n// <object> elements with no `data` attribute has an object\n// `contentDocument` with a `null` prototype.\ngetProto(elem.contentDocument)){return elem.contentDocument;}// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n// Treat the template element as a regular one in browsers that\n// don\'t support it.\nif(nodeName(elem,"template")){elem=elem.content||elem;}return jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until;}if(selector&&typeof selector==="string"){matched=jQuery.filter(selector,matched);}if(this.length>1){// Remove duplicates\nif(!guaranteedUnique[name]){jQuery.uniqueSort(matched);}// Reverse order for parents* and prev-derivatives\nif(rparentsprev.test(name)){matched.reverse();}}return this.pushStack(matched);};});var rnothtmlwhite=/[^\\x20\\t\\r\\n\\f]+/g;// Convert String-formatted options into Object-formatted ones\nfunction createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * "fired" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest "memorized"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */jQuery.Callbacks=function(options){// Convert options from String-formatted to Object-formatted if needed\n// (we check in cache first)\noptions=typeof options==="string"?createOptions(options):jQuery.extend({},options);var// Flag to know if list is currently firing\nfiring,// Last fire value for non-forgettable lists\nmemory,// Flag to know if list was already fired\n_fired,// Flag to prevent firing\n_locked,// Actual callback list\nlist=[],// Queue of execution data for repeatable lists\nqueue=[],// Index of currently firing callback (modified by add/remove as needed)\nfiringIndex=-1,// Fire callbacks\nfire=function fire(){// Enforce single-firing\n_locked=_locked||options.once;// Execute callbacks for all pending executions,\n// respecting firingIndex overrides and runtime changes\n_fired=firing=true;for(;queue.length;firingIndex=-1){memory=queue.shift();while(++firingIndex<list.length){// Run callback and check for early termination\nif(list[firingIndex].apply(memory[0],memory[1])===false&&options.stopOnFalse){// Jump to end and forget the data so .add doesn\'t re-fire\nfiringIndex=list.length;memory=false;}}}// Forget the data if we\'re done with it\nif(!options.memory){memory=false;}firing=false;// Clean up if we\'re done firing for good\nif(_locked){// Keep an empty list if we have data for future add calls\nif(memory){list=[];// Otherwise, this object is spent\n}else{list="";}}},// Actual Callbacks object\nself={// Add a callback or a collection of callbacks to the list\nadd:function add(){if(list){// If we have memory from a past run, we should fire after adding\nif(memory&&!firing){firingIndex=list.length-1;queue.push(memory);}(function add(args){jQuery.each(args,function(_,arg){if(isFunction(arg)){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&toType(arg)!=="string"){// Inspect recursively\nadd(arg);}});})(arguments);if(memory&&!firing){fire();}}return this;},// Remove a callback from the list\nremove:function remove(){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);// Handle firing indexes\nif(index<=firingIndex){firingIndex--;}}});return this;},// Check if a given callback is in the list.\n// If no argument is given, return whether or not list has callbacks attached.\nhas:function has(fn){return fn?jQuery.inArray(fn,list)>-1:list.length>0;},// Remove all callbacks from the list\nempty:function empty(){if(list){list=[];}return this;},// Disable .fire and .add\n// Abort any current/pending executions\n// Clear all callbacks and values\ndisable:function disable(){_locked=queue=[];list=memory="";return this;},disabled:function disabled(){return!list;},// Disable .fire\n// Also disable .add unless we have memory (since it would have no effect)\n// Abort any pending executions\nlock:function lock(){_locked=queue=[];if(!memory&&!firing){list=memory="";}return this;},locked:function locked(){return!!_locked;},// Call all callbacks with the given context and arguments\nfireWith:function fireWith(context,args){if(!_locked){args=args||[];args=[context,args.slice?args.slice():args];queue.push(args);if(!firing){fire();}}return this;},// Call all the callbacks with the given arguments\nfire:function fire(){self.fireWith(this,arguments);return this;},// To know if the callbacks have already been called at least once\nfired:function fired(){return!!_fired;}};return self;};function Identity(v){return v;}function Thrower(ex){throw ex;}function adoptValue(value,resolve,reject,noValue){var method;try{// Check for promise aspect first to privilege synchronous behavior\nif(value&&isFunction(method=value.promise)){method.call(value).done(resolve).fail(reject);// Other thenables\n}else if(value&&isFunction(method=value.then)){method.call(value,resolve,reject);// Other non-thenables\n}else{// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n// * false: [ value ].slice( 0 ) => resolve( value )\n// * true: [ value ].slice( 1 ) => resolve()\nresolve.apply(undefined,[value].slice(noValue));}// For Promises/A+, convert exceptions into rejections\n// Since jQuery.when doesn\'t unwrap thenables, we can skip the extra checks appearing in\n// Deferred#then to conditionally suppress rejection.\n}catch(value){// Support: Android 4.0 only\n// Strict mode functions invoked without .call/.apply get global-object context\nreject.apply(undefined,[value]);}}jQuery.extend({Deferred:function Deferred(func){var tuples=[// action, add listener, callbacks,\n// ... .then handlers, argument index, [final state]\n["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],_state="pending",_promise={state:function state(){return _state;},always:function always(){deferred.done(arguments).fail(arguments);return this;},"catch":function _catch(fn){return _promise.then(null,fn);},// Keep pipe for back-compat\npipe:function pipe(/* fnDone, fnFail, fnProgress */){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(_i,tuple){// Map tuples (progress, done, fail) to arguments (done, fail, progress)\nvar fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];// deferred.progress(function() { bind to newDefer or newDefer.notify })\n// deferred.done(function() { bind to newDefer or newDefer.resolve })\n// deferred.fail(function() { bind to newDefer or newDefer.reject })\ndeferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&isFunction(returned.promise)){returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);}else{newDefer[tuple[0]+"With"](this,fn?[returned]:arguments);}});});fns=null;}).promise();},then:function then(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){var that=this,args=arguments,mightThrow=function mightThrow(){var returned,then;// Support: Promises/A+ section 2.3.3.3.3\n// https://promisesaplus.com/#point-59\n// Ignore double-resolution attempts\nif(depth<maxDepth){return;}returned=handler.apply(that,args);// Support: Promises/A+ section 2.3.1\n// https://promisesaplus.com/#point-48\nif(returned===deferred.promise()){throw new TypeError("Thenable self-resolution");}// Support: Promises/A+ sections 2.3.3.1, 3.5\n// https://promisesaplus.com/#point-54\n// https://promisesaplus.com/#point-75\n// Retrieve `then` only once\nthen=returned&&(// Support: Promises/A+ section 2.3.4\n// https://promisesaplus.com/#point-64\n// Only check objects and functions for thenability\n_typeof(returned)==="object"||typeof returned==="function")&&returned.then;// Handle a returned thenable\nif(isFunction(then)){// Special processors (notify) just wait for resolution\nif(special){then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special));// Normal processors (resolve) also hook into progress\n}else{// ...and disregard older resolution values\nmaxDepth++;then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith));}// Handle all other returned values\n}else{// Only substitute handlers pass on context\n// and multiple values (non-spec behavior)\nif(handler!==Identity){that=undefined;args=[returned];}// Process the value(s)\n// Default process is resolve\n(special||deferred.resolveWith)(that,args);}},// Only normal processors (resolve) catch and reject exceptions\nprocess=special?mightThrow:function(){try{mightThrow();}catch(e){if(jQuery.Deferred.exceptionHook){jQuery.Deferred.exceptionHook(e,process.stackTrace);}// Support: Promises/A+ section 2.3.3.3.4.1\n// https://promisesaplus.com/#point-61\n// Ignore post-resolution exceptions\nif(depth+1>=maxDepth){// Only substitute handlers pass on context\n// and multiple values (non-spec behavior)\nif(handler!==Thrower){that=undefined;args=[e];}deferred.rejectWith(that,args);}}};// Support: Promises/A+ section 2.3.3.3.1\n// https://promisesaplus.com/#point-57\n// Re-resolve promises immediately to dodge false rejection from\n// subsequent errors\nif(depth){process();}else{// Call an optional hook to record the stack, in case of exception\n// since it\'s otherwise lost when execution goes async\nif(jQuery.Deferred.getStackHook){process.stackTrace=jQuery.Deferred.getStackHook();}window.setTimeout(process);}};}return jQuery.Deferred(function(newDefer){// progress_handlers.add( ... )\ntuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith));// fulfilled_handlers.add( ... )\ntuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity));// rejected_handlers.add( ... )\ntuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower));}).promise();},// Get a promise for this deferred\n// If obj is provided, the promise aspect is added to the object\npromise:function promise(obj){return obj!=null?jQuery.extend(obj,_promise):_promise;}},deferred={};// Add list-specific methods\njQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];// promise.progress = list.add\n// promise.done = list.add\n// promise.fail = list.add\n_promise[tuple[1]]=list.add;// Handle state\nif(stateString){list.add(function(){// state = "resolved" (i.e., fulfilled)\n// state = "rejected"\n_state=stateString;},// rejected_callbacks.disable\n// fulfilled_callbacks.disable\ntuples[3-i][2].disable,// rejected_handlers.disable\n// fulfilled_handlers.disable\ntuples[3-i][3].disable,// progress_callbacks.lock\ntuples[0][2].lock,// progress_handlers.lock\ntuples[0][3].lock);}// progress_handlers.fire\n// fulfilled_handlers.fire\n// rejected_handlers.fire\nlist.add(tuple[3].fire);// deferred.notify = function() { deferred.notifyWith(...) }\n// deferred.resolve = function() { deferred.resolveWith(...) }\n// deferred.reject = function() { deferred.rejectWith(...) }\ndeferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);return this;};// deferred.notifyWith = list.fireWith\n// deferred.resolveWith = list.fireWith\n// deferred.rejectWith = list.fireWith\ndeferred[tuple[0]+"With"]=list.fireWith;});// Make the deferred a promise\n_promise.promise(deferred);// Call given func if any\nif(func){func.call(deferred,deferred);}// All done!\nreturn deferred;},// Deferred helper\nwhen:function when(singleValue){var// count of uncompleted subordinates\nremaining=arguments.length,// count of unprocessed arguments\ni=remaining,// subordinate fulfillment data\nresolveContexts=Array(i),resolveValues=_slice.call(arguments),// the master Deferred\nmaster=jQuery.Deferred(),// subordinate callback factory\nupdateFunc=function updateFunc(i){return function(value){resolveContexts[i]=this;resolveValues[i]=arguments.length>1?_slice.call(arguments):value;if(! --remaining){master.resolveWith(resolveContexts,resolveValues);}};};// Single- and empty arguments are adopted like Promise.resolve\nif(remaining<=1){adoptValue(singleValue,master.done(updateFunc(i)).resolve,master.reject,!remaining);// Use .then() to unwrap secondary thenables (cf. gh-3000)\nif(master.state()==="pending"||isFunction(resolveValues[i]&&resolveValues[i].then)){return master.then();}}// Multiple arguments are aggregated like Promise.all array elements\nwhile(i--){adoptValue(resolveValues[i],updateFunc(i),master.reject);}return master.promise();}});// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery.Deferred.exceptionHook=function(error,stack){// Support: IE 8 - 9 only\n// Console exists when dev tools are open, which can happen at any time\nif(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,stack);}};jQuery.readyException=function(error){window.setTimeout(function(){throw error;});};// The deferred used on DOM ready\nvar readyList=jQuery.Deferred();jQuery.fn.ready=function(fn){readyList.then(fn)// Wrap jQuery.readyException in a function so that the lookup\n// happens at the time of error handling instead of callback\n// registration.\n.catch(function(error){jQuery.readyException(error);});return this;};jQuery.extend({// Is the DOM ready to be used? Set to true once it occurs.\nisReady:false,// A counter to track how many items to wait for before\n// the ready event fires. See #6781\nreadyWait:1,// Handle when the DOM is ready\nready:function ready(wait){// Abort if there are pending holds or we\'re already ready\nif(wait===true?--jQuery.readyWait:jQuery.isReady){return;}// Remember that the DOM is ready\njQuery.isReady=true;// If a normal DOM Ready event fired, decrement, and wait if need be\nif(wait!==true&&--jQuery.readyWait>0){return;}// If there are functions bound, to execute\nreadyList.resolveWith(document,[jQuery]);}});jQuery.ready.then=readyList.then;// The ready event handler and self cleanup method\nfunction completed(){document.removeEventListener("DOMContentLoaded",completed);window.removeEventListener("load",completed);jQuery.ready();}// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals "interactive" too soon\nif(document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll){// Handle it asynchronously to allow scripts the opportunity to delay ready\nwindow.setTimeout(jQuery.ready);}else{// Use the handy event callback\ndocument.addEventListener("DOMContentLoaded",completed);// A fallback to window.onload, that will always work\nwindow.addEventListener("load",completed);}// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it\'s a function\nvar access=function access(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;// Sets many values\nif(toType(key)==="object"){chainable=true;for(i in key){access(elems,fn,i,key[i],true,emptyGet,raw);}// Sets one value\n}else if(value!==undefined){chainable=true;if(!isFunction(value)){raw=true;}if(bulk){// Bulk operations run against the entire set\nif(raw){fn.call(elems,value);fn=null;// ...except when executing function values\n}else{bulk=fn;fn=function fn(elem,_key,value){return bulk.call(jQuery(elem),value);};}}if(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}if(chainable){return elems;}// Gets\nif(bulk){return fn.call(elems);}return len?fn(elems[0],key):emptyGet;};// Matches dashed string for camelizing\nvar rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;// Used by camelCase as callback to replace()\nfunction fcamelCase(_all,letter){return letter.toUpperCase();}// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (#9572)\nfunction camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);}var acceptData=function acceptData(owner){// Accepts only:\n//  - Node\n//    - Node.ELEMENT_NODE\n//    - Node.DOCUMENT_NODE\n//  - Object\n//    - Any\nreturn owner.nodeType===1||owner.nodeType===9||!+owner.nodeType;};function Data(){this.expando=jQuery.expando+Data.uid++;}Data.uid=1;Data.prototype={cache:function cache(owner){// Check if the owner object already has a cache\nvar value=owner[this.expando];// If not, create one\nif(!value){value={};// We can accept data for non-element nodes in modern browsers,\n// but we should not, see #8335.\n// Always return an empty object.\nif(acceptData(owner)){// If it is a node unlikely to be stringify-ed or looped over\n// use plain assignment\nif(owner.nodeType){owner[this.expando]=value;// Otherwise secure it in a non-enumerable property\n// configurable must be true to allow the property to be\n// deleted when data is removed\n}else{Object.defineProperty(owner,this.expando,{value:value,configurable:true});}}}return value;},set:function set(owner,data,value){var prop,cache=this.cache(owner);// Handle: [ owner, key, value ] args\n// Always use camelCase key (gh-2257)\nif(typeof data==="string"){cache[camelCase(data)]=value;// Handle: [ owner, { properties } ] args\n}else{// Copy the properties one-by-one to the cache object\nfor(prop in data){cache[camelCase(prop)]=data[prop];}}return cache;},get:function get(owner,key){return key===undefined?this.cache(owner):// Always use camelCase key (gh-2257)\nowner[this.expando]&&owner[this.expando][camelCase(key)];},access:function access(owner,key,value){// In cases where either:\n//\n//   1. No key was specified\n//   2. A string key was specified, but no value provided\n//\n// Take the "read" path and allow the get method to determine\n// which value to return, respectively either:\n//\n//   1. The entire cache object\n//   2. The data stored at the key\n//\nif(key===undefined||key&&typeof key==="string"&&value===undefined){return this.get(owner,key);}// When the key is not a string, or both a key and value\n// are specified, set or extend (existing objects) with either:\n//\n//   1. An object of properties\n//   2. A key and value\n//\nthis.set(owner,key,value);// Since the "set" path can have two possible entry points\n// return the expected data based on which path was taken[*]\nreturn value!==undefined?value:key;},remove:function remove(owner,key){var i,cache=owner[this.expando];if(cache===undefined){return;}if(key!==undefined){// Support array or space separated string of keys\nif(Array.isArray(key)){// If key is an array of keys...\n// We always set camelCase keys, so remove that.\nkey=key.map(camelCase);}else{key=camelCase(key);// If a key with the spaces exists, use it.\n// Otherwise, create an array by matching non-whitespace\nkey=key in cache?[key]:key.match(rnothtmlwhite)||[];}i=key.length;while(i--){delete cache[key[i]];}}// Remove the expando if there\'s no more data\nif(key===undefined||jQuery.isEmptyObject(cache)){// Support: Chrome <=35 - 45\n// Webkit & Blink performance suffers when deleting properties\n// from DOM nodes, so set to undefined instead\n// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\nif(owner.nodeType){owner[this.expando]=undefined;}else{delete owner[this.expando];}}},hasData:function hasData(owner){var cache=owner[this.expando];return cache!==undefined&&!jQuery.isEmptyObject(cache);}};var dataPriv=new Data();var dataUser=new Data();//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module\'s maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support "private" and "user" data.\n//\t4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\nvar rbrace=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,rmultiDash=/[A-Z]/g;function getData(data){if(data==="true"){return true;}if(data==="false"){return false;}if(data==="null"){return null;}// Only convert to a number if it doesn\'t change the string\nif(data===+data+""){return+data;}if(rbrace.test(data)){return JSON.parse(data);}return data;}function dataAttr(elem,key,data){var name;// If nothing was found internally, try to fetch any\n// data from the HTML5 data-* attribute\nif(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$&").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=getData(data);}catch(e){}// Make sure we set the data so it isn\'t changed later\ndataUser.set(elem,key,data);}else{data=undefined;}}return data;}jQuery.extend({hasData:function hasData(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem);},data:function data(elem,name,_data){return dataUser.access(elem,name,_data);},removeData:function removeData(elem,name){dataUser.remove(elem,name);},// TODO: Now that all calls to _data and _removeData have been replaced\n// with direct calls to dataPriv methods, these can be deprecated.\n_data:function _data(elem,name,data){return dataPriv.access(elem,name,data);},_removeData:function _removeData(elem,name){dataPriv.remove(elem,name);}});jQuery.fn.extend({data:function data(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;// Gets all values\nif(key===undefined){if(this.length){data=dataUser.get(elem);if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){// Support: IE 11 only\n// The attrs elements can be null (#14894)\nif(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}dataPriv.set(elem,"hasDataAttrs",true);}}return data;}// Sets multiple values\nif(_typeof(key)==="object"){return this.each(function(){dataUser.set(this,key);});}return access(this,function(value){var data;// The calling jQuery object (element matches) is not empty\n// (and therefore has an element appears at this[ 0 ]) and the\n// `value` parameter was not undefined. An empty jQuery object\n// will result in `undefined` for elem = this[ 0 ] which will\n// throw an exception if an attempt to read a data cache is made.\nif(elem&&value===undefined){// Attempt to get data from the cache\n// The key will always be camelCased in Data\ndata=dataUser.get(elem,key);if(data!==undefined){return data;}// Attempt to "discover" the data in\n// HTML5 custom data-* attrs\ndata=dataAttr(elem,key);if(data!==undefined){return data;}// We tried really hard, but the data doesn\'t exist.\nreturn;}// Set the data...\nthis.each(function(){// We always store the camelCased key\ndataUser.set(this,key,value);});},null,value,arguments.length>1,null,true);},removeData:function removeData(key){return this.each(function(){dataUser.remove(this,key);});}});jQuery.extend({queue:function queue(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=dataPriv.get(elem,type);// Speed up dequeue by getting out quickly if this is just a lookup\nif(data){if(!queue||Array.isArray(data)){queue=dataPriv.access(elem,type,jQuery.makeArray(data));}else{queue.push(data);}}return queue||[];}},dequeue:function dequeue(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function next(){jQuery.dequeue(elem,type);};// If the fx queue is dequeued, always remove the progress sentinel\nif(fn==="inprogress"){fn=queue.shift();startLength--;}if(fn){// Add a progress sentinel to prevent the fx queue from being\n// automatically dequeued\nif(type==="fx"){queue.unshift("inprogress");}// Clear up the last queue stop function\ndelete hooks.stop;fn.call(elem,next,hooks);}if(!startLength&&hooks){hooks.empty.fire();}},// Not public - generate a queueHooks object, or return the current one\n_queueHooks:function _queueHooks(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){dataPriv.remove(elem,[type+"queue",key]);})});}});jQuery.fn.extend({queue:function queue(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;}if(arguments.length<setter){return jQuery.queue(this[0],type);}return data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);// Ensure a hooks for this queue\njQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);}});},dequeue:function dequeue(type){return this.each(function(){jQuery.dequeue(this,type);});},clearQueue:function clearQueue(type){return this.queue(type||"fx",[]);},// Get a promise resolved when queues of a certain type\n// are emptied (fx is the type by default)\npromise:function promise(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function resolve(){if(! --count){defer.resolveWith(elements,[elements]);}};if(typeof type!=="string"){obj=type;type=undefined;}type=type||"fx";while(i--){tmp=dataPriv.get(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve);}}resolve();return defer.promise(obj);}});var pnum=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source;var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");var cssExpand=["Top","Right","Bottom","Left"];var documentElement=document.documentElement;var isAttached=function isAttached(elem){return jQuery.contains(elem.ownerDocument,elem);},composed={composed:true};// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only\n// Check attachment across shadow DOM boundaries when possible (gh-3504)\n// Support: iOS 10.0-10.2 only\n// Early iOS 10 versions support `attachShadow` but not `getRootNode`,\n// leading to errors. We need to check for `getRootNode`.\nif(documentElement.getRootNode){isAttached=function isAttached(elem){return jQuery.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument;};}var isHiddenWithinTree=function isHiddenWithinTree(elem,el){// isHiddenWithinTree might be called from jQuery#filter function;\n// in that case, element will be second argument\nelem=el||elem;// Inline style trumps all\nreturn elem.style.display==="none"||elem.style.display===""&&// Otherwise, check computed style\n// Support: Firefox <=43 - 45\n// Disconnected elements can have computed display: none, so first confirm that elem is\n// in the document.\nisAttached(elem)&&jQuery.css(elem,"display")==="none";};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur();}:function(){return jQuery.css(elem,prop,"");},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),// Starting value computation is required for potential unit mismatches\ninitialInUnit=elem.nodeType&&(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){// Support: Firefox <=54\n// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\ninitial=initial/2;// Trust units reported by jQuery.css\nunit=unit||initialInUnit[3];// Iteratively approximate from a nonzero starting point\ninitialInUnit=+initial||1;while(maxIterations--){// Evaluate and update our best guess (doubling guesses that zero out).\n// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\njQuery.style(elem,prop,initialInUnit+unit);if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){maxIterations=0;}initialInUnit=initialInUnit/scale;}initialInUnit=initialInUnit*2;jQuery.style(elem,prop,initialInUnit+unit);// Make sure we update the tween properties later on\nvalueParts=valueParts||[];}if(valueParts){initialInUnit=+initialInUnit||+initial||0;// Apply relative offset (+=/-=) if specified\nadjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2];if(tween){tween.unit=unit;tween.start=initialInUnit;tween.end=adjusted;}}return adjusted;}var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];if(display){return display;}temp=doc.body.appendChild(doc.createElement(nodeName));display=jQuery.css(temp,"display");temp.parentNode.removeChild(temp);if(display==="none"){display="block";}defaultDisplayMap[nodeName]=display;return display;}function showHide(elements,show){var display,elem,values=[],index=0,length=elements.length;// Determine new display value for elements that need to change\nfor(;index<length;index++){elem=elements[index];if(!elem.style){continue;}display=elem.style.display;if(show){// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n// check is required in this first loop unless we have a nonempty display value (either\n// inline or about-to-be-restored)\nif(display==="none"){values[index]=dataPriv.get(elem,"display")||null;if(!values[index]){elem.style.display="";}}if(elem.style.display===""&&isHiddenWithinTree(elem)){values[index]=getDefaultDisplay(elem);}}else{if(display!=="none"){values[index]="none";// Remember what we\'re overwriting\ndataPriv.set(elem,"display",display);}}}// Set the display of the elements in a second loop to avoid constant reflow\nfor(index=0;index<length;index++){if(values[index]!=null){elements[index].style.display=values[index];}}return elements;}jQuery.fn.extend({show:function show(){return showHide(this,true);},hide:function hide(){return showHide(this);},toggle:function toggle(state){if(typeof state==="boolean"){return state?this.show():this.hide();}return this.each(function(){if(isHiddenWithinTree(this)){jQuery(this).show();}else{jQuery(this).hide();}});}});var rcheckableType=/^(?:checkbox|radio)$/i;var rtagName=/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i;var rscriptType=/^$|^module$|\\/(?:java|ecma)script/i;(function(){var fragment=document.createDocumentFragment(),div=fragment.appendChild(document.createElement("div")),input=document.createElement("input");// Support: Android 4.0 - 4.3 only\n// Check state lost if the name is set (#11217)\n// Support: Windows Web Apps (WWA)\n// `name` and `type` must use .setAttribute for WWA (#14901)\ninput.setAttribute("type","radio");input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);// Support: Android <=4.1 only\n// Older WebKit doesn\'t clone checked state correctly in fragments\nsupport.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;// Support: IE <=11 only\n// Make sure textarea (and checkbox) defaultValue is properly cloned\ndiv.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;// Support: IE <=9 only\n// IE <=9 replaces <option> tags with their contents when inserted outside of\n// the select element.\ndiv.innerHTML="<option></option>";support.option=!!div.lastChild;})();// We have to close these tags to support XHTML (#13200)\nvar wrapMap={// XHTML parsers do not magically insert elements in the\n// same way that tag soup parsers do. So we cannot shorten\n// this by omitting <tbody> or other required elements.\nthead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;// Support: IE <=9 only\nif(!support.option){wrapMap.optgroup=wrapMap.option=[1,"<select multiple=\'multiple\'>","</select>"];}function getAll(context,tag){// Support: IE <=9 - 11 only\n// Use typeof to avoid zero-argument method invocation on host objects (#15151)\nvar ret;if(typeof context.getElementsByTagName!=="undefined"){ret=context.getElementsByTagName(tag||"*");}else if(typeof context.querySelectorAll!=="undefined"){ret=context.querySelectorAll(tag||"*");}else{ret=[];}if(tag===undefined||tag&&nodeName(context,tag)){return jQuery.merge([context],ret);}return ret;}// Mark scripts as having already been evaluated\nfunction setGlobalEval(elems,refElements){var i=0,l=elems.length;for(;i<l;i++){dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"));}}var rhtml=/<|&#?\\w+;/;function buildFragment(elems,context,scripts,selection,ignored){var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;for(;i<l;i++){elem=elems[i];if(elem||elem===0){// Add nodes directly\nif(toType(elem)==="object"){// Support: Android <=4.0 only, PhantomJS 1 only\n// push.apply(_, arraylike) throws on ancient WebKit\njQuery.merge(nodes,elem.nodeType?[elem]:elem);// Convert non-html into a text node\n}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));// Convert html into DOM nodes\n}else{tmp=tmp||fragment.appendChild(context.createElement("div"));// Deserialize a standard representation\ntag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];// Descend through wrappers to the right content\nj=wrap[0];while(j--){tmp=tmp.lastChild;}// Support: Android <=4.0 only, PhantomJS 1 only\n// push.apply(_, arraylike) throws on ancient WebKit\njQuery.merge(nodes,tmp.childNodes);// Remember the top-level container\ntmp=fragment.firstChild;// Ensure the created nodes are orphaned (#12392)\ntmp.textContent="";}}}// Remove wrapper from fragment\nfragment.textContent="";i=0;while(elem=nodes[i++]){// Skip elements already in the context collection (trac-4087)\nif(selection&&jQuery.inArray(elem,selection)>-1){if(ignored){ignored.push(elem);}continue;}attached=isAttached(elem);// Append to fragment\ntmp=getAll(fragment.appendChild(elem),"script");// Preserve script evaluation history\nif(attached){setGlobalEval(tmp);}// Capture executables\nif(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem);}}}}return fragment;}var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rtypenamespace=/^([^.]*)(?:\\.(.+)|)/;function returnTrue(){return true;}function returnFalse(){return false;}// Support: IE <=9 - 11+\n// focus() and blur() are asynchronous, except when they are no-op.\n// So expect focus to be synchronous when the element is already active,\n// and blur to be synchronous when the element is not already active.\n// (focus and blur are always synchronous in other supported browsers,\n// this just defines when we can count on it).\nfunction expectSync(elem,type){return elem===safeActiveElement()===(type==="focus");}// Support: IE <=9 only\n// Accessing document.activeElement can throw unexpectedly\n// https://bugs.jquery.com/ticket/13393\nfunction safeActiveElement(){try{return document.activeElement;}catch(err){}}function _on(elem,types,selector,data,fn,one){var origFn,type;// Types can be a map of types/handlers\nif(_typeof(types)==="object"){// ( types-Object, selector, data )\nif(typeof selector!=="string"){// ( types-Object, data )\ndata=data||selector;selector=undefined;}for(type in types){_on(elem,type,selector,data,types[type],one);}return elem;}if(data==null&&fn==null){// ( types, fn )\nfn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector==="string"){// ( types, selector, fn )\nfn=data;data=undefined;}else{// ( types, data, fn )\nfn=data;data=selector;selector=undefined;}}if(fn===false){fn=returnFalse;}else if(!fn){return elem;}if(one===1){origFn=fn;fn=function fn(event){// Can use an empty set, since event contains the info\njQuery().off(event);return origFn.apply(this,arguments);};// Use same guid so caller can remove using origFn\nfn.guid=origFn.guid||(origFn.guid=jQuery.guid++);}return elem.each(function(){jQuery.event.add(this,types,fn,data,selector);});}/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards\' addEvent library for many of the ideas.\n */jQuery.event={global:{},add:function add(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);// Only attach events to objects that accept data\nif(!acceptData(elem)){return;}// Caller can pass in an object of custom data in lieu of the handler\nif(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}// Ensure that invalid selectors throw exceptions at attach time\n// Evaluate against documentElement in case elem is a non-element node (e.g., document)\nif(selector){jQuery.find.matchesSelector(documentElement,selector);}// Make sure that the handler has a unique ID, used to find/remove it later\nif(!handler.guid){handler.guid=jQuery.guid++;}// Init the element\'s event structure and main handler, if this is the first\nif(!(events=elemData.events)){events=elemData.events=Object.create(null);}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){// Discard the second event of a jQuery.event.trigger() and\n// when an event is called after a page has unloaded\nreturn typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined;};}// Handle multiple events separated by a space\ntypes=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();// There *must* be a type, no attaching namespace-only handlers\nif(!type){continue;}// If event changes its type, use the special event handlers for the changed type\nspecial=jQuery.event.special[type]||{};// If selector defined, determine special event api type, otherwise given type\ntype=(selector?special.delegateType:special.bindType)||type;// Update special based on newly reset type\nspecial=jQuery.event.special[type]||{};// handleObj is passed to all event handlers\nhandleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);// Init the event handler queue if we\'re the first\nif(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;// Only use addEventListener if the special events handler returns false\nif(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle);}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}// Add to the element\'s handler list, delegates in front\nif(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}// Keep track of which events have ever been used, for event optimization\njQuery.event.global[type]=true;}},// Detach an event or set of events from an element\nremove:function remove(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!elemData||!(events=elemData.events)){return;}// Once for each type.namespace in types; type may be omitted\ntypes=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();// Unbind all events (on this namespace, if provided) for the element\nif(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);}continue;}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\\\.)"+namespaces.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)");// Remove matching events\norigCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}if(special.remove){special.remove.call(elem,handleObj);}}}// Remove generic event handler if we removed something and no more handlers exist\n// (avoids potential for endless recursion during removal of special event handlers)\nif(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);}delete events[type];}}// Remove data and the expando if it\'s no longer used\nif(jQuery.isEmptyObject(events)){dataPriv.remove(elem,"handle events");}},dispatch:function dispatch(nativeEvent){var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),// Make a writable jQuery.Event from the native event object\nevent=jQuery.event.fix(nativeEvent),handlers=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=jQuery.event.special[event.type]||{};// Use the fix-ed jQuery.Event rather than the (read-only) native event\nargs[0]=event;for(i=1;i<arguments.length;i++){args[i]=arguments[i];}event.delegateTarget=this;// Call the preDispatch hook for the mapped type, and let it bail if desired\nif(special.preDispatch&&special.preDispatch.call(this,event)===false){return;}// Determine handlers\nhandlerQueue=jQuery.event.handlers.call(this,event,handlers);// Run delegates first; they may want to stop propagation beneath us\ni=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){// If the event is namespaced, then each handler is only invoked if it is\n// specially universal or its namespaces are a superset of the event\'s.\nif(!event.rnamespace||handleObj.namespace===false||event.rnamespace.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}// Call the postDispatch hook for the mapped type\nif(special.postDispatch){special.postDispatch.call(this,event);}return event.result;},handlers:function handlers(event,_handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=_handlers.delegateCount,cur=event.target;// Find delegate handlers\nif(delegateCount&&// Support: IE <=9\n// Black-hole SVG <use> instance trees (trac-13180)\ncur.nodeType&&// Support: Firefox <=42\n// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n// Support: IE 11 only\n// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)\n!(event.type==="click"&&event.button>=1)){for(;cur!==this;cur=cur.parentNode||this){// Don\'t check non-elements (#13208)\n// Don\'t process clicks on disabled elements (#6911, #8165, #11382, #11764)\nif(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){matchedHandlers=[];matchedSelectors={};for(i=0;i<delegateCount;i++){handleObj=_handlers[i];// Don\'t conflict with Object.prototype properties (#13203)\nsel=handleObj.selector+" ";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>-1:jQuery.find(sel,this,null,[cur]).length;}if(matchedSelectors[sel]){matchedHandlers.push(handleObj);}}if(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers});}}}}// Add the remaining (directly-bound) handlers\ncur=this;if(delegateCount<_handlers.length){handlerQueue.push({elem:cur,handlers:_handlers.slice(delegateCount)});}return handlerQueue;},addProp:function addProp(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:true,configurable:true,get:isFunction(hook)?function(){if(this.originalEvent){return hook(this.originalEvent);}}:function(){if(this.originalEvent){return this.originalEvent[name];}},set:function set(value){Object.defineProperty(this,name,{enumerable:true,configurable:true,writable:true,value:value});}});},fix:function fix(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent);},special:{load:{// Prevent triggered image.load events from bubbling to window.load\nnoBubble:true},click:{// Utilize native event to ensure correct state for checkable inputs\nsetup:function setup(data){// For mutual compressibility with _default, replace `this` access with a local var.\n// `|| data` is dead code meant only to preserve the variable through minification.\nvar el=this||data;// Claim the first handler\nif(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){// dataPriv.set( el, "click", ... )\nleverageNative(el,"click",returnTrue);}// Return false to allow normal processing in the caller\nreturn false;},trigger:function trigger(data){// For mutual compressibility with _default, replace `this` access with a local var.\n// `|| data` is dead code meant only to preserve the variable through minification.\nvar el=this||data;// Force setup before triggering a click\nif(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){leverageNative(el,"click");}// Return non-false to allow normal event-path propagation\nreturn true;},// For cross-browser consistency, suppress native .click() on links\n// Also prevent it if we\'re currently inside a leveraged native-event stack\n_default:function _default(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,"input")&&dataPriv.get(target,"click")||nodeName(target,"a");}},beforeunload:{postDispatch:function postDispatch(event){// Support: Firefox 20+\n// Firefox doesn\'t alert if the returnValue field is not set.\nif(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}}};// Ensure the presence of an event listener that handles manually-triggered\n// synthetic events by interrupting progress until reinvoked in response to\n// *native* events that it fires directly, ensuring that state changes have\n// already occurred before other listeners are invoked.\nfunction leverageNative(el,type,expectSync){// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add\nif(!expectSync){if(dataPriv.get(el,type)===undefined){jQuery.event.add(el,type,returnTrue);}return;}// Register the controller as a special universal handler for all event namespaces\ndataPriv.set(el,type,false);jQuery.event.add(el,type,{namespace:false,handler:function handler(event){var notAsync,result,saved=dataPriv.get(this,type);if(event.isTrigger&1&&this[type]){// Interrupt processing of the outer synthetic .trigger()ed event\n// Saved data should be false in such cases, but might be a leftover capture object\n// from an async native handler (gh-4350)\nif(!saved.length){// Store arguments for use when handling the inner native event\n// There will always be at least one argument (an event object), so this array\n// will not be confused with a leftover capture object.\nsaved=_slice.call(arguments);dataPriv.set(this,type,saved);// Trigger the native event and capture its result\n// Support: IE <=9 - 11+\n// focus() and blur() are asynchronous\nnotAsync=expectSync(this,type);this[type]();result=dataPriv.get(this,type);if(saved!==result||notAsync){dataPriv.set(this,type,false);}else{result={};}if(saved!==result){// Cancel the outer synthetic event\nevent.stopImmediatePropagation();event.preventDefault();return result.value;}// If this is an inner synthetic event for an event with a bubbling surrogate\n// (focus or blur), assume that the surrogate already propagated from triggering the\n// native event and prevent that from happening again here.\n// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n// less bad than duplication.\n}else if((jQuery.event.special[type]||{}).delegateType){event.stopPropagation();}// If this is a native event triggered above, everything is now in order\n// Fire an inner synthetic event with the original arguments\n}else if(saved.length){// ...and capture the result\ndataPriv.set(this,type,{value:jQuery.event.trigger(// Support: IE <=9 - 11+\n// Extend with the prototype to reset the above stopImmediatePropagation()\njQuery.extend(saved[0],jQuery.Event.prototype),saved.slice(1),this)});// Abort handling of the native event\nevent.stopImmediatePropagation();}}});}jQuery.removeEvent=function(elem,type,handle){// This "if" is needed for plain objects\nif(elem.removeEventListener){elem.removeEventListener(type,handle);}};jQuery.Event=function(src,props){// Allow instantiation without the \'new\' keyword\nif(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);}// Event object\nif(src&&src.type){this.originalEvent=src;this.type=src.type;// Events bubbling up the document may have been marked as prevented\n// by a handler lower down the tree; reflect the correct value.\nthis.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&// Support: Android <=2.3 only\nsrc.returnValue===false?returnTrue:returnFalse;// Create target properties\n// Support: Safari <=6 - 7 only\n// Target should not be a text node (#504, #13143)\nthis.target=src.target&&src.target.nodeType===3?src.target.parentNode:src.target;this.currentTarget=src.currentTarget;this.relatedTarget=src.relatedTarget;// Event type\n}else{this.type=src;}// Put explicitly provided properties onto the event object\nif(props){jQuery.extend(this,props);}// Create a timestamp if incoming event doesn\'t have one\nthis.timeStamp=src&&src.timeStamp||Date.now();// Mark it as fixed\nthis[jQuery.expando]=true;};// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:false,preventDefault:function preventDefault(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&!this.isSimulated){e.preventDefault();}},stopPropagation:function stopPropagation(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopPropagation();}},stopImmediatePropagation:function stopImmediatePropagation(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopImmediatePropagation();}this.stopPropagation();}};// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,"char":true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:function which(event){var button=event.button;// Add which for key events\nif(event.which==null&&rkeyEvent.test(event.type)){return event.charCode!=null?event.charCode:event.keyCode;}// Add which for click: 1 === left; 2 === middle; 3 === right\nif(!event.which&&button!==undefined&&rmouseEvent.test(event.type)){if(button&1){return 1;}if(button&2){return 3;}if(button&4){return 2;}return 0;}return event.which;}},jQuery.event.addProp);jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){jQuery.event.special[type]={// Utilize native event if possible so blur/focus sequence is correct\nsetup:function setup(){// Claim the first handler\n// dataPriv.set( this, "focus", ... )\n// dataPriv.set( this, "blur", ... )\nleverageNative(this,type,expectSync);// Return false to allow normal processing in the caller\nreturn false;},trigger:function trigger(){// Force setup before trigger\nleverageNative(this,type);// Return non-false to allow normal event-path propagation\nreturn true;},delegateType:delegateType};});// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function handle(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;// For mouseenter/leave call the handler if related is outside the target.\n// NB: No relatedTarget if the mouse left/entered the browser window\nif(!related||related!==target&&!jQuery.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}return ret;}};});jQuery.fn.extend({on:function on(types,selector,data,fn){return _on(this,types,selector,data,fn);},one:function one(types,selector,data,fn){return _on(this,types,selector,data,fn,1);},off:function off(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){// ( event )  dispatched jQuery.Event\nhandleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}if(_typeof(types)==="object"){// ( types-object [, selector] )\nfor(type in types){this.off(type,selector,types[type]);}return this;}if(selector===false||typeof selector==="function"){// ( types [, fn] )\nfn=selector;selector=undefined;}if(fn===false){fn=returnFalse;}return this.each(function(){jQuery.event.remove(this,types,fn,selector);});}});var// Support: IE <=10 - 11, Edge 12 - 13 only\n// In IE/Edge using regex groups here causes severe slowdowns.\n// See https://connect.microsoft.com/IE/feedback/details/1736512/\nrnoInnerhtml=/<script|<style|<link/i,// checked="checked" or checked\nrchecked=/checked\\s*(?:[^=]|=\\s*.checked.)/i,rcleanScript=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;// Prefer a tbody over its parent table for containing new rows\nfunction manipulationTarget(elem,content){if(nodeName(elem,"table")&&nodeName(content.nodeType!==11?content:content.firstChild,"tr")){return jQuery(elem).children("tbody")[0]||elem;}return elem;}// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript(elem){elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;return elem;}function restoreScript(elem){if((elem.type||"").slice(0,5)==="true/"){elem.type=elem.type.slice(5);}else{elem.removeAttribute("type");}return elem;}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,udataOld,udataCur,events;if(dest.nodeType!==1){return;}// 1. Copy private data: events, handlers, etc.\nif(dataPriv.hasData(src)){pdataOld=dataPriv.get(src);events=pdataOld.events;if(events){dataPriv.remove(dest,"handle events");for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i]);}}}}// 2. Copy user data\nif(dataUser.hasData(src)){udataOld=dataUser.access(src);udataCur=jQuery.extend({},udataOld);dataUser.set(dest,udataCur);}}// Fix IE bugs, see support tests\nfunction fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();// Fails to persist the checked state of a cloned checkbox or radio button.\nif(nodeName==="input"&&rcheckableType.test(src.type)){dest.checked=src.checked;// Fails to return the selected option to the default selected state when cloning options\n}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue;}}function domManip(collection,args,callback,ignored){// Flatten any nested arrays\nargs=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);// We can\'t cloneNode fragments that contain checked, in WebKit\nif(valueIsFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return collection.each(function(index){var self=collection.eq(index);if(valueIsFunction){args[0]=value.call(this,index,self.html());}domManip(self,args,callback,ignored);});}if(l){fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;}// Require either new content or an interest in ignored elements to invoke the callback\nif(first||ignored){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;// Use the original fragment for the last item\n// instead of the first because it can end up\n// being emptied incorrectly in certain situations (#8070).\nfor(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);// Keep references to cloned scripts for later restoration\nif(hasScripts){// Support: Android <=4.0 only, PhantomJS 1 only\n// push.apply(_, arraylike) throws on ancient WebKit\njQuery.merge(scripts,getAll(node,"script"));}}callback.call(collection[i],node,i);}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;// Reenable scripts\njQuery.map(scripts,restoreScript);// Evaluate executable scripts on first document insertion\nfor(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src&&(node.type||"").toLowerCase()!=="module"){// Optional AJAX dependency, but won\'t run scripts if not present\nif(jQuery._evalUrl&&!node.noModule){jQuery._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc);}}else{DOMEval(node.textContent.replace(rcleanScript,""),node,doc);}}}}}}return collection;}function _remove(elem,selector,keepData){var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;for(;(node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){jQuery.cleanData(getAll(node));}if(node.parentNode){if(keepData&&isAttached(node)){setGlobalEval(getAll(node,"script"));}node.parentNode.removeChild(node);}}return elem;}jQuery.extend({htmlPrefilter:function htmlPrefilter(html){return html;},clone:function clone(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=isAttached(elem);// Fix IE cloning issues\nif(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2\ndestElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i]);}}// Copy the events from the original to the clone\nif(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i]);}}else{cloneCopyEvent(elem,clone);}}// Preserve script evaluation history\ndestElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"));}// Return the cloned set\nreturn clone;},cleanData:function cleanData(elems){var data,elem,type,special=jQuery.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);// This is a shortcut to avoid jQuery.event.remove\'s overhead\n}else{jQuery.removeEvent(elem,type,data.handle);}}}// Support: Chrome <=35 - 45+\n// Assign undefined instead of using delete, see Data#remove\nelem[dataPriv.expando]=undefined;}if(elem[dataUser.expando]){// Support: Chrome <=35 - 45+\n// Assign undefined instead of using delete, see Data#remove\nelem[dataUser.expando]=undefined;}}}}});jQuery.fn.extend({detach:function detach(selector){return _remove(this,selector,true);},remove:function remove(selector){return _remove(this,selector);},text:function text(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value;}});},null,value,arguments.length);},append:function append(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem);}});},prepend:function prepend(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild);}});},before:function before(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this);}});},after:function after(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling);}});},empty:function empty(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){// Prevent memory leaks\njQuery.cleanData(getAll(elem,false));// Remove any remaining nodes\nelem.textContent="";}}return this;},clone:function clone(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function html(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML;}// See if we can take a shortcut and just use innerHTML\nif(typeof value==="string"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=jQuery.htmlPrefilter(value);try{for(;i<l;i++){elem=this[i]||{};// Remove element nodes and prevent memory leaks\nif(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value;}}elem=0;// If using innerHTML throws an exception, use the fallback method\n}catch(e){}}if(elem){this.empty().append(value);}},null,value,arguments.length);},replaceWith:function replaceWith(){var ignored=[];// Make the changes, replacing each non-ignored context element with the new content\nreturn domManip(this,arguments,function(elem){var parent=this.parentNode;if(jQuery.inArray(this,ignored)<0){jQuery.cleanData(getAll(this));if(parent){parent.replaceChild(elem,this);}}// Force callback invocation\n},ignored);}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);// Support: Android <=4.0 only, PhantomJS 1 only\n// .get() because push.apply(_, arraylike) throws on ancient WebKit\npush.apply(ret,elems.get());}return this.pushStack(ret);};});var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles=function getStyles(elem){// Support: IE <=11 only, Firefox <=30 (#15098, #14150)\n// IE throws on elements created in popups\n// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"\nvar view=elem.ownerDocument.defaultView;if(!view||!view.opener){view=window;}return view.getComputedStyle(elem);};var swap=function swap(elem,options,callback){var ret,name,old={};// Remember the old values, and insert the new ones\nfor(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}ret=callback.call(elem);// Revert the old values\nfor(name in options){elem.style[name]=old[name];}return ret;};var rboxStyle=new RegExp(cssExpand.join("|"),"i");(function(){// Executing both pixelPosition & boxSizingReliable tests require only one layout\n// so they\'re executed at the same time to save the second computation.\nfunction computeStyleTests(){// This is a singleton, we need to execute it only once\nif(!div){return;}container.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal=divStyle.top!=="1%";// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\nreliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3\n// Some styles come back with percentage values, even though they shouldn\'t\ndiv.style.right="60%";pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;// Support: IE 9 - 11 only\n// Detect misreporting of content dimensions for box-sizing:border-box elements\nboxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;// Support: IE 9 only\n// Detect overflow:scroll screwiness (gh-3699)\n// Support: Chrome <=64\n// Don\'t get tricked when zoom affects offsetWidth (gh-4029)\ndiv.style.position="absolute";scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12;documentElement.removeChild(container);// Nullify the div so it wouldn\'t be stored in the memory and\n// it will also be a sign that checks already performed\ndiv=null;}function roundPixelMeasures(measure){return Math.round(parseFloat(measure));}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");// Finish early in limited (non-browser) environments\nif(!div.style){return;}// Support: IE <=9 - 11 only\n// Style of cloned element affects source element cloned (#8908)\ndiv.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";jQuery.extend(support,{boxSizingReliable:function boxSizingReliable(){computeStyleTests();return boxSizingReliableVal;},pixelBoxStyles:function pixelBoxStyles(){computeStyleTests();return pixelBoxStylesVal;},pixelPosition:function pixelPosition(){computeStyleTests();return pixelPositionVal;},reliableMarginLeft:function reliableMarginLeft(){computeStyleTests();return reliableMarginLeftVal;},scrollboxSize:function scrollboxSize(){computeStyleTests();return scrollboxSizeVal;},// Support: IE 9 - 11+, Edge 15 - 18+\n// IE/Edge misreport `getComputedStyle` of table rows with width/height\n// set in CSS while `offset*` properties report correct values.\n// Behavior in IE 9 is more subtle than in newer versions & it passes\n// some versions of this test; make sure not to make it pass there!\nreliableTrDimensions:function reliableTrDimensions(){var table,tr,trChild,trStyle;if(reliableTrDimensionsVal==null){table=document.createElement("table");tr=document.createElement("tr");trChild=document.createElement("div");table.style.cssText="position:absolute;left:-11111px";tr.style.height="1px";trChild.style.height="9px";documentElement.appendChild(table).appendChild(tr).appendChild(trChild);trStyle=window.getComputedStyle(tr);reliableTrDimensionsVal=parseInt(trStyle.height)>3;documentElement.removeChild(table);}return reliableTrDimensionsVal;}});})();function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,// Support: Firefox 51+\n// Retrieving style before computed somehow\n// fixes an issue with getting wrong values\n// on detached elements\nstyle=elem.style;computed=computed||getStyles(elem);// getPropertyValue is needed for:\n//   .css(\'filter\') (IE 9 only, #12537)\n//   .css(\'--customProperty) (#3144)\nif(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===""&&!isAttached(elem)){ret=jQuery.style(elem,name);}// A tribute to the "awesome hack by Dean Edwards"\n// Android Browser returns percentage for some values,\n// but width seems to be reliably pixels.\n// This is against the CSSOM draft spec:\n// https://drafts.csswg.org/cssom/#resolved-values\nif(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){// Remember the original values\nwidth=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;// Put in the new values to get a computed value out\nstyle.minWidth=style.maxWidth=style.width=ret;ret=computed.width;// Revert the changed values\nstyle.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}}return ret!==undefined?// Support: IE <=9 - 11 only\n// IE returns zIndex value as an integer.\nret+"":ret;}function addGetHookIf(conditionFn,hookFn){// Define the hook, we\'ll check on the first run if it\'s really needed.\nreturn{get:function get(){if(conditionFn()){// Hook not needed (or it\'s not possible to use it due\n// to missing dependency), remove it.\ndelete this.get;return;}// Hook needed; redefine it so that the support test is not executed again.\nreturn(this.get=hookFn).apply(this,arguments);}};}var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};// Return a vendor-prefixed property or undefined\nfunction vendorPropName(name){// Check for vendor prefixed names\nvar capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}// Return a potentially-mapped jQuery.cssProps or vendor prefixed property\nfunction finalPropName(name){var final=jQuery.cssProps[name]||vendorProps[name];if(final){return final;}if(name in emptyStyle){return name;}return vendorProps[name]=vendorPropName(name)||name;}var// Swappable if display is none or starts with table\n// except "table", "table-cell", or "table-caption"\n// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\nrdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){// Any relative (+/-) values have already been\n// normalized at this point\nvar matches=rcssNum.exec(value);return matches?// Guard against undefined "subtract", e.g., when used as in cssHooks\nMath.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value;}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension==="width"?1:0,extra=0,delta=0;// Adjustment may not be necessary\nif(box===(isBorderBox?"border":"content")){return 0;}for(;i<4;i+=2){// Both box models exclude margin\nif(box==="margin"){delta+=jQuery.css(elem,box+cssExpand[i],true,styles);}// If we get here with a content-box, we\'re seeking "padding" or "border" or "margin"\nif(!isBorderBox){// Add padding\ndelta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);// For "border" or "margin", add border\nif(box!=="padding"){delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);// But still keep track of it otherwise\n}else{extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}// If we get here with a border-box (content + padding + border), we\'re seeking "content" or\n// "padding" or "margin"\n}else{// For "content", subtract padding\nif(box==="content"){delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles);}// For "content" or "padding", subtract border\nif(box!=="margin"){delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}}// Account for positive content-box scroll gutter when requested by providing computedVal\nif(!isBorderBox&&computedVal>=0){// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border\n// Assuming integer scroll gutter, subtract the rest and round down\ndelta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-0.5// If offsetWidth/offsetHeight is unknown, then we can\'t determine content-box scroll gutter\n// Use an explicit zero to avoid NaN (gh-3964)\n))||0;}return delta;}function getWidthOrHeight(elem,dimension,extra){// Start with computed style\nvar styles=getStyles(elem),// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).\n// Fake content-box until we know it\'s needed to know the true value.\nboxSizingNeeded=!support.boxSizingReliable()||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);// Support: Firefox <=54\n// Return a confounding non-pixel value or feign ignorance, as appropriate.\nif(rnumnonpx.test(val)){if(!extra){return val;}val="auto";}// Support: IE 9 - 11 only\n// Use offsetWidth/offsetHeight for when box sizing is unreliable.\n// In those cases, the computed value can be trusted to be border-box.\nif((!support.boxSizingReliable()&&isBorderBox||// Support: IE 10 - 11+, Edge 15 - 18+\n// IE/Edge misreport `getComputedStyle` of table rows with width/height\n// set in CSS while `offset*` properties report correct values.\n// Interestingly, in some cases IE 9 doesn\'t suffer from this issue.\n!support.reliableTrDimensions()&&nodeName(elem,"tr")||// Fall back to offsetWidth/offsetHeight when value is "auto"\n// This happens for inline elements with no explicit setting (gh-3571)\nval==="auto"||// Support: Android <=4.1 - 4.3 only\n// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)\n!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&&// Make sure the element is visible & connected\nelem.getClientRects().length){isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box";// Where available, offsetWidth/offsetHeight approximate border box dimensions.\n// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the\n// retrieved value as a content box dimension.\nvalueIsBorderBox=offsetProp in elem;if(valueIsBorderBox){val=elem[offsetProp];}}// Normalize "" and auto\nval=parseFloat(val)||0;// Adjust for the element\'s box model\nreturn val+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,// Provide the current computed size to request scroll gutter calculation (gh-3589)\nval)+"px";}jQuery.extend({// Add in style property hooks for overriding the default\n// behavior of getting and setting a style property\ncssHooks:{opacity:{get:function get(elem,computed){if(computed){// We should always get a number back from opacity\nvar ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},// Don\'t automatically add "px" to these possibly-unitless properties\ncssNumber:{"animationIterationCount":true,"columnCount":true,"fillOpacity":true,"flexGrow":true,"flexShrink":true,"fontWeight":true,"gridArea":true,"gridColumn":true,"gridColumnEnd":true,"gridColumnStart":true,"gridRow":true,"gridRowEnd":true,"gridRowStart":true,"lineHeight":true,"opacity":true,"order":true,"orphans":true,"widows":true,"zIndex":true,"zoom":true},// Add in properties whose names you wish to fix before\n// setting or getting the value\ncssProps:{},// Get and set the style property on a DOM Node\nstyle:function style(elem,name,value,extra){// Don\'t set styles on text and comment nodes\nif(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;}// Make sure that we\'re working with the right name\nvar ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;// Make sure that we\'re working with the right name. We don\'t\n// want to query the value if it is a CSS custom property\n// since they are user-defined.\nif(!isCustomProp){name=finalPropName(origName);}// Gets hook for the prefixed version, then unprefixed version\nhooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];// Check if we\'re setting a value\nif(value!==undefined){type=_typeof(value);// Convert "+=" or "-=" to relative numbers (#7345)\nif(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){value=adjustCSS(elem,name,ret);// Fixes bug #9237\ntype="number";}// Make sure that null and NaN values aren\'t set (#7116)\nif(value==null||value!==value){return;}// If a number was passed in, add the unit (except for certain CSS properties)\n// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append\n// "px" to a few hardcoded values.\nif(type==="number"&&!isCustomProp){value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px");}// background-* props affect original clone\'s values\nif(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit";}// If a hook was provided, use that value, otherwise just set the specified value\nif(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){if(isCustomProp){style.setProperty(name,value);}else{style[name]=value;}}}else{// If a hook was provided get the non-computed value from there\nif(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;}// Otherwise just get the value from the style object\nreturn style[name];}},css:function css(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);// Make sure that we\'re working with the right name. We don\'t\n// want to modify the value if it is a CSS custom property\n// since they are user-defined.\nif(!isCustomProp){name=finalPropName(origName);}// Try prefixed name followed by the unprefixed name\nhooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];// If a hook was provided get the computed value from there\nif(hooks&&"get"in hooks){val=hooks.get(elem,true,extra);}// Otherwise, if a way to get the computed value exists, use that\nif(val===undefined){val=curCSS(elem,name,styles);}// Convert "normal" to computed value\nif(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];}// Make numeric if forced or a qualifier was provided and val looks numeric\nif(extra===""||extra){num=parseFloat(val);return extra===true||isFinite(num)?num||0:val;}return val;}});jQuery.each(["height","width"],function(_i,dimension){jQuery.cssHooks[dimension]={get:function get(elem,computed,extra){if(computed){// Certain elements can have dimension info if we invisibly show them\n// but it must have a current display style that would benefit\nreturn rdisplayswap.test(jQuery.css(elem,"display"))&&(// Support: Safari 8+\n// Table columns in Safari have non-zero offsetWidth & zero\n// getBoundingClientRect().width unless display is changed.\n// Support: IE <=11 only\n// Running getBoundingClientRect on a disconnected node\n// in IE throws an error.\n!elem.getClientRects().length||!elem.getBoundingClientRect().width)?swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra);}):getWidthOrHeight(elem,dimension,extra);}},set:function set(elem,value,extra){var matches,styles=getStyles(elem),// Only read styles.position if the test has a chance to fail\n// to avoid forcing a reflow.\nscrollboxSizeBuggy=!support.scrollboxSize()&&styles.position==="absolute",// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)\nboxSizingNeeded=scrollboxSizeBuggy||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;// Account for unreliable border-box dimensions by comparing offset* to computed and\n// faking a content-box to get border and padding (gh-3699)\nif(isBorderBox&&scrollboxSizeBuggy){subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",false,styles)-0.5);}// Convert to pixels if value adjustment is needed\nif(subtract&&(matches=rcssNum.exec(value))&&(matches[3]||"px")!=="px"){elem.style[dimension]=value;value=jQuery.css(elem,dimension);}return setPositiveNumber(elem,value,subtract);}};});jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed){return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left;}))+"px";}});// These hooks are used by animate to expand properties\njQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function expand(value){var i=0,expanded={},// Assumes a single number if not a string\nparts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];}return expanded;}};if(prefix!=="margin"){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});jQuery.fn.extend({css:function css(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles);}return map;}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);},name,value,arguments.length>1);}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function init(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||jQuery.easing._default;this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px");},cur:function cur(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);},run:function run(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}if(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}return this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function get(tween){var result;// Use a property on the element directly when it is not a DOM element,\n// or when there is no matching style property that exists.\nif(tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){return tween.elem[tween.prop];}// Passing an empty string as a 3rd parameter to .css will automatically\n// attempt a parseFloat and fallback to a string if the parse fails.\n// Simple values such as "10px" are parsed to Float;\n// complex values such as "rotate(1rad)" are returned as-is.\nresult=jQuery.css(tween.elem,tween.prop,"");// Empty strings, null, undefined and "auto" are converted to 0.\nreturn!result||result==="auto"?0:result;},set:function set(tween){// Use step hook for back compat.\n// Use cssHook if its there.\n// Use .style if available and use plain properties where available.\nif(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween);}else if(tween.elem.nodeType===1&&(jQuery.cssHooks[tween.prop]||tween.elem.style[finalPropName(tween.prop)]!=null)){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);}else{tween.elem[tween.prop]=tween.now;}}}};// Support: IE <=9 only\n// Panic based approach to setting things on disconnected nodes\nTween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function set(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;}}};jQuery.easing={linear:function linear(p){return p;},swing:function swing(p){return 0.5-Math.cos(p*Math.PI)/2;},_default:"swing"};jQuery.fx=Tween.prototype.init;// Back compat <1.8 extension point\njQuery.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){if(inProgress){if(document.hidden===false&&window.requestAnimationFrame){window.requestAnimationFrame(schedule);}else{window.setTimeout(schedule,jQuery.fx.interval);}jQuery.fx.tick();}}// Animations created synchronously will run synchronously\nfunction createFxNow(){window.setTimeout(function(){fxNow=undefined;});return fxNow=Date.now();}// Generate parameters to create a standard animation\nfunction genFx(type,includeWidth){var which,i=0,attrs={height:type};// If we include width, step value is 1 to do all cssExpand values,\n// otherwise step value is 2 to skip over Left and Right\nincludeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type;}if(includeWidth){attrs.opacity=attrs.width=type;}return attrs;}function createTween(value,prop,animation){var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){// We\'re done with this property\nreturn tween;}}}function defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");// Queue-skipping animations hijack the fx hooks\nif(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire();}};}hooks.unqueued++;anim.always(function(){// Ensure the complete handler is called before this completes\nanim.always(function(){hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire();}});});}// Detect show/hide animations\nfor(prop in props){value=props[prop];if(rfxtypes.test(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){// Pretend to be hidden if this is a "show" and\n// there is still data from a stopped show/hide\nif(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true;// Ignore all other no-op show/hide data\n}else{continue;}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);}}// Bail out if this is a no-op like .hide().hide()\npropTween=!jQuery.isEmptyObject(props);if(!propTween&&jQuery.isEmptyObject(orig)){return;}// Restrict "overflow" and "display" styles during box animations\nif(isBox&&elem.nodeType===1){// Support: IE <=9 - 11, Edge 12 - 15\n// Record all 3 overflow attributes because IE does not infer the shorthand\n// from identically-valued overflowX and overflowY and Edge just mirrors\n// the overflowX value there.\nopts.overflow=[style.overflow,style.overflowX,style.overflowY];// Identify a display type, preferring old show/hide data over the CSS cascade\nrestoreDisplay=dataShow&&dataShow.display;if(restoreDisplay==null){restoreDisplay=dataPriv.get(elem,"display");}display=jQuery.css(elem,"display");if(display==="none"){if(restoreDisplay){display=restoreDisplay;}else{// Get nonempty value(s) by temporarily forcing visibility\nshowHide([elem],true);restoreDisplay=elem.style.display||restoreDisplay;display=jQuery.css(elem,"display");showHide([elem]);}}// Animate inline elements as inline-block\nif(display==="inline"||display==="inline-block"&&restoreDisplay!=null){if(jQuery.css(elem,"float")==="none"){// Restore the original display value at the end of pure show/hide animations\nif(!propTween){anim.done(function(){style.display=restoreDisplay;});if(restoreDisplay==null){display=style.display;restoreDisplay=display==="none"?"":display;}}style.display="inline-block";}}}if(opts.overflow){style.overflow="hidden";anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2];});}// Implement show/hide animations\npropTween=false;for(prop in orig){// General show/hide setup for this element animation\nif(!propTween){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden;}}else{dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay});}// Store hidden/visible for toggle so `.stop().toggle()` "reverses"\nif(toggle){dataShow.hidden=!hidden;}// Show elements before animating them\nif(hidden){showHide([elem],true);}/* eslint-disable no-loop-func */anim.done(function(){/* eslint-enable no-loop-func */ // The final step of a "hide" animation is actually hiding the element\nif(!hidden){showHide([elem]);}dataPriv.remove(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop]);}});}// Per-property setup\npropTween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=propTween.start;if(hidden){propTween.end=propTween.start;propTween.start=0;}}}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;// camelCase, specialEasing and expand cssHook pass\nfor(index in props){name=camelCase(index);easing=specialEasing[name];value=props[index];if(Array.isArray(value)){easing=value[1];value=props[index]=value[0];}if(index!==name){props[name]=value;delete props[index];}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];// Not quite $.extend, this won\'t overwrite existing keys.\n// Reusing \'index\' because we have the correct "name"\nfor(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing;}}}else{specialEasing[name]=easing;}}}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred().always(function(){// Don\'t match elem in the :animated selector\ndelete tick.elem;}),tick=function tick(){if(stopped){return false;}var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),// Support: Android 2.3 only\n// Archaic crash bug won\'t allow us to use `1 - ( 0.5 || 0 )` (#12497)\ntemp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent);}deferred.notifyWith(elem,[animation,percent,remaining]);// If there\'s more to do, yield\nif(percent<1&&length){return remaining;}// If this was an empty animation, synthesize a final progress notification\nif(!length){deferred.notifyWith(elem,[animation,1,0]);}// Resolve the animation and report its conclusion\ndeferred.resolveWith(elem,[animation]);return false;},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function createTween(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween;},stop:function stop(gotoEnd){var index=0,// If we are going to the end, we want to run all the tweens\n// otherwise we skip this part\nlength=gotoEnd?animation.tweens.length:0;if(stopped){return this;}stopped=true;for(;index<length;index++){animation.tweens[index].run(1);}// Resolve when we played the last frame; otherwise, reject\nif(gotoEnd){deferred.notifyWith(elem,[animation,1,0]);deferred.resolveWith(elem,[animation,gotoEnd]);}else{deferred.rejectWith(elem,[animation,gotoEnd]);}return this;}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=Animation.prefilters[index].call(animation,elem,props,animation.opts);if(result){if(isFunction(result.stop)){jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result);}return result;}}jQuery.map(props,createTween,animation);if(isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);}// Attach callbacks from options\nanimation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation;}jQuery.Animation=jQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);return tween;}]},tweener:function tweener(props,callback){if(isFunction(props)){callback=props;props=["*"];}else{props=props.match(rnothtmlwhite);}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];Animation.tweeners[prop]=Animation.tweeners[prop]||[];Animation.tweeners[prop].unshift(callback);}},prefilters:[defaultPrefilter],prefilter:function prefilter(callback,prepend){if(prepend){Animation.prefilters.unshift(callback);}else{Animation.prefilters.push(callback);}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&_typeof(speed)==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};// Go to the end state if fx are off\nif(jQuery.fx.off){opt.duration=0;}else{if(typeof opt.duration!=="number"){if(opt.duration in jQuery.fx.speeds){opt.duration=jQuery.fx.speeds[opt.duration];}else{opt.duration=jQuery.fx.speeds._default;}}}// Normalize opt.queue - true/undefined/null -> "fx"\nif(opt.queue==null||opt.queue===true){opt.queue="fx";}// Queueing\nopt.old=opt.complete;opt.complete=function(){if(isFunction(opt.old)){opt.old.call(this);}if(opt.queue){jQuery.dequeue(this,opt.queue);}};return opt;};jQuery.fn.extend({fadeTo:function fadeTo(speed,to,easing,callback){// Show any hidden elements after setting opacity to 0\nreturn this.filter(isHiddenWithinTree).css("opacity",0).show()// Animate to the value specified\n.end().animate({opacity:to},speed,easing,callback);},animate:function animate(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function doAnimation(){// Operate on a copy of prop so per-property easing won\'t be lost\nvar anim=Animation(this,jQuery.extend({},prop),optall);// Empty animations, or finishing resolves immediately\nif(empty||dataPriv.get(this,"finish")){anim.stop(true);}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation);},stop:function stop(type,clearQueue,gotoEnd){var stopQueue=function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd);};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined;}if(clearQueue){this.queue(type||"fx",[]);}return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=dataPriv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1);}}// Start the next in the queue if the last step wasn\'t forced.\n// Timers currently will call their complete callbacks, which\n// will dequeue but only if they were gotoEnd.\nif(dequeue||!gotoEnd){jQuery.dequeue(this,type);}});},finish:function finish(type){if(type!==false){type=type||"fx";}return this.each(function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;// Enable finishing flag on private data\ndata.finish=true;// Empty the queue first\njQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true);}// Look for any active animations, and finish them\nfor(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1);}}// Look for any animations in the old queue and finish them\nfor(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this);}}// Turn off finishing flag\ndelete data.finish;});}});jQuery.each(["toggle","show","hide"],function(_i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);};});// Generate shortcuts for custom animations\njQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);};});jQuery.timers=[];jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;fxNow=Date.now();for(;i<timers.length;i++){timer=timers[i];// Run the timer and safely remove it when done (allowing for external removal)\nif(!timer()&&timers[i]===timer){timers.splice(i--,1);}}if(!timers.length){jQuery.fx.stop();}fxNow=undefined;};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);jQuery.fx.start();};jQuery.fx.interval=13;jQuery.fx.start=function(){if(inProgress){return;}inProgress=true;schedule();};jQuery.fx.stop=function(){inProgress=null;};jQuery.fx.speeds={slow:600,fast:200,// Default speed\n_default:400};// Based off of the plugin by Clint Helfers, with permission.\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\njQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout);};});};(function(){var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox";// Support: Android <=4.3 only\n// Default value for a checkbox should be "on"\nsupport.checkOn=input.value!=="";// Support: IE <=11 only\n// Must access selectedIndex to make default options select\nsupport.optSelected=opt.selected;// Support: IE <=11 only\n// An input loses its value after becoming a radio\ninput=document.createElement("input");input.value="t";input.type="radio";support.radioValue=input.value==="t";})();var boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function attr(name,value){return access(this,jQuery.attr,name,value,arguments.length>1);},removeAttr:function removeAttr(name){return this.each(function(){jQuery.removeAttr(this,name);});}});jQuery.extend({attr:function attr(elem,name,value){var ret,hooks,nType=elem.nodeType;// Don\'t get/set attributes on text, comment and attribute nodes\nif(nType===3||nType===8||nType===2){return;}// Fallback to prop when attributes are not supported\nif(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value);}// Attribute hooks are determined by the lowercase version\n// Grab necessary hook if one is defined\nif(nType!==1||!jQuery.isXMLDoc(elem)){hooks=jQuery.attrHooks[name.toLowerCase()]||(jQuery.expr.match.bool.test(name)?boolHook:undefined);}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return;}if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}elem.setAttribute(name,value+"");return value;}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}ret=jQuery.find.attr(elem,name);// Non-existent attributes return null, we normalize to undefined\nreturn ret==null?undefined:ret;},attrHooks:{type:{set:function set(elem,value){if(!support.radioValue&&value==="radio"&&nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val;}return value;}}}},removeAttr:function removeAttr(elem,value){var name,i=0,// Attribute names can contain non-HTML whitespace characters\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\nattrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){elem.removeAttribute(name);}}}});// Hooks for boolean attributes\nboolHook={set:function set(elem,value,name){if(value===false){// Remove boolean attributes when set to false\njQuery.removeAttr(elem,name);}else{elem.setAttribute(name,name);}return name;}};jQuery.each(jQuery.expr.match.bool.source.match(/\\w+/g),function(_i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();if(!isXML){// Avoid an infinite loop by temporarily removing this function from the getter\nhandle=attrHandle[lowercaseName];attrHandle[lowercaseName]=ret;ret=getter(elem,name,isXML)!=null?lowercaseName:null;attrHandle[lowercaseName]=handle;}return ret;};});var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function prop(name,value){return access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function removeProp(name){return this.each(function(){delete this[jQuery.propFix[name]||name];});}});jQuery.extend({prop:function prop(elem,name,value){var ret,hooks,nType=elem.nodeType;// Don\'t get/set properties on text, comment and attribute nodes\nif(nType===3||nType===8||nType===2){return;}if(nType!==1||!jQuery.isXMLDoc(elem)){// Fix name and attach hooks\nname=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name];}if(value!==undefined){if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}return elem[name]=value;}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}return elem[name];},propHooks:{tabIndex:{get:function get(elem){// Support: IE <=9 - 11 only\n// elem.tabIndex doesn\'t always return the\n// correct value when it hasn\'t been explicitly set\n// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n// Use proper attribute retrieval(#12072)\nvar tabindex=jQuery.find.attr(elem,"tabindex");if(tabindex){return parseInt(tabindex,10);}if(rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href){return 0;}return-1;}}},propFix:{"for":"htmlFor","class":"className"}});// Support: IE <=11 only\n// Accessing the selectedIndex property\n// forces the browser to respect setting selected\n// on the option\n// The getter ensures a default option is selected\n// when in an optgroup\n// eslint rule "no-unused-expressions" is disabled for this code\n// since it considers such accessions noop\nif(!support.optSelected){jQuery.propHooks.selected={get:function get(elem){/* eslint no-unused-expressions: "off" */var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex;}return null;},set:function set(elem){/* eslint no-unused-expressions: "off" */var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}};}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this;});// Strip and collapse whitespace according to HTML spec\n// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace\nfunction stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ");}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||"";}function classesToArray(value){if(Array.isArray(value)){return value;}if(typeof value==="string"){return value.match(rnothtmlwhite)||[];}return[];}jQuery.fn.extend({addClass:function addClass(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)));});}classes=classesToArray(value);if(classes.length){while(elem=this[i++]){curValue=getClass(elem);cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" ";}}// Only assign if different to avoid unneeded rendering.\nfinalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue);}}}}return this;},removeClass:function removeClass(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)));});}if(!arguments.length){return this.attr("class","");}classes=classesToArray(value);if(classes.length){while(elem=this[i++]){curValue=getClass(elem);// This expression is here for better compressibility (see addClass)\ncur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){j=0;while(clazz=classes[j++]){// Remove *all* instances\nwhile(cur.indexOf(" "+clazz+" ")>-1){cur=cur.replace(" "+clazz+" "," ");}}// Only assign if different to avoid unneeded rendering.\nfinalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue);}}}}return this;},toggleClass:function toggleClass(value,stateVal){var type=_typeof(value),isValidValue=type==="string"||Array.isArray(value);if(typeof stateVal==="boolean"&&isValidValue){return stateVal?this.addClass(value):this.removeClass(value);}if(isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal);});}return this.each(function(){var className,i,self,classNames;if(isValidValue){// Toggle individual class names\ni=0;self=jQuery(this);classNames=classesToArray(value);while(className=classNames[i++]){// Check each className given, space separated list\nif(self.hasClass(className)){self.removeClass(className);}else{self.addClass(className);}}// Toggle whole class name\n}else if(value===undefined||type==="boolean"){className=getClass(this);if(className){// Store className if set\ndataPriv.set(this,"__className__",className);}// If the element has a class name or if we\'re passed `false`,\n// then remove the whole classname (if there was one, the above saved it).\n// Otherwise bring back whatever was previously saved (if anything),\n// falling back to the empty string if nothing was stored.\nif(this.setAttribute){this.setAttribute("class",className||value===false?"":dataPriv.get(this,"__className__")||"");}}});},hasClass:function hasClass(selector){var className,elem,i=0;className=" "+selector+" ";while(elem=this[i++]){if(elem.nodeType===1&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){return true;}}return false;}});var rreturn=/\\r/g;jQuery.fn.extend({val:function val(value){var hooks,ret,valueIsFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;}ret=elem.value;// Handle most common string cases\nif(typeof ret==="string"){return ret.replace(rreturn,"");}// Handle cases where value is null/undef or number\nreturn ret==null?"":ret;}return;}valueIsFunction=isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return;}if(valueIsFunction){val=value.call(this,i,jQuery(this).val());}else{val=value;}// Treat null/undefined as ""; convert numbers to string\nif(val==null){val="";}else if(typeof val==="number"){val+="";}else if(Array.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";});}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];// If set returns undefined, fall back to normal setting\nif(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function get(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:// Support: IE <=10 - 11 only\n// option.text throws exceptions (#14686, #14858)\n// Strip and collapse whitespace\n// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\nstripAndCollapse(jQuery.text(elem));}},select:{get:function get(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one",values=one?null:[],max=one?index+1:options.length;if(index<0){i=max;}else{i=one?index:0;}// Loop through all the selected options\nfor(;i<max;i++){option=options[i];// Support: IE <=9 only\n// IE8-9 doesn\'t update selected after form reset (#2551)\nif((option.selected||i===index)&&// Don\'t return options that are disabled or in a disabled optgroup\n!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){// Get the specific value for the option\nvalue=jQuery(option).val();// We don\'t need an array for one selects\nif(one){return value;}// Multi-Selects return an array\nvalues.push(value);}}return values;},set:function set(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];/* eslint-disable no-cond-assign */if(option.selected=jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1){optionSet=true;}/* eslint-enable no-cond-assign */}// Force browsers to behave consistently when non-matching value is set\nif(!optionSet){elem.selectedIndex=-1;}return values;}}}});// Radios and checkboxes getter/setter\njQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function set(elem,value){if(Array.isArray(value)){return elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1;}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value;};}});// Return jQuery for attributes-only inclusion\nsupport.focusin="onfocusin"in window;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function stopPropagationCallback(e){e.stopPropagation();};jQuery.extend(jQuery.event,{trigger:function trigger(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=lastElement=tmp=elem=elem||document;// Don\'t do events on text and comment nodes\nif(elem.nodeType===3||elem.nodeType===8){return;}// focus/blur morphs to focusin/out; ensure we\'re not firing them right now\nif(rfocusMorph.test(type+jQuery.event.triggered)){return;}if(type.indexOf(".")>-1){// Namespaced trigger; create a regexp to match event type in handle()\nnamespaces=type.split(".");type=namespaces.shift();namespaces.sort();}ontype=type.indexOf(":")<0&&"on"+type;// Caller can pass in a jQuery.Event object, Object, or just an event type string\nevent=event[jQuery.expando]?event:new jQuery.Event(type,_typeof(event)==="object"&&event);// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\nevent.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.rnamespace=event.namespace?new RegExp("(^|\\\\.)"+namespaces.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):null;// Clean up the event in case it is being reused\nevent.result=undefined;if(!event.target){event.target=elem;}// Clone any incoming data and prepend the event, creating the handler arg list\ndata=data==null?[event]:jQuery.makeArray(data,[event]);// Allow special events to draw outside the lines\nspecial=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}// Determine event propagation path in advance, per W3C events spec (#9951)\n// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\nif(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}// Only add window if we got to document (e.g., not plain obj or detached DOM)\nif(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window);}}// Fire handlers on the event path\ni=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){lastElement=cur;event.type=i>1?bubbleType:special.bindType||type;// jQuery handler\nhandle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle");if(handle){handle.apply(cur,data);}// Native handler\nhandle=ontype&&cur[ontype];if(handle&&handle.apply&&acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault();}}}event.type=type;// If nobody prevented the default action, do it now\nif(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&acceptData(elem)){// Call a native DOM method on the target with the same name as the event.\n// Don\'t do default actions on window, that\'s where global variables be (#6170)\nif(ontype&&isFunction(elem[type])&&!isWindow(elem)){// Don\'t re-trigger an onFOO event when we call its FOO() method\ntmp=elem[ontype];if(tmp){elem[ontype]=null;}// Prevent re-triggering of the same event, since we already bubbled it above\njQuery.event.triggered=type;if(event.isPropagationStopped()){lastElement.addEventListener(type,stopPropagationCallback);}elem[type]();if(event.isPropagationStopped()){lastElement.removeEventListener(type,stopPropagationCallback);}jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}return event.result;},// Piggyback on a donor event to simulate a different one\n// Used only for `focus(in | out)` events\nsimulate:function simulate(type,elem,event){var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true});jQuery.event.trigger(e,null,elem);}});jQuery.fn.extend({trigger:function trigger(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function triggerHandler(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true);}}});// Support: Firefox <=44\n// Firefox doesn\'t have focus(in | out) events\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n//\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n// focus(in | out) events fire after focus & blur events,\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\nif(!support.focusin){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){// Attach a single capturing handler on the document while someone wants focusin/focusout\nvar handler=function handler(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event));};jQuery.event.special[fix]={setup:function setup(){// Handle: regular nodes (via `this.ownerDocument`), window\n// (via `this.document`) & document (via `this`).\nvar doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true);}dataPriv.access(doc,fix,(attaches||0)+1);},teardown:function teardown(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);dataPriv.remove(doc,fix);}else{dataPriv.access(doc,fix,attaches);}}};});}var location=window.location;var nonce={guid:Date.now()};var rquery=/\\?/;// Cross-browser xml parsing\njQuery.parseXML=function(data){var xml;if(!data||typeof data!=="string"){return null;}// Support: IE 9 - 11 only\n// IE throws on parseFromString with invalid input.\ntry{xml=new window.DOMParser().parseFromString(data,"text/xml");}catch(e){xml=undefined;}if(!xml||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);}return xml;};var rbracket=/\\[\\]$/,rCRLF=/\\r?\\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj)){// Serialize array item.\njQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){// Treat each array item as a scalar.\nadd(prefix,v);}else{// Item is non-scalar (array or object), encode its numeric index.\nbuildParams(prefix+"["+(_typeof(v)==="object"&&v!=null?i:"")+"]",v,traditional,add);}});}else if(!traditional&&toType(obj)==="object"){// Serialize object item.\nfor(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{// Serialize scalar item.\nadd(prefix,obj);}}// Serialize an array of form elements or a set of\n// key/values into a query string\njQuery.param=function(a,traditional){var prefix,s=[],add=function add(key,valueOrFunction){// If value is a function, invoke it and use its return value\nvar value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value==null?"":value);};if(a==null){return"";}// If an array was passed in, assume that it is an array of form elements.\nif(Array.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){// Serialize the form elements\njQuery.each(a,function(){add(this.name,this.value);});}else{// If traditional, encode the "old" way (the way 1.3.2 or older\n// did it), otherwise encode params recursively.\nfor(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}// Return the resulting serialization\nreturn s.join("&");};jQuery.fn.extend({serialize:function serialize(){return jQuery.param(this.serializeArray());},serializeArray:function serializeArray(){return this.map(function(){// Can add propHook for "elements" to filter or add form elements\nvar elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this;}).filter(function(){var type=this.type;// Use .is( ":disabled" ) so that fieldset[disabled] works\nreturn this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(_i,elem){var val=jQuery(this).val();if(val==null){return null;}if(Array.isArray(val)){return jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\\r\\n")};});}return{name:elem.name,value:val.replace(rCRLF,"\\r\\n")};}).get();}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \\t]*([^\\r\\n]*)$/mg,// #7653, #8125, #8152: local protocol detection\nrlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\\/\\//,/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol "*" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to "*" if needed\n\t */prefilters={},/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol "*" can be used\n\t * 3) selection will start with transport dataType and THEN go to "*" if needed\n\t */transports={},// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\nallTypes="*/".concat("*"),// Anchor tag for parsing the document origin\noriginAnchor=document.createElement("a");originAnchor.href=location.href;// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports(structure){// dataTypeExpression is optional and defaults to "*"\nreturn function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func)){// For each dataType in the dataTypeExpression\nwhile(dataType=dataTypes[i++]){// Prepend if requested\nif(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);// Otherwise append\n}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");}// A special extend for ajax options\n// that takes "flat" options (not to be deep extended)\n// Fixes #9887\nfunction ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key];}}if(deep){jQuery.extend(true,target,deep);}return target;}/* Handles responses to an ajax request:\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;// Remove auto dataType and get content-type in the process\nwhile(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");}}// Check if we\'re dealing with a known content-type\nif(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}// Check to see if we have a response for the expected dataType\nif(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{// Try convertible dataTypes\nfor(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;}if(!firstDataType){firstDataType=type;}}// Or just use first one\nfinalDataType=finalDataType||firstDataType;}// If we found a dataType\n// We add the dataType to the list if needed\n// and return the corresponding response\nif(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}return responses[finalDataType];}}/* Chain conversions given the request and the original response\n * Also sets the responseXXX fields on the jqXHR instance\n */function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},// Work with a copy of dataTypes in case we need to modify it for conversion\ndataTypes=s.dataTypes.slice();// Create converters map with lowercased keys\nif(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}}current=dataTypes.shift();// Convert to each sequential dataType\nwhile(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}// Apply the dataFilter if provided\nif(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}prev=current;current=dataTypes.shift();if(current){// There\'s only work to do if current dataType is non-auto\nif(current==="*"){current=prev;// Convert response if prev dataType is non-auto and differs from current\n}else if(prev!=="*"&&prev!==current){// Seek a direct converter\nconv=converters[prev+" "+current]||converters["* "+current];// If none found, seek a pair\nif(!conv){for(conv2 in converters){// If conv2 outputs current\ntmp=conv2.split(" ");if(tmp[1]===current){// If prev can be converted to accepted input\nconv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){// Condense equivalence converters\nif(conv===true){conv=converters[conv2];// Otherwise, insert the intermediate dataType\n}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}break;}}}}// Apply converter (if not an equivalence)\nif(conv!==true){// Unless errors are allowed to bubble, catch and return them\nif(conv&&s.throws){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}return{state:"success",data:response};}jQuery.extend({// Counter for holding the number of active queries\nactive:0,// Last-Modified header cache for next request\nlastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:rlocalProtocol.test(location.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},// Data converters\n// Keys separate source (or catchall "*") and destination types with a single space\nconverters:{// Convert anything to text\n"* text":String,// Text to html (true = no transformation)\n"text html":true,// Evaluate text as a json expression\n"text json":JSON.parse,// Parse text as xml\n"text xml":jQuery.parseXML},// For options that shouldn\'t be deep extended:\n// you can add your own custom options here if\n// and when you create one that shouldn\'t be\n// deep extended (see ajaxExtend)\nflatOptions:{url:true,context:true}},// Creates a full fledged settings object into target\n// with both ajaxSettings and settings fields.\n// If target is omitted, writes into ajaxSettings.\najaxSetup:function ajaxSetup(target,settings){return settings?// Building a settings object\najaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):// Extending ajaxSettings\najaxExtend(jQuery.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),// Main method\najax:function ajax(url,options){// If url is an object, simulate pre-1.5 signature\nif(_typeof(url)==="object"){options=url;url=undefined;}// Force options to be an object\noptions=options||{};var transport,// URL without anti-cache param\ncacheURL,// Response headers\nresponseHeadersString,responseHeaders,// timeout handle\ntimeoutTimer,// Url cleanup var\nurlAnchor,// Request state (becomes false upon send and true upon completion)\ncompleted,// To know if global events are to be dispatched\nfireGlobals,// Loop variable\ni,// uncached part of the url\nuncached,// Create the final options object\ns=jQuery.ajaxSetup({},options),// Callbacks context\ncallbackContext=s.context||s,// Context for global events is callbackContext if it is a DOM node or jQuery collection\nglobalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,// Deferreds\ndeferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),// Status-dependent callbacks\n_statusCode=s.statusCode||{},// Headers (they are sent all at once)\nrequestHeaders={},requestHeadersNames={},// Default abort message\nstrAbort="canceled",// Fake xhr\njqXHR={readyState:0,// Builds headers hashtable if needed\ngetResponseHeader:function getResponseHeader(key){var match;if(completed){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);}}match=responseHeaders[key.toLowerCase()+" "];}return match==null?null:match.join(", ");},// Raw string\ngetAllResponseHeaders:function getAllResponseHeaders(){return completed?responseHeadersString:null;},// Caches the header\nsetRequestHeader:function setRequestHeader(name,value){if(completed==null){name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name;requestHeaders[name]=value;}return this;},// Overrides response content-type header\noverrideMimeType:function overrideMimeType(type){if(completed==null){s.mimeType=type;}return this;},// Status-dependent callbacks\nstatusCode:function statusCode(map){var code;if(map){if(completed){// Execute the appropriate callbacks\njqXHR.always(map[jqXHR.status]);}else{// Lazy-add the new callbacks in a way that preserves old ones\nfor(code in map){_statusCode[code]=[_statusCode[code],map[code]];}}}return this;},// Cancel the request\nabort:function abort(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}done(0,finalText);return this;}};// Attach deferreds\ndeferred.promise(jqXHR);// Add protocol if not provided (prefilters might expect it)\n// Handle falsy url in the settings object (#10093: consistency with old signature)\n// We also use the url parameter if available\ns.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//");// Alias method option to type as per ticket #12004\ns.type=options.method||options.type||s.method||s.type;// Extract dataTypes list\ns.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""];// A cross-domain request is in order when the origin doesn\'t match the current origin.\nif(s.crossDomain==null){urlAnchor=document.createElement("a");// Support: IE <=8 - 11, Edge 12 - 15\n// IE throws exception on accessing the href property if url is malformed,\n// e.g. http://example.com:80x/\ntry{urlAnchor.href=s.url;// Support: IE <=8 - 11 only\n// Anchor\'s host property isn\'t correctly set when s.url is relative\nurlAnchor.href=urlAnchor.href;s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==urlAnchor.protocol+"//"+urlAnchor.host;}catch(e){// If there is an error parsing the URL, assume it is crossDomain,\n// it can be rejected by the transport if it is invalid\ns.crossDomain=true;}}// Convert data if not already a string\nif(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);}// Apply prefilters\ninspectPrefiltersOrTransports(prefilters,s,options,jqXHR);// If request was aborted inside a prefilter, stop there\nif(completed){return jqXHR;}// We can fire global events as of now if asked to\n// Don\'t fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\nfireGlobals=jQuery.event&&s.global;// Watch for a new set of requests\nif(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");}// Uppercase the type\ns.type=s.type.toUpperCase();// Determine if request has content\ns.hasContent=!rnoContent.test(s.type);// Save the URL in case we\'re toying with the If-Modified-Since\n// and/or If-None-Match header later on\n// Remove hash to simplify url manipulation\ncacheURL=s.url.replace(rhash,"");// More options handling for requests with no content\nif(!s.hasContent){// Remember the hash so we can put it back\nuncached=s.url.slice(cacheURL.length);// If data is available and should be processed, append data to url\nif(s.data&&(s.processData||typeof s.data==="string")){cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;// #9682: remove data so that it\'s not used in an eventual retry\ndelete s.data;}// Add or update anti-cache param if needed\nif(s.cache===false){cacheURL=cacheURL.replace(rantiCache,"$1");uncached=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid++ +uncached;}// Put hash and anti-cache on the URL that will be requested (gh-1732)\ns.url=cacheURL+uncached;// Change \'%20\' to \'+\' if this is encoded form body content (gh-2658)\n}else if(s.data&&s.processData&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){s.data=s.data.replace(r20,"+");}// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\nif(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);}}// Set the correct header, if data is being sent\nif(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);}// Set the Accepts header for the server, depending on the dataType\njqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);// Check for headers option\nfor(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}// Allow custom headers/mimetypes and early abort\nif(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){// Abort if not done already and return\nreturn jqXHR.abort();}// Aborting is no longer a cancellation\nstrAbort="abort";// Install callbacks on deferreds\ncompleteDeferred.add(s.complete);jqXHR.done(s.success);jqXHR.fail(s.error);// Get transport\ntransport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);// If no transport, we auto-abort\nif(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;// Send global event\nif(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);}// If request was aborted inside ajaxSend, stop there\nif(completed){return jqXHR;}// Timeout\nif(s.async&&s.timeout>0){timeoutTimer=window.setTimeout(function(){jqXHR.abort("timeout");},s.timeout);}try{completed=false;transport.send(requestHeaders,done);}catch(e){// Rethrow post-completion exceptions\nif(completed){throw e;}// Propagate others as results\ndone(-1,e);}}// Callback for when everything is done\nfunction done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;// Ignore repeat invocations\nif(completed){return;}completed=true;// Clear timeout if it exists\nif(timeoutTimer){window.clearTimeout(timeoutTimer);}// Dereference transport for early garbage collection\n// (no matter how long the jqXHR object will be used)\ntransport=undefined;// Cache response headers\nresponseHeadersString=headers||"";// Set readyState\njqXHR.readyState=status>0?4:0;// Determine if successful\nisSuccess=status>=200&&status<300||status===304;// Get response data\nif(responses){response=ajaxHandleResponses(s,jqXHR,responses);}// Use a noop converter for missing script\nif(!isSuccess&&jQuery.inArray("script",s.dataTypes)>-1){s.converters["text script"]=function(){};}// Convert no matter what (that way responseXXX fields are always set)\nresponse=ajaxConvert(s,response,jqXHR,isSuccess);// If successful, handle type chaining\nif(isSuccess){// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\nif(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified;}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified;}}// if no content\nif(status===204||s.type==="HEAD"){statusText="nocontent";// if not modified\n}else if(status===304){statusText="notmodified";// If we have data, let\'s convert it\n}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{// Extract error from statusText and normalize for non-aborts\nerror=statusText;if(status||!statusText){statusText="error";if(status<0){status=0;}}}// Set data for the fake xhr object\njqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";// Success/Error\nif(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}// Status-dependent callbacks\njqXHR.statusCode(_statusCode);_statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]);}// Complete\ncompleteDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);// Handle the global AJAX counter\nif(! --jQuery.active){jQuery.event.trigger("ajaxStop");}}}return jqXHR;},getJSON:function getJSON(url,data,callback){return jQuery.get(url,data,callback,"json");},getScript:function getScript(url,callback){return jQuery.get(url,undefined,callback,"script");}});jQuery.each(["get","post"],function(_i,method){jQuery[method]=function(url,data,callback,type){// Shift arguments if data argument was omitted\nif(isFunction(data)){type=type||callback;callback=data;data=undefined;}// The url can be an options object (which then must have .url)\nreturn jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url));};});jQuery.ajaxPrefilter(function(s){var i;for(i in s.headers){if(i.toLowerCase()==="content-type"){s.contentType=s.headers[i]||"";}}});jQuery._evalUrl=function(url,options,doc){return jQuery.ajax({url:url,// Make this explicit, since user can override this through ajaxSetup (#11264)\ntype:"GET",dataType:"script",cache:true,async:false,global:false,// Only evaluate the response if it is successful (gh-4126)\n// dataFilter is not invoked for failure responses, so using it instead\n// of the default converter is kludgy but it works.\nconverters:{"text script":function textScript(){}},dataFilter:function dataFilter(response){jQuery.globalEval(response,options,doc);}});};jQuery.fn.extend({wrapAll:function wrapAll(html){var wrap;if(this[0]){if(isFunction(html)){html=html.call(this[0]);}// The elements to wrap the target around\nwrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstElementChild){elem=elem.firstElementChild;}return elem;}).append(this);}return this;},wrapInner:function wrapInner(html){if(isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function wrap(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html);});},unwrap:function unwrap(selector){this.parent(selector).not("body").each(function(){jQuery(this).replaceWith(this.childNodes);});return this;}});jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem);};jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};jQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest();}catch(e){}};var xhrSuccessStatus={// File protocol always yields status code 0, assume 200\n0:200,// Support: IE <=9 only\n// #1450: sometimes IE returns 1223 when it should be 204\n1223:204},xhrSupported=jQuery.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials"in xhrSupported;support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport(function(options){var _callback,errorCallback;// Cross domain only allowed if supported through XMLHttpRequest\nif(support.cors||xhrSupported&&!options.crossDomain){return{send:function send(headers,complete){var i,xhr=options.xhr();xhr.open(options.type,options.url,options.async,options.username,options.password);// Apply custom fields if provided\nif(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}// Override mime type if needed\nif(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}// X-Requested-With header\n// For cross-domain requests, seeing as conditions for a preflight are\n// akin to a jigsaw puzzle, we simply never set it to be sure.\n// (it can always be set on a per-request basis or even using ajaxSetup)\n// For same-domain requests, won\'t change header if already provided.\nif(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";}// Set headers\nfor(i in headers){xhr.setRequestHeader(i,headers[i]);}// Callback\n_callback=function callback(type){return function(){if(_callback){_callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null;if(type==="abort"){xhr.abort();}else if(type==="error"){// Support: IE <=9 only\n// On a manual native abort, IE9 throws\n// errors on any property access that is not readyState\nif(typeof xhr.status!=="number"){complete(0,"error");}else{complete(// File: protocol always yields status 0; see #8605, #14207\nxhr.status,xhr.statusText);}}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,// Support: IE <=9 only\n// IE9 has no XHR2 but throws on binary (trac-11426)\n// For XHR2 non-text, let the caller handle it (gh-2498)\n(xhr.responseType||"text")!=="text"||typeof xhr.responseText!=="string"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders());}}};};// Listen to events\nxhr.onload=_callback();errorCallback=xhr.onerror=xhr.ontimeout=_callback("error");// Support: IE 9 only\n// Use onreadystatechange to replace onabort\n// to handle uncaught aborts\nif(xhr.onabort!==undefined){xhr.onabort=errorCallback;}else{xhr.onreadystatechange=function(){// Check readyState before timeout as it changes\nif(xhr.readyState===4){// Allow onerror to be called first,\n// but that will not handle a native abort\n// Also, save errorCallback to a variable\n// as xhr.onerror cannot be accessed\nwindow.setTimeout(function(){if(_callback){errorCallback();}});}};}// Create the abort callback\n_callback=_callback("abort");try{// Do send the request (this may raise an exception)\nxhr.send(options.hasContent&&options.data||null);}catch(e){// #14683: Only rethrow if this hasn\'t been notified as an error yet\nif(_callback){throw e;}}},abort:function abort(){if(_callback){_callback();}}};}});// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\njQuery.ajaxPrefilter(function(s){if(s.crossDomain){s.contents.script=false;}});// Install script dataType\njQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{"text script":function textScript(text){jQuery.globalEval(text);return text;}}});// Handle cache\'s special case and crossDomain\njQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;}if(s.crossDomain){s.type="GET";}});// Bind script tag hack transport\njQuery.ajaxTransport("script",function(s){// This transport only deals with cross domain or forced-by-attrs requests\nif(s.crossDomain||s.scriptAttrs){var script,_callback2;return{send:function send(_,complete){script=jQuery("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",_callback2=function callback(evt){script.remove();_callback2=null;if(evt){complete(evt.type==="error"?404:200,evt.type);}});// Use native DOM manipulation to avoid our domManip AJAX trickery\ndocument.head.appendChild(script[0]);},abort:function abort(){if(_callback2){_callback2();}}};}});var oldCallbacks=[],rjsonp=/(=)\\?(?=&|$)|\\?\\?/;// Default jsonp settings\njQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce.guid++;this[callback]=true;return callback;}});// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data)&&"data");// Handle iff the expected data type is "jsonp" or we have a parameter to set\nif(jsonProp||s.dataTypes[0]==="jsonp"){// Get callback name, remembering preexisting value associated with it\ncallbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;// Insert callback into url or form data\nif(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}// Use data converter to retrieve json after script execution\ns.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");}return responseContainer[0];};// Force json dataType\ns.dataTypes[0]="json";// Install callback\noverwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};// Clean-up function (fires after converters)\njqXHR.always(function(){// If previous value didn\'t exist - remove it\nif(overwritten===undefined){jQuery(window).removeProp(callbackName);// Otherwise restore preexisting value\n}else{window[callbackName]=overwritten;}// Save back as free\nif(s[callbackName]){// Make sure that re-using the options doesn\'t screw things around\ns.jsonpCallback=originalSettings.jsonpCallback;// Save the callback name for future use\noldCallbacks.push(callbackName);}// Call if it was a function and we have a response\nif(responseContainer&&isFunction(overwritten)){overwritten(responseContainer[0]);}responseContainer=overwritten=undefined;});// Delegate to script\nreturn"script";}});// Support: Safari 8 only\n// In Safari 8 documents created via document.implementation.createHTMLDocument\n// collapse sibling forms: the second one becomes a child of the first one.\n// Because of that, this security measure has to be disabled in Safari 8.\n// https://bugs.webkit.org/show_bug.cgi?id=137337\nsupport.createHTMLDocument=function(){var body=document.implementation.createHTMLDocument("").body;body.innerHTML="<form></form><form></form>";return body.childNodes.length===2;}();// Argument "data" should be string of html\n// context (optional): If specified, the fragment will be created in this context,\n// defaults to document\n// keepScripts (optional): If true, will include scripts passed in the html string\njQuery.parseHTML=function(data,context,keepScripts){if(typeof data!=="string"){return[];}if(typeof context==="boolean"){keepScripts=context;context=false;}var base,parsed,scripts;if(!context){// Stop scripts or inline event handlers from being executed immediately\n// by using document.implementation\nif(support.createHTMLDocument){context=document.implementation.createHTMLDocument("");// Set the base href for the created document\n// so any parsed elements with URLs\n// are based on the document\'s URL (gh-2965)\nbase=context.createElement("base");base.href=document.location.href;context.head.appendChild(base);}else{context=document;}}parsed=rsingleTag.exec(data);scripts=!keepScripts&&[];// Single tag\nif(parsed){return[context.createElement(parsed[1])];}parsed=buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove();}return jQuery.merge([],parsed.childNodes);};/**\n * Load a url into a page\n */jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");if(off>-1){selector=stripAndCollapse(url.slice(off));url=url.slice(0,off);}// If it\'s a function\nif(isFunction(params)){// We assume that it\'s the callback\ncallback=params;params=undefined;// Otherwise, build a param string\n}else if(params&&_typeof(params)==="object"){type="POST";}// If we have elements to modify, make the request\nif(self.length>0){jQuery.ajax({url:url,// If "type" variable is undefined, then "GET" method will be used.\n// Make value of this field explicit since\n// user can override it through ajaxSetup method\ntype:type||"GET",dataType:"html",data:params}).done(function(responseText){// Save response for use in complete callback\nresponse=arguments;self.html(selector?// If a selector was specified, locate the right elements in a dummy div\n// Exclude scripts to avoid IE \'Permission Denied\' errors\njQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):// Otherwise use the full result\nresponseText);// If the request succeeds, this function gets "data", "status", "jqXHR"\n// but they are ignored because response was set above.\n// If it fails, this function gets "jqXHR", "status", "error"\n}).always(callback&&function(jqXHR,status){self.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);});});}return this;};jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.offset={setOffset:function setOffset(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};// Set position first, in-case top/left are set even on static elem\nif(position==="static"){elem.style.position="relative";}curOffset=curElem.offset();curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1;// Need to be able to calculate position if either\n// top or left is auto and position is either absolute or fixed\nif(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;}if(isFunction(options)){// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\noptions=options.call(elem,i,jQuery.extend({},curOffset));}if(options.top!=null){props.top=options.top-curOffset.top+curTop;}if(options.left!=null){props.left=options.left-curOffset.left+curLeft;}if("using"in options){options.using.call(elem,props);}else{if(typeof props.top==="number"){props.top+="px";}if(typeof props.left==="number"){props.left+="px";}curElem.css(props);}}};jQuery.fn.extend({// offset() relates an element\'s border box to the document origin\noffset:function offset(options){// Preserve chaining for setter\nif(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i);});}var rect,win,elem=this[0];if(!elem){return;}// Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n// Support: IE <=11 only\n// Running getBoundingClientRect on a\n// disconnected node in IE throws an error\nif(!elem.getClientRects().length){return{top:0,left:0};}// Get document-relative position by adding viewport scroll to viewport-relative gBCR\nrect=elem.getBoundingClientRect();win=elem.ownerDocument.defaultView;return{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset};},// position() relates an element\'s margin box to its offset parent\'s padding box\n// This corresponds to the behavior of CSS absolute positioning\nposition:function position(){if(!this[0]){return;}var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};// position:fixed elements are offset from the viewport, which itself always has zero offset\nif(jQuery.css(elem,"position")==="fixed"){// Assume position:fixed implies availability of getBoundingClientRect\noffset=elem.getBoundingClientRect();}else{offset=this.offset();// Account for the *real* offset parent, which can be the document or its root element\n// when a statically positioned element is identified\ndoc=elem.ownerDocument;offsetParent=elem.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.parentNode;}if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){// Incorporate borders into its offset, since they are outside its content origin\nparentOffset=jQuery(offsetParent).offset();parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true);}}// Subtract parent offsets and element margins\nreturn{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)};},// This method will return documentElement in the following cases:\n// 1) For the element inside the iframe without offsetParent, this method will return\n//    documentElement of the parent window\n// 2) For the hidden or detached element\n// 3) For body or html element, i.e. in case of the html node - it will return itself\n//\n// but those exceptions were never presented as a real life use-cases\n// and might be considered as more preferable results.\n//\n// This logic, however, is not guaranteed and can change at any point in the future\noffsetParent:function offsetParent(){return this.map(function(){var offsetParent=this.offsetParent;while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.offsetParent;}return offsetParent||documentElement;});}});// Create scrollLeft and scrollTop methods\njQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){// Coalesce documents and windows\nvar win;if(isWindow(elem)){win=elem;}else if(elem.nodeType===9){win=elem.defaultView;}if(val===undefined){return win?win[prop]:elem[method];}if(win){win.scrollTo(!top?val:win.pageXOffset,top?val:win.pageYOffset);}else{elem[method]=val;}},method,val,arguments.length);};});// Support: Safari <=7 - 9.1, Chrome <=37 - 49\n// Add the top/left cssHooks using jQuery.fn.position\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\n// getComputedStyle returns percent when specified for top/left/bottom/right;\n// rather than make the css module depend on the offset module, just check for it here\njQuery.each(["top","left"],function(_i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);// If curCSS returns percentage, fallback to offset\nreturn rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed;}});});// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){// Margin is only for outerHeight, outerWidth\njQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,function(elem,type,value){var doc;if(isWindow(elem)){// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\nreturn funcName.indexOf("outer")===0?elem["inner"+name]:elem.document.documentElement["client"+name];}// Get document width or height\nif(elem.nodeType===9){doc=elem.documentElement;// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n// whichever is greatest\nreturn Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);}return value===undefined?// Get width or height on the element, requesting but not forcing parseFloat\njQuery.css(elem,type,extra):// Set width or height on the element\njQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable);};});});jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(_i,type){jQuery.fn[type]=function(fn){return this.on(type,fn);};});jQuery.fn.extend({bind:function bind(types,data,fn){return this.on(types,null,data,fn);},unbind:function unbind(types,fn){return this.off(types,null,fn);},delegate:function delegate(selector,types,data,fn){return this.on(types,selector,data,fn);},undelegate:function undelegate(selector,types,fn){// ( namespace ) or ( selector, types [, fn] )\nreturn arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);},hover:function hover(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);}});jQuery.each(("blur focus focusin focusout resize scroll click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup contextmenu").split(" "),function(_i,name){// Handle event binding\njQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);};});// Support: Android <=4.0 only\n// Make sure we trim BOM and NBSP\nvar rtrim=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;// Bind a function to a context, optionally partially applying any\n// arguments.\n// jQuery.proxy is deprecated to promote standards (specifically Function#bind)\n// However, it is not slated for removal any time soon\njQuery.proxy=function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp;}// Quick check to determine if target is callable, in the spec\n// this throws a TypeError, but we will just return undefined.\nif(!isFunction(fn)){return undefined;}// Simulated bind\nargs=_slice.call(arguments,2);proxy=function proxy(){return fn.apply(context||this,args.concat(_slice.call(arguments)));};// Set the guid of unique handler to the same of original handler, so it can be removed\nproxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy;};jQuery.holdReady=function(hold){if(hold){jQuery.readyWait++;}else{jQuery.ready(true);}};jQuery.isArray=Array.isArray;jQuery.parseJSON=JSON.parse;jQuery.nodeName=nodeName;jQuery.isFunction=isFunction;jQuery.isWindow=isWindow;jQuery.camelCase=camelCase;jQuery.type=toType;jQuery.now=Date.now;jQuery.isNumeric=function(obj){// As of jQuery 3.0, isNumeric is limited to\n// strings and numbers (primitives or objects)\n// that can be coerced to finite numbers (gh-2662)\nvar type=jQuery.type(obj);return(type==="number"||type==="string")&&// parseFloat NaNs numeric-cast false positives ("")\n// ...but misinterprets leading-number strings, particularly hex literals ("0x...")\n// subtraction forces infinities to NaN\n!isNaN(obj-parseFloat(obj));};jQuery.trim=function(text){return text==null?"":(text+"").replace(rtrim,"");};// Register as a named AMD module, since jQuery can be concatenated with other\n// files that may use define, but not via a proper concatenation script that\n// understands anonymous AMD modules. A named AMD is safest and most robust\n// way to register. Lowercase jquery is used because AMD module names are\n// derived from file names, and jQuery is normally delivered in a lowercase\n// file name. Do this after creating the global so that if an AMD module wants\n// to call noConflict to hide this version of jQuery, it will work.\n// Note that for maximum portability, libraries that are not jQuery should\n// declare themselves as anonymous modules, and avoid setting a global if an\n// AMD loader is present. jQuery is a special case. For more information, see\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\nif(typeof define==="function"&&define.amd){define("jquery",[],function(){return jQuery;});}var// Map over jQuery in case of overwrite\n_jQuery=window.jQuery,// Map over the $ in case of overwrite\n_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$CC=_$;}if(deep&&window.jQuery===jQuery){window.jQueryCC=_jQuery;}return jQuery;};// Expose jQuery and $ identifiers, even in AMD\n// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (#13566)\nif(typeof noGlobal==="undefined"){window.jQueryCC=window.$CC=jQuery;}return jQuery;});'},8275:function(e){e.exports='var _excluded=["timeout"],_excluded2=["jitsiConnection"],_excluded3=["firePermissionPromptIsShownEvent","fireSlowPromiseEvent"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a \'"+methodName+"\' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e232){throw _e232;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e233){didErr=true;err=_e233;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}/*! For license information please see lib-jitsi-meet.min.js.LICENSE.txt */!function(e,t){"object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==(typeof exports==="undefined"?"undefined":_typeof(exports))?exports.JitsiMeetJS=t():e.JitsiMeetJS=t();}(self,function(){return function(){var __webpack_modules__={9458:function _(e,t,n){var i=n(8959);function s(e,t){this.logStorage=e,this.stringifyObjects=!(!t||!t.stringifyObjects)&&t.stringifyObjects,this.storeInterval=t&&t.storeInterval?t.storeInterval:3e4,this.maxEntryLength=t&&t.maxEntryLength?t.maxEntryLength:1e4,Object.keys(i.levels).forEach(function(e){this[i.levels[e]]=function(){this._log.apply(this,arguments);}.bind(this,e);}.bind(this)),this.storeLogsIntervalID=null,this.queue=[],this.totalLen=0,this.outputCache=[];}s.prototype.stringify=function(e){try{return JSON.stringify(e);}catch(e){return"[object with circular refs?]";}},s.prototype.formatLogMessage=function(e){for(var t="",n=1,s=arguments.length;n<s;n++){var r=arguments[n];!this.stringifyObjects&&e!==i.levels.ERROR||"object"!=_typeof(r)||(r=this.stringify(r)),t+=r,n!==s-1&&(t+=" ");}return t.length?t:null;},s.prototype._log=function(){var e=arguments[1],t=this.formatLogMessage.apply(this,arguments);if(t){var n=this.queue[this.queue.length-1],i=n&&n.text;i===t?n.count+=1:(this.queue.push({text:t,timestamp:e,count:1}),this.totalLen+=t.length);}this.totalLen>=this.maxEntryLength&&this._flush(!0,!0);},s.prototype.start=function(){this._reschedulePublishInterval();},s.prototype._reschedulePublishInterval=function(){this.storeLogsIntervalID&&(window.clearTimeout(this.storeLogsIntervalID),this.storeLogsIntervalID=null),this.storeLogsIntervalID=window.setTimeout(this._flush.bind(this,!1,!0),this.storeInterval);},s.prototype.flush=function(){this._flush(!1,!0);},s.prototype._flush=function(e,t){this.totalLen>0&&(this.logStorage.isReady()||e)&&(this.logStorage.isReady()?(this.outputCache.length&&(this.outputCache.forEach(function(e){this.logStorage.storeLogs(e);}.bind(this)),this.outputCache=[]),this.logStorage.storeLogs(this.queue)):this.outputCache.push(this.queue),this.queue=[],this.totalLen=0),t&&this._reschedulePublishInterval();},s.prototype.stop=function(){this._flush(!1,!1);},e.exports=s;},8959:function _(e){var t={trace:0,debug:1,info:2,log:3,warn:4,error:5};o.consoleTransport=console;var n=[o.consoleTransport];o.addGlobalTransport=function(e){-1===n.indexOf(e)&&n.push(e);},o.removeGlobalTransport=function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1);};var i={};function s(){var e={methodName:"",fileLocation:"",line:null,column:null},t=new Error(),n=t.stack?t.stack.split("\\n"):[];if(!n||n.length<3)return e;var i=null;return n[3]&&(i=n[3].match(/\\s*at\\s*(.+?)\\s*\\((\\S*)\\s*:(\\d*)\\s*:(\\d*)\\)/)),!i||i.length<=4?(0===n[2].indexOf("log@")?e.methodName=n[3].substr(0,n[3].indexOf("@")):e.methodName=n[2].substr(0,n[2].indexOf("@")),e):(e.methodName=i[1],e.fileLocation=i[2],e.line=i[3],e.column=i[4],e);}function r(){var e=arguments[0],r=arguments[1],o=Array.prototype.slice.call(arguments,2);if(!(t[r]<e.level))for(var a=!(e.options.disableCallerInfo||i.disableCallerInfo)&&s(),c=n.concat(e.transports),d=0;d<c.length;d++){var l=c[d],h=l[r];if(h&&"function"==typeof h){var u=[];u.push(new Date().toISOString()),e.id&&u.push("["+e.id+"]"),a&&a.methodName.length>1&&u.push("<"+a.methodName+">: ");var p=u.concat(o);h.bind(l).apply(l,p);}}}function o(e,n,i,s){this.id=n,this.options=s||{},this.transports=i,this.transports||(this.transports=[]),this.level=t[e];for(var o=Object.keys(t),a=0;a<o.length;a++)this[o[a]]=r.bind(null,this,o[a]);}o.setGlobalOptions=function(e){i=e||{};},o.prototype.setLevel=function(e){this.level=t[e];},e.exports=o,o.levels={TRACE:"trace",DEBUG:"debug",INFO:"info",LOG:"log",WARN:"warn",ERROR:"error"};},9077:function _(e,t,n){var i=n(8959),s=n(9458),r={},o=[],a=i.levels.TRACE;e.exports={addGlobalTransport:function addGlobalTransport(e){i.addGlobalTransport(e);},removeGlobalTransport:function removeGlobalTransport(e){i.removeGlobalTransport(e);},setGlobalOptions:function setGlobalOptions(e){i.setGlobalOptions(e);},getLogger:function getLogger(e,t,n){var s=new i(a,e,t,n);return e?(r[e]=r[e]||[],r[e].push(s)):o.push(s),s;},setLogLevelById:function setLogLevelById(e,t){for(var n=t?r[t]||[]:o,i=0;i<n.length;i++)n[i].setLevel(e);},setLogLevel:function setLogLevel(e){a=e;for(var t=0;t<o.length;t++)o[t].setLevel(e);for(var n in r){var i=r[n]||[];for(t=0;t<i.length;t++)i[t].setLevel(e);}},levels:i.levels,LogCollector:s};},1751:function _(e){var t=e.exports={v:[{name:"version",reg:/^(\\d*)$/}],o:[{name:"origin",reg:/^(\\S*) (\\d*) (\\d*) (\\S*) IP(\\d) (\\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\\d*) (\\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\\d) (\\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\\w*) (\\d*) ([\\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\\d*) ([\\w\\-.]*)(?:\\s*\\/(\\d*)(?:\\s*\\/(\\S*))?)?/,names:["payload","codec","rate","encoding"],format:function format(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s";}},{push:"fmtp",reg:/^fmtp:(\\d*) ([\\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\\d*)(?: (\\S*) IP(\\d) (\\S*))?/,names:["port","netType","ipVer","address"],format:function format(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d";}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\\*|\\d*) trr-int (\\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\\*|\\d*) ([\\w-_]*)(?: ([\\w-_]*))?/,names:["payload","type","subtype"],format:function format(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s";}},{push:"ext",reg:/^extmap:(\\d+)(?:\\/(\\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\\S*)(?: (\\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function format(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"");}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\\d*) ([\\w_]*) (\\S*)(?: (\\S*))?/,names:["id","suite","config","sessionConfig"],format:function format(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s";}},{name:"setup",reg:/^setup:(\\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\\d*(?:\\.\\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\\d*(?:\\.\\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\\S*) (\\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\\S*) (\\d*) (\\S*) (\\d*) (\\S*) (\\d*) typ (\\S*)(?: raddr (\\S*) rport (\\d*))?(?: tcptype (\\S*))?(?: generation (\\d*))?(?: network-id (\\d*))?(?: network-cost (\\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function format(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),(t+=null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v");}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\\d*) ([\\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function format(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t;}},{push:"ssrcGroups",reg:/^ssrc-group:([\\x21\\x23\\x24\\x25\\x26\\x27\\x2A\\x2B\\x2D\\x2E\\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\\s?(\\w*) (\\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\\w_/]*) (\\S*)(?: (\\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function format(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s";}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\\d\\w]+) (\\w+)(?: ([\\S| ]*))?/,names:["id","direction","params"],format:function format(e){return e.params?"rid:%s %s %s":"rid:%s %s";}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\\\d+|\\\\*)[\\\\s\\\\t]+(send|recv)[\\\\s\\\\t]+(\\\\*|\\\\[\\\\S+\\\\](?:[\\\\s\\\\t]+\\\\[\\\\S+\\\\])*)(?:[\\\\s\\\\t]+(recv|send)[\\\\s\\\\t]+(\\\\*|\\\\[\\\\S+\\\\](?:[\\\\s\\\\t]+\\\\[\\\\S+\\\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function format(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"");}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\\\-_~;,]+)(?:\\\\s?(send|recv) ([a-zA-Z0-9\\\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function format(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"");}},{name:"simulcast_03",reg:/^simulcast:[\\s\\t]+([\\S+\\s\\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\\d+(?:$|\\.\\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\\S*) (IP4|IP6|\\*) (\\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\\s=]*)(?:=(\\S*))?/,names:["clksrc","clksrcExt"],format:function format(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"");}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\\S*))? *([^\\s=]*)(?:=(\\S*))?(?: *rate=(\\d+)\\/(\\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function format(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",(t+=null!=e.rateNumerator?" rate=%s":"")+(null!=e.rateDenominator?"/%s":"");}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach(function(e){t[e].forEach(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s");});});},2342:function _(e,t,n){var i=n(3755),s=n(6594);t.write=s,t.parse=i.parse,t.parseParams=i.parseParams,t.parseFmtpConfig=i.parseFmtpConfig,t.parsePayloads=i.parsePayloads,t.parseRemoteCandidates=i.parseRemoteCandidates,t.parseImageAttributes=i.parseImageAttributes,t.parseSimulcastStreamList=i.parseSimulcastStreamList;},3755:function _(e,t,n){var i=function i(e){return String(Number(e))===e?Number(e):e;},s=function s(e,t,n){var s=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:s&&!t[e.name]&&(t[e.name]={});var r=e.push?{}:s?t[e.name]:t;!function(e,t,n,s){if(s&&!n)t[s]=i(e[1]);else for(var r=0;r<n.length;r+=1)null!=e[r+1]&&(t[n[r]]=i(e[r+1]));}(n.match(e.reg),r,e.names,e.name),e.push&&t[e.push].push(r);},r=n(1751),o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],i=t;return e.split(/(\\r\\n|\\r|\\n)/).filter(o).forEach(function(e){var t=e[0],o=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),i=n[n.length-1]);for(var a=0;a<(r[t]||[]).length;a+=1){var c=r[t][a];if(c.reg.test(o))return s(c,i,o);}}),t.media=n,t;};var a=function a(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=i(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e;};t.parseParams=function(e){return e.split(/;\\s?/).reduce(a,{});},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number);},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(i),s=0;s<n.length;s+=3)t.push({component:n[s],ip:n[s+1],port:n[s+2]});return t;},t.parseImageAttributes=function(e){return e.split(" ").map(function(e){return e.substring(1,e.length-1).split(",").reduce(a,{});});},t.parseSimulcastStreamList=function(e){return e.split(";").map(function(e){return e.split(",").map(function(e){var t,n=!1;return"~"!==e[0]?t=i(e):(t=i(e.substring(1,e.length)),n=!0),{scid:t,paused:n};});});};},6594:function _(e,t,n){var i=n(1751),s=/%[sdv%]/g,r=function r(e){var t=1,n=arguments,i=n.length;return e.replace(s,function(e){if(t>=i)return e;var s=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(s);case"%d":return Number(s);case"%v":return"";}});},o=function o(e,t,n){var i=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var s=0;s<t.names.length;s+=1){var o=t.names[s];t.name?i.push(n[t.name][o]):i.push(n[t.names[s]]);}else i.push(n[t.name]);return r.apply(null,i);},a=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach(function(e){null==e.payloads&&(e.payloads="");});var n=t.outerOrder||a,s=t.innerOrder||c,r=[];return n.forEach(function(t){i[t].forEach(function(n){n.name in e&&null!=e[n.name]?r.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){r.push(o(t,n,e));});});}),e.media.forEach(function(e){r.push(o("m",i.m[0],e)),s.forEach(function(t){i[t].forEach(function(n){n.name in e&&null!=e[n.name]?r.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){r.push(o(t,n,e));});});});}),r.join("\\r\\n")+"\\r\\n";};},2636:function _(e,t,n){var i=n(766),s=n(9776),r=s.parseSsrcs,o=s.writeSsrcs;function a(e,t,n){return e.ssrcs.filter(function(e){return e.id===t;}).filter(function(e){return e.attribute===n;}).map(function(e){return e.value;})[0];}function c(e){this.options=e||{},this.options.numOfLayers||(this.options.numOfLayers=3),console.log("SdpSimulcast: using "+this.options.numOfLayers+" layers"),this.ssrcCache=[];}function d(e,t){null!=e&&Array.isArray(e.media)&&e.media.forEach(function(e){"video"===e.type&&t(e);});}function l(e){return e&&null!=e&&e.type&&""!=e.type&&e.sdp&&""!=e.sdp;}c.prototype.clearSsrcCache=function(){this.ssrcCache=[];},c.prototype.setSsrcCache=function(e){this.ssrcCache=e;},c.prototype._parseSimLayers=function(e){var t=e.ssrcGroups&&e.ssrcGroups.find(function(e){return"SIM"===e.semantics;});return t?t.ssrcs.split(" ").map(function(e){return parseInt(e);}):[e.ssrcs[0].id];},c.prototype._buildNewToOldSsrcMap=function(e,t){for(var n={},i=0;i<e.length;++i){var s=e[i],r=t[i]||null;n[s]=r;}return n;},c.prototype._fillInSourceDataFromCache=function(e){console.log("SdpSimulcast restoring from cache: ",this.ssrcCache);var t=this._parseSimLayers(e);console.log("SdpSimulcast Parsed new sim ssrcs: ",t);var n=a(e,t[0],"msid"),i=a(e,t[0],"cname"),s=this._buildNewToOldSsrcMap(t,this.ssrcCache);console.log("SdpSimulcast built replacement map: ",s);var r=this.ssrcCache.filter(function(e){return-1===Object.values(s).indexOf(e);});return console.log("SdpSimulcast built ssrcs to add: ",r),e.ssrcs.forEach(function(e){s[e.id]&&(e.id=s[e.id]);}),r.forEach(function(t){e.ssrcs.push({id:t,attribute:"msid",value:n}),e.ssrcs.push({id:t,attribute:"cname",value:i});}),e.ssrcGroups=e.ssrcGroups||[],e.ssrcGroups.push({semantics:"SIM",ssrcs:this.ssrcCache.join(" ")}),e;},c.prototype._generateSourceData=function(e,t){var n=function n(e,t){e.ssrcs.push({id:t,attribute:"cname",value:s}),e.ssrcs.push({id:t,attribute:"msid",value:i});},i=a(e,t,"msid"),s=a(e,t,"cname");this.options.usesUnifiedPlan&&!i&&(i=e.msid,e.ssrcs.forEach(function(t){e.ssrcs.push({id:t.id,attribute:"msid",value:i});}));for(var r=[],o=0;o<this.options.numOfLayers-1;++o){var c=Math.floor(4294967295*Math.random())+0;n(e,c),r.push(c);}return e.ssrcGroups=e.ssrcGroups||[],e.ssrcGroups.push({semantics:"SIM",ssrcs:t+" "+r.join(" ")}),e;},c.prototype._restoreSimulcast=function(e){var t,n=e.ssrcs&&e.ssrcs.map(function(e){return e.id;}).filter(function(e,t,n){return n.indexOf(e)===t;}).length||0,i=e.ssrcGroups&&e.ssrcGroups.length||0;if(0===n||n>2)return e;if(2==n&&0===i)return e;if(1===n)t=e.ssrcs[0].id;else{var s=e.ssrcGroups.filter(function(e){return"FID"===e.semantics;})[0];if(!s)return e;t=parseInt(s.ssrcs.split(" ")[0]);}return console.log("SdpSimulcast: current ssrc cache: ",this.ssrcCache),console.log("SdpSimulcast: parsed primary ssrc "+t),-1!==this.ssrcCache.indexOf(t)?(console.log("SdpSimulcast: Have seen primary ssrc before, filling in data from cache"),e=this._fillInSourceDataFromCache(e)):(console.log("SdpSimulcast: Have not seen primary ssrc before, generating source data"),e=this._generateSourceData(e,t)),this.ssrcCache=this._parseSimLayers(e),e;},c.prototype.mungeRemoteDescription=function(e,t){if(!l(e))return e;var n=i.parse(e.sdp),s=this;return d(n,function(e){s.options.explodeRemoteSimulcast?function(e){if(e&&Array.isArray(e.ssrcGroups))for(var t=r(e),n=[],i=e.ssrcGroups.length;i--;)if("SIM"===e.ssrcGroups[i].semantics){for(var s=e.ssrcGroups[i].ssrcs.split(" "),a=0;a<s.length;a++){var c=s[a];n.push(c);var d=t[c].msid.split(" ");t[c].msid=[d[0],"/",a," ",d[1],"/",a].join(""),t[c].cname=[t[c].cname,"/",a].join(""),e.ssrcGroups.forEach(function(e){if("SIM"!==e.semantics){var i=e.ssrcs.split(" ");-1!==i.indexOf(c)&&i.forEach(function(e){t[e].msid=t[c].msid,t[e].cname=t[c].cname,e!==c&&n.push(e);});}});}e.ssrcs=o(t,n),e.ssrcGroups.splice(i,1);}}(e):function(e){if(e&&Array.isArray(e.ssrcGroups)){var t=r(e);e.ssrcGroups.forEach(function(n){if("SIM"===n.semantics){console.info("Imploding SIM group: "+n.ssrcs),n.nuke=!0;for(var i=n.ssrcs.split(" "),s=1;s<i.length;s++){var r=i[s];delete t[r],e.ssrcGroups.forEach(function(e){if("SIM"!==e.semantics){var n=e.ssrcs.split(" ");-1!==n.indexOf(r)&&(n.forEach(function(e){delete t[e];}),e.nuke=!0);}});}}}),e.ssrcs=o(t);for(var n=e.ssrcGroups.length;n--;)e.ssrcGroups[n].nuke&&e.ssrcGroups.splice(n,1);}else console.info("Halt: There are no SSRC groups in the remote description.");}(e),!s.options.usesUnifiedPlan&&t?function(e){e&&(Array.isArray(e.invalid)||(e.invalid=[]),e.invalid.some(function(e){return"x-google-flag:conference"===e.value;})||e.invalid.push({value:"x-google-flag:conference"}));}(e):function(e){e&&void 0!==e.xGoogleFlag&&(e.xGoogleFlag=void 0);}(e);}),new RTCSessionDescription({type:e.type,sdp:i.write(n)});},c.prototype.mungeLocalDescription=function(e){if(!l(e))return e;var t=i.parse(e.sdp),n=this;return d(t,function(e){"recvonly"!=e.direction&&"inactive"!=e.direction&&n._restoreSimulcast(e);}),new RTCSessionDescription({type:e.type,sdp:i.write(t)});},e.exports=c;},9776:function _(e,t){t.writeSsrcs=function(e,t){var n=[];if(void 0!==e&&0!==Object.keys(e).length){Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++){var s=t[i],r=e[s];Object.keys(r).forEach(function(e){n.push({id:s,attribute:e,value:r[e]});});}Object.keys(e).forEach(function(i){if(i=parseInt(i),!(t.indexOf(i)>=0)){var s=e[i];Object.keys(s).forEach(function(e){n.push({id:i,attribute:e,value:s[e]});});}});}return n;},t.parseSsrcs=function(e){var t={};return void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&e.ssrcs.forEach(function(e){t[e.id]||(t[e.id]={}),t[e.id][e.attribute]=e.value;}),t;};},8223:function _(e,t){var n;!function(){var i,s,r={};function o(e){var t=!1;return function(){if(t)throw new Error("Callback was already called.");t=!0,e.apply(i,arguments);};}null!=(i=this)&&(s=i.async),r.noConflict=function(){return i.async=s,r;};var a=Object.prototype.toString,c=Array.isArray||function(e){return"[object Array]"===a.call(e);},d=function d(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n+=1)t(e[n],n,e);},l=function l(e,t){if(e.map)return e.map(t);var n=[];return d(e,function(e,i,s){n.push(t(e,i,s));}),n;},h=function h(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t;};"undefined"!=typeof process&&process.nextTick?(r.nextTick=process.nextTick,"undefined"!=typeof setImmediate?r.setImmediate=function(e){setImmediate(e);}:r.setImmediate=r.nextTick):"function"==typeof setImmediate?(r.nextTick=function(e){setImmediate(e);},r.setImmediate=r.nextTick):(r.nextTick=function(e){setTimeout(e,0);},r.setImmediate=r.nextTick),r.each=function(e,t,n){if(n=n||function(){},!e.length)return n();var i=0;function s(t){t?(n(t),n=function n(){}):(i+=1)>=e.length&&n();}d(e,function(e){t(e,o(s));});},r.forEach=r.each,r.eachSeries=function(e,t,n){if(n=n||function(){},!e.length)return n();var i=0,s=function s(){t(e[i],function(t){t?(n(t),n=function n(){}):(i+=1)>=e.length?n():s();});};s();},r.forEachSeries=r.eachSeries,r.eachLimit=function(e,t,n,i){u(t).apply(null,[e,n,i]);},r.forEachLimit=r.eachLimit;var u=function u(e){return function(t,n,i){if(i=i||function(){},!t.length||e<=0)return i();var s=0,r=0,o=0;!function a(){if(s>=t.length)return i();for(;o<e&&r<t.length;)o+=1,n(t[(r+=1)-1],function(e){e?(i(e),i=function i(){}):(o-=1,(s+=1)>=t.length?i():a());});}();};},p=function p(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[r.each].concat(t));};},m=function m(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[r.eachSeries].concat(t));};},f=function f(e,t,n,i){if(t=l(t,function(e,t){return{index:t,value:e};}),i){var s=[];e(t,function(e,t){n(e.value,function(n,i){s[e.index]=i,t(n);});},function(e){i(e,s);});}else e(t,function(e,t){n(e.value,function(e){t(e);});});};r.map=p(f),r.mapSeries=m(f),r.mapLimit=function(e,t,n,i){return g(t)(e,n,i);};var g=function g(e){return function(e,t){return function(){var n=Array.prototype.slice.call(arguments);return t.apply(null,[u(e)].concat(n));};}(e,f);};r.reduce=function(e,t,n,i){r.eachSeries(e,function(e,i){n(t,e,function(e,n){t=n,i(e);});},function(e){i(e,t);});},r.inject=r.reduce,r.foldl=r.reduce,r.reduceRight=function(e,t,n,i){var s=l(e,function(e){return e;}).reverse();r.reduce(s,t,n,i);},r.foldr=r.reduceRight;var _=function _(e,t,n,i){var s=[];e(t=l(t,function(e,t){return{index:t,value:e};}),function(e,t){n(e.value,function(n){n&&s.push(e),t();});},function(e){i(l(s.sort(function(e,t){return e.index-t.index;}),function(e){return e.value;}));});};r.filter=p(_),r.filterSeries=m(_),r.select=r.filter,r.selectSeries=r.filterSeries;var v=function v(e,t,n,i){var s=[];e(t=l(t,function(e,t){return{index:t,value:e};}),function(e,t){n(e.value,function(n){n||s.push(e),t();});},function(e){i(l(s.sort(function(e,t){return e.index-t.index;}),function(e){return e.value;}));});};r.reject=p(v),r.rejectSeries=m(v);var S=function S(e,t,n,i){e(t,function(e,t){n(e,function(n){n?(i(e),i=function i(){}):t();});},function(e){i();});};r.detect=p(S),r.detectSeries=m(S),r.some=function(e,t,n){r.each(e,function(e,i){t(e,function(e){e&&(n(!0),n=function n(){}),i();});},function(e){n(!1);});},r.any=r.some,r.every=function(e,t,n){r.each(e,function(e,i){t(e,function(e){e||(n(!1),n=function n(){}),i();});},function(e){n(!0);});},r.all=r.every,r.sortBy=function(e,t,n){r.map(e,function(e,n){t(e,function(t,i){t?n(t):n(null,{value:e,criteria:i});});},function(e,t){if(e)return n(e);n(null,l(t.sort(function(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0;}),function(e){return e.value;}));});},r.auto=function(e,t){t=t||function(){};var n=h(e),i=n.length;if(!i)return t();var s={},o=[],a=function a(e){o.unshift(e);},l=function l(){i--,d(o.slice(0),function(e){e();});};a(function(){if(!i){var e=t;t=function t(){},e(null,s);}}),d(n,function(n){var i=c(e[n])?e[n]:[e[n]],u=function u(e){var i=Array.prototype.slice.call(arguments,1);if(i.length<=1&&(i=i[0]),e){var o={};d(h(s),function(e){o[e]=s[e];}),o[n]=i,t(e,o),t=function t(){};}else s[n]=i,r.setImmediate(l);},p=i.slice(0,Math.abs(i.length-1))||[],m=function m(){return t=function t(e,_t2){return e&&s.hasOwnProperty(_t2);},i=!0,((e=p).reduce?e.reduce(t,i):(d(e,function(e,n,s){i=t(i,e);}),i))&&!s.hasOwnProperty(n);var e,t,i;};if(m())i[i.length-1](u,s);else{var f=function f(){m()&&(function(e){for(var t=0;t<o.length;t+=1)if(o[t]===e)return void o.splice(t,1);}(f),i[i.length-1](u,s));};a(f);}});},r.retry=function(e,t,n){var i=[];"function"==typeof e&&(n=t,t=e,e=5),e=parseInt(e,10)||5;var s=function s(_s2,o){for(var a=function a(e,t){return function(n){e(function(e,i){n(!e||t,{err:e,result:i});},o);};};e;)i.push(a(t,!(e-=1)));r.series(i,function(e,t){t=t[t.length-1],(_s2||n)(t.err,t.result);});};return n?s():s;},r.waterfall=function(e,t){if(t=t||function(){},!c(e)){var n=new Error("First argument to waterfall must be an array of functions");return t(n);}if(!e.length)return t();var i=function i(e){return function(n){if(n)t.apply(null,arguments),t=function t(){};else{var s=Array.prototype.slice.call(arguments,1),o=e.next();o?s.push(i(o)):s.push(t),r.setImmediate(function(){e.apply(null,s);});}};};i(r.iterator(e))();};var y=function y(e,t,n){if(n=n||function(){},c(t))e.map(t,function(e,t){e&&e(function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n);});},n);else{var i={};e.each(h(t),function(e,n){t[e](function(t){var s=Array.prototype.slice.call(arguments,1);s.length<=1&&(s=s[0]),i[e]=s,n(t);});},function(e){n(e,i);});}};r.parallel=function(e,t){y({map:r.map,each:r.each},e,t);},r.parallelLimit=function(e,t,n){y({map:g(t),each:u(t)},e,n);},r.series=function(e,t){if(t=t||function(){},c(e))r.mapSeries(e,function(e,t){e&&e(function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n);});},t);else{var n={};r.eachSeries(h(e),function(t,i){e[t](function(e){var s=Array.prototype.slice.call(arguments,1);s.length<=1&&(s=s[0]),n[t]=s,i(e);});},function(e){t(e,n);});}},r.iterator=function(e){var t=function t(n){var i=function i(){return e.length&&e[n].apply(null,arguments),i.next();};return i.next=function(){return n<e.length-1?t(n+1):null;},i;};return t(0);},r.apply=function(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t.concat(Array.prototype.slice.call(arguments)));};};var E=function E(e,t,n,i){var s=[];e(t,function(e,t){n(e,function(e,n){s=s.concat(n||[]),t(e);});},function(e){i(e,s);});};r.concat=p(E),r.concatSeries=m(E),r.whilst=function(e,t,n){e()?t(function(i){if(i)return n(i);r.whilst(e,t,n);}):n();},r.doWhilst=function(e,t,n){e(function(i){if(i)return n(i);var s=Array.prototype.slice.call(arguments,1);t.apply(null,s)?r.doWhilst(e,t,n):n();});},r.until=function(e,t,n){e()?n():t(function(i){if(i)return n(i);r.until(e,t,n);});},r.doUntil=function(e,t,n){e(function(i){if(i)return n(i);var s=Array.prototype.slice.call(arguments,1);t.apply(null,s)?n():r.doUntil(e,t,n);});},r.queue=function(e,t){function n(e,t,n,i){if(e.started||(e.started=!0),c(t)||(t=[t]),0==t.length)return r.setImmediate(function(){e.drain&&e.drain();});d(t,function(t){var s={data:t,callback:"function"==typeof i?i:null};n?e.tasks.unshift(s):e.tasks.push(s),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),r.setImmediate(e.process);});}void 0===t&&(t=1);var i=0,s={tasks:[],concurrency:t,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function push(e,t){n(s,e,!1,t);},kill:function kill(){s.drain=null,s.tasks=[];},unshift:function unshift(e,t){n(s,e,!0,t);},process:function process(){if(!s.paused&&i<s.concurrency&&s.tasks.length){var t=s.tasks.shift();s.empty&&0===s.tasks.length&&s.empty(),i+=1;var n=o(function(){i-=1,t.callback&&t.callback.apply(t,arguments),s.drain&&s.tasks.length+i===0&&s.drain(),s.process();});e(t.data,n);}},length:function length(){return s.tasks.length;},running:function running(){return i;},idle:function idle(){return s.tasks.length+i===0;},pause:function pause(){!0!==s.paused&&(s.paused=!0,s.process());},resume:function resume(){!1!==s.paused&&(s.paused=!1,s.process());}};return s;},r.priorityQueue=function(e,t){function n(e,t){return e.priority-t.priority;}var i=r.queue(e,t);return i.push=function(e,t,s){!function(e,t,i,s){if(e.started||(e.started=!0),c(t)||(t=[t]),0==t.length)return r.setImmediate(function(){e.drain&&e.drain();});d(t,function(t){var o={data:t,priority:i,callback:"function"==typeof s?s:null};e.tasks.splice(function(e,t,n){for(var i=-1,s=e.length-1;i<s;){var r=i+(s-i+1>>>1);n(t,e[r])>=0?i=r:s=r-1;}return i;}(e.tasks,o,n)+1,0,o),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),r.setImmediate(e.process);});}(i,e,t,s);},delete i.unshift,i;},r.cargo=function(e,t){var n=!1,i=[],s={tasks:i,payload:t,saturated:null,empty:null,drain:null,drained:!0,push:function push(e,n){c(e)||(e=[e]),d(e,function(e){i.push({data:e,callback:"function"==typeof n?n:null}),s.drained=!1,s.saturated&&i.length===t&&s.saturated();}),r.setImmediate(s.process);},process:function r(){if(!n){if(0===i.length)return s.drain&&!s.drained&&s.drain(),void(s.drained=!0);var o="number"==typeof t?i.splice(0,t):i.splice(0,i.length),a=l(o,function(e){return e.data;});s.empty&&s.empty(),n=!0,e(a,function(){n=!1;var e=arguments;d(o,function(t){t.callback&&t.callback.apply(null,e);}),r();});}},length:function length(){return i.length;},running:function running(){return n;}};return s;};var C=function C(e){return function(t){var n=Array.prototype.slice.call(arguments,1);t.apply(null,n.concat([function(t){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(t?console.error&&console.error(t):console[e]&&d(n,function(t){console[e](t);}));}]));};};r.log=C("log"),r.dir=C("dir"),r.memoize=function(e,t){var n={},i={};t=t||function(e){return e;};var s=function s(){var s=Array.prototype.slice.call(arguments),o=s.pop(),a=t.apply(null,s);a in n?r.nextTick(function(){o.apply(null,n[a]);}):a in i?i[a].push(o):(i[a]=[o],e.apply(null,s.concat([function(){n[a]=arguments;var e=i[a];delete i[a];for(var t=0,s=e.length;t<s;t++)e[t].apply(null,arguments);}])));};return s.memo=n,s.unmemoized=e,s;},r.unmemoize=function(e){return function(){return(e.unmemoized||e).apply(null,arguments);};},r.times=function(e,t,n){for(var i=[],s=0;s<e;s++)i.push(s);return r.map(i,t,n);},r.timesSeries=function(e,t,n){for(var i=[],s=0;s<e;s++)i.push(s);return r.mapSeries(i,t,n);},r.seq=function(){var e=arguments;return function(){var t=this,n=Array.prototype.slice.call(arguments),i=n.pop();r.reduce(e,n,function(e,n,i){n.apply(t,e.concat([function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);i(e,t);}]));},function(e,n){i.apply(t,[e].concat(n));});};},r.compose=function(){return r.seq.apply(null,Array.prototype.reverse.call(arguments));};var b=function b(e,t){var n=function n(){var n=this,i=Array.prototype.slice.call(arguments),s=i.pop();return e(t,function(e,t){e.apply(n,i.concat([t]));},s);};if(arguments.length>2){var i=Array.prototype.slice.call(arguments,2);return n.apply(this,i);}return n;};r.applyEach=p(b),r.applyEachSeries=m(b),r.forever=function(e,t){!function n(i){if(i){if(t)return t(i);throw i;}e(n);}();},e.exports?e.exports=r:void 0===(n=function(){return r;}.apply(t,[]))||(e.exports=n);}();},4449:function _(e,t,n){e.exports=n(6295).default;},2444:function _(e){e.exports=/*#__PURE__*/function(){function _class(e,t,n){_classCallCheck(this,_class);this._userId=e,this.setDisplayName(t),this._isLocalStats=n||!1,this.setDominantSpeaker(!1),this.totalDominantSpeakerTime=0,this._dominantSpeakerStart=0,this._hasLeft=!1,this._facialExpressions={happy:0,neutral:0,surprised:0,angry:0,fearful:0,disgusted:0,sad:0};}_createClass(_class,[{key:"getUserId",value:function getUserId(){return this._userId;}},{key:"getDisplayName",value:function getDisplayName(){return this.displayName;}},{key:"setDisplayName",value:function setDisplayName(e){this.displayName=e;}},{key:"isLocalStats",value:function isLocalStats(){return this._isLocalStats;}},{key:"isDominantSpeaker",value:function isDominantSpeaker(){return this._dominantSpeakerStart>0;}},{key:"setDominantSpeaker",value:function setDominantSpeaker(e){if(!this.isDominantSpeaker()&&e)this._dominantSpeakerStart=Date.now();else if(this.isDominantSpeaker()&&!e){var _e2=Date.now()-this._dominantSpeakerStart;this.totalDominantSpeakerTime+=_e2,this._dominantSpeakerStart=0;}}},{key:"getTotalDominantSpeakerTime",value:function getTotalDominantSpeakerTime(){var e=this.totalDominantSpeakerTime;return this.isDominantSpeaker()&&(e+=Date.now()-this._dominantSpeakerStart),e;}},{key:"hasLeft",value:function hasLeft(){return this._hasLeft;}},{key:"markAsHasLeft",value:function markAsHasLeft(){this._hasLeft=!0,this.setDominantSpeaker(!1);}},{key:"getFacialExpressions",value:function getFacialExpressions(){return this._facialExpressions;}},{key:"setFacialExpressions",value:function setFacialExpressions(e){this._facialExpressions=e;}},{key:"addFacialExpression",value:function addFacialExpression(e,t){this._facialExpressions[e]+=t;}}]);return _class;}();},4424:function _(e){e.exports={getTokenAuthUrl:function getTokenAuthUrl(e,t,n){return"string"!=typeof e?null:e.replace("{room}",t).replace("{roleUpgrade}",!0===n);}};},4832:function _(e){function t(e,t){if(!e||!t||"function"!=typeof e.addListener||"function"!=typeof t.emit)throw new Error("Invalid arguments passed to EventEmitterForwarder");this.src=e,this.dest=t;}t.prototype.forward=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];t[0]=this.dest,this.src.addListener(i,Function.prototype.bind.apply(this.dest.emit,t));},e.exports=t;},1023:function _(e){var t=[],n=window.onerror,i=window.onunhandledrejection;window.onerror=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];t.forEach(function(e){return e.apply(void 0,i);}),n&&n.apply(void 0,i);},window.onunhandledrejection=function(e){t.forEach(function(t){return t(null,null,null,null,e.reason);}),i&&i(e);};var s={addHandler:function addHandler(e){t.push(e);},callErrorHandler:function callErrorHandler(e){var t=window.onerror;t&&t(null,null,null,null,e);},callUnhandledRejectionHandler:function callUnhandledRejectionHandler(e){var t=window.onunhandledrejection;t&&t(e);}};e.exports=s;},5399:function _(e){function t(e,t){return Math.floor(Math.random()*(t-e+1))+e;}function n(e){return e[t(0,e.length-1)];}var i={randomHexDigit:function randomHexDigit(){return n("0123456789abcdef");},randomHexString:function randomHexString(e){var t="";for(;e--;)t+=this.randomHexDigit();return t;},randomElement:n,randomAlphanumStr:function randomAlphanumStr(e){var t="";for(var _i2=0;_i2<e;_i2+=1)t+=n("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");return t;},randomInt:t};e.exports=i;},549:function _(e,t,n){var i=n(667),s={loadScript:function loadScript(e,t,n,s,r,o){var a=document,c="script",d=a.createElement(c),l=a.getElementsByTagName(c)[0];if(d.async=t,s){var _t3=i();if(_t3){var _n2=_t3.src,_i3=_n2.substring(0,_n2.lastIndexOf("/")+1);_n2&&_i3&&(e=_i3+e);}}r&&(d.onload=r),o&&(d.onerror=o),d.src=e,n?l.parentNode.insertBefore(d,l):l.parentNode.appendChild(d);}};e.exports=s;},2593:function _(e){e.exports={integerHash:function integerHash(e){if(!e)return 0;var t,n,i=0;for(n=0;n<e.length;n++)t=e.charCodeAt(n),i+=t*Math.pow(31,e.length-1-n),i=Math.abs(0|i);return i;}};},6667:function _(e,t,n){var i=n(5399),s=["Aaliyah","Aaron","Abagail","Abbey","Abbie","Abbigail","Abby","Abdiel","Abdul","Abdullah","Abe","Abel","Abelardo","Abigail","Abigale","Abigayle","Abner","Abraham","Ada","Adah","Adalberto","Adaline","Adam","Adan","Addie","Addison","Adela","Adelbert","Adele","Adelia","Adeline","Adell","Adella","Adelle","Aditya","Adolf","Adolfo","Adolph","Adolphus","Adonis","Adrain","Adrian","Adriana","Adrianna","Adriel","Adrien","Adrienne","Afton","Aglae","Agnes","Agustin","Agustina","Ahmad","Ahmed","Aida","Aidan","Aiden","Aileen","Aisha","Aiyana","Akeem","Al","Alaina","Alan","Alana","Alanis","Alanna","Alayna","Alba","Albert","Alberta","Albertha","Alberto","Albin","Albina","Alda","Alden","Alec","Aleen","Alejandra","Alejandrin","Alek","Alena","Alene","Alessandra","Alessandro","Alessia","Aletha","Alex","Alexa","Alexander","Alexandra","Alexandre","Alexandrea","Alexandria","Alexandrine","Alexandro","Alexane","Alexanne","Alexie","Alexis","Alexys","Alexzander","Alf","Alfonso","Alfonzo","Alford","Alfred","Alfreda","Alfredo","Ali","Alia","Alice","Alicia","Alisa","Alisha","Alison","Alivia","Aliya","Aliyah","Aliza","Alize","Allan","Allen","Allene","Allie","Allison","Ally","Alphonso","Alta","Althea","Alva","Alvah","Alvena","Alvera","Alverta","Alvina","Alvis","Alyce","Alycia","Alysa","Alysha","Alyson","Alysson","Amalia","Amanda","Amani","Amara","Amari","Amaya","Amber","Ambrose","Amelia","Amelie","Amely","America","Americo","Amie","Amina","Amir","Amira","Amiya","Amos","Amparo","Amy","Amya","Ana","Anabel","Anabelle","Anahi","Anais","Anastacio","Anastasia","Anderson","Andre","Andreane","Andreanne","Andres","Andrew","Andy","Angel","Angela","Angelica","Angelina","Angeline","Angelita","Angelo","Angie","Angus","Anibal","Anika","Anissa","Anita","Aniya","Aniyah","Anjali","Anna","Annabel","Annabell","Annabelle","Annalise","Annamae","Annamarie","Anne","Annetta","Annette","Annie","Ansel","Ansley","Anthony","Antoinette","Antone","Antonetta","Antonette","Antonia","Antonietta","Antonina","Antonio","Antwan","Antwon","Anya","April","Ara","Araceli","Aracely","Arch","Archibald","Ardella","Arden","Ardith","Arely","Ari","Ariane","Arianna","Aric","Ariel","Arielle","Arjun","Arlene","Arlie","Arlo","Armand","Armando","Armani","Arnaldo","Arne","Arno","Arnold","Arnoldo","Arnulfo","Aron","Art","Arthur","Arturo","Arvel","Arvid","Arvilla","Aryanna","Asa","Asha","Ashlee","Ashleigh","Ashley","Ashly","Ashlynn","Ashton","Ashtyn","Asia","Assunta","Astrid","Athena","Aubree","Aubrey","Audie","Audra","Audreanne","Audrey","August","Augusta","Augustine","Augustus","Aurelia","Aurelie","Aurelio","Aurore","Austen","Austin","Austyn","Autumn","Ava","Avery","Avis","Axel","Ayana","Ayden","Ayla","Aylin","Baby","Bailee","Bailey","Barbara","Barney","Baron","Barrett","Barry","Bart","Bartholome","Barton","Baylee","Beatrice","Beau","Beaulah","Bell","Bella","Belle","Ben","Benedict","Benjamin","Bennett","Bennie","Benny","Benton","Berenice","Bernadette","Bernadine","Bernard","Bernardo","Berneice","Bernhard","Bernice","Bernie","Berniece","Bernita","Berry","Bert","Berta","Bertha","Bertram","Bertrand","Beryl","Bessie","Beth","Bethany","Bethel","Betsy","Bette","Bettie","Betty","Bettye","Beulah","Beverly","Bianka","Bill","Billie","Billy","Birdie","Blair","Blaise","Blake","Blanca","Blanche","Blaze","Bo","Bobbie","Bobby","Bonita","Bonnie","Boris","Boyd","Brad","Braden","Bradford","Bradley","Bradly","Brady","Braeden","Brain","Brandi","Brando","Brandon","Brandt","Brandy","Brandyn","Brannon","Branson","Brant","Braulio","Braxton","Brayan","Breana","Breanna","Breanne","Brenda","Brendan","Brenden","Brendon","Brenna","Brennan","Brennon","Brent","Bret","Brett","Bria","Brian","Briana","Brianne","Brice","Bridget","Bridgette","Bridie","Brielle","Brigitte","Brionna","Brisa","Britney","Brittany","Brock","Broderick","Brody","Brook","Brooke","Brooklyn","Brooks","Brown","Bruce","Bryana","Bryce","Brycen","Bryon","Buck","Bud","Buddy","Buford","Bulah","Burdette","Burley","Burnice","Buster","Cade","Caden","Caesar","Caitlyn","Cale","Caleb","Caleigh","Cali","Calista","Callie","Camden","Cameron","Camila","Camilla","Camille","Camren","Camron","Camryn","Camylle","Candace","Candelario","Candice","Candida","Candido","Cara","Carey","Carissa","Carlee","Carleton","Carley","Carli","Carlie","Carlo","Carlos","Carlotta","Carmel","Carmela","Carmella","Carmelo","Carmen","Carmine","Carol","Carolanne","Carole","Carolina","Caroline","Carolyn","Carolyne","Carrie","Carroll","Carson","Carter","Cary","Casandra","Casey","Casimer","Casimir","Casper","Cassandra","Cassandre","Cassidy","Cassie","Catalina","Caterina","Catharine","Catherine","Cathrine","Cathryn","Cathy","Cayla","Ceasar","Cecelia","Cecil","Cecile","Cecilia","Cedrick","Celestine","Celestino","Celia","Celine","Cesar","Chad","Chadd","Chadrick","Chaim","Chance","Chandler","Chanel","Chanelle","Charity","Charlene","Charles","Charley","Charlie","Charlotte","Chase","Chasity","Chauncey","Chaya","Chaz","Chelsea","Chelsey","Chelsie","Chesley","Chester","Chet","Cheyanne","Cheyenne","Chloe","Chris","Christ","Christa","Christelle","Christian","Christiana","Christina","Christine","Christop","Christophe","Christopher","Christy","Chyna","Ciara","Cicero","Cielo","Cierra","Cindy","Citlalli","Clair","Claire","Clara","Clarabelle","Clare","Clarissa","Clark","Claud","Claude","Claudia","Claudie","Claudine","Clay","Clemens","Clement","Clementina","Clementine","Clemmie","Cleo","Cleora","Cleta","Cletus","Cleve","Cleveland","Clifford","Clifton","Clint","Clinton","Clotilde","Clovis","Cloyd","Clyde","Coby","Cody","Colby","Cole","Coleman","Colin","Colleen","Collin","Colt","Colten","Colton","Columbus","Concepcion","Conner","Connie","Connor","Conor","Conrad","Constance","Constantin","Consuelo","Cooper","Cora","Coralie","Corbin","Cordelia","Cordell","Cordia","Cordie","Corene","Corine","Cornelius","Cornell","Corrine","Cortez","Cortney","Cory","Coty","Courtney","Coy","Craig","Crawford","Creola","Cristal","Cristian","Cristina","Cristobal","Cristopher","Cruz","Crystal","Crystel","Cullen","Curt","Curtis","Cydney","Cynthia","Cyril","Cyrus","Dagmar","Dahlia","Daija","Daisha","Daisy","Dakota","Dale","Dallas","Dallin","Dalton","Damaris","Dameon","Damian","Damien","Damion","Damon","Dan","Dana","Dandre","Dane","D\'angelo","Dangelo","Danial","Daniela","Daniella","Danielle","Danika","Dannie","Danny","Dante","Danyka","Daphne","Daphnee","Daphney","Darby","Daren","Darian","Dariana","Darien","Dario","Darion","Darius","Darlene","Daron","Darrel","Darrell","Darren","Darrick","Darrin","Darrion","Darron","Darryl","Darwin","Daryl","Dashawn","Dasia","Dave","David","Davin","Davion","Davon","Davonte","Dawn","Dawson","Dax","Dayana","Dayna","Dayne","Dayton","Dean","Deangelo","Deanna","Deborah","Declan","Dedric","Dedrick","Dee","Deion","Deja","Dejah","Dejon","Dejuan","Delaney","Delbert","Delfina","Delia","Delilah","Dell","Della","Delmer","Delores","Delpha","Delphia","Delphine","Delta","Demarco","Demarcus","Demario","Demetris","Demetrius","Demond","Dena","Denis","Dennis","Deon","Deondre","Deontae","Deonte","Dereck","Derek","Derick","Deron","Derrick","Deshaun","Deshawn","Desiree","Desmond","Dessie","Destany","Destin","Destinee","Destiney","Destini","Destiny","Devan","Devante","Deven","Devin","Devon","Devonte","Devyn","Dewayne","Dewitt","Dexter","Diamond","Diana","Dianna","Diego","Dillan","Dillon","Dimitri","Dina","Dino","Dion","Dixie","Dock","Dolly","Dolores","Domenic","Domenica","Domenick","Domenico","Domingo","Dominic","Dominique","Don","Donald","Donato","Donavon","Donna","Donnell","Donnie","Donny","Dora","Dorcas","Dorian","Doris","Dorothea","Dorothy","Dorris","Dortha","Dorthy","Doug","Douglas","Dovie","Doyle","Drake","Drew","Duane","Dudley","Dulce","Duncan","Durward","Dustin","Dusty","Dwight","Dylan","Earl","Earlene","Earline","Earnest","Earnestine","Easter","Easton","Ebba","Ebony","Ed","Eda","Edd","Eddie","Eden","Edgar","Edgardo","Edison","Edmond","Edmund","Edna","Eduardo","Edward","Edwardo","Edwin","Edwina","Edyth","Edythe","Effie","Efrain","Efren","Eileen","Einar","Eino","Eladio","Elaina","Elbert","Elda","Eldon","Eldora","Eldred","Eldridge","Eleanora","Eleanore","Eleazar","Electa","Elena","Elenor","Elenora","Eleonore","Elfrieda","Eli","Elian","Eliane","Elias","Eliezer","Elijah","Elinor","Elinore","Elisa","Elisabeth","Elise","Eliseo","Elisha","Elissa","Eliza","Elizabeth","Ella","Ellen","Ellie","Elliot","Elliott","Ellis","Ellsworth","Elmer","Elmira","Elmo","Elmore","Elna","Elnora","Elody","Eloisa","Eloise","Elouise","Eloy","Elroy","Elsa","Else","Elsie","Elta","Elton","Elva","Elvera","Elvie","Elvis","Elwin","Elwyn","Elyse","Elyssa","Elza","Emanuel","Emelia","Emelie","Emely","Emerald","Emerson","Emery","Emie","Emil","Emile","Emilia","Emiliano","Emilie","Emilio","Emily","Emma","Emmalee","Emmanuel","Emmanuelle","Emmet","Emmett","Emmie","Emmitt","Emmy","Emory","Ena","Enid","Enoch","Enola","Enos","Enrico","Enrique","Ephraim","Era","Eriberto","Eric","Erica","Erich","Erick","Ericka","Erik","Erika","Erin","Erling","Erna","Ernest","Ernestina","Ernestine","Ernesto","Ernie","Ervin","Erwin","Eryn","Esmeralda","Esperanza","Esta","Esteban","Estefania","Estel","Estell","Estella","Estelle","Estevan","Esther","Estrella","Etha","Ethan","Ethel","Ethelyn","Ethyl","Ettie","Eudora","Eugene","Eugenia","Eula","Eulah","Eulalia","Euna","Eunice","Eusebio","Eva","Evalyn","Evan","Evangeline","Evans","Eve","Eveline","Evelyn","Everardo","Everett","Everette","Evert","Evie","Ewald","Ewell","Ezekiel","Ezequiel","Ezra","Fabian","Fabiola","Fae","Fannie","Fanny","Fatima","Faustino","Fausto","Favian","Fay","Faye","Federico","Felicia","Felicita","Felicity","Felipa","Felipe","Felix","Felton","Fermin","Fern","Fernando","Ferne","Fidel","Filiberto","Filomena","Finn","Fiona","Flavie","Flavio","Fleta","Fletcher","Flo","Florence","Florencio","Florian","Florida","Florine","Flossie","Floy","Floyd","Ford","Forest","Forrest","Foster","Frances","Francesca","Francesco","Francis","Francisca","Francisco","Franco","Frank","Frankie","Franz","Fred","Freda","Freddie","Freddy","Frederic","Frederick","Frederik","Frederique","Fredrick","Fredy","Freeda","Freeman","Freida","Frida","Frieda","Friedrich","Fritz","Furman","Gabe","Gabriel","Gabriella","Gabrielle","Gaetano","Gage","Gail","Gardner","Garett","Garfield","Garland","Garnet","Garnett","Garret","Garrett","Garrick","Garrison","Garry","Garth","Gaston","Gavin","Gay","Gayle","Gaylord","Gene","General","Genesis","Genevieve","Gennaro","Genoveva","Geo","Geoffrey","George","Georgette","Georgiana","Georgianna","Geovanni","Geovanny","Geovany","Gerald","Geraldine","Gerard","Gerardo","Gerda","Gerhard","Germaine","German","Gerry","Gerson","Gertrude","Gia","Gianni","Gideon","Gilbert","Gilberto","Gilda","Giles","Gillian","Gina","Gino","Giovani","Giovanna","Giovanni","Giovanny","Gisselle","Giuseppe","Gladyce","Gladys","Glen","Glenda","Glenna","Glennie","Gloria","Godfrey","Golda","Golden","Gonzalo","Gordon","Grace","Gracie","Graciela","Grady","Graham","Grant","Granville","Grayce","Grayson","Green","Greg","Gregg","Gregoria","Gregorio","Gregory","Greta","Gretchen","Greyson","Griffin","Grover","Guadalupe","Gudrun","Guido","Guillermo","Guiseppe","Gunnar","Gunner","Gus","Gussie","Gust","Gustave","Guy","Gwen","Gwendolyn","Hadley","Hailee","Hailey","Hailie","Hal","Haleigh","Haley","Halie","Halle","Hallie","Hank","Hanna","Hannah","Hans","Hardy","Harley","Harmon","Harmony","Harold","Harrison","Harry","Harvey","Haskell","Hassan","Hassie","Hattie","Haven","Hayden","Haylee","Hayley","Haylie","Hazel","Hazle","Heath","Heather","Heaven","Heber","Hector","Heidi","Helen","Helena","Helene","Helga","Hellen","Helmer","Heloise","Henderson","Henri","Henriette","Henry","Herbert","Herman","Hermann","Hermina","Herminia","Herminio","Hershel","Herta","Hertha","Hester","Hettie","Hilario","Hilbert","Hilda","Hildegard","Hillard","Hillary","Hilma","Hilton","Hipolito","Hiram","Hobart","Holden","Hollie","Hollis","Holly","Hope","Horace","Horacio","Hortense","Hosea","Houston","Howard","Howell","Hoyt","Hubert","Hudson","Hugh","Hulda","Humberto","Hunter","Hyman","Ian","Ibrahim","Icie","Ida","Idell","Idella","Ignacio","Ignatius","Ike","Ila","Ilene","Iliana","Ima","Imani","Imelda","Immanuel","Imogene","Ines","Irma","Irving","Irwin","Isaac","Isabel","Isabell","Isabella","Isabelle","Isac","Isadore","Isai","Isaiah","Isaias","Isidro","Ismael","Isobel","Isom","Israel","Issac","Itzel","Iva","Ivah","Ivory","Ivy","Izabella","Izaiah","Jabari","Jace","Jacey","Jacinthe","Jacinto","Jack","Jackeline","Jackie","Jacklyn","Jackson","Jacky","Jaclyn","Jacquelyn","Jacques","Jacynthe","Jada","Jade","Jaden","Jadon","Jadyn","Jaeden","Jaida","Jaiden","Jailyn","Jaime","Jairo","Jakayla","Jake","Jakob","Jaleel","Jalen","Jalon","Jalyn","Jamaal","Jamal","Jamar","Jamarcus","Jamel","Jameson","Jamey","Jamie","Jamil","Jamir","Jamison","Jammie","Jan","Jana","Janae","Jane","Janelle","Janessa","Janet","Janice","Janick","Janie","Janis","Janiya","Jannie","Jany","Jaquan","Jaquelin","Jaqueline","Jared","Jaren","Jarod","Jaron","Jarred","Jarrell","Jarret","Jarrett","Jarrod","Jarvis","Jasen","Jasmin","Jason","Jasper","Jaunita","Javier","Javon","Javonte","Jay","Jayce","Jaycee","Jayda","Jayde","Jayden","Jaydon","Jaylan","Jaylen","Jaylin","Jaylon","Jayme","Jayne","Jayson","Jazlyn","Jazmin","Jazmyn","Jazmyne","Jean","Jeanette","Jeanie","Jeanne","Jed","Jedediah","Jedidiah","Jeff","Jefferey","Jeffery","Jeffrey","Jeffry","Jena","Jenifer","Jennie","Jennifer","Jennings","Jennyfer","Jensen","Jerad","Jerald","Jeramie","Jeramy","Jerel","Jeremie","Jeremy","Jermain","Jermaine","Jermey","Jerod","Jerome","Jeromy","Jerrell","Jerrod","Jerrold","Jerry","Jess","Jesse","Jessica","Jessie","Jessika","Jessy","Jessyca","Jesus","Jett","Jettie","Jevon","Jewel","Jewell","Jillian","Jimmie","Jimmy","Jo","Joan","Joana","Joanie","Joanne","Joannie","Joanny","Joany","Joaquin","Jocelyn","Jodie","Jody","Joe","Joel","Joelle","Joesph","Joey","Johan","Johann","Johanna","Johathan","John","Johnathan","Johnathon","Johnnie","Johnny","Johnpaul","Johnson","Jolie","Jon","Jonas","Jonatan","Jonathan","Jonathon","Jordan","Jordane","Jordi","Jordon","Jordy","Jordyn","Jorge","Jose","Josefa","Josefina","Joseph","Josephine","Josh","Joshua","Joshuah","Josiah","Josiane","Josianne","Josie","Josue","Jovan","Jovani","Jovanny","Jovany","Joy","Joyce","Juana","Juanita","Judah","Judd","Jude","Judge","Judson","Judy","Jules","Julia","Julian","Juliana","Julianne","Julie","Julien","Juliet","Julio","Julius","June","Junior","Junius","Justen","Justice","Justina","Justine","Juston","Justus","Justyn","Juvenal","Juwan","Kacey","Kaci","Kacie","Kade","Kaden","Kadin","Kaela","Kaelyn","Kaia","Kailee","Kailey","Kailyn","Kaitlin","Kaitlyn","Kale","Kaleb","Kaleigh","Kaley","Kali","Kallie","Kameron","Kamille","Kamren","Kamron","Kamryn","Kane","Kara","Kareem","Karelle","Karen","Kari","Kariane","Karianne","Karina","Karine","Karl","Karlee","Karley","Karli","Karlie","Karolann","Karson","Kasandra","Kasey","Kassandra","Katarina","Katelin","Katelyn","Katelynn","Katharina","Katherine","Katheryn","Kathleen","Kathlyn","Kathryn","Kathryne","Katlyn","Katlynn","Katrina","Katrine","Kattie","Kavon","Kay","Kaya","Kaycee","Kayden","Kayla","Kaylah","Kaylee","Kayleigh","Kayley","Kayli","Kaylie","Kaylin","Keagan","Keanu","Keara","Keaton","Keegan","Keeley","Keely","Keenan","Keira","Keith","Kellen","Kelley","Kelli","Kellie","Kelly","Kelsi","Kelsie","Kelton","Kelvin","Ken","Kendall","Kendra","Kendrick","Kenna","Kennedi","Kennedy","Kenneth","Kennith","Kenny","Kenton","Kenya","Kenyatta","Kenyon","Keon","Keshaun","Keshawn","Keven","Kevin","Kevon","Keyon","Keyshawn","Khalid","Khalil","Kian","Kiana","Kianna","Kiara","Kiarra","Kiel","Kiera","Kieran","Kiley","Kim","Kimberly","King","Kip","Kira","Kirk","Kirsten","Kirstin","Kitty","Kobe","Koby","Kody","Kolby","Kole","Korbin","Korey","Kory","Kraig","Kris","Krista","Kristian","Kristin","Kristina","Kristofer","Kristoffer","Kristopher","Kristy","Krystal","Krystel","Krystina","Kurt","Kurtis","Kyla","Kyle","Kylee","Kyleigh","Kyler","Kylie","Kyra","Lacey","Lacy","Ladarius","Lafayette","Laila","Laisha","Lamar","Lambert","Lamont","Lance","Landen","Lane","Laney","Larissa","Laron","Larry","Larue","Laura","Laurel","Lauren","Laurence","Lauretta","Lauriane","Laurianne","Laurie","Laurine","Laury","Lauryn","Lavada","Lavern","Laverna","Laverne","Lavina","Lavinia","Lavon","Lavonne","Lawrence","Lawson","Layla","Layne","Lazaro","Lea","Leann","Leanna","Leanne","Leatha","Leda","Lee","Leif","Leila","Leilani","Lela","Lelah","Leland","Lelia","Lempi","Lemuel","Lenna","Lennie","Lenny","Lenora","Lenore","Leo","Leola","Leon","Leonard","Leonardo","Leone","Leonel","Leonie","Leonor","Leonora","Leopold","Leopoldo","Leora","Lera","Lesley","Leslie","Lesly","Lessie","Lester","Leta","Letha","Letitia","Levi","Lew","Lewis","Lexi","Lexie","Lexus","Lia","Liam","Liana","Libbie","Libby","Lila","Lilian","Liliana","Liliane","Lilla","Lillian","Lilliana","Lillie","Lilly","Lily","Lilyan","Lina","Lincoln","Linda","Lindsay","Lindsey","Linnea","Linnie","Linwood","Lionel","Lisa","Lisandro","Lisette","Litzy","Liza","Lizeth","Lizzie","Llewellyn","Lloyd","Logan","Lois","Lola","Lolita","Loma","Lon","London","Lonie","Lonnie","Lonny","Lonzo","Lora","Loraine","Loren","Lorena","Lorenz","Lorenza","Lorenzo","Lori","Lorine","Lorna","Lottie","Lou","Louie","Louisa","Lourdes","Louvenia","Lowell","Loy","Loyal","Loyce","Lucas","Luciano","Lucie","Lucienne","Lucile","Lucinda","Lucio","Lucious","Lucius","Lucy","Ludie","Ludwig","Lue","Luella","Luigi","Luis","Luisa","Lukas","Lula","Lulu","Luna","Lupe","Lura","Lurline","Luther","Luz","Lyda","Lydia","Lyla","Lynn","Lyric","Lysanne","Mabel","Mabelle","Mable","Mac","Macey","Maci","Macie","Mack","Mackenzie","Macy","Madaline","Madalyn","Maddison","Madeline","Madelyn","Madelynn","Madge","Madie","Madilyn","Madisen","Madison","Madisyn","Madonna","Madyson","Mae","Maegan","Maeve","Mafalda","Magali","Magdalen","Magdalena","Maggie","Magnolia","Magnus","Maia","Maida","Maiya","Major","Makayla","Makenna","Makenzie","Malachi","Malcolm","Malika","Malinda","Mallie","Mallory","Malvina","Mandy","Manley","Manuel","Manuela","Mara","Marc","Marcel","Marcelina","Marcelino","Marcella","Marcelle","Marcellus","Marcelo","Marcia","Marco","Marcos","Marcus","Margaret","Margarete","Margarett","Margaretta","Margarette","Margarita","Marge","Margie","Margot","Margret","Marguerite","Maria","Mariah","Mariam","Marian","Mariana","Mariane","Marianna","Marianne","Mariano","Maribel","Marie","Mariela","Marielle","Marietta","Marilie","Marilou","Marilyne","Marina","Mario","Marion","Marisa","Marisol","Maritza","Marjolaine","Marjorie","Marjory","Mark","Markus","Marlee","Marlen","Marlene","Marley","Marlin","Marlon","Marques","Marquis","Marquise","Marshall","Marta","Martin","Martina","Martine","Marty","Marvin","Mary","Maryam","Maryjane","Maryse","Mason","Mateo","Mathew","Mathias","Mathilde","Matilda","Matilde","Matt","Matteo","Mattie","Maud","Maude","Maudie","Maureen","Maurice","Mauricio","Maurine","Maverick","Mavis","Max","Maxie","Maxime","Maximilian","Maximillia","Maximillian","Maximo","Maximus","Maxine","Maxwell","May","Maya","Maybell","Maybelle","Maye","Maymie","Maynard","Mayra","Mazie","Mckayla","Mckenna","Mckenzie","Meagan","Meaghan","Meda","Megane","Meggie","Meghan","Mekhi","Melany","Melba","Melisa","Melissa","Mellie","Melody","Melvin","Melvina","Melyna","Melyssa","Mercedes","Meredith","Merl","Merle","Merlin","Merritt","Mertie","Mervin","Meta","Mia","Micaela","Micah","Michael","Michaela","Michale","Micheal","Michel","Michele","Michelle","Miguel","Mikayla","Mike","Mikel","Milan","Miles","Milford","Miller","Millie","Milo","Milton","Mina","Minerva","Minnie","Miracle","Mireille","Mireya","Misael","Missouri","Misty","Mitchel","Mitchell","Mittie","Modesta","Modesto","Mohamed","Mohammad","Mohammed","Moises","Mollie","Molly","Mona","Monica","Monique","Monroe","Monserrat","Monserrate","Montana","Monte","Monty","Morgan","Moriah","Morris","Mortimer","Morton","Mose","Moses","Moshe","Mossie","Mozell","Mozelle","Muhammad","Muriel","Murl","Murphy","Murray","Mustafa","Mya","Myah","Mylene","Myles","Myra","Myriam","Myrl","Myrna","Myron","Myrtice","Myrtie","Myrtis","Myrtle","Nadia","Nakia","Name","Nannie","Naomi","Naomie","Napoleon","Narciso","Nash","Nasir","Nat","Natalia","Natalie","Natasha","Nathan","Nathanael","Nathanial","Nathaniel","Nathen","Nayeli","Neal","Ned","Nedra","Neha","Neil","Nelda","Nella","Nelle","Nellie","Nels","Nelson","Neoma","Nestor","Nettie","Neva","Newell","Newton","Nia","Nicholas","Nicholaus","Nichole","Nick","Nicklaus","Nickolas","Nico","Nicola","Nicolas","Nicole","Nicolette","Nigel","Nikita","Nikki","Nikko","Niko","Nikolas","Nils","Nina","Noah","Noble","Noe","Noel","Noelia","Noemi","Noemie","Noemy","Nola","Nolan","Nona","Nora","Norbert","Norberto","Norene","Norma","Norris","Norval","Norwood","Nova","Novella","Nya","Nyah","Nyasia","Obie","Oceane","Ocie","Octavia","Oda","Odell","Odessa","Odie","Ofelia","Okey","Ola","Olaf","Ole","Olen","Oleta","Olga","Olin","Oliver","Ollie","Oma","Omari","Omer","Ona","Onie","Opal","Ophelia","Ora","Oral","Oran","Oren","Orie","Orin","Orion","Orland","Orlando","Orlo","Orpha","Orrin","Orval","Orville","Osbaldo","Osborne","Oscar","Osvaldo","Oswald","Oswaldo","Otha","Otho","Otilia","Otis","Ottilie","Ottis","Otto","Ova","Owen","Ozella","Pablo","Paige","Palma","Pamela","Pansy","Paolo","Paris","Parker","Pascale","Pasquale","Pat","Patience","Patricia","Patrick","Patsy","Pattie","Paul","Paula","Pauline","Paxton","Payton","Pearl","Pearlie","Pearline","Pedro","Peggie","Penelope","Percival","Percy","Perry","Pete","Peter","Petra","Peyton","Philip","Phoebe","Phyllis","Pierce","Pierre","Pietro","Pink","Pinkie","Piper","Polly","Porter","Precious","Presley","Preston","Price","Prince","Princess","Priscilla","Providenci","Prudence","Queen","Queenie","Quentin","Quincy","Quinn","Quinten","Quinton","Rachael","Rachel","Rachelle","Rae","Raegan","Rafael","Rafaela","Raheem","Rahsaan","Rahul","Raina","Raleigh","Ralph","Ramiro","Ramon","Ramona","Randal","Randall","Randi","Randy","Ransom","Raoul","Raphael","Raphaelle","Raquel","Rashad","Rashawn","Rasheed","Raul","Raven","Ray","Raymond","Raymundo","Reagan","Reanna","Reba","Rebeca","Rebecca","Rebeka","Rebekah","Reece","Reed","Reese","Regan","Reggie","Reginald","Reid","Reilly","Reina","Reinhold","Remington","Rene","Renee","Ressie","Reta","Retha","Retta","Reuben","Reva","Rex","Rey","Reyes","Reymundo","Reyna","Reynold","Rhea","Rhett","Rhianna","Rhiannon","Rhoda","Ricardo","Richard","Richie","Richmond","Rick","Rickey","Rickie","Ricky","Rico","Rigoberto","Riley","Rita","River","Robb","Robbie","Robert","Roberta","Roberto","Robin","Robyn","Rocio","Rocky","Rod","Roderick","Rodger","Rodolfo","Rodrick","Rodrigo","Roel","Rogelio","Roger","Rogers","Rolando","Rollin","Roma","Romaine","Roman","Ron","Ronaldo","Ronny","Roosevelt","Rory","Rosa","Rosalee","Rosalia","Rosalind","Rosalinda","Rosalyn","Rosamond","Rosanna","Rosario","Roscoe","Rose","Rosella","Roselyn","Rosemarie","Rosemary","Rosendo","Rosetta","Rosie","Rosina","Roslyn","Ross","Rossie","Rowan","Rowena","Rowland","Roxane","Roxanne","Roy","Royal","Royce","Rozella","Ruben","Rubie","Ruby","Rubye","Rudolph","Rudy","Rupert","Russ","Russel","Russell","Rusty","Ruth","Ruthe","Ruthie","Ryan","Ryann","Ryder","Rylan","Rylee","Ryleigh","Ryley","Sabina","Sabrina","Sabryna","Sadie","Sadye","Sage","Saige","Sallie","Sally","Salma","Salvador","Salvatore","Sam","Samanta","Samantha","Samara","Samir","Sammie","Sammy","Samson","Sandra","Sandrine","Sandy","Sanford","Santa","Santiago","Santina","Santino","Santos","Sarah","Sarai","Sarina","Sasha","Saul","Savanah","Savanna","Savannah","Savion","Scarlett","Schuyler","Scot","Scottie","Scotty","Seamus","Sean","Sebastian","Sedrick","Selena","Selina","Selmer","Serena","Serenity","Seth","Shad","Shaina","Shakira","Shana","Shane","Shanel","Shanelle","Shania","Shanie","Shaniya","Shanna","Shannon","Shanny","Shanon","Shany","Sharon","Shaun","Shawn","Shawna","Shaylee","Shayna","Shayne","Shea","Sheila","Sheldon","Shemar","Sheridan","Sherman","Sherwood","Shirley","Shyann","Shyanne","Sibyl","Sid","Sidney","Sienna","Sierra","Sigmund","Sigrid","Sigurd","Silas","Sim","Simeon","Simone","Sincere","Sister","Skye","Skyla","Skylar","Sofia","Soledad","Solon","Sonia","Sonny","Sonya","Sophia","Sophie","Spencer","Stacey","Stacy","Stan","Stanford","Stanley","Stanton","Stefan","Stefanie","Stella","Stephan","Stephania","Stephanie","Stephany","Stephen","Stephon","Sterling","Steve","Stevie","Stewart","Stone","Stuart","Summer","Sunny","Susan","Susana","Susanna","Susie","Suzanne","Sven","Syble","Sydnee","Sydney","Sydni","Sydnie","Sylvan","Sylvester","Sylvia","Tabitha","Tad","Talia","Talon","Tamara","Tamia","Tania","Tanner","Tanya","Tara","Taryn","Tate","Tatum","Tatyana","Taurean","Tavares","Taya","Taylor","Teagan","Ted","Telly","Terence","Teresa","Terrance","Terrell","Terrence","Terrill","Terry","Tess","Tessie","Tevin","Thad","Thaddeus","Thalia","Thea","Thelma","Theo","Theodora","Theodore","Theresa","Therese","Theresia","Theron","Thomas","Thora","Thurman","Tia","Tiana","Tianna","Tiara","Tierra","Tiffany","Tillman","Timmothy","Timmy","Timothy","Tina","Tito","Titus","Tobin","Toby","Tod","Tom","Tomas","Tomasa","Tommie","Toney","Toni","Tony","Torey","Torrance","Torrey","Toy","Trace","Tracey","Tracy","Travis","Travon","Tre","Tremaine","Tremayne","Trent","Trenton","Tressa","Tressie","Treva","Trever","Trevion","Trevor","Trey","Trinity","Trisha","Tristian","Tristin","Triston","Troy","Trudie","Trycia","Trystan","Turner","Twila","Tyler","Tyra","Tyree","Tyreek","Tyrel","Tyrell","Tyrese","Tyrique","Tyshawn","Tyson","Ubaldo","Ulices","Ulises","Una","Unique","Urban","Uriah","Uriel","Ursula","Vada","Valentin","Valentina","Valentine","Valerie","Vallie","Van","Vance","Vanessa","Vaughn","Veda","Velda","Vella","Velma","Velva","Vena","Verda","Verdie","Vergie","Verla","Verlie","Vern","Verna","Verner","Vernice","Vernie","Vernon","Verona","Veronica","Vesta","Vicenta","Vicente","Vickie","Vicky","Victor","Victoria","Vida","Vidal","Vilma","Vince","Vincent","Vincenza","Vincenzo","Vinnie","Viola","Violet","Violette","Virgie","Virgil","Virginia","Virginie","Vita","Vito","Viva","Vivian","Viviane","Vivianne","Vivien","Vivienne","Vladimir","Wade","Waino","Waldo","Walker","Wallace","Walter","Walton","Wanda","Ward","Warren","Watson","Wava","Waylon","Wayne","Webster","Weldon","Wellington","Wendell","Wendy","Werner","Westley","Weston","Whitney","Wilber","Wilbert","Wilburn","Wiley","Wilford","Wilfred","Wilfredo","Wilfrid","Wilhelm","Wilhelmine","Will","Willa","Willard","William","Willie","Willis","Willow","Willy","Wilma","Wilmer","Wilson","Wilton","Winfield","Winifred","Winnifred","Winona","Winston","Woodrow","Wyatt","Wyman","Xander","Xavier","Xzavier","Yadira","Yasmeen","Yasmin","Yasmine","Yazmin","Yesenia","Yessenia","Yolanda","Yoshiko","Yvette","Yvonne","Zachariah","Zachary","Zachery","Zack","Zackary","Zackery","Zakary","Zander","Zane","Zaria","Zechariah","Zelda","Zella","Zelma","Zena","Zetta","Zion","Zita","Zoe","Zoey","Zoie","Zoila","Zola","Zora","Zula"];e.exports={generateUsername:function generateUsername(){return"".concat(i.randomElement(s),"-").concat(i.randomAlphanumStr(3));}};},7318:function _(e){e.exports={CAMERA:"camera",DESKTOP:"desktop",DESKTOP_HIGH_FPS:"desktop_high_fps",NONE:"none"};},4940:function _(e){e.exports={ENVIRONMENT:"environment",USER:"user"};},4391:function _(e){e.exports={H264:"h264",OPUS:"opus",ULPFEC:"ulpfec",VP8:"vp8",VP9:"vp9"};},8043:function _(e){e.exports={INACTIVE:"inactive",RECVONLY:"recvonly",SENDONLY:"sendonly",SENDRECV:"sendrecv"};},1645:function _(e){e.exports={CREATE_ANSWER_FAILED:"rtc.create_answer_failed",CREATE_OFFER_FAILED:"rtc.create_offer_failed",DATA_CHANNEL_OPEN:"rtc.data_channel_open",ENDPOINT_CONN_STATUS_CHANGED:"rtc.endpoint_conn_status_changed",DOMINANT_SPEAKER_CHANGED:"rtc.dominant_speaker_changed",LASTN_ENDPOINT_CHANGED:"rtc.lastn_endpoint_changed",PERMISSIONS_CHANGED:"rtc.permissions_changed",SENDER_VIDEO_CONSTRAINTS_CHANGED:"rtc.sender_video_constraints_changed",LASTN_VALUE_CHANGED:"rtc.lastn_value_changed",LOCAL_TRACK_SSRC_UPDATED:"rtc.local_track_ssrc_updated",LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED:"rtc.local_track_max_enabled_resolution_changed",TRACK_ATTACHED:"rtc.track_attached",REMOTE_TRACK_ADDED:"rtc.remote_track_added",REMOTE_TRACK_MUTE:"rtc.remote_track_mute",REMOTE_TRACK_REMOVED:"rtc.remote_track_removed",REMOTE_TRACK_UNMUTE:"rtc.remote_track_unmute",SET_LOCAL_DESCRIPTION_FAILED:"rtc.set_local_description_failed",SET_REMOTE_DESCRIPTION_FAILED:"rtc.set_remote_description_failed",AUDIO_OUTPUT_DEVICE_CHANGED:"rtc.audio_output_device_changed",DEVICE_LIST_CHANGED:"rtc.device_list_changed",DEVICE_LIST_WILL_CHANGE:"rtc.device_list_will_change",DEVICE_LIST_AVAILABLE:"rtc.device_list_available",ENDPOINT_MESSAGE_RECEIVED:"rtc.endpoint_message_received",ENDPOINT_STATS_RECEIVED:"rtc.endpoint_stats_received",LOCAL_UFRAG_CHANGED:"rtc.local_ufrag_changed",REMOTE_UFRAG_CHANGED:"rtc.remote_ufrag_changed"};},6125:function _(e){e.exports={2160:{width:3840,height:2160},"4k":{width:3840,height:2160},1080:{width:1920,height:1080},fullhd:{width:1920,height:1080},720:{width:1280,height:720},hd:{width:1280,height:720},540:{width:960,height:540},qhd:{width:960,height:540},480:{width:640,height:480},vga:{width:640,height:480},360:{width:640,height:360},240:{width:320,height:240},180:{width:320,height:180}};},1122:function _(e){e.exports={CAMERA:"camera",DESKTOP:"desktop"};},3514:function _(e){e.exports={IDENTITY_UPDATED:"authentication.identity_updated"};},4806:function _(e){e.exports={LOCAL_JID:"local"};},4188:function _(e){e.exports={ADD_ICE_CANDIDATE_FAILED:"xmpp.add_ice_candidate_failed",AUDIO_MUTED_BY_FOCUS:"xmpp.audio_muted_by_focus",VIDEO_MUTED_BY_FOCUS:"xmpp.video_muted_by_focus",AUTHENTICATION_REQUIRED:"xmpp.authentication_required",BRIDGE_DOWN:"xmpp.bridge_down",CALL_ACCEPTED:"xmpp.callaccepted.jingle",CALL_INCOMING:"xmpp.callincoming.jingle",CALL_ENDED:"xmpp.callended.jingle",CHAT_ERROR_RECEIVED:"xmpp.chat_error_received",SETTINGS_ERROR_RECEIVED:"xmpp.settings_error_received",CONFERENCE_PROPERTIES_CHANGED:"xmpp.conference_properties_changed",CONNECTION_ESTABLISHED:"xmpp.connection.connected",CONNECTION_FAILED:"xmpp.connection.failed",CONNECTION_INTERRUPTED:"xmpp.connection.interrupted",CONNECTION_RESTORED:"xmpp.connection.restored",CONNECTION_ICE_FAILED:"xmpp.connection.ice.failed",CONNECTION_RESTARTED:"xmpp.connection.restart",CONNECTION_STATUS_CHANGED:"xmpp.connection.status.changed",DISPLAY_NAME_CHANGED:"xmpp.display_name_changed",EMUC_ROOM_ADDED:"xmpp.emuc_room_added",EMUC_ROOM_REMOVED:"xmpp.emuc_room_removed",ETHERPAD:"xmpp.etherpad",FOCUS_DISCONNECTED:"xmpp.focus_disconnected",FOCUS_LEFT:"xmpp.focus_left",GRACEFUL_SHUTDOWN:"xmpp.graceful_shutdown",ICE_RESTARTING:"rtc.ice_restarting",ICE_RESTART_SUCCESS:"rtc.ice_restart_success",KICKED:"xmpp.kicked",LOCAL_ROLE_CHANGED:"xmpp.localrole_changed",MEETING_ID_SET:"xmpp.meeting_id_set",MESSAGE_RECEIVED:"xmpp.message_received",INVITE_MESSAGE_RECEIVED:"xmpp.invite_message_received",PRIVATE_MESSAGE_RECEIVED:"xmpp.private_message_received",MUC_MEMBER_BOT_TYPE_CHANGED:"xmpp.muc_member_bot_type_changed",MUC_DESTROYED:"xmpp.muc_destroyed",MUC_JOIN_IN_PROGRESS:"xmpp.muc_join_in_progress",MUC_JOINED:"xmpp.muc_joined",MUC_MEMBER_JOINED:"xmpp.muc_member_joined",MUC_MEMBER_LEFT:"xmpp.muc_member_left",MUC_LOBBY_MEMBER_JOINED:"xmpp.muc_lobby_member_joined",MUC_LOBBY_MEMBER_UPDATED:"xmpp.muc_lobby_member_updated",MUC_LOBBY_MEMBER_LEFT:"xmpp.muc_lobby_member_left",MUC_DENIED_ACCESS:"xmpp.muc_denied access",MUC_LEFT:"xmpp.muc_left",MUC_ROLE_CHANGED:"xmpp.muc_role_changed",MUC_LOCK_CHANGED:"xmpp.muc_lock_changed",MUC_MEMBERS_ONLY_CHANGED:"xmpp.muc_members_only_changed",PARTICIPANT_AUDIO_MUTED:"xmpp.audio_muted",PARTICIPANT_VIDEO_MUTED:"xmpp.video_muted",PARTICIPANT_VIDEO_TYPE_CHANGED:"xmpp.video_type",PARTICIPANT_FEATURES_CHANGED:"xmpp.participant_features_changed",PASSWORD_REQUIRED:"xmpp.password_required",PHONE_NUMBER_CHANGED:"conference.phoneNumberChanged",PRESENCE_RECEIVED:"xmpp.presence_received",PRESENCE_STATUS:"xmpp.presence_status",PROMPT_FOR_LOGIN:"xmpp.prompt_for_login",READY_TO_JOIN:"xmpp.ready_to_join",RECORDER_STATE_CHANGED:"xmpp.recorderStateChanged",REMOTE_STATS:"xmpp.remote_stats",RENEGOTIATION_FAILED:"xmpp.renegotiation_failed",RESERVATION_ERROR:"xmpp.room_reservation_error",ROOM_CONNECT_ERROR:"xmpp.room_connect_error",ROOM_CONNECT_NOT_ALLOWED_ERROR:"xmpp.room_connect_error.not_allowed",ROOM_JOIN_ERROR:"xmpp.room_join_error",ROOM_CONNECT_MEMBERS_ONLY_ERROR:"xmpp.room_connect_error.members_only",ROOM_MAX_USERS_ERROR:"xmpp.room_max_users_error",SENDING_CHAT_MESSAGE:"xmpp.sending_chat_message",SENDING_PRIVATE_CHAT_MESSAGE:"xmpp.sending_private_chat_message",SESSION_ACCEPT:"xmpp.session_accept",SESSION_ACCEPT_ERROR:"xmpp.session_accept_error",SESSION_ACCEPT_TIMEOUT:"xmpp.session_accept_timeout",SOURCE_ADD:"xmpp.source_add",SOURCE_ADD_ERROR:"xmpp.source_add_error",SOURCE_REMOVE:"xmpp.source_remove",SOURCE_REMOVE_ERROR:"xmpp.source_remove_error",SPEAKER_STATS_RECEIVED:"xmpp.speaker_stats_received",CONFERENCE_TIMESTAMP_RECEIVED:"xmpp.conference_timestamp_received",AV_MODERATION_APPROVED:"xmpp.av_moderation.approved",AV_MODERATION_REJECTED:"xmpp.av_moderation.rejected",AV_MODERATION_RECEIVED:"xmpp.av_moderation.received",AV_MODERATION_CHANGED:"xmpp.av_moderation.changed",AV_MODERATION_PARTICIPANT_APPROVED:"xmpp.av_moderation.participant.approved",AV_MODERATION_PARTICIPANT_REJECTED:"xmpp.av_moderation.participant.rejected",BREAKOUT_ROOMS_MOVE_TO_ROOM:"xmpp.breakout-rooms.move-to-room",BREAKOUT_ROOMS_EVENT:"xmpp.breakout-rooms.event",BREAKOUT_ROOMS_UPDATED:"xmpp.breakout-rooms.updated",START_MUTED_FROM_FOCUS:"xmpp.start_muted_from_focus",SUBJECT_CHANGED:"xmpp.subject_changed",SUSPEND_DETECTED:"xmpp.suspend_detected",TRANSCRIPTION_STATUS_CHANGED:"xmpp.transcription_status_changed",TRANSPORT_INFO:"xmpp.transportinfo.jingle",VIDEO_SIP_GW_AVAILABILITY_CHANGED:"xmpp.videoSIPGWAvailabilityChanged",VIDEO_SIP_GW_SESSION_STATE_CHANGED:"xmpp.videoSIPGWSessionStateChanged",ICE_CONNECTION_STATE_CHANGED:"xmpp.ice_connection_state_changed",JSON_MESSAGE_RECEIVED:"xmmp.json_message_received"};},9742:function _(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i;},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],a=r[1],d=new s(function(e,t,n){return 3*(t+n)/4-n;}(0,o,a)),l=0,h=a>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],d[l++]=t>>16&255,d[l++]=t>>8&255,d[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,d[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,d[l++]=t>>8&255,d[l++]=255&t),d;},t.fromByteArray=function(e){for(var t,i=e.length,s=i%3,r=[],o=16383,a=0,c=i-s;a<c;a+=o)r.push(d(e,a,a+o>c?c:a+o));return 1===s?(t=e[i-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===s&&(t=(e[i-2]<<8)+e[i-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("");};for(var n=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=r.length;o<a;++o)n[o]=r[o],i[r.charCodeAt(o)]=o;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4];}function d(e,t,i){for(var s,r,o=[],a=t;a<i;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(r=s)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("");}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63;},1206:function _(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports;}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i});},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==_typeof(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t];}.bind(null,s));return i;},n.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return n.d(t,"a",t),t;},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},n.p="",n(n.s=90);}({17:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(18),s=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||"";},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||"";},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n;},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return;}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0;});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return;}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0;});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0;},e.getVersionPrecision=function(e){return e.split(".").length;},e.compareVersions=function(t,n,i){void 0===i&&(i=!1);var s=e.getVersionPrecision(t),r=e.getVersionPrecision(n),o=Math.max(s,r),a=0,c=e.map([t,n],function(t){var n=o-e.getVersionPrecision(t),i=t+new Array(n+1).join(".0");return e.map(i.split("."),function(e){return new Array(20-e.length).join("0")+e;}).reverse();});for(i&&(a=o-Math.min(s,r)),o-=1;o>=a;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===a)return 0;o-=1;}else if(c[0][o]<c[1][o])return-1;}},e.map=function(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)i.push(t(e[n]));return i;},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e];},e.getBrowserTypeByAlias=function(e){return i.BROWSER_MAP[e]||"";},e;}();t.default=s,e.exports=t.default;},18:function _(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};},90:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,s=(i=n(91))&&i.__esModule?i:{default:i},r=n(18);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i);}}var a=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new s.default(e,t);},e.parse=function(e){return new s.default(e).getResult();},t=e,n=[{key:"BROWSER_MAP",get:function get(){return r.BROWSER_MAP;}},{key:"ENGINE_MAP",get:function get(){return r.ENGINE_MAP;}},{key:"OS_MAP",get:function get(){return r.OS_MAP;}},{key:"PLATFORMS_MAP",get:function get(){return r.PLATFORMS_MAP;}}],null&&o(t.prototype,null),n&&o(t,n),e;}();t.default=a,e.exports=t.default;},91:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=c(n(92)),s=c(n(93)),r=c(n(94)),o=c(n(95)),a=c(n(17));function c(e){return e&&e.__esModule?e:{default:e};}var d=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can\'t be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse();}var t=e.prototype;return t.getUA=function(){return this._ua;},t.test=function(e){return e.test(this._ua);},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=i.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t);});throw new Error("Browser\'s test function is not valid");});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser;},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser();},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||"";},t.getBrowserVersion=function(){return this.getBrowser().version;},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS();},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t);});throw new Error("Browser\'s test function is not valid");});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os;},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||"";},t.getOSVersion=function(){return this.getOS().version;},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform();},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||"";},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=r.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t);});throw new Error("Browser\'s test function is not valid");});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform;},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine();},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||"";},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t);});throw new Error("Browser\'s test function is not valid");});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine;},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this;},t.getResult=function(){return Object.assign({},this.parsedResult);},t.satisfies=function(e){var t=this,n={},i=0,s={},r=0;if(Object.keys(e).forEach(function(t){var o=e[t];"string"==typeof o?(s[t]=o,r+=1):"object"==_typeof(o)&&(n[t]=o,i+=1);}),i>0){var o=Object.keys(n),a=o.find(function(e){return t.isOS(e);});if(a){var c=this.satisfies(n[a]);if(void 0!==c)return c;}var d=o.find(function(e){return t.isPlatform(e);});if(d){var l=this.satisfies(n[d]);if(void 0!==l)return l;}}if(r>0){var h=Object.keys(s).find(function(e){return t.isBrowser(e,!0);});if(void 0!==h)return this.compareVersion(s[h]);}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),s=a.default.getBrowserTypeByAlias(i);return t&&s&&(i=s.toLowerCase()),i===n;},t.compareVersion=function(e){var t=[0],n=e,i=!1,s=this.getBrowserVersion();if("string"==typeof s)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(i=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(i=!0,n=e.substr(1)),t.indexOf(a.default.compareVersions(s,n,i))>-1;},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase();},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase();},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase();},t.is=function(e){return this.isBrowser(e)||this.isOS(e)||this.isPlatform(e);},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e);});},e;}();t.default=d,e.exports=t.default;},92:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,s=(i=n(17))&&i.__esModule?i:{default:i},r=/version\\/(\\d+(\\.?_?\\d+)+)/i,o=[{test:[/googlebot/i],describe:function describe(e){var t={name:"Googlebot"},n=s.default.getFirstMatch(/googlebot\\/(\\d+(\\.\\d+))/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/opera/i],describe:function describe(e){var t={name:"Opera"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:opera)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/opr\\/|opios/i],describe:function describe(e){var t={name:"Opera"},n=s.default.getFirstMatch(/(?:opr|opios)[\\s/](\\S+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/SamsungBrowser/i],describe:function describe(e){var t={name:"Samsung Internet for Android"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:SamsungBrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/Whale/i],describe:function describe(e){var t={name:"NAVER Whale Browser"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:whale)[\\s/](\\d+(?:\\.\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/MZBrowser/i],describe:function describe(e){var t={name:"MZ Browser"},n=s.default.getFirstMatch(/(?:MZBrowser)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/focus/i],describe:function describe(e){var t={name:"Focus"},n=s.default.getFirstMatch(/(?:focus)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/swing/i],describe:function describe(e){var t={name:"Swing"},n=s.default.getFirstMatch(/(?:swing)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/coast/i],describe:function describe(e){var t={name:"Opera Coast"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:coast)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/yabrowser/i],describe:function describe(e){var t={name:"Yandex Browser"},n=s.default.getFirstMatch(/(?:yabrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/ucbrowser/i],describe:function describe(e){var t={name:"UC Browser"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:ucbrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/Maxthon|mxios/i],describe:function describe(e){var t={name:"Maxthon"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/epiphany/i],describe:function describe(e){var t={name:"Epiphany"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:epiphany)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/puffin/i],describe:function describe(e){var t={name:"Puffin"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:puffin)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/sleipnir/i],describe:function describe(e){var t={name:"Sleipnir"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:sleipnir)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/k-meleon/i],describe:function describe(e){var t={name:"K-Meleon"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/(?:k-meleon)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/micromessenger/i],describe:function describe(e){var t={name:"WeChat"},n=s.default.getFirstMatch(/(?:micromessenger)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/qqbrowser/i],describe:function describe(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/msie|trident/i],describe:function describe(e){var t={name:"Internet Explorer"},n=s.default.getFirstMatch(/(?:msie |rv:)(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/\\sedg\\//i],describe:function describe(e){var t={name:"Microsoft Edge"},n=s.default.getFirstMatch(/\\sedg\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/edg([ea]|ios)/i],describe:function describe(e){var t={name:"Microsoft Edge"},n=s.default.getSecondMatch(/edg([ea]|ios)\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/vivaldi/i],describe:function describe(e){var t={name:"Vivaldi"},n=s.default.getFirstMatch(/vivaldi\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/seamonkey/i],describe:function describe(e){var t={name:"SeaMonkey"},n=s.default.getFirstMatch(/seamonkey\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/sailfish/i],describe:function describe(e){var t={name:"Sailfish"},n=s.default.getFirstMatch(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i,e);return n&&(t.version=n),t;}},{test:[/silk/i],describe:function describe(e){var t={name:"Amazon Silk"},n=s.default.getFirstMatch(/silk\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/phantom/i],describe:function describe(e){var t={name:"PhantomJS"},n=s.default.getFirstMatch(/phantomjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/slimerjs/i],describe:function describe(e){var t={name:"SlimerJS"},n=s.default.getFirstMatch(/slimerjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function describe(e){var t={name:"BlackBerry"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/blackberry[\\d]+\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/(web|hpw)[o0]s/i],describe:function describe(e){var t={name:"WebOS Browser"},n=s.default.getFirstMatch(r,e)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/bada/i],describe:function describe(e){var t={name:"Bada"},n=s.default.getFirstMatch(/dolfin\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/tizen/i],describe:function describe(e){var t={name:"Tizen"},n=s.default.getFirstMatch(/(?:tizen\\s?)?browser\\/(\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/qupzilla/i],describe:function describe(e){var t={name:"QupZilla"},n=s.default.getFirstMatch(/(?:qupzilla)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/firefox|iceweasel|fxios/i],describe:function describe(e){var t={name:"Firefox"},n=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/chromium/i],describe:function describe(e){var t={name:"Chromium"},n=s.default.getFirstMatch(/(?:chromium)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/chrome|crios|crmo/i],describe:function describe(e){var t={name:"Chrome"},n=s.default.getFirstMatch(/(?:chrome|crios|crmo)\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/GSA/i],describe:function describe(e){var t={name:"Google Search"},n=s.default.getFirstMatch(/(?:GSA)\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:function test(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n;},describe:function describe(e){var t={name:"Android Browser"},n=s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/playstation 4/i],describe:function describe(e){var t={name:"PlayStation 4"},n=s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/safari|applewebkit/i],describe:function describe(e){var t={name:"Safari"},n=s.default.getFirstMatch(r,e);return n&&(t.version=n),t;}},{test:[/.*/i],describe:function describe(e){var t=-1!==e.search("\\\\(")?/^(.*)\\/(.*)[ \\t]\\((.*)/:/^(.*)\\/(.*) /;return{name:s.default.getFirstMatch(t,e),version:s.default.getSecondMatch(t,e)};}}];t.default=o,e.exports=t.default;},93:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,s=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),o=[{test:[/Roku\\/DVP/],describe:function describe(e){var t=s.default.getFirstMatch(/Roku\\/DVP-(\\d+\\.\\d+)/i,e);return{name:r.OS_MAP.Roku,version:t};}},{test:[/windows phone/i],describe:function describe(e){var t=s.default.getFirstMatch(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i,e);return{name:r.OS_MAP.WindowsPhone,version:t};}},{test:[/windows/i],describe:function describe(e){var t=s.default.getFirstMatch(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i,e),n=s.default.getWindowsVersionName(t);return{name:r.OS_MAP.Windows,version:t,versionName:n};}},{test:[/macintosh/i],describe:function describe(e){var t=s.default.getFirstMatch(/mac os x (\\d+(\\.?_?\\d+)+)/i,e).replace(/[_\\s]/g,"."),n=s.default.getMacOSVersionName(t),i={name:r.OS_MAP.MacOS,version:t};return n&&(i.versionName=n),i;}},{test:[/(ipod|iphone|ipad)/i],describe:function describe(e){var t=s.default.getFirstMatch(/os (\\d+([_\\s]\\d+)*) like mac os x/i,e).replace(/[_\\s]/g,".");return{name:r.OS_MAP.iOS,version:t};}},{test:function test(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n;},describe:function describe(e){var t=s.default.getFirstMatch(/android[\\s/-](\\d+(\\.\\d+)*)/i,e),n=s.default.getAndroidVersionName(t),i={name:r.OS_MAP.Android,version:t};return n&&(i.versionName=n),i;}},{test:[/(web|hpw)[o0]s/i],describe:function describe(e){var t=s.default.getFirstMatch(/(?:web|hpw)[o0]s\\/(\\d+(\\.\\d+)*)/i,e),n={name:r.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n;}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function describe(e){var t=s.default.getFirstMatch(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i,e)||s.default.getFirstMatch(/blackberry\\d+\\/(\\d+([_\\s]\\d+)*)/i,e)||s.default.getFirstMatch(/\\bbb(\\d+)/i,e);return{name:r.OS_MAP.BlackBerry,version:t};}},{test:[/bada/i],describe:function describe(e){var t=s.default.getFirstMatch(/bada\\/(\\d+(\\.\\d+)*)/i,e);return{name:r.OS_MAP.Bada,version:t};}},{test:[/tizen/i],describe:function describe(e){var t=s.default.getFirstMatch(/tizen[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:r.OS_MAP.Tizen,version:t};}},{test:[/linux/i],describe:function describe(){return{name:r.OS_MAP.Linux};}},{test:[/CrOS/],describe:function describe(){return{name:r.OS_MAP.ChromeOS};}},{test:[/PlayStation 4/],describe:function describe(e){var t=s.default.getFirstMatch(/PlayStation 4[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:r.OS_MAP.PlayStation4,version:t};}}];t.default=o,e.exports=t.default;},94:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,s=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),o=[{test:[/googlebot/i],describe:function describe(){return{type:"bot",vendor:"Google"};}},{test:[/huawei/i],describe:function describe(e){var t=s.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:r.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n;}},{test:[/nexus\\s*(?:7|8|9|10).*/i],describe:function describe(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Nexus"};}},{test:[/ipad/i],describe:function describe(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"};}},{test:[/kftt build/i],describe:function describe(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"};}},{test:[/silk/i],describe:function describe(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon"};}},{test:[/tablet(?! pc)/i],describe:function describe(){return{type:r.PLATFORMS_MAP.tablet};}},{test:function test(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n;},describe:function describe(e){var t=s.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:r.PLATFORMS_MAP.mobile,vendor:"Apple",model:t};}},{test:[/nexus\\s*[0-6].*/i,/galaxy nexus/i],describe:function describe(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Nexus"};}},{test:[/[^-]mobi/i],describe:function describe(){return{type:r.PLATFORMS_MAP.mobile};}},{test:function test(e){return"blackberry"===e.getBrowserName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.mobile,vendor:"BlackBerry"};}},{test:function test(e){return"bada"===e.getBrowserName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.mobile};}},{test:function test(e){return"windows phone"===e.getBrowserName();},describe:function describe(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Microsoft"};}},{test:function test(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3;},describe:function describe(){return{type:r.PLATFORMS_MAP.tablet};}},{test:function test(e){return"android"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.mobile};}},{test:function test(e){return"macos"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.desktop,vendor:"Apple"};}},{test:function test(e){return"windows"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.desktop};}},{test:function test(e){return"linux"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.desktop};}},{test:function test(e){return"playstation 4"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.tv};}},{test:function test(e){return"roku"===e.getOSName(!0);},describe:function describe(){return{type:r.PLATFORMS_MAP.tv};}}];t.default=o,e.exports=t.default;},95:function _(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,s=(i=n(17))&&i.__esModule?i:{default:i},r=n(18),o=[{test:function test(e){return"microsoft edge"===e.getBrowserName(!0);},describe:function describe(e){if(/\\sedg\\//i.test(e))return{name:r.ENGINE_MAP.Blink};var t=s.default.getFirstMatch(/edge\\/(\\d+(\\.?_?\\d+)+)/i,e);return{name:r.ENGINE_MAP.EdgeHTML,version:t};}},{test:[/trident/i],describe:function describe(e){var t={name:r.ENGINE_MAP.Trident},n=s.default.getFirstMatch(/trident\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:function test(e){return e.test(/presto/i);},describe:function describe(e){var t={name:r.ENGINE_MAP.Presto},n=s.default.getFirstMatch(/presto\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:function test(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n;},describe:function describe(e){var t={name:r.ENGINE_MAP.Gecko},n=s.default.getFirstMatch(/gecko\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}},{test:[/(apple)?webkit\\/537\\.36/i],describe:function describe(){return{name:r.ENGINE_MAP.Blink};}},{test:[/(apple)?webkit/i],describe:function describe(e){var t={name:r.ENGINE_MAP.WebKit},n=s.default.getFirstMatch(/webkit\\/(\\d+(\\.?_?\\d+)+)/i,e);return n&&(t.version=n),t;}}];t.default=o,e.exports=t.default;}});},667:function _(e,t){var n,i;this||window,void 0===(i="function"==typeof(n=function n(){var e=/^(interactive|loaded|complete)$/,t=window.location?window.location.href:null,n=t&&t.replace(/#.*$/,"").replace(/\\?.*$/,"")||null,i=document.getElementsByTagName("script"),s=("readyState"in(i[0]||document.createElement("script"))),r=!window.opera||"[object Opera]"!==window.opera.toString(),o=("currentScript"in document);"stackTraceLimit"in Error&&Error.stackTraceLimit!==1/0&&(Error.stackTraceLimit,Error.stackTraceLimit=1/0);var a=!1,c=!1;function d(e,t){var n,i=null,s="number"==typeof t;return t=s?Math.round(t):0,"string"==typeof e&&e&&(s?n=e.match(/(data:text\\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\\/\\/[\\/]?.+?\\/[^:\\)]*?)(?::\\d+)(?::\\d+)?/):(n=e.match(/^(?:|[^:@]*@|.+\\)@(?=data:text\\/javascript|blob|http[s]?|file)|.+?\\s+(?: at |@)(?:[^:\\(]+ )*[\\(]?)(data:text\\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\\/\\/[\\/]?.+?\\/[^:\\)]*?)(?::\\d+)(?::\\d+)?/))&&n[1]||(n=e.match(/\\)@(data:text\\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\\/\\/[\\/]?.+?\\/[^:\\)]*?)(?::\\d+)(?::\\d+)?/)),n&&n[1]&&(i=t>0?d(e.slice(e.indexOf(n[0])+n[0].length),t-1):n[1])),i;}function l(){if(0===i.length)return null;var t,h,u,p,m,f=[],g=l.skipStackDepth||1;for(t=0;t<i.length;t++)r&&s?e.test(i[t].readyState)&&f.push(i[t]):f.push(i[t]);if(h=new Error(),a&&(u=h.stack),!u&&c)try{throw h;}catch(e){u=e.stack;}if(u&&!(m=function(e,t){var n,s=null;if(t=t||i,"string"==typeof e&&e)for(n=t.length;n--;)if(t[n].src===e){s=t[n];break;}return s;}(p=d(u,g),f))&&n&&p===n&&(m=function(e){var t,n,s=null;for(t=0,n=(e=e||i).length;t<n;t++)if(!e[t].hasAttribute("src")){if(s){s=null;break;}s=e[t];}return s;}(f)),m||1===f.length&&(m=f[0]),m||o&&(m=document.currentScript),!m&&r&&s)for(t=f.length;t--;)if("interactive"===f[t].readyState){m=f[t];break;}return m||(m=f[f.length-1]||null),m;}(function(){try{var e=new Error();throw a="string"==typeof e.stack&&!!e.stack,e;}catch(e){c="string"==typeof e.stack&&!!e.stack;}})(),l.skipStackDepth=1;var h=l;return h.near=l,h.far=function(){return null;},h.origin=function(){return null;},h;})?n.apply(t,[]):n)||(e.exports=i);},7187:function _(e){"use strict";var t,n="object"==(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n);};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));}:function(e){return Object.getOwnPropertyNames(e);};var s=Number.isNaN||function(e){return e!=e;};function r(){r.init.call(this);}e.exports=r,e.exports.once=function(e,t){return new Promise(function(n,i){function s(n){e.removeListener(t,r),i(n);}function r(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments));}f(e,t,r,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,{once:!0});}(e,s);});},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError(\'The "listener" argument must be of type Function. Received type \'+_typeof(e));}function c(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners;}function d(e,t,n,i){var s,r,o,d;if(a(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),o=r[t]),void 0===o)o=r[t]=n,++e._eventsCount;else if("function"==typeof o?o=r[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(s=c(e))>0&&o.length>s&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,d=l,console&&console.warn&&console.warn(d);}return e;}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments);}function h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=l.bind(i);return s.listener=n,i.wrapFn=s,s;}function u(e,t,n){var i=e._events;if(void 0===i)return[];var s=i[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t;}(s):m(s,s.length);}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length;}return 0;}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n;}function f(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError(\'The "emitter" argument must be of type EventEmitter. Received type \'+_typeof(e));e.addEventListener(t,function s(r){i.once&&e.removeEventListener(t,s),n(r);});}}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function get(){return o;},set:function set(e){if("number"!=typeof e||e<0||s(e))throw new RangeError(\'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received \'+e+".");o=e;}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError(\'The value of "n" is out of range. It must be a non-negative number. Received \'+e+".");return this._maxListeners=e,this;},r.prototype.getMaxListeners=function(){return c(this);},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,r=this._events;if(void 0!==r)s=s&&void 0===r.error;else if(!s)return!1;if(s){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a;}var c=r[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var d=c.length,l=m(c,d);for(n=0;n<d;++n)i(l[n],this,t);}return!0;},r.prototype.addListener=function(e,t){return d(this,e,t,!1);},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return d(this,e,t,!0);},r.prototype.once=function(e,t){return a(t),this.on(e,h(this,e,t)),this;},r.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,h(this,e,t)),this;},r.prototype.removeListener=function(e,t){var n,i,s,r,o;if(a(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(s=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){o=n[r].listener,s=r;break;}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop();}(n,s),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,o||t);}return this;},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var s,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(s=r[i])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this;}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this;},r.prototype.listeners=function(e){return u(this,e,!0);},r.prototype.rawListeners=function(e){return u(this,e,!1);},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t);},r.prototype.listenerCount=p,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[];};},8495:function _(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==(typeof window==="undefined"?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==(typeof self==="undefined"?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==(typeof process==="undefined"?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer);}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e);}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==_typeof(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer;});var createOutputMethod=function createOutputMethod(e){return function(t){return new Md5(!0).update(t)[e]();};},createMethod=function createMethod(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5();},e.update=function(t){return e.create().update(t);};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n);}return e;},nodeWrap=function nodeWrap(method){var crypto=eval("require(\'crypto\')"),Buffer=eval("require(\'buffer\').Buffer"),nodeMethod=function nodeMethod(e){if("string"==typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e);};return nodeMethod;};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t);}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0;}Md5.prototype.update=function(e){if(!this.finalized){var t,n=_typeof(e);if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw ERROR;t=!0;}for(var i,s,r=0,o=e.length,a=this.blocks,c=this.buffer8;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t){if(ARRAY_BUFFER)for(s=this.start;r<o&&s<64;++r)c[s++]=e[r];else for(s=this.start;r<o&&s<64;++r)a[s>>2]|=e[r]<<SHIFT[3&s++];}else if(ARRAY_BUFFER)for(s=this.start;r<o&&s<64;++r)(i=e.charCodeAt(r))<128?c[s++]=i:i<2048?(c[s++]=192|i>>6,c[s++]=128|63&i):i<55296||i>=57344?(c[s++]=224|i>>12,c[s++]=128|i>>6&63,c[s++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),c[s++]=240|i>>18,c[s++]=128|i>>12&63,c[s++]=128|i>>6&63,c[s++]=128|63&i);else for(s=this.start;r<o&&s<64;++r)(i=e.charCodeAt(r))<128?a[s>>2]|=i<<SHIFT[3&s++]:i<2048?(a[s>>2]|=(192|i>>6)<<SHIFT[3&s++],a[s>>2]|=(128|63&i)<<SHIFT[3&s++]):i<55296||i>=57344?(a[s>>2]|=(224|i>>12)<<SHIFT[3&s++],a[s>>2]|=(128|i>>6&63)<<SHIFT[3&s++],a[s>>2]|=(128|63&i)<<SHIFT[3&s++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),a[s>>2]|=(240|i>>18)<<SHIFT[3&s++],a[s>>2]|=(128|i>>12&63)<<SHIFT[3&s++],a[s>>2]|=(128|i>>6&63)<<SHIFT[3&s++],a[s>>2]|=(128|63&i)<<SHIFT[3&s++]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s;}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this;}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash();}},Md5.prototype.hash=function(){var e,t,n,i,s,r,o=this.blocks;this.first?t=((t=((e=((e=o[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(i=((i=(-1732584194^2004318071&e)+o[1]-117830708)<<12|i>>>20)+e<<0)&(-271733879^e))+o[2]-1126478375)<<17|n>>>15)+i<<0)&(i^e))+o[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((i=this.h3)^t&(n^i))+o[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+o[1]-389564586)<<12|i>>>20)+e<<0)&(e^t))+o[2]+606105819)<<17|n>>>15)+i<<0)&(i^e))+o[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(i^t&(n^i))+o[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+o[5]+1200080426)<<12|i>>>20)+e<<0)&(e^t))+o[6]-1473231341)<<17|n>>>15)+i<<0)&(i^e))+o[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(i^t&(n^i))+o[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+o[9]-1958414417)<<12|i>>>20)+e<<0)&(e^t))+o[10]-42063)<<17|n>>>15)+i<<0)&(i^e))+o[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(i^t&(n^i))+o[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(i=((i+=(n^e&(t^n))+o[13]-40341101)<<12|i>>>20)+e<<0)&(e^t))+o[14]-1502002290)<<17|n>>>15)+i<<0)&(i^e))+o[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+o[1]-165796510)<<5|e>>>27)+t<<0)^t))+o[6]-1069501632)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+o[11]+643717713)<<14|n>>>18)+i<<0)^i))+o[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+o[5]-701558691)<<5|e>>>27)+t<<0)^t))+o[10]+38016083)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+o[15]-660478335)<<14|n>>>18)+i<<0)^i))+o[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+o[9]+568446438)<<5|e>>>27)+t<<0)^t))+o[14]-1019803690)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+o[3]-187363961)<<14|n>>>18)+i<<0)^i))+o[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((i=((i+=(t^n&((e=((e+=(n^i&(t^n))+o[13]-1444681467)<<5|e>>>27)+t<<0)^t))+o[2]-51403784)<<9|i>>>23)+e<<0)^e&((n=((n+=(e^t&(i^e))+o[7]+1735328473)<<14|n>>>18)+i<<0)^i))+o[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((r=(i=((i+=((s=t^n)^(e=((e+=(s^i)+o[5]-378558)<<4|e>>>28)+t<<0))+o[8]-2022574463)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+o[11]+1839030562)<<16|n>>>16)+i<<0))+o[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((s=t^n)^(e=((e+=(s^i)+o[1]-1530992060)<<4|e>>>28)+t<<0))+o[4]+1272893353)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+o[7]-155497632)<<16|n>>>16)+i<<0))+o[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((s=t^n)^(e=((e+=(s^i)+o[13]+681279174)<<4|e>>>28)+t<<0))+o[0]-358537222)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+o[3]-722521979)<<16|n>>>16)+i<<0))+o[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((r=(i=((i+=((s=t^n)^(e=((e+=(s^i)+o[9]-640364487)<<4|e>>>28)+t<<0))+o[12]-421815835)<<11|i>>>21)+e<<0)^e)^(n=((n+=(r^t)+o[15]+530742520)<<16|n>>>16)+i<<0))+o[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+o[0]-198630844)<<6|e>>>26)+t<<0)|~n))+o[7]+1126891415)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+o[14]-1416354905)<<15|n>>>17)+i<<0)|~e))+o[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+o[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+o[3]-1894986606)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+o[10]-1051523)<<15|n>>>17)+i<<0)|~e))+o[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+o[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+o[15]-30611744)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+o[6]-1560198380)<<15|n>>>17)+i<<0)|~e))+o[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((i=((i+=(t^((e=((e+=(n^(t|~i))+o[4]-145523070)<<6|e>>>26)+t<<0)|~n))+o[11]-1120210379)<<10|i>>>22)+e<<0)^((n=((n+=(e^(i|~t))+o[2]+718787259)<<15|n>>>17)+i<<0)|~e))+o[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+i<<0);},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15];},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255];},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e;},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,i="",s=this.array(),r=0;r<15;)e=s[r++],t=s[r++],n=s[r++],i+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=s[r],i+(BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==");};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports;}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)));})();},3465:function _(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",s=9007199254740991,r="[object Arguments]",o="[object Boolean]",a="[object Date]",c="[object Function]",d="[object GeneratorFunction]",l="[object Map]",h="[object Number]",u="[object Object]",p="[object Promise]",m="[object RegExp]",f="[object Set]",g="[object String]",_="[object Symbol]",v="[object WeakMap]",S="[object ArrayBuffer]",y="[object DataView]",E="[object Float32Array]",C="[object Float64Array]",b="[object Int8Array]",T="[object Int16Array]",R="[object Int32Array]",A="[object Uint8Array]",w="[object Uint8ClampedArray]",I="[object Uint16Array]",P="[object Uint32Array]",M=/\\w*$/,D=/^\\[object .+?Constructor\\]$/,N=/^(?:0|[1-9]\\d*)$/,k={};k[r]=k["[object Array]"]=k[S]=k[y]=k[o]=k[a]=k[E]=k[C]=k[b]=k[T]=k[R]=k[l]=k[h]=k[u]=k[m]=k[f]=k[g]=k[_]=k[A]=k[w]=k[I]=k[P]=!0,k["[object Error]"]=k[c]=k[v]=!1;var O="object"==_typeof(n.g)&&n.g&&n.g.Object===Object&&n.g,L="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,x=O||L||Function("return this")(),F=t&&!t.nodeType&&t,j=F&&e&&!e.nodeType&&e,$=j&&j.exports===F;function U(e,t){return e.set(t[0],t[1]),e;}function B(e,t){return e.add(t),e;}function V(e,t,n,i){var s=-1,r=e?e.length:0;for(i&&r&&(n=e[++s]);++s<r;)n=t(n,e[s],s,e);return n;}function J(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"");}catch(e){}return t;}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e];}),n;}function G(e,t){return function(n){return e(t(n));};}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e;}),n;}var K,z=Array.prototype,W=Function.prototype,Q=Object.prototype,X=x["__core-js_shared__"],Y=(K=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",Z=W.toString,ee=Q.hasOwnProperty,te=Q.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ie=$?x.Buffer:void 0,se=x.Symbol,re=x.Uint8Array,oe=G(Object.getPrototypeOf,Object),ae=Object.create,ce=Q.propertyIsEnumerable,de=z.splice,le=Object.getOwnPropertySymbols,he=ie?ie.isBuffer:void 0,ue=G(Object.keys,Object),pe=xe(x,"DataView"),me=xe(x,"Map"),fe=xe(x,"Promise"),ge=xe(x,"Set"),_e=xe(x,"WeakMap"),ve=xe(Object,"create"),Se=Be(pe),ye=Be(me),Ee=Be(fe),Ce=Be(ge),be=Be(_e),Te=se?se.prototype:void 0,Re=Te?Te.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function we(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function Pe(e){this.__data__=new we(e);}function Me(e,t,n){var i=e[t];ee.call(e,t)&&Ve(i,n)&&(void 0!==n||t in e)||(e[t]=n);}function De(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1;}function Ne(e,t,n,i,s,p,v){var D;if(i&&(D=p?i(e,s,p,v):i(e)),void 0!==D)return D;if(!Ke(e))return e;var N=Je(e);if(N){if(D=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n;}(e),!t)return function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t;}(e,D);}else{var O=je(e),L=O==c||O==d;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n;}(e,t);if(O==u||O==r||L&&!p){if(J(e))return p?e:{};if(D=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:Ke(t=oe(e))?ae(t):{};var t;}(L?{}:e),!t)return function(e,t){return Oe(e,Fe(e),t);}(e,function(e,t){return e&&Oe(t,ze(t),e);}(D,e));}else{if(!k[O])return p?e:{};D=function(e,t,n,i){var s,r=e.constructor;switch(t){case S:return ke(e);case o:case a:return new r(+e);case y:return function(e,t){var n=t?ke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength);}(e,i);case E:case C:case b:case T:case R:case A:case w:case I:case P:return function(e,t){var n=t?ke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length);}(e,i);case l:return function(e,t,n){return V(t?n(H(e),!0):H(e),U,new e.constructor());}(e,i,n);case h:case g:return new r(e);case m:return function(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t;}(e);case f:return function(e,t,n){return V(t?n(q(e),!0):q(e),B,new e.constructor());}(e,i,n);case _:return s=e,Re?Object(Re.call(s)):{};}}(e,O,Ne,t);}}v||(v=new Pe());var x=v.get(e);if(x)return x;if(v.set(e,D),!N)var F=n?function(e){return function(e,t,n){var i=t(e);return Je(e)?i:function(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e;}(i,n(e));}(e,ze,Fe);}(e):ze(e);return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n););}(F||e,function(s,r){F&&(s=e[r=s]),Me(D,r,Ne(s,t,n,i,r,e,v));}),D;}function ke(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t;}function Oe(e,t,n,i){n||(n={});for(var s=-1,r=t.length;++s<r;){var o=t[s],a=i?i(n[o],e[o],o,n,e):void 0;Me(n,o,void 0===a?e[o]:a);}return n;}function Le(e,t){var n,i,s=e.__data__;return("string"==(i=_typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map;}function xe(e,t){var n=function(e,t){return null==e?void 0:e[t];}(e,t);return function(e){return!(!Ke(e)||(t=e,Y&&Y in t))&&(qe(e)||J(e)?ne:D).test(Be(e));var t;}(n)?n:void 0;}Ae.prototype.clear=function(){this.__data__=ve?ve(null):{};},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e];},Ae.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===i?void 0:n;}return ee.call(t,e)?t[e]:void 0;},Ae.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:ee.call(t,e);},Ae.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?i:t,this;},we.prototype.clear=function(){this.__data__=[];},we.prototype.delete=function(e){var t=this.__data__,n=De(t,e);return!(n<0||(n==t.length-1?t.pop():de.call(t,n,1),0));},we.prototype.get=function(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1];},we.prototype.has=function(e){return De(this.__data__,e)>-1;},we.prototype.set=function(e,t){var n=this.__data__,i=De(n,e);return i<0?n.push([e,t]):n[i][1]=t,this;},Ie.prototype.clear=function(){this.__data__={hash:new Ae(),map:new(me||we)(),string:new Ae()};},Ie.prototype.delete=function(e){return Le(this,e).delete(e);},Ie.prototype.get=function(e){return Le(this,e).get(e);},Ie.prototype.has=function(e){return Le(this,e).has(e);},Ie.prototype.set=function(e,t){return Le(this,e).set(e,t),this;},Pe.prototype.clear=function(){this.__data__=new we();},Pe.prototype.delete=function(e){return this.__data__.delete(e);},Pe.prototype.get=function(e){return this.__data__.get(e);},Pe.prototype.has=function(e){return this.__data__.has(e);},Pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var i=n.__data__;if(!me||i.length<199)return i.push([e,t]),this;n=this.__data__=new Ie(i);}return n.set(e,t),this;};var Fe=le?G(le,Object):function(){return[];},je=function je(e){return te.call(e);};function $e(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t;}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q);}function Be(e){if(null!=e){try{return Z.call(e);}catch(e){}try{return e+"";}catch(e){}}return"";}function Ve(e,t){return e===t||e!=e&&t!=t;}(pe&&je(new pe(new ArrayBuffer(1)))!=y||me&&je(new me())!=l||fe&&je(fe.resolve())!=p||ge&&je(new ge())!=f||_e&&je(new _e())!=v)&&(je=function je(e){var t=te.call(e),n=t==u?e.constructor:void 0,i=n?Be(n):void 0;if(i)switch(i){case Se:return y;case ye:return l;case Ee:return p;case Ce:return f;case be:return v;}return t;});var Je=Array.isArray;function He(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s;}(e.length)&&!qe(e);}var Ge=he||function(){return!1;};function qe(e){var t=Ke(e)?te.call(e):"";return t==c||t==d;}function Ke(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t);}function ze(e){return He(e)?function(e,t){var n=Je(e)||function(e){return function(e){return function(e){return!!e&&"object"==_typeof(e);}(e)&&He(e);}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||te.call(e)==r);}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i;}(e.length,String):[],i=n.length,s=!!i;for(var o in e)!t&&!ee.call(e,o)||s&&("length"==o||$e(o,i))||n.push(o);return n;}(e):function(e){if(!Ue(e))return ue(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t;}(e);}e.exports=function(e){return Ne(e,!0,!0);};},1296:function _(e,t,n){var i=/^\\s+|\\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c="object"==_typeof(n.g)&&n.g&&n.g.Object===Object&&n.g,d="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,l=c||d||Function("return this")(),h=Object.prototype.toString,u=Math.max,p=Math.min,m=function m(){return l.Date.now();};function f(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t);}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e);}(e)&&"[object Symbol]"==h.call(e);}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t;}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=r.test(e);return n||o.test(e)?a(e.slice(2),n?2:8):s.test(e)?NaN:+e;}e.exports=function(e,t,n){var i,s,r,o,a,c,d=0,l=!1,h=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,r=s;return i=s=void 0,d=t,o=e.apply(r,n);}function S(e){return d=e,a=setTimeout(E,t),l?v(e):o;}function y(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-d>=r;}function E(){var e=m();if(y(e))return C(e);a=setTimeout(E,function(e){var n=t-(e-c);return h?p(n,r-(e-d)):n;}(e));}function C(e){return a=void 0,_&&i?v(e):(i=s=void 0,o);}function b(){var e=m(),n=y(e);if(i=arguments,s=this,c=e,n){if(void 0===a)return S(c);if(h)return a=setTimeout(E,t),v(c);}return void 0===a&&(a=setTimeout(E,t)),o;}return t=g(t)||0,f(n)&&(l=!!n.leading,r=(h="maxWait"in n)?u(g(n.maxWait)||0,t):r,_="trailing"in n?!!n.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),d=0,i=c=s=a=void 0;},b.flush=function(){return void 0===a?o:C(m());},b;};},2307:function _(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",s=9007199254740991,r="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",d="[object Error]",l="[object Function]",h="[object Map]",u="[object Number]",p="[object Object]",m="[object Promise]",f="[object RegExp]",g="[object Set]",_="[object String]",v="[object WeakMap]",S="[object ArrayBuffer]",y="[object DataView]",E=/^\\[object .+?Constructor\\]$/,C=/^(?:0|[1-9]\\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[r]=b[o]=b[S]=b[a]=b[y]=b[c]=b[d]=b[l]=b[h]=b[u]=b[p]=b[f]=b[g]=b[_]=b[v]=!1;var T="object"==_typeof(n.g)&&n.g&&n.g.Object===Object&&n.g,R="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self,A=T||R||Function("return this")(),w=t&&!t.nodeType&&t,I=w&&e&&!e.nodeType&&e,P=I&&I.exports===w,M=P&&T.process,D=function(){try{return M&&M.binding&&M.binding("util");}catch(e){}}(),N=D&&D.isTypedArray;function k(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1;}function O(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e];}),n;}function L(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e;}),n;}var x,F,j,$=Array.prototype,U=Function.prototype,B=Object.prototype,V=A["__core-js_shared__"],J=U.toString,H=B.hasOwnProperty,G=(x=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",q=B.toString,K=RegExp("^"+J.call(H).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),z=P?A.Buffer:void 0,W=A.Symbol,Q=A.Uint8Array,X=B.propertyIsEnumerable,Y=$.splice,Z=W?W.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=z?z.isBuffer:void 0,ne=(F=Object.keys,j=Object,function(e){return F(j(e));}),ie=Ie(A,"DataView"),se=Ie(A,"Map"),re=Ie(A,"Promise"),oe=Ie(A,"Set"),ae=Ie(A,"WeakMap"),ce=Ie(Object,"create"),de=Ne(ie),le=Ne(se),he=Ne(re),ue=Ne(oe),pe=Ne(ae),me=W?W.prototype:void 0,fe=me?me.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1]);}}function Se(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve();++t<n;)this.add(e[t]);}function ye(e){var t=this.__data__=new _e(e);this.size=t.size;}function Ee(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1;}function Ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=H.call(e,Z),n=e[Z];try{e[Z]=void 0;var i=!0;}catch(e){}var s=q.call(e);return i&&(t?e[Z]=n:delete e[Z]),s;}(e):function(e){return q.call(e);}(e);}function be(e){return Ue(e)&&Ce(e)==r;}function Te(e,t,n,i,s){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,i,s,l){var m=Le(e),v=Le(t),E=m?o:Me(e),C=v?o:Me(t),b=(E=E==r?p:E)==p,T=(C=C==r?p:C)==p,R=E==C;if(R&&xe(e)){if(!xe(t))return!1;m=!0,b=!1;}if(R&&!b)return l||(l=new ye()),m||Be(e)?Re(e,t,n,i,s,l):function(e,t,n,i,s,r,o){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!r(new Q(e),new Q(t)));case a:case c:case u:return ke(+e,+t);case d:return e.name==t.name&&e.message==t.message;case f:case _:return e==t+"";case h:var l=O;case g:var p=1&i;if(l||(l=L),e.size!=t.size&&!p)return!1;var m=o.get(e);if(m)return m==t;i|=2,o.set(e,t);var v=Re(l(e),l(t),i,s,r,o);return o.delete(e),v;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t);}return!1;}(e,t,E,n,i,s,l);if(!(1&n)){var A=b&&H.call(e,"__wrapped__"),w=T&&H.call(t,"__wrapped__");if(A||w){var I=A?e.value():e,P=w?t.value():t;return l||(l=new ye()),s(I,P,n,i,l);}}return!!R&&(l||(l=new ye()),function(e,t,n,i,s,r){var o=1&n,a=Ae(e),c=a.length;if(c!=Ae(t).length&&!o)return!1;for(var d=c;d--;){var l=a[d];if(!(o?l in t:H.call(t,l)))return!1;}var h=r.get(e);if(h&&r.get(t))return h==t;var u=!0;r.set(e,t),r.set(t,e);for(var p=o;++d<c;){var m=e[l=a[d]],f=t[l];if(i)var g=o?i(f,m,l,t,e,r):i(m,f,l,e,t,r);if(!(void 0===g?m===f||s(m,f,n,i,r):g)){u=!1;break;}p||(p="constructor"==l);}if(u&&!p){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(u=!1);}return r.delete(e),r.delete(t),u;}(e,t,n,i,s,l));}(e,t,n,i,Te,s));}function Re(e,t,n,i,s,r){var o=1&n,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var d=r.get(e);if(d&&r.get(t))return d==t;var l=-1,h=!0,u=2&n?new Se():void 0;for(r.set(e,t),r.set(t,e);++l<a;){var p=e[l],m=t[l];if(i)var f=o?i(m,p,l,t,e,r):i(p,m,l,e,t,r);if(void 0!==f){if(f)continue;h=!1;break;}if(u){if(!k(t,function(e,t){if(o=t,!u.has(o)&&(p===e||s(p,e,n,i,r)))return u.push(t);var o;})){h=!1;break;}}else if(p!==m&&!s(p,m,n,i,r)){h=!1;break;}}return r.delete(e),r.delete(t),h;}function Ae(e){return function(e,t,n){var i=t(e);return Le(e)?i:function(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e;}(i,n(e));}(e,Ve,Pe);}function we(e,t){var n,i,s=e.__data__;return("string"==(i=_typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map;}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t];}(e,t);return function(e){return!(!$e(e)||function(e){return!!G&&G in e;}(e))&&(Fe(e)?K:E).test(Ne(e));}(n)?n:void 0;}ge.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0;},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t;},ge.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===i?void 0:n;}return H.call(t,e)?t[e]:void 0;},ge.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:H.call(t,e);},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?i:t,this;},_e.prototype.clear=function(){this.__data__=[],this.size=0;},_e.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0));},_e.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1];},_e.prototype.has=function(e){return Ee(this.__data__,e)>-1;},_e.prototype.set=function(e,t){var n=this.__data__,i=Ee(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this;},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge(),map:new(se||_e)(),string:new ge()};},ve.prototype.delete=function(e){var t=we(this,e).delete(e);return this.size-=t?1:0,t;},ve.prototype.get=function(e){return we(this,e).get(e);},ve.prototype.has=function(e){return we(this,e).has(e);},ve.prototype.set=function(e,t){var n=we(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this;},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,i),this;},Se.prototype.has=function(e){return this.__data__.has(e);},ye.prototype.clear=function(){this.__data__=new _e(),this.size=0;},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n;},ye.prototype.get=function(e){return this.__data__.get(e);},ye.prototype.has=function(e){return this.__data__.has(e);},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var i=n.__data__;if(!se||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(i);}return n.set(e,t),this.size=n.size,this;};var Pe=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,s=null==t?0:t.length,r=0,o=[];++i<s;){var a=t[i];c=a,X.call(e,c)&&(o[r++]=a);}var c;return o;}(ee(e)));}:function(){return[];},Me=Ce;function De(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t;}function Ne(e){if(null!=e){try{return J.call(e);}catch(e){}try{return e+"";}catch(e){}}return"";}function ke(e,t){return e===t||e!=e&&t!=t;}(ie&&Me(new ie(new ArrayBuffer(1)))!=y||se&&Me(new se())!=h||re&&Me(re.resolve())!=m||oe&&Me(new oe())!=g||ae&&Me(new ae())!=v)&&(Me=function Me(e){var t=Ce(e),n=t==p?e.constructor:void 0,i=n?Ne(n):"";if(i)switch(i){case de:return y;case le:return h;case he:return m;case ue:return g;case pe:return v;}return t;});var Oe=be(function(){return arguments;}())?be:function(e){return Ue(e)&&H.call(e,"callee")&&!X.call(e,"callee");},Le=Array.isArray,xe=te||function(){return!1;};function Fe(e){if(!$e(e))return!1;var t=Ce(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t;}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s;}function $e(e){var t=_typeof(e);return null!=e&&("object"==t||"function"==t);}function Ue(e){return null!=e&&"object"==_typeof(e);}var Be=N?function(e){return function(t){return e(t);};}(N):function(e){return Ue(e)&&je(e.length)&&!!b[Ce(e)];};function Ve(e){return null!=(t=e)&&je(t.length)&&!Fe(t)?function(e,t){var n=Le(e),i=!n&&Oe(e),s=!n&&!i&&xe(e),r=!n&&!i&&!s&&Be(e),o=n||i||s||r,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i;}(e.length,String):[],c=a.length;for(var d in e)!t&&!H.call(e,d)||o&&("length"==d||s&&("offset"==d||"parent"==d)||r&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||De(d,c))||a.push(d);return a;}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||B))return ne(e);var t,n,i=[];for(var s in Object(e))H.call(e,s)&&"constructor"!=s&&i.push(s);return i;}(e);var t;}e.exports=function(e,t){return Te(e,t);};},6692:function _(e){var t=e.exports={v:[{name:"version",reg:/^(\\d*)$/}],o:[{name:"origin",reg:/^(\\S*) (\\d*) (\\d*) (\\S*) IP(\\d) (\\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\\d*) (\\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\\d) (\\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\\w*) (\\d*) ([\\w\\/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\\d*) ([\\w\\-\\.]*)(?:\\s*\\/(\\d*)(?:\\s*\\/(\\S*))?)?/,names:["payload","codec","rate","encoding"],format:function format(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s";}},{push:"fmtp",reg:/^fmtp:(\\d*) ([\\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\\d*)(?: (\\S*) IP(\\d) (\\S*))?/,names:["port","netType","ipVer","address"],format:function format(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d";}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\\*|\\d*) trr-int (\\d*)/,names:["payload","value"],format:"rtcp-fb:%d trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\\*|\\d*) ([\\w-_]*)(?: ([\\w-_]*))?/,names:["payload","type","subtype"],format:function format(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s";}},{push:"ext",reg:/^extmap:(\\d+)(?:\\/(\\w+))? (\\S*)(?: (\\S*))?/,names:["value","direction","uri","config"],format:function format(e){return"extmap:%d"+(e.direction?"/%s":"%v")+" %s"+(e.config?" %s":"");}},{push:"crypto",reg:/^crypto:(\\d*) ([\\w_]*) (\\S*)(?: (\\S*))?/,names:["id","suite","config","sessionConfig"],format:function format(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s";}},{name:"setup",reg:/^setup:(\\w*)/,format:"setup:%s"},{name:"mid",reg:/^mid:([^\\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\\d*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\\d*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\\S*) (\\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\\S*) (\\d*) (\\S*) (\\d*) (\\S*) (\\d*) typ (\\S*)(?: raddr (\\S*) rport (\\d*))?(?: tcptype (\\S*))?(?: generation (\\d*))?(?: network-id (\\d*))?(?: network-cost (\\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function format(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),(t+=null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v");}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\\d*) ([\\w_]*)(?::(.*))?/,names:["id","attribute","value"],format:function format(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t;}},{push:"ssrcGroups",reg:/^ssrc-group:([\\x21\\x23\\x24\\x25\\x26\\x27\\x2A\\x2B\\x2D\\x2E\\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\\s?(\\w*) (\\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\\w_\\/]*) (\\S*)(?: (\\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function format(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s";}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\\d\\w]+) (\\w+)(?: ([\\S| ]*))?/,names:["id","direction","params"],format:function format(e){return e.params?"rid:%s %s %s":"rid:%s %s";}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\\\d+|\\\\*)[\\\\s\\\\t]+(send|recv)[\\\\s\\\\t]+(\\\\*|\\\\[\\\\S+\\\\](?:[\\\\s\\\\t]+\\\\[\\\\S+\\\\])*)(?:[\\\\s\\\\t]+(recv|send)[\\\\s\\\\t]+(\\\\*|\\\\[\\\\S+\\\\](?:[\\\\s\\\\t]+\\\\[\\\\S+\\\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function format(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"");}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\\\-_~;,]+)(?:\\\\s?(send|recv) ([a-zA-Z0-9\\\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function format(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"");}},{name:"simulcast_03",reg:/^simulcast:[\\s\\t]+([\\S+\\s\\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\\d+(?:$|\\.\\d+))/,format:"framerate:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach(function(e){t[e].forEach(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s");});});},766:function _(e,t,n){var i=n(962),s=n(5776);t.write=s,t.parse=i.parse,t.parseFmtpConfig=i.parseFmtpConfig,t.parseParams=i.parseParams,t.parsePayloads=i.parsePayloads,t.parseRemoteCandidates=i.parseRemoteCandidates,t.parseImageAttributes=i.parseImageAttributes,t.parseSimulcastStreamList=i.parseSimulcastStreamList;},962:function _(e,t,n){var i=function i(e){return String(Number(e))===e?Number(e):e;},s=function s(e,t,n){var s=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:s&&!t[e.name]&&(t[e.name]={});var r=e.push?{}:s?t[e.name]:t;!function(e,t,n,s){if(s&&!n)t[s]=i(e[1]);else for(var r=0;r<n.length;r+=1)null!=e[r+1]&&(t[n[r]]=i(e[r+1]));}(n.match(e.reg),r,e.names,e.name),e.push&&t[e.push].push(r);},r=n(6692),o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],i=t;return e.split(/(\\r\\n|\\r|\\n)/).filter(o).forEach(function(e){var t=e[0],o=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),i=n[n.length-1]);for(var a=0;a<(r[t]||[]).length;a+=1){var c=r[t][a];if(c.reg.test(o))return s(c,i,o);}}),t.media=n,t;};var a=function a(e,t){var n=t.split(/=(.+)/,2);return 2===n.length&&(e[n[0]]=i(n[1])),e;};t.parseParams=function(e){return e.split(/\\;\\s?/).reduce(a,{});},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.split(" ").map(Number);},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(i),s=0;s<n.length;s+=3)t.push({component:n[s],ip:n[s+1],port:n[s+2]});return t;},t.parseImageAttributes=function(e){return e.split(" ").map(function(e){return e.substring(1,e.length-1).split(",").reduce(a,{});});},t.parseSimulcastStreamList=function(e){return e.split(";").map(function(e){return e.split(",").map(function(e){var t,n=!1;return"~"!==e[0]?t=i(e):(t=i(e.substring(1,e.length)),n=!0),{scid:t,paused:n};});});};},5776:function _(e,t,n){var i=n(6692),s=/%[sdv%]/g,r=function r(e){var t=1,n=arguments,i=n.length;return e.replace(s,function(e){if(t>=i)return e;var s=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(s);case"%d":return Number(s);case"%v":return"";}});},o=function o(e,t,n){var i=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var s=0;s<t.names.length;s+=1){var o=t.names[s];t.name?i.push(n[t.name][o]):i.push(n[t.names[s]]);}else i.push(n[t.name]);return r.apply(null,i);},a=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach(function(e){null==e.payloads&&(e.payloads="");});var n=t.outerOrder||a,s=t.innerOrder||c,r=[];return n.forEach(function(t){i[t].forEach(function(n){n.name in e&&null!=e[n.name]?r.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){r.push(o(t,n,e));});});}),e.media.forEach(function(e){r.push(o("m",i.m[0],e)),s.forEach(function(t){i[t].forEach(function(n){n.name in e&&null!=e[n.name]?r.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){r.push(o(t,n,e));});});});}),r.join("\\r\\n")+"\\r\\n";};},7539:function _(e){"use strict";var t={generateIdentifier:function generateIdentifier(){return Math.random().toString(36).substr(2,10);}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\\n").map(function(e){return e.trim();});},t.splitSections=function(e){return e.split("\\nm=").map(function(e,t){return(t>0?"m="+e:e).trim()+"\\r\\n";});},t.getDescription=function(e){var n=t.splitSections(e);return n&&n[0];},t.getMediaSections=function(e){var n=t.splitSections(e);return n.shift(),n;},t.matchPrefix=function(e,n){return t.splitLines(e).filter(function(e){return 0===e.indexOf(n);});},t.parseCandidate=function(e){var t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");var n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(var _e3=8;_e3<t.length;_e3+=2)switch(t[_e3]){case"raddr":n.relatedAddress=t[_e3+1];break;case"rport":n.relatedPort=parseInt(t[_e3+1],10);break;case"tcptype":n.tcpType=t[_e3+1];break;case"ufrag":n.ufrag=t[_e3+1],n.usernameFragment=t[_e3+1];break;default:void 0===n[t[_e3]]&&(n[t[_e3]]=t[_e3+1]);}return n;},t.writeCandidate=function(e){var t=[];t.push(e.foundation);var n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var i=e.type;return t.push("typ"),t.push(i),"host"!==i&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ");},t.parseIceOptions=function(e){return e.substr(14).split(" ");},t.parseRtpMap=function(e){var t=e.substr(9).split(" ");var n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n;},t.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\\r\\n";},t.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]};},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\\r\\n";},t.parseFmtp=function(e){var t={};var n;var i=e.substr(e.indexOf(" ")+1).split(";");for(var _e4=0;_e4<i.length;_e4++)n=i[_e4].trim().split("="),t[n[0].trim()]=n[1];return t;},t.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var i=[];Object.keys(e.parameters).forEach(function(t){e.parameters[t]?i.push(t+"="+e.parameters[t]):i.push(t);}),t+="a=fmtp:"+n+" "+i.join(";")+"\\r\\n";}return t;},t.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")};},t.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\\r\\n";}),t;},t.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},i=e.indexOf(":",t);return i>-1?(n.attribute=e.substr(t+1,i-t-1),n.value=e.substr(i+1)):n.attribute=e.substr(t+1),n;},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(function(e){return parseInt(e,10);})};},t.getMid=function(e){var n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substr(6);},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]};},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)};},t.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\\r\\n";return e.fingerprints.forEach(function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\\r\\n";}),n;},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)};},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==_typeof(e.keyParams)?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\\r\\n";},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0};},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"");},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine);},t.getIceParameters=function(e,n){var i=t.matchPrefix(e+n,"a=ice-ufrag:")[0],s=t.matchPrefix(e+n,"a=ice-pwd:")[0];return i&&s?{usernameFragment:i.substr(12),password:s.substr(10)}:null;},t.writeIceParameters=function(e){var t="a=ice-ufrag:"+e.usernameFragment+"\\r\\na=ice-pwd:"+e.password+"\\r\\n";return e.iceLite&&(t+="a=ice-lite\\r\\n"),t;},t.parseRtpParameters=function(e){var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(e)[0].split(" ");for(var s=3;s<i.length;s++){var r=i[s],o=t.matchPrefix(e,"a=rtpmap:"+r+" ")[0];if(o){var _i4=t.parseRtpMap(o),_s3=t.matchPrefix(e,"a=fmtp:"+r+" ");switch(_i4.parameters=_s3.length?t.parseFmtp(_s3[0]):{},_i4.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+r+" ").map(t.parseRtcpFb),n.codecs.push(_i4),_i4.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(_i4.name.toUpperCase());}}}return t.matchPrefix(e,"a=extmap:").forEach(function(e){n.headerExtensions.push(t.parseExtmap(e));}),n;},t.writeRtpDescription=function(e,n){var i="";i+="m="+e+" ",i+=n.codecs.length>0?"9":"0",i+=" UDP/TLS/RTP/SAVPF ",i+=n.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType;}).join(" ")+"\\r\\n",i+="c=IN IP4 0.0.0.0\\r\\n",i+="a=rtcp:9 IN IP4 0.0.0.0\\r\\n",n.codecs.forEach(function(e){i+=t.writeRtpMap(e),i+=t.writeFmtp(e),i+=t.writeRtcpFb(e);});var s=0;return n.codecs.forEach(function(e){e.maxptime>s&&(s=e.maxptime);}),s>0&&(i+="a=maxptime:"+s+"\\r\\n"),n.headerExtensions&&n.headerExtensions.forEach(function(e){i+=t.writeExtmap(e);}),i;},t.parseRtpEncodingParameters=function(e){var n=[],i=t.parseRtpParameters(e),s=-1!==i.fecMechanisms.indexOf("RED"),r=-1!==i.fecMechanisms.indexOf("ULPFEC"),o=t.matchPrefix(e,"a=ssrc:").map(function(e){return t.parseSsrcMedia(e);}).filter(function(e){return"cname"===e.attribute;}),a=o.length>0&&o[0].ssrc;var c;var d=t.matchPrefix(e,"a=ssrc-group:FID").map(function(e){return e.substr(17).split(" ").map(function(e){return parseInt(e,10);});});d.length>0&&d[0].length>1&&d[0][0]===a&&(c=d[0][1]),i.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var _t4={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&c&&(_t4.rtx={ssrc:c}),n.push(_t4),s&&(_t4=JSON.parse(JSON.stringify(_t4)),_t4.fec={ssrc:a,mechanism:r?"red+ulpfec":"red"},n.push(_t4));}}),0===n.length&&a&&n.push({ssrc:a});var l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,n.forEach(function(e){e.maxBitrate=l;})),n;},t.parseRtcpParameters=function(e){var n={},i=t.matchPrefix(e,"a=ssrc:").map(function(e){return t.parseSsrcMedia(e);}).filter(function(e){return"cname"===e.attribute;})[0];i&&(n.cname=i.value,n.ssrc=i.ssrc);var s=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=s.length>0,n.compound=0===s.length;var r=t.matchPrefix(e,"a=rtcp-mux");return n.mux=r.length>0,n;},t.writeRtcpParameters=function(e){var t="";return e.reducedSize&&(t+="a=rtcp-rsize\\r\\n"),e.mux&&(t+="a=rtcp-mux\\r\\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\\r\\n"),t;},t.parseMsid=function(e){var n;var i=t.matchPrefix(e,"a=msid:");if(1===i.length)return n=i[0].substr(7).split(" "),{stream:n[0],track:n[1]};var s=t.matchPrefix(e,"a=ssrc:").map(function(e){return t.parseSsrcMedia(e);}).filter(function(e){return"msid"===e.attribute;});return s.length>0?(n=s[0].value.split(" "),{stream:n[0],track:n[1]}):void 0;},t.parseSctpDescription=function(e){var n=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");var s;i.length>0&&(s=parseInt(i[0].substr(19),10)),isNaN(s)&&(s=65536);var r=t.matchPrefix(e,"a=sctp-port:");if(r.length>0)return{port:parseInt(r[0].substr(12),10),protocol:n.fmt,maxMessageSize:s};var o=t.matchPrefix(e,"a=sctpmap:");if(o.length>0){var _e5=o[0].substr(10).split(" ");return{port:parseInt(_e5[0],10),protocol:_e5[1],maxMessageSize:s};}},t.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\\r\\n","c=IN IP4 0.0.0.0\\r\\n","a=sctp-port:"+t.port+"\\r\\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\\r\\n","c=IN IP4 0.0.0.0\\r\\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\\r\\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\\r\\n"),n.join("");},t.generateSessionId=function(){return Math.random().toString().substr(2,21);},t.writeSessionBoilerplate=function(e,n,i){var s;var r=void 0!==n?n:2;return s=e||t.generateSessionId(),"v=0\\r\\no="+(i||"thisisadapterortc")+" "+s+" "+r+" IN IP4 127.0.0.1\\r\\ns=-\\r\\nt=0 0\\r\\n";},t.getDirection=function(e,n){var i=t.splitLines(e);for(var _e6=0;_e6<i.length;_e6++)switch(i[_e6]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[_e6].substr(2);}return n?t.getDirection(n):"sendrecv";},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2);},t.isRejected=function(e){return"0"===e.split(" ",2)[1];},t.parseMLine=function(e){var n=t.splitLines(e)[0].substr(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")};},t.parseOLine=function(e){var n=t.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]};},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;var n=t.splitLines(e);for(var _e7=0;_e7<n.length;_e7++)if(n[_e7].length<2||"="!==n[_e7].charAt(1))return!1;return!0;},e.exports=t;},6295:function _(e,t,n){"use strict";n.d(t,{default:function _default(){return Pd;}});var i={};n.r(i),n.d(i,{AUTHENTICATION_REQUIRED:function AUTHENTICATION_REQUIRED(){return v;},CHAT_ERROR:function CHAT_ERROR(){return S;},CONFERENCE_ACCESS_DENIED:function CONFERENCE_ACCESS_DENIED(){return w;},CONFERENCE_DESTROYED:function CONFERENCE_DESTROYED(){return E;},CONFERENCE_MAX_USERS:function CONFERENCE_MAX_USERS(){return C;},CONFERENCE_RESTARTED:function CONFERENCE_RESTARTED(){return T;},CONNECTION_ERROR:function CONNECTION_ERROR(){return b;},FOCUS_DISCONNECTED:function FOCUS_DISCONNECTED(){return I;},FOCUS_LEFT:function FOCUS_LEFT(){return P;},GRACEFUL_SHUTDOWN:function GRACEFUL_SHUTDOWN(){return M;},ICE_FAILED:function ICE_FAILED(){return D;},INCOMPATIBLE_SERVER_VERSIONS:function INCOMPATIBLE_SERVER_VERSIONS(){return N;},MEMBERS_ONLY_ERROR:function MEMBERS_ONLY_ERROR(){return A;},NOT_ALLOWED_ERROR:function NOT_ALLOWED_ERROR(){return R;},OFFER_ANSWER_FAILED:function OFFER_ANSWER_FAILED(){return k;},PASSWORD_NOT_SUPPORTED:function PASSWORD_NOT_SUPPORTED(){return O;},PASSWORD_REQUIRED:function PASSWORD_REQUIRED(){return L;},RESERVATION_ERROR:function RESERVATION_ERROR(){return x;},SETTINGS_ERROR:function SETTINGS_ERROR(){return y;},VIDEOBRIDGE_NOT_AVAILABLE:function VIDEOBRIDGE_NOT_AVAILABLE(){return F;}});var s={};n.r(s),n.d(s,{AUDIO_INPUT_STATE_CHANGE:function AUDIO_INPUT_STATE_CHANGE(){return j;},AUDIO_UNMUTE_PERMISSIONS_CHANGED:function AUDIO_UNMUTE_PERMISSIONS_CHANGED(){return $;},AUTH_STATUS_CHANGED:function AUTH_STATUS_CHANGED(){return U;},AV_MODERATION_APPROVED:function AV_MODERATION_APPROVED(){return Ke;},AV_MODERATION_CHANGED:function AV_MODERATION_CHANGED(){return We;},AV_MODERATION_PARTICIPANT_APPROVED:function AV_MODERATION_PARTICIPANT_APPROVED(){return Qe;},AV_MODERATION_PARTICIPANT_REJECTED:function AV_MODERATION_PARTICIPANT_REJECTED(){return Xe;},AV_MODERATION_REJECTED:function AV_MODERATION_REJECTED(){return ze;},BEFORE_STATISTICS_DISPOSED:function BEFORE_STATISTICS_DISPOSED(){return B;},BOT_TYPE_CHANGED:function BOT_TYPE_CHANGED(){return Je;},BREAKOUT_ROOMS_MOVE_TO_ROOM:function BREAKOUT_ROOMS_MOVE_TO_ROOM(){return Ze;},BREAKOUT_ROOMS_UPDATED:function BREAKOUT_ROOMS_UPDATED(){return et;},CONFERENCE_CREATED_TIMESTAMP:function CONFERENCE_CREATED_TIMESTAMP(){return ee;},CONFERENCE_ERROR:function CONFERENCE_ERROR(){return V;},CONFERENCE_FAILED:function CONFERENCE_FAILED(){return J;},CONFERENCE_JOINED:function CONFERENCE_JOINED(){return G;},CONFERENCE_JOIN_IN_PROGRESS:function CONFERENCE_JOIN_IN_PROGRESS(){return H;},CONFERENCE_LEFT:function CONFERENCE_LEFT(){return q;},CONFERENCE_UNIQUE_ID_SET:function CONFERENCE_UNIQUE_ID_SET(){return K;},CONNECTION_ESTABLISHED:function CONNECTION_ESTABLISHED(){return z;},CONNECTION_INTERRUPTED:function CONNECTION_INTERRUPTED(){return W;},CONNECTION_RESTORED:function CONNECTION_RESTORED(){return Q;},DATA_CHANNEL_OPENED:function DATA_CHANNEL_OPENED(){return X;},DISPLAY_NAME_CHANGED:function DISPLAY_NAME_CHANGED(){return Y;},DOMINANT_SPEAKER_CHANGED:function DOMINANT_SPEAKER_CHANGED(){return Z;},DTMF_SUPPORT_CHANGED:function DTMF_SUPPORT_CHANGED(){return te;},ENDPOINT_MESSAGE_RECEIVED:function ENDPOINT_MESSAGE_RECEIVED(){return ne;},ENDPOINT_STATS_RECEIVED:function ENDPOINT_STATS_RECEIVED(){return ie;},FACIAL_EXPRESSION_ADDED:function FACIAL_EXPRESSION_ADDED(){return Ye;},JVB121_STATUS:function JVB121_STATUS(){return se;},KICKED:function KICKED(){return re;},LAST_N_ENDPOINTS_CHANGED:function LAST_N_ENDPOINTS_CHANGED(){return ae;},LOBBY_USER_JOINED:function LOBBY_USER_JOINED(){return He;},LOBBY_USER_LEFT:function LOBBY_USER_LEFT(){return qe;},LOBBY_USER_UPDATED:function LOBBY_USER_UPDATED(){return Ge;},LOCK_STATE_CHANGED:function LOCK_STATE_CHANGED(){return ce;},MEMBERS_ONLY_CHANGED:function MEMBERS_ONLY_CHANGED(){return ue;},MESSAGE_RECEIVED:function MESSAGE_RECEIVED(){return pe;},NOISY_MIC:function NOISY_MIC(){return fe;},NON_PARTICIPANT_MESSAGE_RECEIVED:function NON_PARTICIPANT_MESSAGE_RECEIVED(){return ge;},NO_AUDIO_INPUT:function NO_AUDIO_INPUT(){return me;},P2P_STATUS:function P2P_STATUS(){return Ee;},PARTCIPANT_FEATURES_CHANGED:function PARTCIPANT_FEATURES_CHANGED(){return Se;},PARTICIPANT_CONN_STATUS_CHANGED:function PARTICIPANT_CONN_STATUS_CHANGED(){return ve;},PARTICIPANT_KICKED:function PARTICIPANT_KICKED(){return oe;},PARTICIPANT_PROPERTY_CHANGED:function PARTICIPANT_PROPERTY_CHANGED(){return ye;},PHONE_NUMBER_CHANGED:function PHONE_NUMBER_CHANGED(){return Ce;},PRIVATE_MESSAGE_RECEIVED:function PRIVATE_MESSAGE_RECEIVED(){return _e;},PROPERTIES_CHANGED:function PROPERTIES_CHANGED(){return be;},RECORDER_STATE_CHANGED:function RECORDER_STATE_CHANGED(){return Te;},SERVER_REGION_CHANGED:function SERVER_REGION_CHANGED(){return de;},STARTED_MUTED:function STARTED_MUTED(){return Ie;},START_MUTED_POLICY_CHANGED:function START_MUTED_POLICY_CHANGED(){return we;},SUBJECT_CHANGED:function SUBJECT_CHANGED(){return Pe;},SUSPEND_DETECTED:function SUSPEND_DETECTED(){return Me;},TALK_WHILE_MUTED:function TALK_WHILE_MUTED(){return De;},TRACK_ADDED:function TRACK_ADDED(){return Ne;},TRACK_AUDIO_LEVEL_CHANGED:function TRACK_AUDIO_LEVEL_CHANGED(){return ke;},TRACK_MUTE_CHANGED:function TRACK_MUTE_CHANGED(){return Oe;},TRACK_REMOVED:function TRACK_REMOVED(){return Le;},TRACK_UNMUTE_REJECTED:function TRACK_UNMUTE_REJECTED(){return xe;},TRANSCRIPTION_STATUS_CHANGED:function TRANSCRIPTION_STATUS_CHANGED(){return Fe;},USER_JOINED:function USER_JOINED(){return je;},USER_LEFT:function USER_LEFT(){return $e;},USER_ROLE_CHANGED:function USER_ROLE_CHANGED(){return Ue;},USER_STATUS_CHANGED:function USER_STATUS_CHANGED(){return Be;},VIDEO_SIP_GW_AVAILABILITY_CHANGED:function VIDEO_SIP_GW_AVAILABILITY_CHANGED(){return Re;},VIDEO_SIP_GW_SESSION_STATE_CHANGED:function VIDEO_SIP_GW_SESSION_STATE_CHANGED(){return Ae;},VIDEO_UNMUTE_PERMISSIONS_CHANGED:function VIDEO_UNMUTE_PERMISSIONS_CHANGED(){return Ve;},_MEDIA_SESSION_ACTIVE_CHANGED:function _MEDIA_SESSION_ACTIVE_CHANGED(){return he;},_MEDIA_SESSION_STARTED:function _MEDIA_SESSION_STARTED(){return le;}});var r={};n.r(r),n.d(r,{CONSTRAINT_FAILED:function CONSTRAINT_FAILED(){return at;},ELECTRON_DESKTOP_PICKER_ERROR:function ELECTRON_DESKTOP_PICKER_ERROR(){return ct;},ELECTRON_DESKTOP_PICKER_NOT_FOUND:function ELECTRON_DESKTOP_PICKER_NOT_FOUND(){return dt;},GENERAL:function GENERAL(){return lt;},NOT_FOUND:function NOT_FOUND(){return ht;},PERMISSION_DENIED:function PERMISSION_DENIED(){return ut;},SCREENSHARING_GENERIC_ERROR:function SCREENSHARING_GENERIC_ERROR(){return pt;},SCREENSHARING_USER_CANCELED:function SCREENSHARING_USER_CANCELED(){return mt;},TIMEOUT:function TIMEOUT(){return ft;},TRACK_IS_DISPOSED:function TRACK_IS_DISPOSED(){return gt;},TRACK_NO_STREAM_FOUND:function TRACK_NO_STREAM_FOUND(){return _t;},UNSUPPORTED_RESOLUTION:function UNSUPPORTED_RESOLUTION(){return vt;}});var o={};n.r(o),n.d(o,{AUDIO:function AUDIO(){return Rn;},PRESENTER:function PRESENTER(){return An;},VIDEO:function VIDEO(){return wn;}});var a={};n.r(a),n.d(a,{LOCAL_TRACK_STOPPED:function LOCAL_TRACK_STOPPED(){return Xn;},NO_AUDIO_INPUT:function NO_AUDIO_INPUT(){return ii;},NO_DATA_FROM_SOURCE:function NO_DATA_FROM_SOURCE(){return ni;},TRACK_AUDIO_LEVEL_CHANGED:function TRACK_AUDIO_LEVEL_CHANGED(){return Yn;},TRACK_AUDIO_OUTPUT_CHANGED:function TRACK_AUDIO_OUTPUT_CHANGED(){return Zn;},TRACK_MUTE_CHANGED:function TRACK_MUTE_CHANGED(){return ei;},TRACK_VIDEOTYPE_CHANGED:function TRACK_VIDEOTYPE_CHANGED(){return ti;}});var c={};n.r(c),n.d(c,{CONNECTION_DISCONNECTED:function CONNECTION_DISCONNECTED(){return ci;},CONNECTION_ESTABLISHED:function CONNECTION_ESTABLISHED(){return di;},CONNECTION_FAILED:function CONNECTION_FAILED(){return li;},DISPLAY_NAME_REQUIRED:function DISPLAY_NAME_REQUIRED(){return ui;},WRONG_STATE:function WRONG_STATE(){return hi;}});var d={};n.r(d),n.d(d,{CONNECTION_DROPPED_ERROR:function CONNECTION_DROPPED_ERROR(){return pi;},OTHER_ERROR:function OTHER_ERROR(){return mi;},PASSWORD_REQUIRED:function PASSWORD_REQUIRED(){return fi;},SERVER_ERROR:function SERVER_ERROR(){return gi;}});var l={};n.r(l),n.d(l,{OFF:function OFF(){return hs;},ON:function ON(){return ls;}});var h={};n.r(h),n.d(h,{LOCAL_STATS_UPDATED:function LOCAL_STATS_UPDATED(){return Sa;},REMOTE_STATS_UPDATED:function REMOTE_STATS_UPDATED(){return ya;}});var u={};n.r(u),n.d(u,{AUDIO_INPUT_STATE_CHANGE:function AUDIO_INPUT_STATE_CHANGE(){return Da;},DETECTOR_STATE_CHANGE:function DETECTOR_STATE_CHANGE(){return Ma;},NO_AUDIO_INPUT:function NO_AUDIO_INPUT(){return Na;},VAD_NOISY_DEVICE:function VAD_NOISY_DEVICE(){return ka;},VAD_REPORT_PUBLISHED:function VAD_REPORT_PUBLISHED(){return Oa;},VAD_SCORE_PUBLISHED:function VAD_SCORE_PUBLISHED(){return La;},VAD_TALK_WHILE_MUTED:function VAD_TALK_WHILE_MUTED(){return xa;}});var p={};n.r(p),n.d(p,{E2E_RTT_CHANGED:function E2E_RTT_CHANGED(){return Ga;}});var m={};n.r(m),n.d(m,{ERROR_NO_CONNECTION:function ERROR_NO_CONNECTION(){return Hc;},ERROR_SESSION_EXISTS:function ERROR_SESSION_EXISTS(){return Gc;},STATE_FAILED:function STATE_FAILED(){return Jc;},STATE_OFF:function STATE_OFF(){return Uc;},STATE_ON:function STATE_ON(){return $c;},STATE_PENDING:function STATE_PENDING(){return Bc;},STATE_RETRYING:function STATE_RETRYING(){return Vc;},STATUS_AVAILABLE:function STATUS_AVAILABLE(){return xc;},STATUS_BUSY:function STATUS_BUSY(){return jc;},STATUS_UNDEFINED:function STATUS_UNDEFINED(){return Fc;}});var f={};n.r(f),n.d(f,{DEVICE_LIST_CHANGED:function DEVICE_LIST_CHANGED(){return id;},PERMISSIONS_CHANGED:function PERMISSIONS_CHANGED(){return sd;},PERMISSION_PROMPT_IS_SHOWN:function PERMISSION_PROMPT_IS_SHOWN(){return rd;},SLOW_GET_USER_MEDIA:function SLOW_GET_USER_MEDIA(){return od;}});var g=n(9077),_=n.n(g);var v="conference.authenticationRequired",S="conference.chatError",y="conference.settingsError",E="conference.destroyed",C="conference.max_users",b="conference.connectionError",T="conference.restarted",R="conference.connectionError.notAllowed",A="conference.connectionError.membersOnly",w="conference.connectionError.accessDenied",I="conference.focusDisconnected",P="conference.focusLeft",M="conference.gracefulShutdown",D="conference.iceFailed",N="conference.incompatible_server_versions",k="conference.offerAnswerFailed",O="conference.passwordNotSupported",L="conference.passwordRequired",x="conference.reservationError",F="conference.videobridgeNotAvailable",j="conference.audio_input_state_changed",$="conference.audio_unmute_permissions_changed",U="conference.auth_status_changed",B="conference.beforeStatisticsDisposed",V="conference.error",J="conference.failed",H="conference.join_in_progress",G="conference.joined",q="conference.left",K="conference.unique_id_set",z="conference.connectionEstablished",W="conference.connectionInterrupted",Q="conference.connectionRestored",X="conference.dataChannelOpened",Y="conference.displayNameChanged",Z="conference.dominantSpeaker",ee="conference.createdTimestamp",te="conference.dtmfSupportChanged",ne="conference.endpoint_message_received",ie="conference.endpoint_stats_received",se="conference.jvb121Status",re="conference.kicked",oe="conference.participant_kicked",ae="conference.lastNEndpointsChanged",ce="conference.lock_state_changed",de="conference.server_region_changed",le="conference.media_session.started",he="conference.media_session.active_changed",ue="conference.membersOnlyChanged",pe="conference.messageReceived",me="conference.no_audio_input",fe="conference.noisy_mic",ge="conference.non_participant_message_received",_e="conference.privateMessageReceived",ve="conference.participant_conn_status_changed",Se="conference.partcipant_features_changed",ye="conference.participant_property_changed",Ee="conference.p2pStatus",Ce="conference.phoneNumberChanged",be="conference.propertiesChanged",Te="conference.recorderStateChanged",Re="conference.videoSIPGWAvailabilityChanged",Ae="conference.videoSIPGWSessionStateChanged",we="conference.start_muted_policy_changed",Ie="conference.started_muted",Pe="conference.subjectChanged",Me="conference.suspendDetected",De="conference.talk_while_muted",Ne="conference.trackAdded",ke="conference.audioLevelsChanged",Oe="conference.trackMuteChanged",Le="conference.trackRemoved",xe="conference.trackUnmuteRejected",Fe="conference.transcriptionStatusChanged",je="conference.userJoined",$e="conference.userLeft",Ue="conference.roleChanged",Be="conference.statusChanged",Ve="conference.video_unmute_permissions_changed",Je="conference.bot_type_changed",He="conference.lobby.userJoined",Ge="conference.lobby.userUpdated",qe="conference.lobby.userLeft",Ke="conference.av_moderation.approved",ze="conference.av_moderation.rejected",We="conference.av_moderation.changed",Qe="conference.av_moderation.participant.approved",Xe="conference.av_moderation.participant.rejected",Ye="conference.facial_expression.added",Ze="conference.breakout-rooms.move-to-room",et="conference.breakout-rooms.updated";var tt=n(7187),nt=n.n(tt),it=n(2307),st=n.n(it),rt=n(9755);var ot="https://api.callstats.io/static/callstats-ws.min.js",at="gum.constraint_failed",ct="gum.electron_desktop_picker_error",dt="gum.electron_desktop_picker_not_found",lt="gum.general",ht="gum.not_found",ut="gum.permission_denied",pt="gum.screensharing_generic_error",mt="gum.screensharing_user_canceled",ft="gum.timeout",gt="track.track_is_disposed",_t="track.no_stream_found",vt="gum.unsupported_resolution",St={};function yt(e,t,n){if("object"==_typeof(e)&&void 0!==e.name)switch(this.gum={error:e,constraints:t,devices:n&&Array.isArray(n)?n.slice(0):void 0},e.name){case"NotAllowedError":case"PermissionDeniedError":case"SecurityError":this.name=ut,this.message=St[this.name]+(this.gum.devices||[]).join(", ");break;case"DevicesNotFoundError":case"NotFoundError":this.name=ht,this.message=St[this.name]+(this.gum.devices||[]).join(", ");break;case"ConstraintNotSatisfiedError":case"OverconstrainedError":{var _i5=e.constraintName||e.constraint;t&&t.video&&(!n||n.indexOf("video")>-1)&&("minWidth"===_i5||"maxWidth"===_i5||"minHeight"===_i5||"maxHeight"===_i5||"width"===_i5||"height"===_i5||"deviceId"===_i5)?(this.name=vt,this.message=St[this.name]+function(e,t){if(t&&t.video&&t.video.mandatory)switch(e){case"width":return t.video.mandatory.minWidth;case"height":return t.video.mandatory.minHeight;default:return t.video.mandatory[e]||"";}return"";}(_i5,t)):(this.name=at,this.message=St[this.name]+e.constraintName);break;}default:this.name=lt,this.message=e.message||St[this.name];}else{if("string"!=typeof e)throw new Error("Invalid arguments");St[e]?(this.name=e,this.message=t||St[e]):this.message=e;}this.stack=e.stack||new Error().stack;}St[vt]="Video resolution is not supported: ",St[mt]="User canceled screen sharing prompt",St[pt]="Unknown error from screensharing",St[ct]="Unkown error from desktop picker",St[dt]="Failed to detect desktop picker",St[lt]="Generic getUserMedia error",St[ut]="User denied permission to use device(s): ",St[ht]="Requested device(s) was/were not found: ",St[at]="Constraint could not be satisfied: ",St[ft]="Could not start media source. Timeout occured!",St[gt]="Track has been already disposed",St[_t]="Track does not have an associated Media Stream",yt.prototype=Object.create(Error.prototype),yt.prototype.constructor=yt;var Et=yt,Ct="operational",bt="page",Tt="track",Rt="connection.disconnected",At="ice.duration";function wt(e,t){return{action:e,attributes:t,source:"conference",type:Ct};}var It=function It(e,t){var n="connection.stage.reached";return{action:n,actionSubject:e,attributes:t,source:n,type:Ct};},Pt=function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:Ct,source:"get.user.media",action:e,attributes:t};},Mt=function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:Ct,action:e,source:"jingle",attributes:t};},Dt=function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:Ct,action:e,source:"p2p",attributes:t};},Nt=function Nt(e){return{type:Ct,action:"remotely.muted",mediaType:e};},kt=function kt(e){return{type:Ct,action:"rtp.stats",attributes:e};},Ot="statistics.audioLevel",Lt="statistics.before_disposed",xt="statistics.byte_sent_stats",Ft="statistics.connectionstats",jt="statistics.long_tasks_stats";n(8495);var $t=n(1206);var Ut="chrome",Bt="opera",Vt="firefox",Jt="iexplorer",Ht="safari",Gt="nwjs",qt="electron",Kt="react-native",zt="unknown",Wt={Chrome:Ut,Chromium:Ut,Opera:Bt,Firefox:Vt,"Internet Explorer":Jt,Safari:Ht};function Qt(){var e=navigator.userAgent;if(e.match(/Electron/)){var _t5=e.match(/Electron(?:\\s|\\/)([\\d.]+)/)[1];return{name:qt,version:_t5};}if(void 0!==window.JitsiMeetElectron)return{name:qt,version:void 0};}function Xt(){var e=navigator.userAgent;if(e.match(/JitsiMeetNW/)){var _t6=e.match(/JitsiMeetNW\\/([\\d.]+)/)[1];return{name:Gt,version:_t6};}}function Yt(){var e=navigator.userAgent.match(/\\b(react[ \\t_-]*native)(?:\\/(\\S+))?/i);var t;if(e||"ReactNative"===navigator.product){var _n3;return e&&e.length>2&&(_n3=e[1],t=e[2]),_n3||(_n3="react-native"),t||(t="unknown"),{name:Kt,version:t};}}var Zt=/*#__PURE__*/function(_tt){_inherits(Zt,_tt);var _super=_createSuper(Zt);function Zt(){var _this;_classCallCheck(this,Zt);var e,t;_this=_super.apply(this,arguments),t={},(e="_storage")in _assertThisInitialized(_this)?Object.defineProperty(_assertThisInitialized(_this),e,{value:t,enumerable:!0,configurable:!0,writable:!0}):_this[e]=t;return _this;}_createClass(Zt,[{key:"clear",value:function clear(){this._storage={};}},{key:"length",get:function get(){return Object.keys(this._storage).length;}},{key:"getItem",value:function getItem(e){return this._storage[e];}},{key:"setItem",value:function setItem(e,t){this._storage[e]=t;}},{key:"removeItem",value:function removeItem(e){delete this._storage[e];}},{key:"key",value:function key(e){var t=Object.keys(this._storage);if(!(t.length<=e))return t[e];}},{key:"serialize",value:function serialize(){return JSON.stringify(this._storage);}}]);return Zt;}(tt);var en=new(/*#__PURE__*/function(_tt2){_inherits(_class2,_tt2);var _super2=_createSuper(_class2);function _class2(){var _this2;_classCallCheck(this,_class2);_this2=_super2.call(this);try{_this2._storage=window.localStorage,_this2._localStorageDisabled=!1;}catch(e){}_this2._storage||(console.warn("Local storage is disabled."),_this2._storage=new Zt(),_this2._localStorageDisabled=!0);return _this2;}_createClass(_class2,[{key:"isLocalStorageDisabled",value:function isLocalStorageDisabled(){return this._localStorageDisabled;}},{key:"clear",value:function clear(){this._storage.clear(),this.emit("changed");}},{key:"length",get:function get(){return this._storage.length;}},{key:"getItem",value:function getItem(e){return this._storage.getItem(e);}},{key:"setItem",value:function setItem(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._storage.setItem(e,t),n||this.emit("changed");}},{key:"removeItem",value:function removeItem(e){this._storage.removeItem(e),this.emit("changed");}},{key:"key",value:function key(e){return this._storage.key(e);}},{key:"serialize",value:function serialize(){if(this.isLocalStorageDisabled())return this._storage.serialize();var e=this._storage.length,t={};for(var _n4=0;_n4<e;_n4++){var _e8=this._storage.key(_n4);t[_e8]=this._storage.getItem(_e8);}return JSON.stringify(t);}}]);return _class2;}(tt))(),tn=(0,g.getLogger)("modules/browser/BrowserCapabilities.js"),nn=new(/*#__PURE__*/function(_ref){_inherits(_class3,_ref);var _super3=_createSuper(_class3);function _class3(){var _this3;_classCallCheck(this,_class3);_this3=_super3.call(this),tn.info("This appears to be ".concat(_this3.getName(),", ver: ").concat(_this3.getVersion()));return _this3;}_createClass(_class3,[{key:"doesVideoMuteByStreamRemove",value:function doesVideoMuteByStreamRemove(){return this.isChromiumBased()||this.isWebKitBased()||this.isFirefox();}},{key:"isChromiumBased",value:function isChromiumBased(){return(this.isChrome()||this.isElectron()||this.isNWJS()||this.isOpera())&&!this.isWebKitBased();}},{key:"isIosBrowser",value:function isIosBrowser(){var _navigator=navigator,e=_navigator.userAgent,t=_navigator.maxTouchPoints,n=_navigator.platform;return Boolean(e.match(/iP(ad|hone|od)/i))||t&&t>2&&/MacIntel/.test(n);}},{key:"isWebKitBased",value:function isWebKitBased(){return this._bowser.isEngine("webkit")&&void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia&&void 0!==window.RTCRtpTransceiver&&Object.keys(RTCRtpTransceiver.prototype).indexOf("currentDirection")>-1;}},{key:"isTwa",value:function isTwa(){return"matchMedia"in window&&window.matchMedia("(display-mode:standalone)").matches;}},{key:"isSupported",value:function isSupported(){return!(this.isSafari()&&this._getSafariVersion()<14)&&(this.isChromiumBased()&&this._getChromiumBasedVersion()>=72||this.isFirefox()||this.isReactNative()||this.isWebKitBased());}},{key:"isSupportedAndroidBrowser",value:function isSupportedAndroidBrowser(){return this.isChromiumBased()||this.isFirefox();}},{key:"isSupportedIOSBrowser",value:function isSupportedIOSBrowser(){return this._getIOSVersion()>=14;}},{key:"isUserInteractionRequiredForUnmute",value:function isUserInteractionRequiredForUnmute(){return this.isFirefox()&&this.isVersionLessThan("68");}},{key:"supportsVideoMuteOnConnInterrupted",value:function supportsVideoMuteOnConnInterrupted(){return this.isChromiumBased()||this.isReactNative();}},{key:"supportsBandwidthStatistics",value:function supportsBandwidthStatistics(){return!this.isFirefox()&&!this.isWebKitBased();}},{key:"supportsCodecPreferences",value:function supportsCodecPreferences(){return Boolean(window.RTCRtpTransceiver&&"setCodecPreferences"in window.RTCRtpTransceiver.prototype&&window.RTCRtpReceiver&&void 0!==window.RTCRtpReceiver.getCapabilities)&&!this.isWebKitBased()&&!this.isFirefox();}},{key:"supportsDeviceChangeEvent",value:function supportsDeviceChangeEvent(){return navigator.mediaDevices&&void 0!==navigator.mediaDevices.ondevicechange&&void 0!==navigator.mediaDevices.addEventListener;}},{key:"supportsLocalCandidateRttStatistics",value:function supportsLocalCandidateRttStatistics(){return this.isChromiumBased()||this.isReactNative()||this.isWebKitBased();}},{key:"supportsPerformanceObserver",value:function supportsPerformanceObserver(){return void 0!==window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes.indexOf("longtask")>-1;}},{key:"supportsReceiverStats",value:function supportsReceiverStats(){return void 0!==window.RTCRtpReceiver&&Object.keys(RTCRtpReceiver.prototype).indexOf("getSynchronizationSources")>-1&&!this.isWebKitBased();}},{key:"supportsRTTStatistics",value:function supportsRTTStatistics(){return!this.isFirefox();}},{key:"supportsVP9",value:function supportsVP9(){return this.isChromiumBased()||this.isReactNative();}},{key:"usesSdpMungingForSimulcast",value:function usesSdpMungingForSimulcast(){return this.isChromiumBased()||this.isReactNative()||this.isWebKitBased();}},{key:"usesAdapter",value:function usesAdapter(){return!this.isReactNative();}},{key:"usesRidsForSimulcast",value:function usesRidsForSimulcast(){return!1;}},{key:"supportsGetDisplayMedia",value:function supportsGetDisplayMedia(){return void 0!==navigator.getDisplayMedia||void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getDisplayMedia;}},{key:"supportsEncodedTransform",value:function supportsEncodedTransform(){return Boolean(window.RTCRtpScriptTransform);}},{key:"supportsInsertableStreams",value:function supportsInsertableStreams(){if(void 0===window.RTCRtpSender||!window.RTCRtpSender.prototype.createEncodedStreams)return!1;var e=new ReadableStream();try{return window.postMessage(e,"*",[e]),!0;}catch(_unused){return!1;}}},{key:"supportsAudioRed",value:function supportsAudioRed(){return Boolean(window.RTCRtpSender&&window.RTCRtpSender.getCapabilities&&window.RTCRtpSender.getCapabilities("audio").codecs.some(function(e){return"audio/red"===e.mimeType;})&&window.RTCRtpReceiver&&window.RTCRtpReceiver.getCapabilities&&window.RTCRtpReceiver.getCapabilities("audio").codecs.some(function(e){return"audio/red"===e.mimeType;}));}},{key:"supportsUnifiedPlan",value:function supportsUnifiedPlan(){return!this.isReactNative();}},{key:"supportsVADDetection",value:function supportsVADDetection(){return this.isChromiumBased();}},{key:"supportsRTX",value:function supportsRTX(){return!(this.isFirefox()&&this.isVersionLessThan("96"));}},{key:"_getChromiumBasedVersion",value:function _getChromiumBasedVersion(){if(this.isChromiumBased()){if(this.isNWJS())return Number.parseInt(process.versions.chromium,10);var _e9=navigator.userAgent;if(_e9.match(/Chrome/))return Number.parseInt(_e9.match(/Chrome\\/([\\d.]+)/)[1],10);}return-1;}},{key:"_getSafariVersion",value:function _getSafariVersion(){return this.isSafari()?Number.parseInt(this.getVersion(),10):-1;}},{key:"_getIOSVersion",value:function _getIOSVersion(){return this.isWebKitBased()?Number.parseInt(this.getVersion(),10):-1;}}]);return _class3;}(/*#__PURE__*/function(){function _class4(e){_classCallCheck(this,_class4);var t,n;if(this._bowser=$t.getParser(navigator.userAgent),void 0===e){var _e10=function(e){var t;var n=[Yt,Qt,Xt];for(var _e11=0;_e11<n.length;_e11++)if(t=n[_e11](),t)return t;var i=e.getBrowserName();return i in Wt?{name:Wt[i],version:e.getBrowserVersion()}:(t=function(){var e=navigator.userAgent,t={name:zt,version:void 0};if(e.match(/Chrome/)&&!e.match(/Edge/))if(e.match(/Edg(A?)/)){var _n5=e.match(/Chrome\\/([\\d.]+)/)[1];Number.parseInt(_n5,10)>72&&(t.name=Ut,t.version=_n5);}else t.name=Ut,t.version=e.match(/Chrome\\/([\\d.]+)/)[1];return t;}(),t||{name:zt,version:void 0});}(this._bowser);t=_e10.name,n=_e10.version;}else e.name in Wt?(t=Wt[e.name],n=e.version):(t=zt,n=void 0);this._name=t,this._version=n;}_createClass(_class4,[{key:"getName",value:function getName(){return this._name;}},{key:"isChrome",value:function isChrome(){return this._name===Ut;}},{key:"isOpera",value:function isOpera(){return this._name===Bt;}},{key:"isFirefox",value:function isFirefox(){return this._name===Vt;}},{key:"isIExplorer",value:function isIExplorer(){return this._name===Jt;}},{key:"isSafari",value:function isSafari(){return this._name===Ht;}},{key:"isNWJS",value:function isNWJS(){return this._name===Gt;}},{key:"isElectron",value:function isElectron(){return this._name===qt;}},{key:"isReactNative",value:function isReactNative(){return this._name===Kt;}},{key:"getVersion",value:function getVersion(){return this._version;}},{key:"_checkCondition",value:function _checkCondition(e){if(this._version)return this._bowser.satisfies(e);}},{key:"isVersionGreaterThan",value:function isVersionGreaterThan(e){return this._checkCondition(_defineProperty({},this._name,">".concat(e)));}},{key:"isVersionLessThan",value:function isVersionLessThan(e){return this._checkCondition(_defineProperty({},this._name,"<".concat(e)));}},{key:"isVersionEqualTo",value:function isVersionEqualTo(e){return this._checkCondition(_defineProperty({},this._name,"~".concat(e)));}}]);return _class4;}()))();var sn=n(549),rn=n.n(sn);var on=(0,g.getLogger)("modules/statistics/AnalyticsAdapter.js"),an=new(/*#__PURE__*/function(){function _class5(){_classCallCheck(this,_class5);this.reset();}_createClass(_class5,[{key:"reset",value:function reset(){this.disposed=!1,this.analyticsHandlers=new Set(),this.cache=[],this.permanentProperties={},this.conferenceName="",this.addPermanentProperties({user_agent:navigator.userAgent,browser_name:nn.getName()});}},{key:"dispose",value:function dispose(){on.warn("Disposing of analytics adapter."),this.analyticsHandlers&&this.analyticsHandlers.size>0&&this.analyticsHandlers.forEach(function(e){"function"==typeof e.dispose&&e.dispose();}),this.setAnalyticsHandlers([]),this.disposed=!0;}},{key:"setAnalyticsHandlers",value:function setAnalyticsHandlers(e){var _this4=this;if(this.disposed)return;this.analyticsHandlers=new Set(e),this._setUserProperties();var t=this.cache;this.cache=null,t&&t.forEach(function(e){return _this4._sendEvent(e);});}},{key:"_setUserProperties",value:function _setUserProperties(){var _this5=this;this.analyticsHandlers.forEach(function(e){try{e.setUserProperties(_this5.permanentProperties);}catch(e){on.warn("Error in setUserProperties method of one of the analytics handlers: ".concat(e));}});}},{key:"addPermanentProperties",value:function addPermanentProperties(e){this.permanentProperties=_objectSpread(_objectSpread({},this.permanentProperties),e),this._setUserProperties();}},{key:"setConferenceName",value:function setConferenceName(e){this.conferenceName=e,this.addPermanentProperties({conference_name:e});}},{key:"sendEvent",value:function sendEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.disposed)return;var n=null;"string"==typeof e?n={type:Ct,action:e,actionSubject:e,source:e,attributes:t}:"object"==_typeof(e)&&(n=e),this._verifyRequiredFields(n)?this._sendEvent(n):on.error("Dropping a mis-formatted event: ".concat(JSON.stringify(n)));}},{key:"_verifyRequiredFields",value:function _verifyRequiredFields(e){if(!e)return!1;e.type||(e.type=Ct);var t=e.type;return t!==Ct&&t!==bt&&"ui"!==t&&t!==Tt?(on.error("Unknown event type: ".concat(t)),!1):t===bt?Boolean(e.name):(e.action=e.action||e.name||e.actionSubject,e.actionSubject=e.actionSubject||e.name||e.action,e.source=e.source||e.name||e.action||e.actionSubject,e.action&&e.actionSubject&&e.source?!!(t!==Tt||(e.objectType=e.objectType||"generic-object-type",e.containerType=e.containerType||"conference","conference"!==e.containerType||e.containerId||(e.containerId=this.conferenceName),e.objectType&&e.objectId&&e.containerType&&e.containerId))||(on.error("Required field missing (containerId, containerType, objectId or objectType)"),!1):(on.error("Required field missing (action, actionSubject or source)"),!1));}},{key:"_maybeCacheEvent",value:function _maybeCacheEvent(e){return!!this.cache&&(this.cache.push(e),this.cache.length>100&&this.cache.splice(0,1),!0);}},{key:"_sendEvent",value:function _sendEvent(e){this._maybeCacheEvent(e)||this.analyticsHandlers.forEach(function(t){try{t.sendEvent(e);}catch(e){on.warn("Error sending analytics event: ".concat(e));}});}}]);return _class5;}())();var cn=n(1023),dn=n.n(cn);var ln=n(9077).getLogger("modules/statistics/CallStats.js"),hn="applicationLog",un="error",pn="event",mn="mstWithUserID";var fn;var gn=/*#__PURE__*/function(){function gn(e,t){_classCallCheck(this,gn);this.confID=t.confID,this.tpc=e,this.peerconnection=e.peerconnection,this.remoteUserID=t.remoteUserID||"jitsi",this.hasFabric=!1,gn.fabrics.add(this),gn.backendInitialized&&(this._addNewFabric(),1===gn.fabrics.size&&gn._emptyReportQueue(this));}_createClass(gn,[{key:"_addNewFabric",value:function _addNewFabric(){ln.info("addNewFabric",this.remoteUserID);try{var _e12={remoteEndpointType:this.tpc.isP2P?gn.backend.endpointType.peer:gn.backend.endpointType.server},_t7=gn.backend.addNewFabric(this.peerconnection,this.remoteUserID,gn.backend.fabricUsage.multiplex,this.confID,_e12,gn._addNewFabricCallback);this.hasFabric=!0;var _n6="success"===_t7.status;return _n6||ln.error("callstats fabric not initilized",_t7.message),_n6;}catch(e){return dn().callErrorHandler(e),!1;}}},{key:"associateStreamWithVideoTag",value:function associateStreamWithVideoTag(e,t,n,i,s){if(!gn.backend)return;var r=t?gn.userID:n;gn.backendInitialized?gn.backend.associateMstWithUserID(this.peerconnection,r,this.confID,e,i,s):gn.reportsQueue.push({type:mn,pc:this.peerconnection,data:{callStatsId:r,containerId:s,ssrc:e,usageLabel:i}});}},{key:"sendDominantSpeakerEvent",value:function sendDominantSpeakerEvent(){gn._reportEvent(this,"dominantSpeaker");}},{key:"sendTerminateEvent",value:function sendTerminateEvent(){gn.backendInitialized&&gn.backend.sendFabricEvent(this.peerconnection,gn.backend.fabricEvent.fabricTerminated,this.confID),gn.fabrics.delete(this);}},{key:"sendIceConnectionFailedEvent",value:function sendIceConnectionFailedEvent(){gn._reportError(this,"iceConnectionFailure",null,this.peerconnection);}},{key:"sendCreateOfferFailed",value:function sendCreateOfferFailed(e){gn._reportError(this,"createOffer",e,this.peerconnection);}},{key:"sendCreateAnswerFailed",value:function sendCreateAnswerFailed(e){gn._reportError(this,"createAnswer",e,this.peerconnection);}},{key:"sendResumeOrHoldEvent",value:function sendResumeOrHoldEvent(e){gn._reportEvent(this,e?"fabricResume":"fabricHold");}},{key:"sendScreenSharingEvent",value:function sendScreenSharingEvent(e,t){var n;t&&(n={ssrc:t}),gn._reportEvent(this,e?"screenShareStart":"screenShareStop",n);}},{key:"sendSetLocalDescFailed",value:function sendSetLocalDescFailed(e){gn._reportError(this,"setLocalDescription",e,this.peerconnection);}},{key:"sendSetRemoteDescFailed",value:function sendSetRemoteDescFailed(e){gn._reportError(this,"setRemoteDescription",e,this.peerconnection);}},{key:"sendAddIceCandidateFailed",value:function sendAddIceCandidateFailed(e){gn._reportError(this,"addIceCandidate",e,this.peerconnection);}}],[{key:"_addNewFabricCallback",value:function _addNewFabricCallback(e,t){gn.backend&&"success"!==e&&ln.error("Monitoring status: ".concat(e," msg: ").concat(t));}},{key:"_initCallback",value:function _initCallback(e,t){if(ln.log("CallStats Status: err=".concat(e," msg=").concat(t)),"success"!==e)return;gn.backendInitialized=!0;var n=!1,i=null;var _iterator=_createForOfIteratorHelper(gn.fabrics.values()),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _e13=_step.value;_e13.hasFabric||(ln.debug("addNewFabric - initCallback"),_e13._addNewFabric()&&(n=!0,i||(i=_e13)));}}catch(err){_iterator.e(err);}finally{_iterator.f();}n&&gn._emptyReportQueue(i);}},{key:"_emptyReportQueue",value:function _emptyReportQueue(e){var t=e.confID,n=e.peerconnection;var _iterator2=_createForOfIteratorHelper(gn.reportsQueue),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i6=_step2.value;if(_i6.type===un){var _t8=_i6.data;gn._reportError(e,_t8.type,_t8.error,_t8.pc||n);}else if(_i6.type===pn){var _e14=_i6.data;gn.backend.sendFabricEvent(_i6.pc||n,_e14.event,t,_e14.eventData);}else if(_i6.type===mn){var _e15=_i6.data;gn.backend.associateMstWithUserID(_i6.pc||n,_e15.callStatsId,t,_e15.ssrc,_e15.usageLabel,_e15.containerId);}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}gn.reportsQueue.length=0;}},{key:"_reportError",value:function _reportError(e,t,n,i){var s=n;s||(ln.warn("No error is passed!"),s=new Error("Unknown error")),gn.backendInitialized&&e?gn.backend.reportError(i,e.confID,t,s):gn.reportsQueue.push({type:un,data:{error:s,pc:i,type:t}});}},{key:"_reportEvent",value:function _reportEvent(e,t,n){var i=e&&e.peerconnection,s=e&&e.confID;gn.backendInitialized&&e?gn.backend.sendFabricEvent(i,t,s,n):gn.reportsQueue.push({confID:s,pc:i,type:pn,data:{event:t,eventData:n}});}},{key:"_traceAndCatchBackendCalls",value:function _traceAndCatchBackendCalls(e){var t=["associateMstWithUserID","sendFabricEvent","sendUserFeedback"];var _loop=function _loop(){var n=_t9[_i7];var t=e[n];e[n]=function(){try{for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t.apply(e,i);}catch(e){dn().callErrorHandler(e);}};};for(var _i7=0,_t9=t;_i7<_t9.length;_i7++){_loop();}var n=["associateMstWithUserID","sendFabricEvent","sendUserFeedback"];var _loop2=function _loop2(){var t=_n7[_i8];var n=e[t];e[t]=function(){for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];ln.debug(t,s),n.apply(e,s);};};for(var _i8=0,_n7=n;_i8<_n7.length;_i8++){_loop2();}var i=e.reportError;e.reportError=function(t,n,s){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];s===hn?nn.isReactNative()||console&&console.debug("reportError",t,n,s):ln.debug.apply(ln,["reportError",t,n,s].concat(o));try{i.call.apply(i,[e,t,n,s].concat(o));}catch(e){s===hn?console&&console.error("reportError",e):dn().callErrorHandler(e);}};}},{key:"fabrics",get:function get(){return fn||(fn=new Set()),fn;}},{key:"initBackend",value:function initBackend(e){if(gn.backend)throw new Error("CallStats backend has been initialized already!");try{var _t10=callstats;gn.backend=new _t10(),gn._traceAndCatchBackendCalls(gn.backend),gn.userID={aliasName:e.aliasName,userName:e.userName},gn.callStatsID=e.callStatsID,gn.callStatsSecret=e.callStatsSecret;var _n8=_objectSpread({},e.configParams);if(e.applicationName&&(_n8.applicationVersion="".concat(e.applicationName," (").concat(nn.getName(),")")),e.confID){var _t11=e.confID.match(/.*\\/(.*)\\/.*/);_n8.siteID=e.siteID||_t11&&_t11[1]||"/";}gn.backend.initialize(gn.callStatsID,gn.callStatsSecret,gn.userID,gn._initCallback,void 0,_n8);var _i9=e.getWiFiStatsMethod;return _i9&&(gn.backend.attachWifiStatsHandler(_i9),_i9().then(function(e){e&&ln.info("Reported wifi addresses:",JSON.parse(e).addresses);}).catch(function(){})),!0;}catch(e){return dn().callErrorHandler(e),gn.backend=null,ln.error(e),!1;}}},{key:"isBackendInitialized",value:function isBackendInitialized(){return Boolean(gn.backend);}},{key:"sendActiveDeviceListEvent",value:function sendActiveDeviceListEvent(e,t){gn._reportEvent(t,"activeDeviceList",e);}},{key:"sendApplicationLog",value:function sendApplicationLog(e,t){try{gn._reportError(t,hn,e,t&&t.peerconnection);}catch(e){console&&"function"==typeof console.error&&console.error("sendApplicationLog failed",e);}}},{key:"sendFeedback",value:function sendFeedback(e,t,n){return new Promise(function(i,s){if(gn.backend)gn.backend.sendUserFeedback(e,{userID:gn.userID,overall:t,comment:n},function(e,t){"success"===e?i(t):s(t);});else{var _e16="Failed to submit feedback to CallStats - no backend";ln.error(_e16),s(_e16);}});}},{key:"sendGetUserMediaFailed",value:function sendGetUserMediaFailed(e,t){gn._reportError(t,"getUserMedia",e,null);}},{key:"sendMuteEvent",value:function sendMuteEvent(e,t,n){var i;i="video"===t?e?"videoPause":"videoResume":e?"audioMute":"audioUnmute",gn._reportEvent(n,i);}}]);return gn;}();gn.backend=null,gn.reportsQueue=[],gn.backendInitialized=!1,gn.callStatsID=null,gn.callStatsSecret=null,gn.userID=null,window.AudioContext=window.AudioContext||window.webkitAudioContext;var _n=null;function vn(e,t,n){this.stream=e,this.intervalId=null,this.intervalMilis=t,this.audioLevel=0,this.callback=n;}function Sn(e){var t=e;return e>=Number.MAX_SAFE_INTEGER&&(t=0),t+1;}function yn(e){return e.length>0?e.reduce(function(e,t){return e+t;})/e.length:0;}function En(e){return e.filter(function(e){return e>=0;});}window.AudioContext&&(_n=new AudioContext(),_n.suspend&&_n.suspend()),vn.prototype.start=function(){var _this6=this;if(!vn.isLocalStatsSupported())return;_n.resume();var e=_n.createAnalyser();e.smoothingTimeConstant=.8,e.fftSize=2048,_n.createMediaStreamSource(this.stream).connect(e),this.intervalId=setInterval(function(){var t=new Uint8Array(e.frequencyBinCount);e.getByteTimeDomainData(t);var n=function(e){var t=0;var n=e.length;for(var _i10=0;_i10<n;_i10++)t<e[_i10]&&(t=e[_i10]);return parseFloat(((t-127)/128).toFixed(3));}(t);_this6.audioLevel=function(e,t){var n=0;var i=t-e;return n=i>.2?t-.2:i<-.4?t+.4:e,parseFloat(n.toFixed(3));}(n,_this6.audioLevel),_this6.callback(_this6.audioLevel);},this.intervalMilis);},vn.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null);},vn.isLocalStatsSupported=function(){return Boolean(_n);};var Cn=/*#__PURE__*/function(){function Cn(){_classCallCheck(this,Cn);this.average=0,this.n=0;}_createClass(Cn,[{key:"addNext",value:function addNext(e){"number"==typeof e&&(this.n+=1,this.average=this.average+(e-this.average)/this.n);}},{key:"getAverage",value:function getAverage(){return this.average;}}]);return Cn;}();var bn=(0,g.getLogger)("modules/statistics/PerformanceObserverStats.js");var Tn=/*#__PURE__*/function(){function Tn(e,t){_classCallCheck(this,Tn);this.eventEmitter=e,this.longTasks=0,this.maxDuration=0,this.performanceStatsInterval=t,this.stats=new Cn();}_createClass(Tn,[{key:"getLongTasksStats",value:function getLongTasksStats(){return{avgRatePerMinute:(60*this.stats.getAverage()).toFixed(2),maxDurationMs:this.maxDuration};}},{key:"startObserver",value:function startObserver(){var _this7=this;this.longTaskEventHandler=function(e){var t=e.getEntries();var _iterator3=_createForOfIteratorHelper(t),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _e17=_step3.value;_this7.longTasks++,_this7.maxDuration=Math.max(_this7.maxDuration,_e17.duration).toFixed(3);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}},bn.info("Creating a Performance Observer for monitoring Long Tasks"),this.observer=new PerformanceObserver(this.longTaskEventHandler),this.observer.observe({type:"longtask",buffered:!0});var e=Date.now();this.longTasksIntervalId=setInterval(function(){var t=Date.now(),n=_this7._lastTimeStamp?(t-_this7._lastTimeStamp)/1e3:(t-e)/1e3,i=_this7.longTasks/n;_this7.stats.addNext(i),_this7.eventEmitter.emit(jt,_this7.getLongTasksStats()),_this7.longTasks=0,_this7._lastTimeStamp=Date.now();},this.performanceStatsInterval);}},{key:"stopObserver",value:function stopObserver(){this.observer&&this.observer.disconnect(),this.longTaskEventHandler=null,this.longTasksIntervalId&&(clearInterval(this.longTasksIntervalId),this.longTasksIntervalId=null);}}]);return Tn;}();var Rn="audio",An="presenter",wn="video",In=n(1023),Pn=(0,g.getLogger)("modules/statistics/RTPStatsCollector.js");function Mn(e,t){return!t||t<=0||!e||e<=0?0:Math.round(e/t*100);}function Dn(){this.loss={},this.bitrate={download:0,upload:0},this.resolution={},this.framerate=0,this.codec="";}function Nn(){this.bandwidth={},this.bitrate={},this.packetLoss=null,this.transport=[];}function kn(e,t,n,i){this.peerconnection=e,this.baselineAudioLevelsReport=null,this.currentAudioLevelsReport=null,this.currentStatsReport=null,this.previousStatsReport=null,this.audioLevelReportHistory={},this.audioLevelsIntervalId=null,this.eventEmitter=i,this.conferenceStats=new Nn(),this.audioLevelsIntervalMilis=t,this.speakerList=[],this.statsIntervalId=null,this.statsIntervalMilis=n,this.ssrc2stats=new Map();}Dn.prototype.setLoss=function(e){this.loss=e||{};},Dn.prototype.setResolution=function(e){this.resolution=e||{};},Dn.prototype.addBitrate=function(e){this.bitrate.download+=e.download,this.bitrate.upload+=e.upload;},Dn.prototype.resetBitrate=function(){this.bitrate.download=0,this.bitrate.upload=0;},Dn.prototype.setFramerate=function(e){this.framerate=e||0;},Dn.prototype.setCodec=function(e){this.codec=e||"";},kn.prototype.setSpeakerList=function(e){this.speakerList=e;},kn.prototype.stop=function(){this.audioLevelsIntervalId&&(clearInterval(this.audioLevelsIntervalId),this.audioLevelsIntervalId=null),this.statsIntervalId&&(clearInterval(this.statsIntervalId),this.statsIntervalId=null);},kn.prototype.errorCallback=function(e){In.callErrorHandler(e),Pn.error("Get stats error",e),this.stop();},kn.prototype.start=function(e){var _this8=this;e&&(nn.supportsReceiverStats()&&Pn.info("Using RTCRtpSynchronizationSource for remote audio levels"),this.audioLevelsIntervalId=setInterval(function(){if(nn.supportsReceiverStats()){var _e18=_this8.peerconnection.getAudioLevels(_this8.speakerList);for(var _t12 in _e18)if(_e18.hasOwnProperty(_t12)){var _n9=2.5*_e18[_t12];_this8.eventEmitter.emit(Ot,_this8.peerconnection,Number.parseInt(_t12,10),_n9,!1);}}else _this8.peerconnection.getStats().then(function(e){_this8.currentAudioLevelsReport="function"==typeof(null==e?void 0:e.result)?e.result():e,_this8.processAudioLevelReport(),_this8.baselineAudioLevelsReport=_this8.currentAudioLevelsReport;}).catch(function(e){return _this8.errorCallback(e);});},this.audioLevelsIntervalMilis));var t=function t(){_this8.peerconnection.getStats().then(function(e){_this8.currentStatsReport="function"==typeof(null==e?void 0:e.result)?e.result():e;try{_this8.processStatsReport();}catch(e){In.callErrorHandler(e),Pn.error("Processing of RTP stats failed:",e);}_this8.previousStatsReport=_this8.currentStatsReport;}).catch(function(e){return _this8.errorCallback(e);});};t(),this.statsIntervalId=setInterval(t,this.statsIntervalMilis);},kn.prototype._processAndEmitReport=function(){var _this9=this;var e={download:0,upload:0},t={download:0,upload:0};var n=0,i=0;var s={},r={},o={};var a,c,d=0,l=0,h=0,u=0;var _iterator4=_createForOfIteratorHelper(this.ssrc2stats),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),_p=_step4$value[0],_m=_step4$value[1];var _f=_m.loss,_g=_f.isDownloadStream?"download":"upload";e[_g]+=_f.packetsTotal,t[_g]+=_f.packetsLost,n+=_m.bitrate.download,i+=_m.bitrate.upload;var _2=this.peerconnection.getTrackBySSRC(_p);if(_2){_2.isAudioTrack()?(d+=_m.bitrate.download,l+=_m.bitrate.upload,a=_m.codec):(h+=_m.bitrate.download,u+=_m.bitrate.upload,c=_m.codec);var _e20=_2.getParticipantId();if(_e20){var _t14=_m.resolution;if(_t14.width&&_t14.height&&-1!==_t14.width&&-1!==_t14.height){var _n10=s[_e20]||{};_n10[_p]=_t14,s[_e20]=_n10;}if(0!==_m.framerate){var _t15=r[_e20]||{};_t15[_p]=_m.framerate,r[_e20]=_t15;}if(a&&c){var _t16={audio:a,video:c},_n11=o[_e20]||{};_n11[_p]=_t16,o[_e20]=_n11;}}else Pn.error("No participant ID returned by ".concat(_2));}_m.resetBitrate();}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}this.conferenceStats.bitrate={upload:i,download:n},this.conferenceStats.bitrate.audio={upload:l,download:d},this.conferenceStats.bitrate.video={upload:u,download:h},this.conferenceStats.packetLoss={total:Mn(t.download+t.upload,e.download+e.upload),download:Mn(t.download,e.download),upload:Mn(t.upload,e.upload)};var p={};var m;Object.keys(this.audioLevelReportHistory).forEach(function(e){var _this9$audioLevelRepo=_this9.audioLevelReportHistory[e],t=_this9$audioLevelRepo.data,n=_this9$audioLevelRepo.isLocal,i=t.reduce(function(e,t){return e+t;})/t.length;if(n)m=i;else{var _t13=_this9.peerconnection.getTrackBySSRC(Number(e));if(_t13){var _e19=_t13.getParticipantId();_e19&&(p[_e19]=i);}}}),this.audioLevelReportHistory={},this.eventEmitter.emit(Ft,this.peerconnection,{bandwidth:this.conferenceStats.bandwidth,bitrate:this.conferenceStats.bitrate,packetLoss:this.conferenceStats.packetLoss,resolution:s,framerate:r,codec:o,transport:this.conferenceStats.transport,localAvgAudioLevels:m,avgAudioLevels:p}),this.conferenceStats.transport=[];},kn.prototype.getNonNegativeValue=function(e){var t=e;return"number"!=typeof t&&(t=Number(t)),isNaN(t)?0:Math.max(0,t);},kn.prototype._calculateBitrate=function(e,t,n){var i=this.getNonNegativeValue(e[n]),s=this.getNonNegativeValue(t[n]),r=Math.max(0,i-s),o=e.timestamp-t.timestamp;var a=0;return o>0&&(a=Math.round(8*r/o)),a;},kn.prototype.processStatsReport=function(){var _this10=this;if(!this.previousStatsReport)return;var e={};this.currentStatsReport.forEach(function(t){if("candidate-pair"===t.type&&t.nominated&&"succeeded"===t.state){var _e21=t.availableIncomingBitrate,_n12=t.availableOutgoingBitrate;(_e21||_n12)&&(_this10.conferenceStats.bandwidth={download:Math.round(_e21/1e3),upload:Math.round(_n12/1e3)});var _i11=_this10.currentStatsReport.get(t.remoteCandidateId),_s4=_this10.currentStatsReport.get(t.localCandidateId);if(_i11&&_s4){var _e22="".concat(nn.isChromiumBased()?_i11.ip:_i11.address,":").concat(_i11.port),_n13="".concat(nn.isChromiumBased()?_s4.ip:_s4.address,":").concat(_s4.port),_r2=_i11.protocol,_o2=_this10.conferenceStats.transport;_o2.some(function(t){return t.ip===_e22&&t.type===_r2&&t.localip===_n13;})||_o2.push({ip:_e22,type:_r2,localip:_n13,p2p:_this10.peerconnection.isP2P,localCandidateType:_s4.candidateType,remoteCandidateType:_i11.candidateType,networkType:_s4.networkType,rtt:1e3*t.currentRoundTripTime});}}else if("inbound-rtp"===t.type||"outbound-rtp"===t.type){var _n14=_this10.previousStatsReport.get(t.id),_i12=_this10.getNonNegativeValue(t.ssrc);if(!_n14||!_i12)return;var _s5=_this10.ssrc2stats.get(_i12);_s5||(_s5=new Dn(),_this10.ssrc2stats.set(_i12,_s5));var _r3=!0,_o3="packetsReceived";"outbound-rtp"===t.type&&(_r3=!1,_o3="packetsSent");var _a2=t[_o3];(!_a2||_a2<0)&&(_a2=0);var _c2=_this10.getNonNegativeValue(_n14[_o3]),_d2=Math.max(0,_a2-_c2),_l=_this10.getNonNegativeValue(t.packetsLost),_h=_this10.getNonNegativeValue(_n14.packetsLost),_u=Math.max(0,_l-_h);if(_s5.setLoss({packetsTotal:_d2+_u,packetsLost:_u,isDownloadStream:_r3}),"inbound-rtp"===t.type){var _e23={height:t.frameHeight,width:t.frameWidth},_i13=t.framesPerSecond;_e23.height&&_e23.width&&_s5.setResolution(_e23),_s5.setFramerate(Math.round(_i13||0)),_s5.addBitrate({download:_this10._calculateBitrate(t,_n14,"bytesReceived"),upload:0});}else e[_i12]=_this10.getNonNegativeValue(t.bytesSent),_s5.addBitrate({download:0,upload:_this10._calculateBitrate(t,_n14,"bytesSent")});var _p2=_this10.currentStatsReport.get(t.codecId);if(_p2){var _e24=_p2.mimeType.split("/")[1];_e24&&_s5.setCodec(_e24);}}else if("track"===t.type&&t.kind===wn&&!t.remoteSource){var _e25={height:t.frameHeight,width:t.frameWidth},_n15=_this10.peerconnection.getLocalTracks(wn);if(null==_n15||!_n15.length)return;var _i14=_this10.peerconnection.getLocalSSRC(_n15[0]);if(!_i14)return;var _s6=_this10.ssrc2stats.get(_i14);_s6||(_s6=new Dn(),_this10.ssrc2stats.set(_i14,_s6)),_e25.height&&_e25.width&&_s6.setResolution(_e25);var _r4=t.framesPerSecond;if(!_r4){var _e26=_this10.previousStatsReport.get(t.id);if(_e26){var _n16=t.timestamp-_e26.timestamp;_n16>0&&t.framesSent&&(_r4=(t.framesSent-_e26.framesSent)/_n16*1e3);}if(!_r4)return;}var _o4=_this10.peerconnection.getActiveSimulcastStreams();_r4=_o4?Math.round(_r4/_o4):0,_s6.setFramerate(_r4);}}),this.eventEmitter.emit(xt,this.peerconnection,e),this._processAndEmitReport();},kn.prototype.processAudioLevelReport=function(){var _this11=this;this.baselineAudioLevelsReport&&this.currentAudioLevelsReport.forEach(function(e){if("track"!==e.type)return;var t=e.audioLevel;if(!t)return;var n=e.trackIdentifier,i=_this11.peerconnection.getSsrcByTrackId(n);if(i){var _e27=i===_this11.peerconnection.getLocalSSRC(_this11.peerconnection.getLocalTracks(Rn));_this11.eventEmitter.emit(Ot,_this11.peerconnection,i,t,_e27);}});};var On=n(9077).getLogger("modules/statistics/statistics.js");var Ln,xn=!1;function Fn(e){gn.isBackendInitialized()||gn.initBackend({callStatsID:e.callStatsID,callStatsSecret:e.callStatsSecret,userName:e.userName,aliasName:e.aliasName,applicationName:e.applicationName,getWiFiStatsMethod:e.getWiFiStatsMethod,confID:e.confID,siteID:e.siteID,configParams:e.configParams})||On.error("CallStats Backend initialization failed bad");}function jn(e,t){this.rtpStatsMap=new Map(),this.eventEmitter=new(nt())(),this.xmpp=e,this.options=t||{},this.callStatsIntegrationEnabled=this.options.callStatsID&&this.options.callStatsSecret&&this.options.enableCallStats&&!0!==jn.disableThirdPartyRequests,this.callStatsIntegrationEnabled&&(this.callStatsApplicationLogsDisabled=this.options.callStatsApplicationLogsDisabled,nn.isReactNative()?Fn(this.options):function(e){xn||(rn().loadScript(e.customScriptUrl||ot,!0,!0,void 0,function(){return Fn(e);}),xn=!0);}(this.options),this.options.confID||On.warn(\'"confID" is not defined\')),this.callsStatsInstances=new Map(),jn.instances.add(this);}jn.init=function(e){jn.audioLevelsEnabled=!e.disableAudioLevels,"number"==typeof e.pcStatsInterval&&(jn.pcStatsInterval=e.pcStatsInterval),"number"==typeof e.audioLevelsInterval&&(jn.audioLevelsInterval=e.audioLevelsInterval),"number"==typeof e.longTasksStatsInterval&&(jn.longTasksStatsInterval=e.longTasksStatsInterval),jn.disableThirdPartyRequests=e.disableThirdPartyRequests;},jn.audioLevelsEnabled=!1,jn.audioLevelsInterval=200,jn.pcStatsInterval=1e4,jn.disableThirdPartyRequests=!1,jn.analytics=an,Object.defineProperty(jn,"instances",{get:function get(){return Ln||(Ln=new Set()),Ln;}}),jn.prototype.startRemoteStats=function(e){this.stopRemoteStats(e);try{var _t17=new kn(e,jn.audioLevelsInterval,jn.pcStatsInterval,this.eventEmitter);_t17.start(jn.audioLevelsEnabled),this.rtpStatsMap.set(e.id,_t17);}catch(e){On.error("Failed to start collecting remote statistics: ".concat(e));}},jn.localStats=[],jn.startLocalStats=function(e,t){if(!jn.audioLevelsEnabled)return;var n=new vn(e,jn.audioLevelsInterval,t);this.localStats.push(n),n.start();},jn.prototype.addAudioLevelListener=function(e){jn.audioLevelsEnabled&&this.eventEmitter.on(Ot,e);},jn.prototype.removeAudioLevelListener=function(e){jn.audioLevelsEnabled&&this.eventEmitter.removeListener(Ot,e);},jn.prototype.addBeforeDisposedListener=function(e){this.eventEmitter.on(Lt,e);},jn.prototype.removeBeforeDisposedListener=function(e){this.eventEmitter.removeListener(Lt,e);},jn.prototype.addConnectionStatsListener=function(e){this.eventEmitter.on(Ft,e);},jn.prototype.removeConnectionStatsListener=function(e){this.eventEmitter.removeListener(Ft,e);},jn.prototype.addByteSentStatsListener=function(e){this.eventEmitter.on(xt,e);},jn.prototype.removeByteSentStatsListener=function(e){this.eventEmitter.removeListener(xt,e);},jn.prototype.addLongTasksStatsListener=function(e){this.eventEmitter.on(jt,e);},jn.prototype.attachLongTasksStats=function(e){var _this12=this;nn.supportsPerformanceObserver()?(this.performanceObserverStats=new Tn(this.eventEmitter,jn.longTasksStatsInterval),e.on(G,function(){return _this12.performanceObserverStats.startObserver();}),e.on(q,function(){return _this12.performanceObserverStats.stopObserver();})):On.warn("Performance observer for long tasks not supported by browser!");},jn.prototype.getLongTasksStats=function(){return this.performanceObserverStats?this.performanceObserverStats.getLongTasksStats():null;},jn.prototype.removeLongTasksStatsListener=function(e){this.eventEmitter.removeListener(jt,e);},jn.prototype.setSpeakerList=function(e){for(var _i15=0,_Array$from=Array.from(this.rtpStatsMap.values());_i15<_Array$from.length;_i15++){var _t18=_Array$from[_i15];_t18.peerconnection.isP2P||_t18.setSpeakerList(e);}},jn.prototype.dispose=function(){try{this.callsStatsInstances.size||this.eventEmitter.emit(Lt);var _iterator5=_createForOfIteratorHelper(this.callsStatsInstances.values()),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _e28=_step5.value;this.stopCallStats(_e28.tpc);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}var _iterator6=_createForOfIteratorHelper(this.rtpStatsMap.keys()),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _e29=_step6.value;this._stopRemoteStats(_e29);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}this.eventEmitter&&this.eventEmitter.removeAllListeners();}finally{jn.instances.delete(this);}},jn.stopLocalStats=function(e){if(jn.audioLevelsEnabled)for(var _t19=0;_t19<jn.localStats.length;_t19++)if(jn.localStats[_t19].stream===e){jn.localStats.splice(_t19,1)[0].stop();break;}},jn.prototype._stopRemoteStats=function(e){var t=this.rtpStatsMap.get(e);t&&(t.stop(),this.rtpStatsMap.delete(e));},jn.prototype.stopRemoteStats=function(e){this._stopRemoteStats(e.id);},jn.prototype.startCallStats=function(e,t){if(!this.callStatsIntegrationEnabled)return;if(this.callsStatsInstances.has(e.id))return void On.error("CallStats instance for ${tpc} exists already");On.info("Starting CallStats for ".concat(e,"..."));var n=new gn(e,{confID:this.options.confID,remoteUserID:t});this.callsStatsInstances.set(e.id,n);},jn._getAllCallStatsInstances=function(){var e=new Set();var _iterator7=_createForOfIteratorHelper(jn.instances),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _t20=_step7.value;var _iterator8=_createForOfIteratorHelper(_t20.callsStatsInstances.values()),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _n17=_step8.value;e.add(_n17);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}return e;},jn.prototype.stopCallStats=function(e){var t=this.callsStatsInstances.get(e.id);t&&(1===this.callsStatsInstances.size&&this.eventEmitter.emit(Lt),this.callsStatsInstances.delete(e.id),t.sendTerminateEvent());},jn.prototype.isCallstatsEnabled=function(){return this.callStatsIntegrationEnabled;},jn.prototype.sendConnectionResumeOrHoldEvent=function(e,t){var n=this.callsStatsInstances.get(e.id);n&&n.sendResumeOrHoldEvent(t);},jn.prototype.sendIceConnectionFailedEvent=function(e){var t=this.callsStatsInstances.get(e.id);t&&t.sendIceConnectionFailedEvent();},jn.prototype.sendMuteEvent=function(e,t,n){var i=e&&this.callsStatsInstances.get(e.id);gn.sendMuteEvent(t,n,i);},jn.prototype.sendScreenSharingEvent=function(e,t){var _iterator9=_createForOfIteratorHelper(this.callsStatsInstances.values()),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n18=_step9.value;_n18.sendScreenSharingEvent(e,t);}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}},jn.prototype.sendDominantSpeakerEvent=function(e){var _iterator10=_createForOfIteratorHelper(this.callsStatsInstances.values()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _e30=_step10.value;_e30.sendDominantSpeakerEvent();}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}this.xmpp.sendDominantSpeakerEvent(e);},jn.sendActiveDeviceListEvent=function(e){var t=jn._getAllCallStatsInstances();if(t.size){var _iterator11=_createForOfIteratorHelper(t),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _n19=_step11.value;gn.sendActiveDeviceListEvent(e,_n19);}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}else gn.sendActiveDeviceListEvent(e,null);},jn.prototype.associateStreamWithVideoTag=function(e,t,n,i,s,r){var o=this.callsStatsInstances.get(e.id);o&&o.associateStreamWithVideoTag(t,n,i,s,r);},jn.sendGetUserMediaFailed=function(e){var t=e instanceof Et?function(e){var t=new Error();return t.stack=e.stack,t.name=(e.name||"Unknown error")+(e.gum&&e.gum.error&&e.gum.error.name?" - ".concat(e.gum.error.name):""),t.constraintName=e.gum&&e.gum.constraints?JSON.stringify(e.gum.constraints):"",t.message=e.message,t;}(e):e,n=jn._getAllCallStatsInstances();if(n.size){var _iterator12=_createForOfIteratorHelper(n),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e31=_step12.value;gn.sendGetUserMediaFailed(t,_e31);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}}else gn.sendGetUserMediaFailed(t,null);},jn.prototype.sendCreateOfferFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendCreateOfferFailed(e);},jn.prototype.sendCreateAnswerFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendCreateAnswerFailed(e);},jn.prototype.sendSetLocalDescFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendSetLocalDescFailed(e);},jn.prototype.sendSetRemoteDescFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendSetRemoteDescFailed(e);},jn.prototype.sendAddIceCandidateFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendAddIceCandidateFailed(e);},jn.sendLog=function(e){var t=new Set();var _iterator13=_createForOfIteratorHelper(jn.instances),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e32=_step13.value;if(_e32.callStatsApplicationLogsDisabled)return;_e32.callsStatsInstances.size&&t.add(_e32.callsStatsInstances.values().next().value);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}if(t.size){var _iterator14=_createForOfIteratorHelper(t),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _n20=_step14.value;gn.sendApplicationLog(e,_n20);}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}}else gn.sendApplicationLog(e,null);},jn.prototype.sendFeedback=function(e,t){return jn.analytics.sendEvent("feedback",{rating:e,comment:t}),gn.sendFeedback(this.options.confID,e,t);},jn.LOCAL_JID=n(4806).LOCAL_JID,jn.reportGlobalError=function(e){e instanceof Et&&e.gum?jn.sendGetUserMediaFailed(e):jn.sendLog(e);},jn.sendAnalyticsAndLog=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e?(t="object"==_typeof(e)?e:{name:e,properties:n},On.log(JSON.stringify(t)),this.analytics.sendEvent(e,n)):On.warn("No event or event name given.");},jn.sendAnalytics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.analytics.sendEvent(e,t);};var $n=n(4832),Un=n.n($n),Bn=n(1645),Vn=n.n(Bn),Jn=n(1122),Hn=n.n(Jn),Gn=n(3514),qn=n.n(Gn),Kn=n(4188),zn=n.n(Kn);var Wn=(0,g.getLogger)("JitsiConferenceEventManager.js");function Qn(e){this.conference=e,this.xmppListeners={},e.on(Oe,function(t){if(!t.isLocal()||!e.statistics)return;var n=t.isP2P?e.p2pJingleSession:e.jvbJingleSession,i=n&&n.peerconnection||null;e.statistics.sendMuteEvent(i,t.isMuted(),t.getType());});}Qn.prototype.setupChatRoomListeners=function(){var _this13=this;var e=this.conference,t=e.room;this.chatRoomForwarder=new(Un())(t,this.conference.eventEmitter),t.addListener(zn().ICE_RESTARTING,function(t){t.isP2P||e.rtc.closeBridgeChannel();}),t.addListener(zn().PARTICIPANT_FEATURES_CHANGED,function(t,n){var i=e.getParticipantById(rt.Strophe.getResourceFromJid(t));i&&(i.setFeatures(n),e.eventEmitter.emit(Se,i));}),t.addListener(zn().ICE_RESTART_SUCCESS,function(t,n){!t.isP2P&&e._setBridgeChannel(n,t.peerconnection);}),t.addListener(zn().AUDIO_MUTED_BY_FOCUS,function(t){jn.sendAnalytics(Nt(Rn)),e.mutedByFocusActor=t,e.rtc.setAudioMute(!0).then(function(){e.isMutedByFocus=!0,e.mutedByFocusActor=null;}).catch(function(t){e.mutedByFocusActor=null,Wn.warn("Error while audio muting due to focus request",t);});}),t.addListener(zn().VIDEO_MUTED_BY_FOCUS,function(t){jn.sendAnalytics(Nt(wn)),e.mutedVideoByFocusActor=t,e.rtc.setVideoMute(!0).then(function(){e.isVideoMutedByFocus=!0,e.mutedVideoByFocusActor=null;}).catch(function(t){e.mutedVideoByFocusActor=null,Wn.warn("Error while video muting due to focus request",t);});}),this.chatRoomForwarder.forward(zn().SUBJECT_CHANGED,Pe),this.chatRoomForwarder.forward(zn().MUC_JOINED,G),this.chatRoomForwarder.forward(zn().MUC_JOIN_IN_PROGRESS,H),this.chatRoomForwarder.forward(zn().MEETING_ID_SET,K),t.addListener(zn().MUC_JOINED,function(){_this13.conference._onMucJoined(),_this13.conference.isJvbConnectionInterrupted=!1,Object.keys(t.connectionTimes).forEach(function(e){var n=It("conference_".concat(e),{value:t.connectionTimes[e]});jn.sendAnalytics(n);}),Object.keys(t.xmpp.connectionTimes).forEach(function(e){var n=It("xmpp_".concat(e),{value:t.xmpp.connectionTimes[e]});jn.sendAnalytics(n);});}),t.addListener(zn().RENEGOTIATION_FAILED,function(t,n){n.isP2P||e.eventEmitter.emit(J,k,t);}),this.chatRoomForwarder.forward(zn().ROOM_JOIN_ERROR,J,b),this.chatRoomForwarder.forward(zn().ROOM_CONNECT_ERROR,J,b),this.chatRoomForwarder.forward(zn().ROOM_CONNECT_NOT_ALLOWED_ERROR,J,R),this.chatRoomForwarder.forward(zn().ROOM_CONNECT_MEMBERS_ONLY_ERROR,J,A),this.chatRoomForwarder.forward(zn().ROOM_MAX_USERS_ERROR,J,C),this.chatRoomForwarder.forward(zn().PASSWORD_REQUIRED,J,L),this.chatRoomForwarder.forward(zn().AUTHENTICATION_REQUIRED,J,v),this.chatRoomForwarder.forward(zn().BRIDGE_DOWN,J,F),t.addListener(zn().BRIDGE_DOWN,function(){return jn.sendAnalytics(function(){var e="bridge.down";return{action:e,actionSubject:e,type:Ct};}());}),t.addListener(zn().CONNECTION_RESTARTED,function(t){e._onConferenceRestarted(t);}),this.chatRoomForwarder.forward(zn().RESERVATION_ERROR,J,x),this.chatRoomForwarder.forward(zn().GRACEFUL_SHUTDOWN,J,M),t.addListener(zn().CONNECTION_ICE_FAILED,function(t){e._onIceConnectionFailed(t);}),this.chatRoomForwarder.forward(zn().MUC_DESTROYED,J,E),this.chatRoomForwarder.forward(zn().CHAT_ERROR_RECEIVED,V,S),this.chatRoomForwarder.forward(zn().SETTINGS_ERROR_RECEIVED,V,y),this.chatRoomForwarder.forward(zn().FOCUS_DISCONNECTED,J,I),t.addListener(zn().FOCUS_LEFT,function(){jn.sendAnalytics(function(){var e="focus.left";return{action:e,actionSubject:e,type:Ct};}()),e.eventEmitter.emit(J,P);}),t.addListener(zn().SESSION_ACCEPT_TIMEOUT,function(e){jn.sendAnalyticsAndLog(Mt("session-accept.timeout",{p2p:e.isP2P}));}),t.addListener(zn().RECORDER_STATE_CHANGED,function(t,n){if(n){var _i16=rt.Strophe.getResourceFromJid(n),_s7=e.getParticipantById(_i16)||_i16;"off"===t.getStatus()?t.setTerminator(_s7):"on"===t.getStatus()&&t.setInitiator(_s7);}e.eventEmitter.emit(Te,t);}),this.chatRoomForwarder.forward(zn().TRANSCRIPTION_STATUS_CHANGED,Fe),this.chatRoomForwarder.forward(zn().VIDEO_SIP_GW_AVAILABILITY_CHANGED,Re),this.chatRoomForwarder.forward(zn().VIDEO_SIP_GW_SESSION_STATE_CHANGED,Ae),this.chatRoomForwarder.forward(zn().PHONE_NUMBER_CHANGED,Ce),t.setParticipantPropertyListener(function(t,n){var i=e.getParticipantById(n);i&&i.setProperty(t.tagName.substring("jitsi_participant_".length),t.value);}),t.addListener(zn().KICKED,e.onMemberKicked.bind(e)),t.addListener(zn().SUSPEND_DETECTED,e.onSuspendDetected.bind(e)),this.chatRoomForwarder.forward(zn().MUC_LOCK_CHANGED,ce),this.chatRoomForwarder.forward(zn().MUC_MEMBERS_ONLY_CHANGED,ue),t.addListener(zn().MUC_MEMBER_JOINED,e.onMemberJoined.bind(e)),this.chatRoomForwarder.forward(zn().MUC_LOBBY_MEMBER_JOINED,He),this.chatRoomForwarder.forward(zn().MUC_LOBBY_MEMBER_UPDATED,Ge),this.chatRoomForwarder.forward(zn().MUC_LOBBY_MEMBER_LEFT,qe),t.addListener(zn().MUC_MEMBER_BOT_TYPE_CHANGED,e._onMemberBotTypeChanged.bind(e)),t.addListener(zn().MUC_MEMBER_LEFT,e.onMemberLeft.bind(e)),this.chatRoomForwarder.forward(zn().MUC_LEFT,q),this.chatRoomForwarder.forward(zn().MUC_DENIED_ACCESS,J,w),t.addListener(zn().DISPLAY_NAME_CHANGED,e.onDisplayNameChanged.bind(e)),t.addListener(zn().LOCAL_ROLE_CHANGED,function(t){e.onLocalRoleChanged(t),e.statistics&&e.isModerator()&&e.on(Te,function(e){var t={error:e.getError(),id:"recorder_status",status:e.getStatus()};jn.sendLog(JSON.stringify(t));});}),t.addListener(zn().MUC_ROLE_CHANGED,e.onUserRoleChanged.bind(e)),t.addListener(qn().IDENTITY_UPDATED,function(t,n){e.authEnabled=t,e.authIdentity=n,e.eventEmitter.emit(U,t,n);}),t.addListener(zn().MESSAGE_RECEIVED,function(t,n,i,s){var r=rt.Strophe.getResourceFromJid(t);e.eventEmitter.emit(pe,r,n,s);}),t.addListener(zn().PRIVATE_MESSAGE_RECEIVED,function(t,n,i,s){var r=rt.Strophe.getResourceFromJid(t);e.eventEmitter.emit(_e,r,n,s);}),t.addListener(zn().PRESENCE_STATUS,function(t,n){var i=rt.Strophe.getResourceFromJid(t),s=e.getParticipantById(i);s&&s._status!==n&&(s._status=n,e.eventEmitter.emit(Be,i,n));}),t.addListener(zn().JSON_MESSAGE_RECEIVED,function(t,n){var i=rt.Strophe.getResourceFromJid(t),s=e.getParticipantById(i);s?e.eventEmitter.emit(ne,s,n):e.eventEmitter.emit(ge,i,n);}),t.addPresenceListener("startmuted",function(t,n){var i=!1;if(e.myUserId()===n&&e.isModerator())i=!0;else{var _t21=e.getParticipantById(n);_t21&&_t21.isModerator()&&(i=!0);}if(!i)return;var s="true"===t.attributes.audio,r="true"===t.attributes.video;var o=!1;s!==e.startMutedPolicy.audio&&(e.startMutedPolicy.audio=s,o=!0),r!==e.startMutedPolicy.video&&(e.startMutedPolicy.video=r,o=!0),o&&e.eventEmitter.emit(we,e.startMutedPolicy);}),e.statistics&&(t.addListener(zn().CONNECTION_ICE_FAILED,function(t){e.statistics.sendIceConnectionFailedEvent(t.peerconnection);}),t.addListener(zn().ADD_ICE_CANDIDATE_FAILED,function(t,n){e.statistics.sendAddIceCandidateFailed(t,n);})),this.chatRoomForwarder.forward(zn().BREAKOUT_ROOMS_MOVE_TO_ROOM,Ze),this.chatRoomForwarder.forward(zn().BREAKOUT_ROOMS_UPDATED,et);},Qn.prototype.setupRTCListeners=function(){var e=this.conference,t=e.rtc;t.addListener(Vn().REMOTE_TRACK_ADDED,e.onRemoteTrackAdded.bind(e)),t.addListener(Vn().REMOTE_TRACK_REMOVED,e.onRemoteTrackRemoved.bind(e)),t.addListener(Vn().DOMINANT_SPEAKER_CHANGED,function(t,n){if(e.lastDominantSpeaker!==t&&e.room){if(e.lastDominantSpeaker=t,e.eventEmitter.emit(Z,t,n),n&&n.length){var _i17=n.slice(0);e.myUserId!==t&&_i17.splice(0,0,t),_i17.length>5&&_i17.splice(5,_i17.length-5),e.statistics&&e.statistics.setSpeakerList(_i17);}e.statistics&&e.myUserId()===t&&e.statistics.sendDominantSpeakerEvent(e.room.roomjid);}}),t.addListener(Vn().DATA_CHANNEL_OPEN,function(){var t=window.performance.now(),n="data.channel.opened";Wn.log("(TIME) ".concat(n,":\\t"),t),e.room.connectionTimes[n]=t,jn.sendAnalytics(It(n,{value:t})),e.eventEmitter.emit(X);}),t.addListener(Vn().ENDPOINT_MESSAGE_RECEIVED,function(t,n){var i=e.getParticipantById(t);i?e.eventEmitter.emit(ne,i,n):Wn.warn("Ignored ENDPOINT_MESSAGE_RECEIVED for not existing participant: ".concat(t),n);}),t.addListener(Vn().ENDPOINT_STATS_RECEIVED,function(t,n){var i=e.getParticipantById(t);i?e.eventEmitter.emit(ie,i,n):Wn.warn("Ignoring ENDPOINT_STATS_RECEIVED for a non-existant participant: ".concat(t));}),t.addListener(Vn().LOCAL_UFRAG_CHANGED,function(e,t){e.isP2P||jn.sendLog(JSON.stringify({id:"local_ufrag",value:t}));}),t.addListener(Vn().REMOTE_UFRAG_CHANGED,function(e,t){e.isP2P||jn.sendLog(JSON.stringify({id:"remote_ufrag",value:t}));}),t.addListener(Vn().CREATE_ANSWER_FAILED,function(t,n){e.statistics.sendCreateAnswerFailed(t,n),n.isP2P||e.eventEmitter.emit(J,k,t);}),t.addListener(Vn().CREATE_OFFER_FAILED,function(t,n){e.statistics.sendCreateOfferFailed(t,n),n.isP2P||e.eventEmitter.emit(J,k,t);}),t.addListener(Vn().SET_LOCAL_DESCRIPTION_FAILED,function(t,n){e.statistics.sendSetLocalDescFailed(t,n),n.isP2P||e.eventEmitter.emit(J,k,t);}),t.addListener(Vn().SET_REMOTE_DESCRIPTION_FAILED,function(t,n){e.statistics.sendSetRemoteDescFailed(t,n),n.isP2P||e.eventEmitter.emit(J,k,t);}),t.addListener(Vn().LOCAL_TRACK_SSRC_UPDATED,function(t,n){t.isVideoTrack()&&t.videoType===Hn().DESKTOP&&e.statistics.sendScreenSharingEvent(!0,n);});},Qn.prototype.removeXMPPListeners=function(){var _this14=this;var e=this.conference;Object.keys(this.xmppListeners).forEach(function(t){e.xmpp.removeListener(t,_this14.xmppListeners[t]);}),this.xmppListeners={};},Qn.prototype.setupXMPPListeners=function(){var e=this.conference;this._addConferenceXMPPListener(zn().CALL_INCOMING,e.onIncomingCall.bind(e)),this._addConferenceXMPPListener(zn().CALL_ACCEPTED,e.onCallAccepted.bind(e)),this._addConferenceXMPPListener(zn().TRANSPORT_INFO,e.onTransportInfo.bind(e)),this._addConferenceXMPPListener(zn().CALL_ENDED,e.onCallEnded.bind(e)),this._addConferenceXMPPListener(zn().START_MUTED_FROM_FOCUS,function(t,n){e.options.config.ignoreStartMuted||(e.startAudioMuted=t,e.startVideoMuted=n,e.getLocalTracks().forEach(function(t){switch(t.getType()){case Rn:e.startAudioMuted&&t.mute();break;case wn:e.startVideoMuted&&t.mute();}}),e.eventEmitter.emit(Ie));}),this._addConferenceXMPPListener(zn().CONFERENCE_TIMESTAMP_RECEIVED,function(t){e.eventEmitter.emit(ee,t);}),this._addConferenceXMPPListener(zn().AV_MODERATION_CHANGED,function(t,n,i){var s=e.getParticipants().find(function(e){return e.getJid()===i;});e.eventEmitter.emit(We,{enabled:t,mediaType:n,actor:s});}),this._addConferenceXMPPListener(zn().AV_MODERATION_PARTICIPANT_APPROVED,function(t,n){var i=e.getParticipantById(rt.Strophe.getResourceFromJid(n));i&&e.eventEmitter.emit(Qe,{participant:i,mediaType:t});}),this._addConferenceXMPPListener(zn().AV_MODERATION_PARTICIPANT_REJECTED,function(t,n){var i=e.getParticipantById(rt.Strophe.getResourceFromJid(n));i&&e.eventEmitter.emit(Xe,{participant:i,mediaType:t});}),this._addConferenceXMPPListener(zn().AV_MODERATION_APPROVED,function(t){return e.eventEmitter.emit(Ke,{mediaType:t});}),this._addConferenceXMPPListener(zn().AV_MODERATION_REJECTED,function(t){e.eventEmitter.emit(ze,{mediaType:t});});},Qn.prototype._addConferenceXMPPListener=function(e,t){this.xmppListeners[e]=t,this.conference.xmpp.addListener(e,t);},Qn.prototype.setupStatisticsListeners=function(){var e=this.conference;e.statistics&&(e.statistics.addAudioLevelListener(function(t,n,i,s){e.rtc.setAudioLevel(t,n,i,s);}),e.statistics.addBeforeDisposedListener(function(){e.eventEmitter.emit(B);}),e.options.config.startSilent||e.statistics.addByteSentStatsListener(function(t,n){e.getLocalTracks(Rn).forEach(function(e){var i=t.getLocalSSRC(e);i&&n.hasOwnProperty(i)&&e.onByteSentStatsReceived(t,n[i]);});}));};var Xn="track.stopped",Yn="track.audioLevelsChanged",Zn="track.audioOutputChanged",ei="track.trackMuteChanged",ti="track.videoTypeChanged",ni="track.no_data_from_source",ii="track.no_audio_input",si=(0,g.getLogger)("modules/connectivity/ParticipantConnectionStatus.js"),ri={ACTIVE:"active",INACTIVE:"inactive",INTERRUPTED:"interrupted",RESTORING:"restoring"};var oi=/*#__PURE__*/function(){function oi(e,t,n){_classCallCheck(this,oi);this.rtc=e,this.conference=t,this.trackTimers={},this.connStatusFromJvb={},this.outOfLastNTimeout="number"==typeof n.outOfLastNTimeout?n.outOfLastNTimeout:500,this.p2pRtcMuteTimeout="number"==typeof n.p2pRtcMuteTimeout?n.p2pRtcMuteTimeout:2500,this.rtcMuteTimeout="number"==typeof n.rtcMuteTimeout?n.rtcMuteTimeout:1e4,this.rtcMutedTimestamp={},si.info("RtcMuteTimeout set to: ".concat(this.rtcMuteTimeout)),this.enteredLastNTimestamp=new Map(),this.restoringTimers=new Map(),this.connectionStatusMap=new Map();}_createClass(oi,[{key:"_getVideoFrozenTimeout",value:function _getVideoFrozenTimeout(e){return this.rtc.isInLastN(e)?this.rtcMuteTimeout:this.conference.isP2PActive()?this.p2pRtcMuteTimeout:this.outOfLastNTimeout;}},{key:"init",value:function init(){this._onEndpointConnStatusChanged=this.onEndpointConnStatusChanged.bind(this),this.rtc.addListener(Vn().ENDPOINT_CONN_STATUS_CHANGED,this._onEndpointConnStatusChanged),this._onP2PStatus=this.refreshConnectionStatusForAll.bind(this),this.conference.on(Ee,this._onP2PStatus),this._onUserLeft=this.onUserLeft.bind(this),this.conference.on($e,this._onUserLeft),nn.supportsVideoMuteOnConnInterrupted()&&(this._onTrackRtcMuted=this.onTrackRtcMuted.bind(this),this.rtc.addListener(Vn().REMOTE_TRACK_MUTE,this._onTrackRtcMuted),this._onTrackRtcUnmuted=this.onTrackRtcUnmuted.bind(this),this.rtc.addListener(Vn().REMOTE_TRACK_UNMUTE,this._onTrackRtcUnmuted),this._onRemoteTrackAdded=this.onRemoteTrackAdded.bind(this),this.conference.on(Ne,this._onRemoteTrackAdded),this._onRemoteTrackRemoved=this.onRemoteTrackRemoved.bind(this),this.conference.on(Le,this._onRemoteTrackRemoved),this._onSignallingMuteChanged=this.onSignallingMuteChanged.bind(this),this._onTrackVideoTypeChanged=this.onTrackVideoTypeChanged.bind(this)),this._onLastNChanged=this._onLastNChanged.bind(this),this.conference.on(ae,this._onLastNChanged),this._onLastNValueChanged=this.refreshConnectionStatusForAll.bind(this),this.rtc.on(Vn().LASTN_VALUE_CHANGED,this._onLastNValueChanged);}},{key:"dispose",value:function dispose(){this.rtc.removeListener(Vn().ENDPOINT_CONN_STATUS_CHANGED,this._onEndpointConnStatusChanged),nn.supportsVideoMuteOnConnInterrupted()&&(this.rtc.removeListener(Vn().REMOTE_TRACK_MUTE,this._onTrackRtcMuted),this.rtc.removeListener(Vn().REMOTE_TRACK_UNMUTE,this._onTrackRtcUnmuted),this.conference.off(Ne,this._onRemoteTrackAdded),this.conference.off(Le,this._onRemoteTrackRemoved)),this.conference.off(ae,this._onLastNChanged),this.rtc.removeListener(Vn().LASTN_VALUE_CHANGED,this._onLastNValueChanged),this.conference.off(Ee,this._onP2PStatus),this.conference.off($e,this._onUserLeft);var e=Object.keys(this.trackTimers);for(var _i18=0,_e33=e;_i18<_e33.length;_i18++){var _t22=_e33[_i18];this.clearTimeout(_t22),this.clearRtcMutedTimestamp(_t22);}for(var _e34 in this.connectionStatusMap)this.connectionStatusMap.hasOwnProperty(_e34)&&this.onUserLeft(_e34);this.connStatusFromJvb={};}},{key:"onEndpointConnStatusChanged",value:function onEndpointConnStatusChanged(e,t){si.debug("Detector RTCEvents.ENDPOINT_CONN_STATUS_CHANGED(".concat(Date.now(),"): ").concat(e,": ").concat(t)),e!==this.conference.myUserId()&&(this.connStatusFromJvb[e]=t,this.figureOutConnectionStatus(e));}},{key:"_changeConnectionStatus",value:function _changeConnectionStatus(e,t){if(e.getConnectionStatus()!==t){var _n21=e.getId();e._setConnectionStatus(t),si.debug("Emit endpoint conn status(".concat(Date.now(),") ").concat(_n21,": ").concat(t)),jn.sendLog(JSON.stringify({id:"peer.conn.status",participant:_n21,status:t})),this.conference.eventEmitter.emit(ve,_n21,t);}}},{key:"clearTimeout",value:function clearTimeout(e){this.trackTimers[e]&&(window.clearTimeout(this.trackTimers[e]),this.trackTimers[e]=null);}},{key:"clearRtcMutedTimestamp",value:function clearRtcMutedTimestamp(e){this.rtcMutedTimestamp[e]=null;}},{key:"onRemoteTrackAdded",value:function onRemoteTrackAdded(e){var _this15=this;e.isLocal()||e.getType()!==wn||(si.debug("Detector on remote track added for: ".concat(e.getParticipantId())),e.on(ei,this._onSignallingMuteChanged),e.on(ti,function(t){return _this15._onTrackVideoTypeChanged(e,t);}));}},{key:"onRemoteTrackRemoved",value:function onRemoteTrackRemoved(e){if(!e.isLocal()&&e.getType()===wn){var _t23=e.getParticipantId();si.debug("Detector on remote track removed: ".concat(_t23)),e.off(ei,this._onSignallingMuteChanged),this.clearTimeout(_t23),this.clearRtcMutedTimestamp(_t23),this.figureOutConnectionStatus(_t23);}}},{key:"isVideoTrackFrozen",value:function isVideoTrackFrozen(e){if(!nn.supportsVideoMuteOnConnInterrupted())return!1;var t=e.getId(),n=e.hasAnyVideoTrackWebRTCMuted(),i=this.rtcMutedTimestamp[t],s=this._getVideoFrozenTimeout(t);return n&&"number"==typeof i&&Date.now()-i>=s;}},{key:"refreshConnectionStatusForAll",value:function refreshConnectionStatusForAll(){var e=this.conference.getParticipants();var _iterator15=_createForOfIteratorHelper(e),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _t24=_step15.value;this.figureOutConnectionStatus(_t24.getId());}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}}},{key:"figureOutConnectionStatus",value:function figureOutConnectionStatus(e){var t=this.conference.getParticipantById(e);if(!t)return void si.debug("figure out conn status - no participant for: ".concat(e));var n=this.conference.isP2PActive(),i=this._isRestoringTimedout(e),s=0===this.conference.getLastN(),r=t.isVideoMuted()||s,o=this.isVideoTrackFrozen(t),a=this.rtc.isInLastN(e);var c=this.connStatusFromJvb[e];"boolean"!=typeof c&&(c=!0);var d=n?oi._getNewStateForP2PMode(r,o):oi._getNewStateForJvbMode(c,a,i,r,o);d!==ri.RESTORING&&this._clearRestoringTimer(e),si.debug("Figure out conn status for ".concat(e,", is video muted: ").concat(r," is active(jvb): ").concat(c," video track frozen: ").concat(o," p2p mode: ").concat(n," is in last N: ").concat(a," currentStatus => newStatus: ").concat(t.getConnectionStatus()," => ").concat(d));var l=this.connectionStatusMap[e]||{};if(!("p2p"in l)||!("connectionStatus"in l)||l.p2p!==n||l.connectionStatus!==d){var _i19=Date.now();if(this.maybeSendParticipantConnectionStatusEvent(e,_i19),this.connectionStatusMap[e]=_objectSpread(_objectSpread({},l),{},{connectionStatus:d,p2p:n,startedMs:_i19}),!("videoType"in this.connectionStatusMap[e])){var _n22=t.getTracksByMediaType(wn);Array.isArray(_n22)&&0!==_n22.length&&(this.connectionStatusMap[e].videoType=_n22[0].videoType);}}this._changeConnectionStatus(t,d);}},{key:"maybeSendParticipantConnectionStatusEvent",value:function maybeSendParticipantConnectionStatusEvent(e,t){var n=this.connectionStatusMap[e];n&&"startedMs"in n&&"videoType"in n&&"connectionStatus"in n&&"p2p"in n&&(n.value=t-n.startedMs,jn.sendAnalytics(function(){return{type:Ct,source:"peer.conn.status",action:"duration",attributes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};}(n)));}},{key:"_onLastNChanged",value:function _onLastNChanged(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var n=Date.now();si.debug("LastN endpoints changed leaving=".concat(e,", entering=").concat(t," at ").concat(n)),nn.supportsVideoMuteOnConnInterrupted()||this.refreshConnectionStatusForAll();var _iterator16=_createForOfIteratorHelper(e),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t25=_step16.value;this.enteredLastNTimestamp.delete(_t25),this._clearRestoringTimer(_t25),nn.supportsVideoMuteOnConnInterrupted()&&this.figureOutConnectionStatus(_t25);}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}var _iterator17=_createForOfIteratorHelper(t),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _e35=_step17.value;this.enteredLastNTimestamp.set(_e35,n),nn.supportsVideoMuteOnConnInterrupted()&&this.figureOutConnectionStatus(_e35);}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"_clearRestoringTimer",value:function _clearRestoringTimer(e){var t=this.restoringTimers.get(e);t&&(clearTimeout(t),this.restoringTimers.delete(e));}},{key:"_isRestoringTimedout",value:function _isRestoringTimedout(e){var _this16=this;var t=this.enteredLastNTimestamp.get(e);return!!(t&&Date.now()-t>=1e4)||(this.restoringTimers.get(e)||this.restoringTimers.set(e,setTimeout(function(){return _this16.figureOutConnectionStatus(e);},1e4)),!1);}},{key:"onUserLeft",value:function onUserLeft(e){this.maybeSendParticipantConnectionStatusEvent(e,Date.now()),delete this.connectionStatusMap[e];}},{key:"onTrackRtcMuted",value:function onTrackRtcMuted(e){var _this17=this;var t=e.getParticipantId(),n=this.conference.getParticipantById(t);if(si.debug("Detector track RTC muted: ".concat(t),Date.now()),n){if(this.rtcMutedTimestamp[t]=Date.now(),!n.isVideoMuted()){this.clearTimeout(t);var _e36=this._getVideoFrozenTimeout(t);this.trackTimers[t]=window.setTimeout(function(){si.debug("Set RTC mute timeout for: ".concat(t,"                     of ").concat(_e36," ms")),_this17.clearTimeout(t),_this17.figureOutConnectionStatus(t);},_e36);}}else si.error("No participant for id: ".concat(t));}},{key:"onTrackRtcUnmuted",value:function onTrackRtcUnmuted(e){var t=e.getParticipantId();si.debug("Detector track RTC unmuted: ".concat(t),Date.now()),this.clearTimeout(t),this.clearRtcMutedTimestamp(t),this.figureOutConnectionStatus(t);}},{key:"onSignallingMuteChanged",value:function onSignallingMuteChanged(e){var t=e.getParticipantId();si.debug("Detector on track signalling mute changed: ".concat(t),e.isMuted()),this.figureOutConnectionStatus(t);}},{key:"onTrackVideoTypeChanged",value:function onTrackVideoTypeChanged(e,t){var n=e.getParticipantId(),i=Date.now();this.maybeSendParticipantConnectionStatusEvent(n,i),this.connectionStatusMap[n]=_objectSpread(_objectSpread({},this.connectionStatusMap[n]||{}),{},{videoType:t,startedMs:i});}}],[{key:"_getNewStateForJvbMode",value:function _getNewStateForJvbMode(e,t,n,i,s){return e?i?ri.ACTIVE:nn.supportsVideoMuteOnConnInterrupted()?s?t?n?ri.INTERRUPTED:ri.RESTORING:ri.INACTIVE:ri.ACTIVE:t?ri.ACTIVE:ri.INACTIVE:ri.INTERRUPTED;}},{key:"_getNewStateForP2PMode",value:function _getNewStateForP2PMode(e,t){return nn.supportsVideoMuteOnConnInterrupted()?e||!t?ri.ACTIVE:ri.INTERRUPTED:ri.ACTIVE;}}]);return oi;}();var ai=/*#__PURE__*/function(){function ai(e,t,n,i,s,r,o,a,c){_classCallCheck(this,ai);this._jid=e,this._id=rt.Strophe.getResourceFromJid(e),this._conference=t,this._displayName=n,this._supportsDTMF=!1,this._tracks=[],this._role="none",this._status=r,this._hidden=i,this._statsID=s,this._connectionStatus=ri.ACTIVE,this._properties={},this._identity=o,this._isReplacing=a,this._isReplaced=c,this._features=new Set();}_createClass(ai,[{key:"getConference",value:function getConference(){return this._conference;}},{key:"getProperty",value:function getProperty(e){return this._properties[e];}},{key:"hasAnyVideoTrackWebRTCMuted",value:function hasAnyVideoTrackWebRTCMuted(){return this.getTracks().some(function(e){return e.getType()===wn&&e.isWebRTCTrackMuted();});}},{key:"_setConnectionStatus",value:function _setConnectionStatus(e){this._connectionStatus=e;}},{key:"getConnectionStatus",value:function getConnectionStatus(){return this._connectionStatus;}},{key:"setProperty",value:function setProperty(e,t){var n=this._properties[e];t!==n&&(this._properties[e]=t,this._conference.eventEmitter.emit(ye,this,e,n,t));}},{key:"getTracks",value:function getTracks(){return this._tracks.slice();}},{key:"getTracksByMediaType",value:function getTracksByMediaType(e){return this.getTracks().filter(function(t){return t.getType()===e;});}},{key:"getId",value:function getId(){return this._id;}},{key:"getJid",value:function getJid(){return this._jid;}},{key:"getDisplayName",value:function getDisplayName(){return this._displayName;}},{key:"getStatsID",value:function getStatsID(){return this._statsID;}},{key:"getStatus",value:function getStatus(){return this._status;}},{key:"isModerator",value:function isModerator(){return"moderator"===this._role;}},{key:"isHidden",value:function isHidden(){return this._hidden;}},{key:"isReplacing",value:function isReplacing(){return this._isReplacing;}},{key:"isReplaced",value:function isReplaced(){return this._isReplaced;}},{key:"isAudioMuted",value:function isAudioMuted(){return this._isMediaTypeMuted(Rn);}},{key:"_isMediaTypeMuted",value:function _isMediaTypeMuted(e){return this.getTracks().reduce(function(t,n){return t&&(n.getType()!==e||n.isMuted());},!0);}},{key:"isVideoMuted",value:function isVideoMuted(){return this._isMediaTypeMuted(wn);}},{key:"getRole",value:function getRole(){return this._role;}},{key:"setRole",value:function setRole(e){this._role=e;}},{key:"setIsReplacing",value:function setIsReplacing(e){this._isReplacing=e;}},{key:"setIsReplaced",value:function setIsReplaced(e){this._isReplaced=e;}},{key:"supportsDTMF",value:function supportsDTMF(){return this._supportsDTMF;}},{key:"getFeatures",value:function getFeatures(){return Promise.resolve(this._features);}},{key:"hasFeature",value:function hasFeature(e){return this._features.has(e);}},{key:"setFeatures",value:function setFeatures(e){this._features=e||new Set();}},{key:"getBotType",value:function getBotType(){return this._botType;}},{key:"setBotType",value:function setBotType(e){this._botType=e;}}]);return ai;}();var ci="connection.connectionDisconnected",di="connection.connectionEstablished",li="connection.connectionFailed",hi="connection.wrongState",ui="connection.display_name_required";n(5808);var pi="connection.droppedError",mi="connection.otherError",fi="connection.passwordRequired",gi="connection.serverError";var _i=/*#__PURE__*/function(){function _i(){var _this18=this;_classCallCheck(this,_i);var e=this;this.promise=new Promise(function(t,n){_this18.resolve=function(){e.clearRejectTimeout(),t.apply(void 0,arguments);},_this18.reject=function(){e.clearRejectTimeout(),n.apply(void 0,arguments);};}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise);}_createClass(_i,[{key:"clearRejectTimeout",value:function clearRejectTimeout(){clearTimeout(this._timeout);}},{key:"setRejectTimeout",value:function setRejectTimeout(e){var _this19=this;this._timeout=setTimeout(function(){_this19.reject(new Error("timeout"));},e);}}]);return _i;}();var vi=/*#__PURE__*/function(){function vi(){_classCallCheck(this,vi);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(nt())();this.eventEmitter=e,this.addEventListener=this.on=this.addListener,this.removeEventListener=this.off=this.removeListener;}_createClass(vi,[{key:"addListener",value:function addListener(e,t){var _this20=this;return this.eventEmitter.addListener(e,t),function(){return _this20.removeEventListener(e,t);};}},{key:"removeListener",value:function removeListener(e,t){this.eventEmitter.removeListener(e,t);}}]);return vi;}();var Si=(0,g.getLogger)("modules/e2ee/E2EEContext.js"),yi=Symbol("kJitsiE2EE");var Ei=/*#__PURE__*/function(){function Ei(){_classCallCheck(this,Ei);var _ref2=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref2.sharedKey,t="";var n=document.querySelector(\'script[src*="lib-jitsi-meet"]\');if(n){var _e37=n.src.lastIndexOf("/");t="".concat(n.src.substring(0,_e37),"/");}var i="".concat(t,"lib-jitsi-meet.e2ee-worker.js");if(t&&"/"!==t){var _e38=new Blob(["importScripts(\\"".concat(i,"\\");")],{type:"application/javascript"});i=window.URL.createObjectURL(_e38);}this._worker=new Worker(i,{name:"E2EE Worker"}),this._worker.onerror=function(e){return Si.error(e);},this._worker.postMessage({operation:"initialize",sharedKey:e});}_createClass(Ei,[{key:"cleanup",value:function cleanup(e){this._worker.postMessage({operation:"cleanup",participantId:e});}},{key:"cleanupAll",value:function cleanupAll(){this._worker.postMessage({operation:"cleanupAll"});}},{key:"handleReceiver",value:function handleReceiver(e,t,n){if(!e[yi])if(e[yi]=!0,window.RTCRtpScriptTransform){var _t26={operation:"decode",participantId:n};e.transform=new RTCRtpScriptTransform(this._worker,_t26);}else{var _t27=e.createEncodedStreams();this._worker.postMessage({operation:"decode",readableStream:_t27.readable,writableStream:_t27.writable,participantId:n},[_t27.readable,_t27.writable]);}}},{key:"handleSender",value:function handleSender(e,t,n){if(!e[yi])if(e[yi]=!0,window.RTCRtpScriptTransform){var _t28={operation:"encode",participantId:n};e.transform=new RTCRtpScriptTransform(this._worker,_t28);}else{var _t29=e.createEncodedStreams();this._worker.postMessage({operation:"encode",readableStream:_t29.readable,writableStream:_t29.writable,participantId:n},[_t29.readable,_t29.writable]);}}},{key:"setKey",value:function setKey(e,t,n){this._worker.postMessage({operation:"setKey",key:t,keyIndex:n,participantId:e});}}]);return Ei;}();var Ci=(0,g.getLogger)("modules/e2ee/KeyHandler.js");var bi=/*#__PURE__*/function(_vi){_inherits(bi,_vi);var _super4=_createSuper(bi);function bi(e){var _this21;_classCallCheck(this,bi);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_this21=_super4.call(this),_this21.conference=e,_this21.e2eeCtx=new Ei(t),_this21.enabled=!1,_this21._enabling=void 0,_this21.conference.on(le,_this21._onMediaSessionStarted.bind(_assertThisInitialized(_this21))),_this21.conference.on(Ne,function(e){return e.isLocal()&&_this21._onLocalTrackAdded(e);}),_this21.conference.rtc.on(Vn().REMOTE_TRACK_ADDED,function(e,t){return _this21._setupReceiverE2EEForTrack(t,e);}),_this21.conference.on(Oe,_this21._trackMuteChanged.bind(_assertThisInitialized(_this21)));return _this21;}_createClass(bi,[{key:"isEnabled",value:function isEnabled(){return this.enabled;}},{key:"setEnabled",value:function(){var _setEnabled=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.t0=e!==this.enabled;if(!_context.t0){_context.next=16;break;}_context.t1=this._enabling;if(!_context.t1){_context.next=6;break;}_context.next=6;return this._enabling;case 6:this._enabling=new _i();this.enabled=e;e||this.e2eeCtx.cleanupAll();_context.t2=this._setEnabled;if(!_context.t2){_context.next=13;break;}_context.next=13;return this._setEnabled(e);case 13:this.conference.setLocalParticipantProperty("e2ee.enabled",e);this.conference._restartMediaSessions();this._enabling.resolve();case 16:case"end":return _context.stop();}},_callee,this);}));function setEnabled(_x2){return _setEnabled.apply(this,arguments);}return setEnabled;}()},{key:"setEncryptionKey",value:function setEncryptionKey(){throw new Error("Not implemented by subclass");}},{key:"_onLocalTrackAdded",value:function _onLocalTrackAdded(e){var _iterator18=_createForOfIteratorHelper(this.conference._getMediaSessions()),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _t30=_step18.value;this._setupSenderE2EEForTrack(_t30,e);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}}},{key:"_onMediaSessionStarted",value:function _onMediaSessionStarted(e){var t=this.conference.getLocalTracks();var _iterator19=_createForOfIteratorHelper(t),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _n23=_step19.value;this._setupSenderE2EEForTrack(e,_n23);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}}},{key:"_setupReceiverE2EEForTrack",value:function _setupReceiverE2EEForTrack(e,t){if(!this.enabled)return;var n=e.findReceiverForTrack(t.track);n?this.e2eeCtx.handleReceiver(n,t.getType(),t.getParticipantId()):Ci.warn("Could not handle E2EE for ".concat(t,": receiver not found in: ").concat(e));}},{key:"_setupSenderE2EEForTrack",value:function _setupSenderE2EEForTrack(e,t){if(!this.enabled)return;var n=e.peerconnection,i=n&&n.findSenderForTrack(t.track);i?this.e2eeCtx.handleSender(i,t.getType(),t.getParticipantId()):Ci.warn("Could not handle E2EE for ".concat(t,": sender not found in ").concat(n));}},{key:"_trackMuteChanged",value:function _trackMuteChanged(e){if(nn.doesVideoMuteByStreamRemove()&&e.isLocal()&&e.isVideoTrack()&&!e.isMuted()){var _iterator20=_createForOfIteratorHelper(this.conference._getMediaSessions()),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t31=_step20.value;this._setupSenderE2EEForTrack(_t31,e);}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}}}]);return bi;}(vi);var Ti=/*#__PURE__*/function(_bi){_inherits(Ti,_bi);var _super5=_createSuper(Ti);function Ti(e){_classCallCheck(this,Ti);return _super5.call(this,e,{sharedKey:!0});}_createClass(Ti,[{key:"setKey",value:function setKey(e){this.e2eeCtx.setKey(void 0,{encryptionKey:e.encryptionKey},e.index);}}]);return Ti;}(bi);var Ri=n(1296),Ai=n.n(Ri),wi=n(9742),Ii=n(7593);Ii.v1,Ii.v3;var Pi=Ii.v4;Ii.v5;var Mi=(0,g.getLogger)("modules/e2ee/OlmAdapter.js"),Di="olm",Ni="error",ki="key-info",Oi="key-info-ack",Li="session-ack",xi="session-init",Fi=Symbol("OlmData"),ji={OLM_ID_KEY_READY:"olm.id_key_ready",PARTICIPANT_E2EE_CHANNEL_READY:"olm.participant_e2ee_channel_ready",PARTICIPANT_KEY_UPDATED:"olm.partitipant_key_updated"};var $i=/*#__PURE__*/function(_vi2){_inherits($i,_vi2);var _super6=_createSuper($i);function $i(e){var _this22;_classCallCheck(this,$i);_this22=_super6.call(this),_this22._conf=e,_this22._init=new _i(),_this22._key=void 0,_this22._keyIndex=-1,_this22._reqs=new Map(),_this22._sessionInitialization=void 0,$i.isSupported()?(_this22._bootstrapOlm(),_this22._conf.on(ne,_this22._onEndpointMessageReceived.bind(_assertThisInitialized(_this22))),_this22._conf.on(q,_this22._onConferenceLeft.bind(_assertThisInitialized(_this22))),_this22._conf.on($e,_this22._onParticipantLeft.bind(_assertThisInitialized(_this22))),_this22._conf.on(ye,_this22._onParticipantPropertyChanged.bind(_assertThisInitialized(_this22)))):_this22._init.reject(new Error("Olm not supported"));return _this22;}_createClass($i,[{key:"initSessions",value:function(){var _initSessions=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _e39,_t32,_iterator21,_step21,_n24;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!this._sessionInitialization){_context2.next=2;break;}throw new Error("OlmAdapter initSessions called multiple times");case 2:this._sessionInitialization=new _i();_context2.next=5;return this._init;case 5:_e39=[],_t32=this._conf.myUserId();_iterator21=_createForOfIteratorHelper(this._conf.getParticipants());try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){_n24=_step21.value;_n24.hasFeature($r)&&_t32<_n24.getId()&&_e39.push(this._sendSessionInit(_n24));}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}_context2.next=10;return Promise.allSettled(_e39);case 10:this._sessionInitialization.resolve();this._sessionInitialization=void 0;case 12:case"end":return _context2.stop();}},_callee2,this);}));function initSessions(){return _initSessions.apply(this,arguments);}return initSessions;}()},{key:"updateKey",value:function(){var _updateKey=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e){var _this23=this;var t,_iterator22,_step22,_loop3,_ret;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:this._key=e,this._keyIndex++;t=[];_iterator22=_createForOfIteratorHelper(this._conf.getParticipants());_context4.prev=3;_loop3=/*#__PURE__*/_regeneratorRuntime().mark(function _loop3(){var _r5;var e,n,i,s,r,o;return _regeneratorRuntime().wrap(function _loop3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:e=_step22.value;n=e.getId(),i=_this23._getParticipantOlmData(e);if(i.session){_context3.next=5;break;}Mi.warn("Tried to send key to participant ".concat(n," but we have no session"));return _context3.abrupt("return","continue");case 5:s=Pi(),r=(_r5={},_defineProperty(_r5,Fr,Di),_defineProperty(_r5,"olm",{type:ki,data:{ciphertext:_this23._encryptKeyInfo(i.session),uuid:s}}),_r5),o=new _i();o.setRejectTimeout(5e3),o.catch(function(){_this23._reqs.delete(s);}),_this23._reqs.set(s,o),t.push(o),_this23._sendMessage(r,n);case 7:case"end":return _context3.stop();}},_loop3);});_iterator22.s();case 6:if((_step22=_iterator22.n()).done){_context4.next=13;break;}return _context4.delegateYield(_loop3(),"t0",8);case 8:_ret=_context4.t0;if(!(_ret==="continue")){_context4.next=11;break;}return _context4.abrupt("continue",11);case 11:_context4.next=6;break;case 13:_context4.next=18;break;case 15:_context4.prev=15;_context4.t1=_context4["catch"](3);_iterator22.e(_context4.t1);case 18:_context4.prev=18;_iterator22.f();return _context4.finish(18);case 21:_context4.next=23;return Promise.allSettled(t);case 23:return _context4.abrupt("return",this._keyIndex);case 24:case"end":return _context4.stop();}},_callee3,this,[[3,15,18,21]]);}));function updateKey(_x3){return _updateKey.apply(this,arguments);}return updateKey;}()},{key:"updateCurrentKey",value:function updateCurrentKey(e){return this._key=e,this._keyIndex;}},{key:"clearParticipantSession",value:function clearParticipantSession(e){var t=this._getParticipantOlmData(e);t.session&&(t.session.free(),t.session=void 0);}},{key:"clearAllParticipantsSessions",value:function clearAllParticipantsSessions(){var _iterator23=_createForOfIteratorHelper(this._conf.getParticipants()),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _e40=_step23.value;this.clearParticipantSession(_e40);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}},{key:"_bootstrapOlm",value:function(){var _bootstrapOlm2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e41;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:Mi.debug("Initializing Olm...");_context5.prev=1;_context5.next=4;return Olm.init();case 4:this._olmAccount=new Olm.Account();this._olmAccount.create();_e41=JSON.parse(this._olmAccount.identity_keys());this._idKey=_e41.curve25519,Mi.debug("Olm ".concat(Olm.get_library_version().join(".")," initialized")),this._init.resolve(),this._onIdKeyReady(this._idKey);_context5.next=13;break;case 10:_context5.prev=10;_context5.t0=_context5["catch"](1);Mi.error("Failed to initialize Olm",_context5.t0),this._init.reject(_context5.t0);case 13:case"end":return _context5.stop();}},_callee4,this,[[1,10]]);}));function _bootstrapOlm(){return _bootstrapOlm2.apply(this,arguments);}return _bootstrapOlm;}()},{key:"_onIdKeyReady",value:function _onIdKeyReady(e){Mi.debug("Olm id key ready: ".concat(e)),this._conf.setLocalParticipantProperty("e2ee.idKey",e);}},{key:"_onParticipantE2EEChannelReady",value:function _onParticipantE2EEChannelReady(e){Mi.debug("E2EE channel with participant ".concat(e," is ready"));}},{key:"_encryptKeyInfo",value:function _encryptKeyInfo(e){var t={};return void 0!==this._key&&(t.key=!!this._key&&wi.fromByteArray(this._key),t.keyIndex=this._keyIndex),e.encrypt(JSON.stringify(t));}},{key:"_getParticipantOlmData",value:function _getParticipantOlmData(e){return e[Fi]=e[Fi]||{},e[Fi];}},{key:"_onConferenceLeft",value:function(){var _onConferenceLeft2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _iterator24,_step24,_e42;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:Mi.debug("Conference left");_context6.next=3;return this._init;case 3:_iterator24=_createForOfIteratorHelper(this._conf.getParticipants());try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){_e42=_step24.value;this._onParticipantLeft(_e42.getId(),_e42);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}this._olmAccount&&(this._olmAccount.free(),this._olmAccount=void 0);case 6:case"end":return _context6.stop();}},_callee5,this);}));function _onConferenceLeft(){return _onConferenceLeft2.apply(this,arguments);}return _onConferenceLeft;}()},{key:"_onEndpointMessageReceived",value:function(){var _onEndpointMessageReceived2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e,t){var n,i,s,_t34,_e43,_t33,_e44,_t35,_r6,_o5,_a3,_e45,_t36,_e46,_t37,_o7,_e47,_r7,_o6,_e48,_t38,_e49,_n25,_r8;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:if(!(t[Fr]!==Di)){_context7.next=2;break;}return _context7.abrupt("return");case 2:if(t.olm){_context7.next=4;break;}return _context7.abrupt("return",void Mi.warn("Incorrectly formatted message"));case 4:_context7.next=6;return this._init;case 6:n=t.olm,i=e.getId(),s=this._getParticipantOlmData(e);_context7.t0=n.type;_context7.next=_context7.t0===xi?10:_context7.t0===Li?12:_context7.t0===Ni?14:_context7.t0===ki?16:_context7.t0===Oi?18:19;break;case 10:if(s.session)Mi.warn("Participant ".concat(i," already has a session")),this._sendError(e,"Session already established");else{_e43=new Olm.Session();_e43.create_outbound(this._olmAccount,n.data.idKey,n.data.otKey),s.session=_e43;_t33=(_t34={},_defineProperty(_t34,Fr,Di),_defineProperty(_t34,"olm",{type:Li,data:{ciphertext:this._encryptKeyInfo(_e43),uuid:n.data.uuid}}),_t34);this._sendMessage(_t33,i),this._onParticipantE2EEChannelReady(i);}return _context7.abrupt("break",19);case 12:if(s.session)Mi.warn("Participant ".concat(i," already has a session")),this._sendError(e,"No session found");else if(n.data.uuid===s.pendingSessionUuid){_e44=n.data.ciphertext,_t35=this._reqs.get(n.data.uuid),_r6=new Olm.Session();_r6.create_inbound(this._olmAccount,_e44.body),this._olmAccount.remove_one_time_keys(_r6);_o5=_r6.decrypt(_e44.type,_e44.body);s.session=_r6,s.pendingSessionUuid=void 0,this._onParticipantE2EEChannelReady(i),this._reqs.delete(n.data.uuid),_t35.resolve();_a3=Ui(_o5);if(_a3.key){_e45=wi.toByteArray(_a3.key),_t36=_a3.keyIndex;s.lastKey=_e45,this.eventEmitter.emit(ji.PARTICIPANT_KEY_UPDATED,i,_e45,_t36);}}else Mi.warn("Received ACK with the wrong UUID"),this._sendError(e,"Invalid UUID");return _context7.abrupt("break",19);case 14:Mi.error(n.data.error);return _context7.abrupt("break",19);case 16:if(s.session){_e46=n.data.ciphertext,_t37=Ui(s.session.decrypt(_e46.type,_e46.body));if(void 0!==_t37.key&&void 0!==_t37.keyIndex){_e47=!!_t37.key&&wi.toByteArray(_t37.key),_r7=_t37.keyIndex;st()(s.lastKey,_e47)||(s.lastKey=_e47,this.eventEmitter.emit(ji.PARTICIPANT_KEY_UPDATED,i,_e47,_r7));_o6=(_o7={},_defineProperty(_o7,Fr,Di),_defineProperty(_o7,"olm",{type:Oi,data:{ciphertext:this._encryptKeyInfo(s.session),uuid:n.data.uuid}}),_o7);this._sendMessage(_o6,i);}}else Mi.debug("Received key info message from ".concat(i," but we have no session for them!")),this._sendError(e,"No session found while processing key-info");return _context7.abrupt("break",19);case 18:if(s.session){_e48=n.data.ciphertext,_t38=Ui(s.session.decrypt(_e48.type,_e48.body));if(void 0!==_t38.key&&void 0!==_t38.keyIndex){_e49=!!_t38.key&&wi.toByteArray(_t38.key),_n25=_t38.keyIndex;st()(s.lastKey,_e49)||(s.lastKey=_e49,this.eventEmitter.emit(ji.PARTICIPANT_KEY_UPDATED,i,_e49,_n25));}_r8=this._reqs.get(n.data.uuid);this._reqs.delete(n.data.uuid),_r8.resolve();}else Mi.debug("Received key info ack message from ".concat(i," but we have no session for them!")),this._sendError(e,"No session found while processing key-info-ack");case 19:case"end":return _context7.stop();}},_callee6,this);}));function _onEndpointMessageReceived(_x4,_x5){return _onEndpointMessageReceived2.apply(this,arguments);}return _onEndpointMessageReceived;}()},{key:"_onParticipantLeft",value:function _onParticipantLeft(e,t){Mi.debug("Participant ".concat(e," left")),this.clearParticipantSession(t);}},{key:"_onParticipantPropertyChanged",value:function(){var _onParticipantPropertyChanged2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(e,t,n,i){var _t39,_n26,_s9,_t40,_i20,_s8;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:if(!("e2ee.enabled"===t&&i&&this._conf.isE2EEEnabled())){_context8.next=16;break;}_t39=this._conf.myUserId(),_n26=e.getId();_context8.next=4;return e.getFeatures();case 4:_context8.t0=_context8.sent.has($r);if(!_context8.t0){_context8.next=7;break;}_context8.t0=_t39<_n26;case 7:if(!_context8.t0){_context8.next=16;break;}_context8.t1=this._sessionInitialization;if(!_context8.t1){_context8.next=12;break;}_context8.next=12;return this._sessionInitialization;case 12:_context8.next=14;return this._sendSessionInit(e);case 14:_t40=this._getParticipantOlmData(e),_i20=Pi(),_s8=(_s9={},_defineProperty(_s9,Fr,Di),_defineProperty(_s9,"olm",{type:ki,data:{ciphertext:this._encryptKeyInfo(_t40.session),uuid:_i20}}),_s9);this._sendMessage(_s8,_n26);case 16:case"end":return _context8.stop();}},_callee7,this);}));function _onParticipantPropertyChanged(_x6,_x7,_x8,_x9){return _onParticipantPropertyChanged2.apply(this,arguments);}return _onParticipantPropertyChanged;}()},{key:"_sendError",value:function _sendError(e,t){var _i21;var n=e.getId(),i=(_i21={},_defineProperty(_i21,Fr,Di),_defineProperty(_i21,"olm",{type:Ni,data:{error:t}}),_i21);this._sendMessage(i,n);}},{key:"_sendMessage",value:function _sendMessage(e,t){this._conf.sendMessage(e,t);}},{key:"_sendSessionInit",value:function _sendSessionInit(e){var _o8,_this24=this;var t=e.getId(),n=this._getParticipantOlmData(e);if(n.session)return Mi.warn("Tried to send session-init to ".concat(t," but we already have a session")),Promise.reject();if(void 0!==n.pendingSessionUuid)return Mi.warn("Tried to send session-init to ".concat(t," but we already have a pending session")),Promise.reject();this._olmAccount.generate_one_time_keys(1);var i=JSON.parse(this._olmAccount.one_time_keys()),s=Object.values(i.curve25519)[0];if(!s)return Promise.reject(new Error("No one-time-keys generated"));this._olmAccount.mark_keys_as_published();var r=Pi(),o=(_o8={},_defineProperty(_o8,Fr,Di),_defineProperty(_o8,"olm",{type:xi,data:{idKey:this._idKey,otKey:s,uuid:r}}),_o8),a=new _i();return a.setRejectTimeout(5e3),a.catch(function(){_this24._reqs.delete(r),n.pendingSessionUuid=void 0;}),this._reqs.set(r,a),this._sendMessage(o,t),n.pendingSessionUuid=r,a;}}],[{key:"isSupported",value:function isSupported(){return void 0!==window.Olm;}}]);return $i;}(vi);function Ui(e){try{return JSON.parse(e);}catch(e){return{};}}$i.events=ji;var Bi=(0,g.getLogger)("modules/e2ee/ManagedKeyHandler.js");var Vi=/*#__PURE__*/function(_bi2){_inherits(Vi,_bi2);var _super7=_createSuper(Vi);function Vi(e){var _this25;_classCallCheck(this,Vi);_this25=_super7.call(this,e),_this25._key=void 0,_this25._conferenceJoined=!1,_this25._olmAdapter=new $i(e),_this25._rotateKey=Ai()(_this25._rotateKeyImpl,5e3),_this25._ratchetKey=Ai()(_this25._ratchetKeyImpl,5e3),_this25._olmAdapter.on($i.events.PARTICIPANT_KEY_UPDATED,_this25._onParticipantKeyUpdated.bind(_assertThisInitialized(_this25))),_this25.conference.on(ye,_this25._onParticipantPropertyChanged.bind(_assertThisInitialized(_this25))),_this25.conference.on(je,_this25._onParticipantJoined.bind(_assertThisInitialized(_this25))),_this25.conference.on($e,_this25._onParticipantLeft.bind(_assertThisInitialized(_this25))),_this25.conference.on(G,function(){_this25._conferenceJoined=!0;});return _this25;}_createClass(Vi,[{key:"_setEnabled",value:function(){var _setEnabled2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(e){var t;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:if(!e){_context9.next=5;break;}_context9.next=3;return this._olmAdapter.initSessions();case 3:_context9.next=6;break;case 5:this._olmAdapter.clearAllParticipantsSessions();case 6:this._key=!!e&&this._generateKey();_context9.next=9;return this._olmAdapter.updateKey(this._key);case 9:t=_context9.sent;this.e2eeCtx.setKey(this.conference.myUserId(),this._key,t);case 11:case"end":return _context9.stop();}},_callee8,this);}));function _setEnabled(_x10){return _setEnabled2.apply(this,arguments);}return _setEnabled;}()},{key:"_onParticipantPropertyChanged",value:function(){var _onParticipantPropertyChanged3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(e,t,n,i){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.t0=t;_context10.next=_context10.t0==="e2ee.idKey"?3:_context10.t0==="e2ee.enabled"?5:6;break;case 3:Bi.debug("Participant ".concat(e.getId()," updated their id key: ").concat(i));return _context10.abrupt("break",6);case 5:!i&&this.enabled&&this._olmAdapter.clearParticipantSession(e);case 6:case"end":return _context10.stop();}},_callee9,this);}));function _onParticipantPropertyChanged(_x11,_x12,_x13,_x14){return _onParticipantPropertyChanged3.apply(this,arguments);}return _onParticipantPropertyChanged;}()},{key:"_onParticipantJoined",value:function _onParticipantJoined(){this._conferenceJoined&&this.enabled&&this._ratchetKey();}},{key:"_onParticipantLeft",value:function _onParticipantLeft(e){this.e2eeCtx.cleanup(e),this.enabled&&this._rotateKey();}},{key:"_rotateKeyImpl",value:function(){var _rotateKeyImpl2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:Bi.debug("Rotating key"),this._key=this._generateKey();_context11.next=3;return this._olmAdapter.updateKey(this._key);case 3:e=_context11.sent;this.e2eeCtx.setKey(this.conference.myUserId(),this._key,e);case 5:case"end":return _context11.stop();}},_callee10,this);}));function _rotateKeyImpl(){return _rotateKeyImpl2.apply(this,arguments);}return _rotateKeyImpl;}()},{key:"_ratchetKeyImpl",value:function(){var _ratchetKeyImpl2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var e,t,n;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:Bi.debug("Ratchetting key");_context14.next=3;return function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(e){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:return _context12.abrupt("return",crypto.subtle.importKey("raw",e,"HKDF",!1,["deriveBits","deriveKey"]));case 1:case"end":return _context12.stop();}},_callee11);}));return function(_x15){return _ref3.apply(this,arguments);};}()(this._key);case 3:e=_context14.sent;_context14.next=6;return function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(e){var t;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:t=new TextEncoder();return _context13.abrupt("return",crypto.subtle.deriveBits({name:"HKDF",salt:t.encode("JFrameRatchetKey"),hash:"SHA-256",info:new ArrayBuffer()},e,256));case 2:case"end":return _context13.stop();}},_callee12);}));return function(_x16){return _ref4.apply(this,arguments);};}()(e);case 6:t=_context14.sent;this._key=new Uint8Array(t);n=this._olmAdapter.updateCurrentKey(this._key);this.e2eeCtx.setKey(this.conference.myUserId(),this._key,n);case 10:case"end":return _context14.stop();}},_callee13,this);}));function _ratchetKeyImpl(){return _ratchetKeyImpl2.apply(this,arguments);}return _ratchetKeyImpl;}()},{key:"_onParticipantKeyUpdated",value:function _onParticipantKeyUpdated(e,t,n){Bi.debug("Participant ".concat(e," updated their key")),this.e2eeCtx.setKey(e,t,n);}},{key:"_generateKey",value:function _generateKey(){return window.crypto.getRandomValues(new Uint8Array(32));}}]);return Vi;}(bi);var Ji=/*#__PURE__*/function(){function Ji(e){_classCallCheck(this,Ji);var _e$options$config$e2e=e.options.config.e2ee,t=_e$options$config$e2e===void 0?{}:_e$options$config$e2e;this._externallyManaged=t.externallyManagedKey,this._externallyManaged?this._keyHandler=new Ti(e):this._keyHandler=new Vi(e);}_createClass(Ji,[{key:"isEnabled",value:function isEnabled(){return this._keyHandler.isEnabled();}},{key:"setEnabled",value:function(){var _setEnabled3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(e){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return this._keyHandler.setEnabled(e);case 2:case"end":return _context15.stop();}},_callee14,this);}));function setEnabled(_x17){return _setEnabled3.apply(this,arguments);}return setEnabled;}()},{key:"setEncryptionKey",value:function setEncryptionKey(e){this._keyHandler.setKey(e);}}],[{key:"isSupported",value:function isSupported(e){var _e$e2ee=e.e2ee,t=_e$e2ee===void 0?{}:_e$e2ee;return!(!t.externallyManagedKey&&!$i.isSupported())&&!(e.testing&&e.testing.disableE2EE)&&(nn.supportsInsertableStreams()||e.enableEncodedTransformSupport&&nn.supportsEncodedTransform());}}]);return Ji;}();var Hi=n(5399),Gi=n.n(Hi);var qi=["category","type","lang","name"],Ki=["category","type","lang"];function zi(e,t){var n=0;return Ki.some(function(i){return 0!==(n=e[i]>t[i]?1:e[i]<t[i]&&-1);}),n;}function Wi(e){var t=new Set(),n=new Set();return $CC(e).find(">query>feature").each(function(e,n){return t.add(n.getAttribute("var"));}),$CC(e).find(">query>identity").each(function(e,t){return n.add({type:t.getAttribute("type"),name:t.getAttribute("name"),category:t.getAttribute("category")});}),{features:t,identities:n};}var Qi=/*#__PURE__*/function(_vi3){_inherits(Qi,_vi3);var _super8=_createSuper(Qi);function Qi(){var _this26;_classCallCheck(this,Qi);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://jitsi.org/jitsimeet";if(_this26=_super8.call(this),_this26.node=t,_this26.disco=e.disco,!_this26.disco)throw new Error("Missing strophe-plugins (disco plugin is required)!");_this26.version="",_this26.rooms=new Set(),_this26.externalFeatures=new Set();var n=e.emuc;n.addListener(zn().EMUC_ROOM_ADDED,function(e){return _this26._addChatRoom(e);}),n.addListener(zn().EMUC_ROOM_REMOVED,function(e){return _this26._removeChatRoom(e);}),Object.keys(n.rooms).forEach(function(e){_this26._addChatRoom(n.rooms[e]);}),rt.Strophe.addNamespace("CAPS","http://jabber.org/protocol/caps"),_this26.disco.addFeature(rt.Strophe.NS.CAPS);return _possibleConstructorReturn(_this26);}_createClass(Qi,[{key:"addFeature",value:function addFeature(e){var _this27=this;var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.disco.addFeature(e),this._generateVersion(),n&&!this.externalFeatures.has(e)&&(this.externalFeatures.add(e),this.rooms.forEach(function(e){return _this27._updateRoomWithExternalFeatures(e);})),t&&this.submit();}},{key:"removeFeature",value:function removeFeature(e){var _this28=this;var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.disco.removeFeature(e),this._generateVersion(),n&&this.externalFeatures.has(e)&&(this.externalFeatures.delete(e),this.rooms.forEach(function(e){return _this28._updateRoomWithExternalFeatures(e);})),t&&this.submit();}},{key:"submit",value:function submit(){this.rooms.forEach(function(e){return e.sendPresence();});}},{key:"_updateRoomWithExternalFeatures",value:function _updateRoomWithExternalFeatures(e){if(0===this.externalFeatures.size)e.removeFromPresence("features");else{var _t41=[];this.externalFeatures.forEach(function(e){_t41.push({tagName:"feature",attributes:{var:e}});}),e.addOrReplaceInPresence("features",{children:_t41});}}},{key:"getFeaturesAndIdentities",value:function getFeaturesAndIdentities(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;return this._getDiscoInfo(e,t,n);}},{key:"_getDiscoInfo",value:function _getDiscoInfo(e,t,n){var _this29=this;return new Promise(function(i,s){return _this29.disco.info(e,t,function(e){i(Wi(e));},s,n);});}},{key:"_addChatRoom",value:function _addChatRoom(e){this.rooms.add(e),this._fixChatRoomPresenceMap(e),this._updateRoomWithExternalFeatures(e);}},{key:"_removeChatRoom",value:function _removeChatRoom(e){this.rooms.delete(e);}},{key:"_fixChatRoomPresenceMap",value:function _fixChatRoomPresenceMap(e){e.addOrReplaceInPresence("c",{attributes:{xmlns:rt.Strophe.NS.CAPS,hash:"sha-1",node:this.node,ver:this.version}});}},{key:"_notifyVersionChanged",value:function _notifyVersionChanged(){var _this30=this;this.rooms.forEach(function(e){return _this30._fixChatRoomPresenceMap(e);});}},{key:"_generateVersion",value:function _generateVersion(){this.version=function(e,t){var n=e.sort(zi).reduce(function(e,t){return"".concat(qi.reduce(function(e,n,i){return e+(0===i?"":"/")+(t[n]?t[n]:"");},""),"<");},""),i=t.sort().reduce(function(e,t){return"".concat(e+t,"<");},"");return(0,rt.b64_sha1)(n+i);}(this.disco._identities,this.disco._features),this._notifyVersionChanged();}}]);return Qi;}(vi);n(6552);var Xi="NETWORK_INFO_CHANGED",Yi=(0,g.getLogger)("modules/connectivity/NetworkInfo.js"),Zi=new(/*#__PURE__*/function(_vi4){_inherits(_class6,_vi4);var _super9=_createSuper(_class6);function _class6(){var _this31;_classCallCheck(this,_class6);_this31=_super9.call(this),_this31._current={isOnline:!0};return _this31;}_createClass(_class6,[{key:"updateNetworkInfo",value:function updateNetworkInfo(e){var t=e.isOnline;Yi.debug("updateNetworkInfo",{isOnline:t}),this._current={isOnline:!0===t},this.eventEmitter.emit(Xi,this._current);}},{key:"isOnline",value:function isOnline(){return!0===this._current.isOnline;}}]);return _class6;}(vi))(),es=(0,g.getLogger)("modules/xmpp/ResumeTask.js");var ts=/*#__PURE__*/function(){function ts(e){_classCallCheck(this,ts);this._stropheConn=e,this._resumeRetryN=0,this._retryDelay=void 0;}_createClass(ts,[{key:"retryDelay",get:function get(){return this._retryDelay;}},{key:"schedule",value:function schedule(){var _this32=this;this._cancelResume(),this._resumeRetryN+=1,this._networkOnlineListener=Zi.addEventListener(Xi,function(e){var t=e.isOnline;t?_this32._scheduleResume():_this32._cancelResume();}),Zi.isOnline()&&this._scheduleResume();}},{key:"_scheduleResume",value:function _scheduleResume(){var _this33=this;this._resumeTimeout||(this._resumeRetryN=Math.min(3,this._resumeRetryN),this._retryDelay=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return Math.floor(Math.random()*(1e3*Math.pow(n,e)-t)+t);}(this._resumeRetryN,1500*this._resumeRetryN,3),es.info("Will try to resume the XMPP connection in ".concat(this.retryDelay,"ms")),this._resumeTimeout=setTimeout(function(){return _this33._resumeConnection();},this.retryDelay));}},{key:"_cancelResume",value:function _cancelResume(){this._resumeTimeout&&(es.info("Canceling connection resume task"),clearTimeout(this._resumeTimeout),this._resumeTimeout=void 0,this._retryDelay=void 0);}},{key:"_resumeConnection",value:function _resumeConnection(){var e=this._stropheConn.streamManagement,t=e.getResumeToken();if(!t)return;es.info("Trying to resume the XMPP connection");var n=new URL(this._stropheConn.service);var i=n.search;var s=/(previd=)([\\w-]+)/,r=i.match(s);r&&-1===r.indexOf(t)?i=i.replace(s,"$1".concat(t)):r||(i+=-1===i.indexOf("?")?"?previd=".concat(t):"&previd=".concat(t)),n.search=i,this._stropheConn.service=n.toString(),e.resume();}},{key:"cancel",value:function cancel(){this._cancelResume(),this._resumeRetryN=0,this._networkOnlineListener&&(this._networkOnlineListener(),this._networkOnlineListener=null);}}]);return ts;}();var ns=/*#__PURE__*/function(){function ns(){_classCallCheck(this,ns);this._lastSuccess=null,this._lastFailedMessage=null;}_createClass(ns,[{key:"startTracking",value:function startTracking(e,t){var n=this;var i=t.rawInput;t.rawInput=function(){for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];var a=r[0];a.includes("failure")&&(n._lastFailedMessage=a),e.connected&&(n._lastSuccess=Date.now()),i.apply(t,r);};}},{key:"getLastFailedMessage",value:function getLastFailedMessage(){return this._lastFailedMessage;}},{key:"getTimeSinceLastSuccess",value:function getTimeSinceLastSuccess(){return this._lastSuccess?Date.now()-this._lastSuccess:null;}}]);return ns;}();function is(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/*#__PURE__*/function(){function _class7(){_classCallCheck(this,_class7);}return _createClass(_class7);}();return/*#__PURE__*/function(_e50){_inherits(_class8,_e50);var _super10=_createSuper(_class8);function _class8(){var _this34;_classCallCheck(this,_class8);_this34=_super10.apply(this,arguments),_this34.connection=null;return _this34;}_createClass(_class8,[{key:"init",value:function init(e){this.connection=e;}}]);return _class8;}(e);}var ss=is(),rs=is(vi),os=(0,g.getLogger)("modules/xmpp/strophe.ping.js");var as=/*#__PURE__*/function(_ss){_inherits(as,_ss);var _super11=_createSuper(as);function as(e){var _this35;_classCallCheck(this,as);var t=e.getTimeSinceLastServerResponse,n=e.onPingThresholdExceeded,_e$pingOptions=e.pingOptions,i=_e$pingOptions===void 0?{}:_e$pingOptions;_this35=_super11.call(this),_this35.failedPings=0,_this35._onPingThresholdExceeded=n,_this35._getTimeSinceLastServerResponse=t,_this35.pingInterval="number"==typeof i.interval?i.interval:1e4,_this35.pingTimeout="number"==typeof i.timeout?i.timeout:5e3,_this35.pingThreshold="number"==typeof i.threshold?i.threshold:2,_this35.pingTimestampsToKeep=Math.round(12e4/_this35.pingInterval),_this35.pingExecIntervals=new Array(_this35.pingTimestampsToKeep);return _this35;}_createClass(as,[{key:"init",value:function init(e){_get(_getPrototypeOf(as.prototype),"init",this).call(this,e),rt.Strophe.addNamespace("PING","urn:xmpp:ping");}},{key:"ping",value:function ping(e,t,n,i){this._addPingExecutionTimestamp();var s=(0,rt.$iq)({type:"get",to:e});s.c("ping",{xmlns:rt.Strophe.NS.PING}),this.connection.sendIQ2(s,{timeout:i}).then(t,n);}},{key:"startInterval",value:function startInterval(e){var _this36=this;clearInterval(this.intervalId),this.intervalId=window.setInterval(function(){var t=Date.now();if(_this36._getTimeSinceLastServerResponse()<t-_this36._lastServerCheck)return _this36._addPingExecutionTimestamp(),_this36._lastServerCheck=t,void(_this36.failedPings=0);_this36.ping(e,function(){_this36._lastServerCheck=_this36._getTimeSinceLastServerResponse()+Date.now(),_this36.failedPings=0;},function(e){_this36.failedPings+=1;var t="Ping "+(e?"error":"timeout");_this36.failedPings>=_this36.pingThreshold?(dn().callErrorHandler(new Error(t)),os.error(t,e),_this36._onPingThresholdExceeded&&_this36._onPingThresholdExceeded()):os.warn(t,e);},_this36.pingTimeout);},this.pingInterval),os.info("XMPP pings will be sent every ".concat(this.pingInterval," ms"));}},{key:"stopInterval",value:function stopInterval(){this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null,this.failedPings=0,os.info("Ping interval cleared"));}},{key:"_addPingExecutionTimestamp",value:function _addPingExecutionTimestamp(){this.pingExecIntervals.push(new Date().getTime()),this.pingExecIntervals.length>this.pingTimestampsToKeep&&this.pingExecIntervals.shift();}},{key:"getPingSuspendTime",value:function getPingSuspendTime(){var e=this.pingExecIntervals.slice();e.push(new Date().getTime());var t=0,n=e[0];return e.forEach(function(e){var i=e-n;i>t&&(t=i),n=e;}),t-=this.pingInterval,Math.max(t,0);}}]);return as;}(ss);var cs=(0,g.getLogger)("modules/xmpp/XmppConnection.js");var ds=/*#__PURE__*/function(_vi5){_inherits(ds,_vi5);var _super12=_createSuper(ds);function ds(e){var _this37;_classCallCheck(this,ds);var t=e.enableWebsocketResume,n=e.websocketKeepAlive,i=e.websocketKeepAliveUrl,s=e.serviceUrl,r=e.shard,o=e.xmppPing;_this37=_super12.call(this),_this37._options={enableWebsocketResume:void 0===t||t,pingOptions:o,shard:r,websocketKeepAlive:void 0===n?6e4:Number(n),websocketKeepAliveUrl:i},_this37._stropheConn=new rt.Strophe.Connection(s),_this37._usesWebsocket=s.startsWith("ws:")||s.startsWith("wss:"),_this37._stropheConn.maxRetries=3,_this37._rawInputTracker=new ns(),_this37._rawInputTracker.startTracking(_assertThisInitialized(_this37),_this37._stropheConn),_this37._resumeTask=new ts(_this37._stropheConn),_this37._deferredIQs=[],_this37.addConnectionPlugin("ping",new as({getTimeSinceLastServerResponse:function getTimeSinceLastServerResponse(){return _this37.getTimeSinceLastSuccess();},onPingThresholdExceeded:function onPingThresholdExceeded(){return _this37._onPingErrorThresholdExceeded();},pingOptions:o})),_this37._oneSuccessfulConnect=!1;return _this37;}_createClass(ds,[{key:"connected",get:function get(){var e=this._stropheConn&&this._stropheConn._proto&&this._stropheConn._proto.socket;return(this._status===rt.Strophe.Status.CONNECTED||this._status===rt.Strophe.Status.ATTACHED)&&(!this.isUsingWebSocket||e&&e.readyState===WebSocket.OPEN);}},{key:"disco",get:function get(){return this._stropheConn.disco;}},{key:"disconnecting",get:function get(){return!0===this._stropheConn.disconnecting;}},{key:"domain",get:function get(){return this._stropheConn.domain;}},{key:"isUsingWebSocket",get:function get(){return this._usesWebsocket;}},{key:"jid",get:function get(){return this._stropheConn.jid;}},{key:"lastResponseHeaders",get:function get(){return this._stropheConn._proto&&this._stropheConn._proto.lastResponseHeaders;}},{key:"logger",get:function get(){return this._stropheConn.logger;}},{key:"options",get:function get(){return this._stropheConn.options;}},{key:"pingDomain",get:function get(){var e;return(null===(e=this._options.pingOptions)||void 0===e?void 0:e.domain)||this.domain;}},{key:"service",get:function get(){return this._stropheConn.service;}},{key:"shard",set:function set(e){this._options.shard=e,this._oneSuccessfulConnect&&this._maybeStartWSKeepAlive();}},{key:"status",get:function get(){return this._status;}},{key:"addConnectionPlugin",value:function addConnectionPlugin(e,t){this[e]=t,t.init(this);}},{key:"addHandler",value:function addHandler(){var _this$_stropheConn;(_this$_stropheConn=this._stropheConn).addHandler.apply(_this$_stropheConn,arguments);}},{key:"attach",value:function attach(e,t,n,i){var _this$_stropheConn2;for(var s=arguments.length,r=new Array(s>4?s-4:0),o=4;o<s;o++)r[o-4]=arguments[o];(_this$_stropheConn2=this._stropheConn).attach.apply(_this$_stropheConn2,[e,t,n,this._stropheConnectionCb.bind(this,i)].concat(r));}},{key:"connect",value:function connect(e,t,n){var _this$_stropheConn3;for(var i=arguments.length,s=new Array(i>3?i-3:0),r=3;r<i;r++)s[r-3]=arguments[r];(_this$_stropheConn3=this._stropheConn).connect.apply(_this$_stropheConn3,[e,t,this._stropheConnectionCb.bind(this,n)].concat(s));}},{key:"_stropheConnectionCb",value:function _stropheConnectionCb(e,t){this._status=t;var n=!1;var i;if(t===rt.Strophe.Status.CONNECTED||t===rt.Strophe.Status.ATTACHED?(this._maybeEnableStreamResume(),this._usesWebsocket&&this._oneSuccessfulConnect&&this._keepAliveAndCheckShard(),this._oneSuccessfulConnect=!0,this._maybeStartWSKeepAlive(),this._processDeferredIQs(),this._resumeTask.cancel(),this.ping.startInterval((null===(i=this._options.pingOptions)||void 0===i?void 0:i.domain)||this.domain)):t===rt.Strophe.Status.DISCONNECTED&&(this.ping.stopInterval(),n=this._tryResumingConnection(),n||clearTimeout(this._wsKeepAlive)),!n){for(var s=arguments.length,r=new Array(s>2?s-2:0),o=2;o<s;o++)r[o-2]=arguments[o];e.apply(void 0,[t].concat(r)),this.eventEmitter.emit(ds.Events.CONN_STATUS_CHANGED,t);}}},{key:"_clearDeferredIQs",value:function _clearDeferredIQs(){var _iterator25=_createForOfIteratorHelper(this._deferredIQs),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _e51=_step25.value;_e51.reject(new Error("disconnect"));}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}this._deferredIQs=[];}},{key:"closeWebsocket",value:function closeWebsocket(){this._stropheConn&&this._stropheConn._proto&&(this._stropheConn._proto._closeSocket(),this._stropheConn._proto._onClose(null));}},{key:"disconnect",value:function disconnect(){var _this$_stropheConn4;this._resumeTask.cancel(),clearTimeout(this._wsKeepAlive),this._clearDeferredIQs(),(_this$_stropheConn4=this._stropheConn).disconnect.apply(_this$_stropheConn4,arguments);}},{key:"flush",value:function flush(){var _this$_stropheConn5;(_this$_stropheConn5=this._stropheConn).flush.apply(_this$_stropheConn5,arguments);}},{key:"getTimeSinceLastSuccess",value:function getTimeSinceLastSuccess(){return this._rawInputTracker.getTimeSinceLastSuccess();}},{key:"getLastFailedMessage",value:function getLastFailedMessage(){return this._rawInputTracker.getLastFailedMessage();}},{key:"_maybeEnableStreamResume",value:function _maybeEnableStreamResume(){if(!this._options.enableWebsocketResume)return;var e=this._stropheConn.streamManagement;this.isUsingWebSocket?e?e.isSupported()?e.getResumeToken()||(cs.info("Enabling XEP-0198 stream management"),e.enable(!0)):cs.warn("Stream resume enabled, but XEP-0198 is not supported by the server"):cs.warn("Stream resume enabled, but Strophe streamManagement plugin is not installed"):cs.warn("Stream resume enabled, but WebSockets are not enabled");}},{key:"_maybeStartWSKeepAlive",value:function _maybeStartWSKeepAlive(){var _this38=this;var e=this._options.websocketKeepAlive;if(this._usesWebsocket&&e>0){this._wsKeepAlive||cs.info("WebSocket keep alive interval: ".concat(e,"ms")),clearTimeout(this._wsKeepAlive);var _t42=e+60*Math.random()*1e3;cs.debug("Scheduling next WebSocket keep-alive in ".concat(_t42,"ms")),this._wsKeepAlive=setTimeout(function(){return _this38._keepAliveAndCheckShard().then(function(){return _this38._maybeStartWSKeepAlive();});},_t42);}}},{key:"_keepAliveAndCheckShard",value:function _keepAliveAndCheckShard(){var _this39=this;var _this$_options=this._options,e=_this$_options.shard,t=_this$_options.websocketKeepAliveUrl,n=t||this.service.replace("wss://","https://").replace("ws://","http://");return fetch(n).then(function(t){if(!e)return;var n=t.headers.get("x-jitsi-shard");n!==e&&(cs.error("Detected that shard changed from ".concat(e," to ").concat(n)),_this39.eventEmitter.emit(ds.Events.CONN_SHARD_CHANGED));}).catch(function(e){cs.error("Websocket Keep alive failed for url: ".concat(n),{error:e});});}},{key:"_processDeferredIQs",value:function _processDeferredIQs(){var _this40=this;var _iterator26=_createForOfIteratorHelper(this._deferredIQs),_step26;try{var _loop4=function _loop4(){var e=_step26.value;if(e.iq){clearTimeout(e.timeout);var _t43=Date.now()-e.start;_this40.sendIQ(e.iq,function(t){return e.resolve(t);},function(t){return e.reject(t);},_t43);}};for(_iterator26.s();!(_step26=_iterator26.n()).done;){_loop4();}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}this._deferredIQs=[];}},{key:"send",value:function send(e){if(!this.connected)throw new Error("Not connected");this._stropheConn.send(e);}},{key:"sendIQ",value:function sendIQ(e,t,n,i){if(this.connected)return this._stropheConn.sendIQ(e,t,n,i);n("Not connected");}},{key:"sendIQ2",value:function sendIQ2(e,t){var _this41=this;var n=t.timeout;return new Promise(function(t,i){if(_this41.connected)_this41.sendIQ(e,function(e){return t(e);},function(e){return i(e);},n);else{var _s10={iq:e,resolve:t,reject:i,start:Date.now(),timeout:setTimeout(function(){_s10.iq=void 0,i(void 0);},n)};_this41._deferredIQs.push(_s10);}});}},{key:"_onPingErrorThresholdExceeded",value:function _onPingErrorThresholdExceeded(){this.isUsingWebSocket&&(cs.warn("Ping error threshold exceeded - killing the WebSocket"),this.closeWebsocket());}},{key:"sendPresence",value:function sendPresence(e,t,n,i){this.connected?this._stropheConn.sendPresence(e,t,n,i):n("Not connected");}},{key:"sendUnavailableBeacon",value:function sendUnavailableBeacon(){if(!navigator.sendBeacon||this._stropheConn.disconnecting||!this._stropheConn.connected)return!1;this._stropheConn._changeConnectStatus(rt.Strophe.Status.DISCONNECTING),this._stropheConn.disconnecting=!0;var e=this._stropheConn._proto._buildBody().attrs({type:"terminate"}),t=(0,rt.$pres)({xmlns:rt.Strophe.NS.CLIENT,type:"unavailable"});e.cnode(t.tree());var n=navigator.sendBeacon(-1===this.service.indexOf("https://")?"https:".concat(this.service):this.service,rt.Strophe.serialize(e.tree()));return cs.info("Successfully send unavailable beacon ".concat(n)),this._stropheConn._proto._abortAllRequests(),this._stropheConn._doDisconnect(),!0;}},{key:"_tryResumingConnection",value:function _tryResumingConnection(){var e=this._stropheConn.streamManagement;return!(!e||!e.getResumeToken()||(this._resumeTask.schedule(),0));}}],[{key:"Events",get:function get(){return{CONN_STATUS_CHANGED:"CONN_STATUS_CHANGED",CONN_SHARD_CHANGED:"CONN_SHARD_CHANGED"};}},{key:"Status",get:function get(){return rt.Strophe.Status;}}]);return ds;}(vi);var ls="on",hs="off",us=(0,g.getLogger)("modules/xmpp/AVModeration.js");var ps=/*#__PURE__*/function(){function ps(e){var _this$_moderationEnab;_classCallCheck(this,ps);this._xmpp=e.xmpp,this._mainRoom=e,this._moderationEnabledByType=(_this$_moderationEnab={},_defineProperty(_this$_moderationEnab,Rn,!1),_defineProperty(_this$_moderationEnab,wn,!1),_this$_moderationEnab),this._whitelistAudio=[],this._whitelistVideo=[],this._onMessage=this._onMessage.bind(this),this._xmpp.addListener(zn().AV_MODERATION_RECEIVED,this._onMessage);}_createClass(ps,[{key:"dispose",value:function dispose(){this._xmpp.removeListener(zn().AV_MODERATION_RECEIVED,this._onMessage);}},{key:"isSupported",value:function isSupported(){return Boolean(this._xmpp.avModerationComponentAddress);}},{key:"enable",value:function enable(e,t){if(!this.isSupported()||!this._mainRoom.isModerator())return void us.error("Cannot enable:".concat(e," AV moderation supported:").concat(this.isSupported(),", \\n                moderator:").concat(this._mainRoom.isModerator()));if(e===this._moderationEnabledByType[t])return void us.warn("Moderation already in state:".concat(e," for mediaType:").concat(t));var n=(0,rt.$msg)({to:this._xmpp.avModerationComponentAddress});n.c("av_moderation",{enable:e,mediaType:t}).up(),this._xmpp.connection.send(n);}},{key:"approve",value:function approve(e,t){if(!this.isSupported()||!this._mainRoom.isModerator())return void us.error("Cannot approve in AV moderation supported:".concat(this.isSupported(),", \\n                moderator:").concat(this._mainRoom.isModerator()));var n=(0,rt.$msg)({to:this._xmpp.avModerationComponentAddress});n.c("av_moderation",{mediaType:e,jidToWhitelist:t}).up(),this._xmpp.connection.send(n);}},{key:"reject",value:function reject(e,t){if(!this.isSupported()||!this._mainRoom.isModerator())return void us.error("Cannot reject in AV moderation supported:".concat(this.isSupported(),",\\n                moderator:").concat(this._mainRoom.isModerator()));var n=(0,rt.$msg)({to:this._xmpp.avModerationComponentAddress});n.c("av_moderation",{mediaType:e,jidToBlacklist:t}).up(),this._xmpp.connection.send(n);}},{key:"_onMessage",value:function _onMessage(e){var _this42=this;var t=e.removed,n=e.mediaType,i=e.enabled,s=e.approved,r=e.actor,o=e.whitelists;if(o){var _e52=n===Rn?this._whitelistAudio:this._whitelistVideo,_i22=Array.isArray(o[n])?o[n]:[];t?_e52.filter(function(e){return!_i22.includes(e);}).forEach(function(e){return _this42._xmpp.eventEmitter.emit(zn().AV_MODERATION_PARTICIPANT_REJECTED,n,e);}):_i22.filter(function(t){return!_e52.includes(t);}).forEach(function(e){return _this42._xmpp.eventEmitter.emit(zn().AV_MODERATION_PARTICIPANT_APPROVED,n,e);}),n===Rn?this._whitelistAudio=_i22:this._whitelistVideo=_i22;}else void 0!==i&&this._moderationEnabledByType[n]!==i?(this._moderationEnabledByType[n]=i,this._xmpp.eventEmitter.emit(zn().AV_MODERATION_CHANGED,i,n,r)):t?this._xmpp.eventEmitter.emit(zn().AV_MODERATION_REJECTED,n):s&&this._xmpp.eventEmitter.emit(zn().AV_MODERATION_APPROVED,n);}}]);return ps;}();var ms="features/breakout-rooms",fs={ADD:"".concat(ms,"/add"),REMOVE:"".concat(ms,"/remove"),MOVE_TO_ROOM:"".concat(ms,"/move-to-room")},gs="".concat(ms,"/move-to-room"),_s="".concat(ms,"/update"),vs=(0,g.getLogger)("modules/xmpp/BreakoutRooms.js");var Ss=/*#__PURE__*/function(){function Ss(e){_classCallCheck(this,Ss);this.room=e,this._handleMessages=this._handleMessages.bind(this),this.room.xmpp.addListener(zn().BREAKOUT_ROOMS_EVENT,this._handleMessages),this._rooms={};}_createClass(Ss,[{key:"dispose",value:function dispose(){this.room.xmpp.removeListener(zn().BREAKOUT_ROOMS_EVENT,this._handleMessages);}},{key:"createBreakoutRoom",value:function createBreakoutRoom(e){if(!this.isSupported()||!this.room.isModerator())return void vs.error("Cannot create breakout room - supported:".concat(this.isSupported(),", \\n                moderator:").concat(this.room.isModerator()));var t={type:fs.ADD,subject:e};this._sendMessage(t);}},{key:"removeBreakoutRoom",value:function removeBreakoutRoom(e){if(!this.isSupported()||!this.room.isModerator())return void vs.error("Cannot remove breakout room - supported:".concat(this.isSupported(),", \\n                moderator:").concat(this.room.isModerator()));var t={type:fs.REMOVE,breakoutRoomJid:e};this._sendMessage(t);}},{key:"sendParticipantToRoom",value:function sendParticipantToRoom(e,t){if(!this.isSupported()||!this.room.isModerator())return void vs.error("Cannot send participant to room - supported:".concat(this.isSupported(),", \\n                moderator:").concat(this.room.isModerator()));var n={type:fs.MOVE_TO_ROOM,participantJid:e,roomJid:t};this._sendMessage(n);}},{key:"isSupported",value:function isSupported(){return Boolean(this.getComponentAddress());}},{key:"getComponentAddress",value:function getComponentAddress(){return this.room.xmpp.breakoutRoomsComponentAddress;}},{key:"_setIsBreakoutRoom",value:function _setIsBreakoutRoom(e){this._isBreakoutRoom=e;}},{key:"isBreakoutRoom",value:function isBreakoutRoom(){return this._isBreakoutRoom;}},{key:"_setMainRoomJid",value:function _setMainRoomJid(e){this._mainRoomJid=e;}},{key:"getMainRoomJid",value:function getMainRoomJid(){return this._mainRoomJid;}},{key:"_handleMessages",value:function _handleMessages(e){switch(e.event){case gs:this.room.eventEmitter.emit(zn().BREAKOUT_ROOMS_MOVE_TO_ROOM,e.roomJid);break;case _s:this._rooms=e.rooms,this.room.eventEmitter.emit(zn().BREAKOUT_ROOMS_UPDATED,e);}}},{key:"_sendMessage",value:function _sendMessage(e){var t=(0,rt.$msg)({to:this.getComponentAddress()});t.c("breakout_rooms",e).up(),this.room.xmpp.connection.send(t);}}]);return Ss;}();var ys=(0,g.getLogger)("modules/xmpp/Lobby.js"),Es="email";var Cs=/*#__PURE__*/function(){function Cs(e){var _this43=this;_classCallCheck(this,Cs);this.xmpp=e.xmpp,this.mainRoom=e;var t=this._maybeJoinLobbyRoom.bind(this);this.mainRoom.addEventListener(zn().LOCAL_ROLE_CHANGED,t),this.mainRoom.addEventListener(zn().MUC_MEMBERS_ONLY_CHANGED,t),this.mainRoom.addEventListener(zn().ROOM_CONNECT_MEMBERS_ONLY_ERROR,function(e){_this43.lobbyRoomJid=e;});}_createClass(Cs,[{key:"isSupported",value:function isSupported(){return this.xmpp.lobbySupported;}},{key:"enable",value:function enable(){var _this44=this;return this.isSupported()?new Promise(function(e,t){_this44.mainRoom.setMembersOnly(!0,e,t);}):Promise.reject(new Error("Lobby not supported!"));}},{key:"disable",value:function disable(){this.isSupported()&&this.mainRoom.isModerator()&&this.lobbyRoom&&this.mainRoom.membersOnlyEnabled&&this.mainRoom.setMembersOnly(!1);}},{key:"leave",value:function leave(){var _this45=this;return this.lobbyRoom?this.lobbyRoom.leave().then(function(){_this45.lobbyRoom=void 0,ys.info("Lobby room left!");}).catch(function(){}):Promise.reject(new Error("The lobby has already been left"));}},{key:"setLobbyRoomJid",value:function setLobbyRoomJid(e){this.lobbyRoomJid=e;}},{key:"_maybeJoinLobbyRoom",value:function _maybeJoinLobbyRoom(){this.isSupported()&&this.mainRoom.joined&&this.mainRoom.isModerator()&&this.mainRoom.membersOnlyEnabled&&!this.lobbyRoom&&this.join().then(function(){return ys.info("Joined lobby room");}).catch(function(e){return ys.error("Failed joining lobby",e);});}},{key:"join",value:function join(e,t){var _this46=this;var n=this.mainRoom.joined&&this.mainRoom.isModerator();if(!this.lobbyRoomJid)return Promise.reject(new Error("Missing lobbyRoomJid, cannot join lobby room."));var i=rt.Strophe.getNodeFromJid(this.lobbyRoomJid),s=rt.Strophe.getDomainFromJid(this.lobbyRoomJid);return this.lobbyRoom=this.xmpp.createRoom(i,{customDomain:s,disableDiscoInfo:!0,disableFocus:!0,enableLobby:!1}),e&&this.lobbyRoom.addOrReplaceInPresence("nick",{attributes:{xmlns:"http://jabber.org/protocol/nick"},value:e}),n?(this.lobbyRoom.addPresenceListener(Es,function(e,t){_this46.mainRoom.eventEmitter.emit(zn().MUC_LOBBY_MEMBER_UPDATED,t,{email:e.value});}),this.lobbyRoom.addEventListener(zn().MUC_MEMBER_JOINED,function(e,t,n,i,s,r,o,a,c){if(!Object.values(_this46.mainRoom.members).find(function(e){return e.jid===c;})){for(var _i23=0,_Object$values=Object.values(_this46.mainRoom.getBreakoutRooms()._rooms);_i23<_Object$values.length;_i23++){var _e53=_Object$values[_i23];if(Object.values(_e53.participants).find(function(e){return e.jid===c;}))return;}_this46.mainRoom.eventEmitter.emit(zn().MUC_LOBBY_MEMBER_JOINED,rt.Strophe.getResourceFromJid(e),t,o?o.avatar:void 0);}}),this.lobbyRoom.addEventListener(zn().MUC_MEMBER_LEFT,function(e){_this46.mainRoom.eventEmitter.emit(zn().MUC_LOBBY_MEMBER_LEFT,rt.Strophe.getResourceFromJid(e));}),this.lobbyRoom.addEventListener(zn().MUC_DESTROYED,function(){Object.keys(_this46.lobbyRoom.members).forEach(function(e){return _this46.mainRoom.eventEmitter.emit(zn().MUC_LOBBY_MEMBER_LEFT,rt.Strophe.getResourceFromJid(e));}),_this46.lobbyRoom.clean(),_this46.lobbyRoom=void 0,ys.info("Lobby room left(destroyed)!");})):(this.lobbyRoom.addEventListener(zn().KICKED,function(e){if(e)return _this46.mainRoom.eventEmitter.emit(zn().MUC_DENIED_ACCESS),void _this46.lobbyRoom.clean();}),this.mainRoom.addEventListener(zn().INVITE_MESSAGE_RECEIVED,function(e,t,n,i){ys.debug("Received approval to join ".concat(e," ").concat(t," ").concat(n)),e===_this46.mainRoom.roomjid&&_this46.mainRoom.join(i);}),this.lobbyRoom.addEventListener(zn().MUC_DESTROYED,function(e,t){t?_this46.mainRoom.join():(_this46.lobbyRoom.clean(),_this46.mainRoom.eventEmitter.emit(zn().MUC_DESTROYED,e));}),this.mainRoom.addEventListener(zn().MUC_JOINED,function(){_this46.leave();})),new Promise(function(e,i){_this46.lobbyRoom.addEventListener(zn().MUC_JOINED,function(){e(),t&&!n&&_this46.lobbyRoom.addOrReplaceInPresence(Es,{value:t})&&_this46.lobbyRoom.sendPresence();}),_this46.lobbyRoom.addEventListener(zn().ROOM_JOIN_ERROR,i),_this46.lobbyRoom.addEventListener(zn().ROOM_CONNECT_NOT_ALLOWED_ERROR,i),_this46.lobbyRoom.addEventListener(zn().ROOM_CONNECT_ERROR,i),_this46.lobbyRoom.join();});}},{key:"denyAccess",value:function denyAccess(e){if(!this.isSupported()||!this.mainRoom.isModerator())return;var t=Object.keys(this.lobbyRoom.members).find(function(t){return rt.Strophe.getResourceFromJid(t)===e;});t?this.lobbyRoom.kick(t):ys.error("Not found member for ".concat(e," in lobby room."));}},{key:"approveAccess",value:function approveAccess(e){if(!this.isSupported()||!this.mainRoom.isModerator())return;var t=this.mainRoom.roomjid;this.mainRoom.getBreakoutRooms().isBreakoutRoom()&&(t=this.mainRoom.getBreakoutRooms().getMainRoomJid());var n=Object.keys(this.lobbyRoom.members).find(function(t){return rt.Strophe.getResourceFromJid(t)===e;});if(n){var _e54=this.lobbyRoom.members[n].jid,_i24=(0,rt.$msg)({to:t}).c("x",{xmlns:"http://jabber.org/protocol/muc#user"}).c("invite",{to:_e54});this.xmpp.connection.sendIQ(_i24,function(){},function(t){ys.error("Error sending invite for ".concat(_e54),t);});}else ys.error("Not found member for ".concat(n," in lobby room."));}}]);return Cs;}();var bs=n(6667),Ts=n.n(bs);var Rs=(0,g.getLogger)("modules/settings/Settings.js");var As,ws;var Is={_storage:en,init:function init(e){this._storage=e||en;},get callStatsUserName(){return As||(As=this._storage.getItem("callStatsUserName"),As||(As=function(){var e=Ts().generateUsername();return Rs.log("generated callstats uid",e),e;}(),this._storage.setItem("callStatsUserName",As))),As;},get machineId(){if(!ws){var _e55=this._storage.getItem("billingId");ws=_e55||this._storage.getItem("jitsiMeetId"),_e55?this._storage.setItem("jitsiMeetId",_e55):ws||(ws=function(){var e=Ps()+Ps()+Ps()+Ps();return Rs.log("generated id",e),e;}(),this._storage.setItem("jitsiMeetId",ws));}return ws;},get sessionId(){return this._storage.getItem("sessionId");},set sessionId(e){e?this._storage.setItem("sessionId",e):this._storage.removeItem("sessionId");}};function Ps(){return"".concat(Math.random().toString(16),"000000000").substr(2,8);}var Ms=n(3514),Ds=n(4188),Ns=n(1023),ks=(0,g.getLogger)("modules/xmpp/moderator.js");function Os(e){var t=1;return function(n){if(n)return void(t=1);var i=Math.pow(2,t-1);return t+=1,i*e;};}function Ls(e,t,n,i){function s(e){if(e.data&&e.data.sessionId){if(e.origin!==window.location.origin)return void ks.warn("Ignoring sessionId from different origin: ".concat(e.origin));Is.sessionId=e.data.sessionId;}}this.roomName=e,this.xmppService=t,this.getNextTimeout=Os(1e3),this.getNextErrorTimeout=Os(1e3),this.externalAuthEnabled=!1,this.options=i,this.sipGatewayEnabled=!1,this.eventEmitter=n,this.connection=this.xmppService.connection,window.addEventListener?window.addEventListener("message",s,!1):window.attachEvent("onmessage",s);}Ls.prototype.isExternalAuthEnabled=function(){return this.externalAuthEnabled;},Ls.prototype.isSipGatewayEnabled=function(){return this.sipGatewayEnabled;},Ls.prototype.onMucMemberLeft=function(e){"focus"===rt.Strophe.getResourceFromJid(e)&&(ks.info("Focus has left the room - leaving conference"),this.eventEmitter.emit(Ds.FOCUS_LEFT));},Ls.prototype.setFocusUserJid=function(e){this.focusUserJid||(this.focusUserJid=e,ks.info("Focus jid set to:  ".concat(this.focusUserJid)));},Ls.prototype.getFocusUserJid=function(){return this.focusUserJid;},Ls.prototype.getFocusComponent=function(){var e=this.options.connection.hosts.focus;return e||(e="focus.".concat(this.options.connection.hosts.domain)),e;},Ls.prototype.createConferenceIq=function(){var e,t,n;var i=(0,rt.$iq)({to:this.getFocusComponent(),type:"set"}),s=Is.sessionId,r=Is.machineId,o=this.options.conference;ks.info("Session ID: ".concat(s," machine UID: ").concat(r)),i.c("conference",{xmlns:"http://jitsi.org/protocol/focus",room:this.roomName,"machine-uid":r}),s&&i.attrs({"session-id":s}),i.c("property",{name:"disableRtx",value:Boolean(o.disableRtx)}).up(),void 0!==o.audioPacketDelay&&i.c("property",{name:"audioPacketDelay",value:o.audioPacketDelay}).up(),o.startBitrate&&i.c("property",{name:"startBitrate",value:o.startBitrate}).up(),o.minBitrate&&i.c("property",{name:"minBitrate",value:o.minBitrate}).up(),void 0!==this.options.conference.startAudioMuted&&i.c("property",{name:"startAudioMuted",value:this.options.conference.startAudioMuted}).up(),void 0!==this.options.conference.startVideoMuted&&i.c("property",{name:"startVideoMuted",value:this.options.conference.startVideoMuted}).up();var a=null!==(e=null===(t=this.options.conference)||void 0===t||null===(n=t.analytics)||void 0===n?void 0:n.rtcstatsEnabled)&&void 0!==e&&e;a||i.c("property",{name:"rtcstatsEnabled",value:a}).up();var _this$options$confere=this.options.conference,c=_this$options$confere.callStatsID,d=_this$options$confere.callStatsSecret,l=_this$options$confere.disableThirdPartyRequests,h=_this$options$confere.enableCallStats,u=!c||!d||!h||!0===l;return u&&i.c("property",{name:"callstatsEnabled",value:!u}).up(),i.up(),i;},Ls.prototype.parseSessionId=function(e){var t=$CC(e).find("conference").attr("session-id");t&&(ks.info("Received sessionId:  ".concat(t)),Is.sessionId=t);},Ls.prototype.parseConfigOptions=function(e){this.setFocusUserJid($CC(e).find("conference").attr("focusjid"));var t=$CC(e).find(">conference>property[name=\'authentication\'][value=\'true\']").length>0;ks.info("Authentication enabled: ".concat(t)),this.externalAuthEnabled=$CC(e).find(">conference>property[name=\'externalAuth\'][value=\'true\']").length>0,ks.info("External authentication enabled: ".concat(this.externalAuthEnabled)),this.externalAuthEnabled||this.parseSessionId(e);var n=$CC(e).find(">conference").attr("identity");this.eventEmitter.emit(Ms.IDENTITY_UPDATED,t,n),$CC(e).find(">conference>property[name=\'sipGatewayEnabled\'][value=\'true\']").length&&(this.sipGatewayEnabled=!0),ks.info("Sip gateway enabled:  ".concat(this.sipGatewayEnabled));},Ls.prototype.allocateConferenceFocus=function(){var _this47=this;return new Promise(function(e){_this47.setFocusUserJid(_this47.options.connection.focusUserJid),_this47.connection.sendIQ(_this47.createConferenceIq(),function(t){return _this47._allocateConferenceFocusSuccess(t,e);},function(t){return _this47._allocateConferenceFocusError(t,e);}),_this47.connection.flush();});},Ls.prototype._allocateConferenceFocusError=function(e,t){var _this48=this;var n=$CC(e).find(">error>session-invalid").length||$CC(e).find(">error>not-acceptable").length;if(n&&(ks.info("Session expired! - removing"),Is.sessionId=void 0),$CC(e).find(">error>graceful-shutdown").length)return void this.eventEmitter.emit(Ds.GRACEFUL_SHUTDOWN);var i=$CC(e).find(">error>reservation-error");if(i.length){var _t44=i.attr("error-code"),_n27=$CC(e).find(">error>text");var _s11;return _n27&&(_s11=_n27.text()),void this.eventEmitter.emit(Ds.RESERVATION_ERROR,_t44,_s11);}if($CC(e).find(">error>not-authorized").length)return ks.warn("Unauthorized to start the conference",e),rt.Strophe.getDomainFromJid(e.getAttribute("to"))!==this.options.connection.hosts.anonymousdomain&&(this.externalAuthEnabled=!0),void this.eventEmitter.emit(Ds.AUTHENTICATION_REQUIRED);var s=this.getNextErrorTimeout(),r="Focus error, retry after ".concat(s);Ns.callErrorHandler(new Error(r)),ks.error(r,e);var o=this.getFocusComponent(),a=s/1e3;n||this.eventEmitter.emit(Ds.FOCUS_DISCONNECTED,o,a),this.getNextTimeout(!0),window.setTimeout(function(){return _this48.allocateConferenceFocus().then(t);},s);},Ls.prototype._allocateConferenceFocusSuccess=function(e,t){var _this49=this;if(this.parseConfigOptions(e),this.getNextErrorTimeout(!0),"true"===$CC(e).find("conference").attr("ready"))this.getNextTimeout(!0),t();else{var _e56=this.getNextTimeout();ks.info("Waiting for the focus... ".concat(_e56)),window.setTimeout(function(){return _this49.allocateConferenceFocus().then(t);},_e56);}},Ls.prototype.authenticate=function(){var _this50=this;return new Promise(function(e,t){_this50.connection.sendIQ(_this50.createConferenceIq(),function(t){_this50.parseSessionId(t),e();},function(e){return t({error:$CC(e).find("iq>error :first").prop("tagName"),message:$CC(e).find("iq>error>text").text()});});});},Ls.prototype.getLoginUrl=function(e,t){this._getLoginUrl(!1,e,t);},Ls.prototype._getLoginUrl=function(e,t,n){var i=(0,rt.$iq)({to:this.getFocusComponent(),type:"get"}),s={xmlns:"http://jitsi.org/protocol/focus",room:this.roomName,"machine-uid":Is.machineId};var r="auth url";function o(e,t){Ns.callErrorHandler(new Error(e)),ks.error(e,t),n(t);}e&&(s.popup=!0,r="POPUP ".concat(r)),i.c("login-url",s),this.connection.sendIQ(i,function(e){var n=$CC(e).find("login-url").attr("url");n=decodeURIComponent(n),n?(ks.info("Got ".concat(r,": ").concat(n)),t(n)):o("Failed to get ".concat(r," from the focus"),e);},o.bind(void 0,"Get ".concat(r," error")));},Ls.prototype.getPopupLoginUrl=function(e,t){this._getLoginUrl(!0,e,t);},Ls.prototype.logout=function(e){var t=(0,rt.$iq)({to:this.getFocusComponent(),type:"set"}),n=Is.sessionId;n?(t.c("logout",{xmlns:"http://jitsi.org/protocol/focus","session-id":n}),this.connection.sendIQ(t,function(t){var n=$CC(t).find("logout").attr("logout-url");n&&(n=decodeURIComponent(n)),ks.info("Log out OK, url: ".concat(n),t),Is.sessionId=void 0,e(n);},function(e){var t="Logout error";Ns.callErrorHandler(new Error(t)),ks.error(t,e);})):e();};var xs=(0,g.getLogger)("modules/xmpp/ChatRoom.js"),Fs={packet2JSON:function packet2JSON(e,t){for(var _i25=0,_Array$from2=Array.from(e.children);_i25<_Array$from2.length;_i25++){var _n28=_Array$from2[_i25];var _e57={attributes:{},children:[],tagName:_n28.tagName};for(var _i26=0,_Array$from3=Array.from(_n28.attributes);_i26<_Array$from3.length;_i26++){var _t45=_Array$from3[_i26];_e57.attributes[_t45.name]=_t45.value;}var _i27=rt.Strophe.getText(_n28);_i27&&(_e57.value=rt.Strophe.xmlunescape(_i27)),t.push(_e57),this.packet2JSON(_n28,_e57.children);}},json2packet:function json2packet(e,t){for(var _n29=0;_n29<e.length;_n29++){var _i28=e[_n29];_i28&&(t.c(_i28.tagName,_i28.attributes),_i28.value&&t.t(_i28.value),_i28.children&&this.json2packet(_i28.children,t),t.up());}}};function js(e,t){var n=[];for(var _i29=0;_i29<e.length;_i29++)e[_i29].tagName===t&&n.push(e[_i29]);return n;}var $s=["owner","admin","member"];var Us=/*#__PURE__*/function(_vi6){_inherits(Us,_vi6);var _super13=_createSuper(Us);function Us(e,t,n,i,s){var _this51;_classCallCheck(this,Us);_this51=_super13.call(this),_this51.xmpp=i,_this51.connection=e,_this51.roomjid=rt.Strophe.getBareJidFromJid(t),_this51.myroomjid=t,_this51.password=n,_this51.replaceParticipant=!1,xs.info("Joined MUC as ".concat(_this51.myroomjid)),_this51.members={},_this51.presMap={},_this51.presHandlers={},_this51._removeConnListeners=[],_this51.joined=!1,_this51.inProgressEmitted=!1,_this51.role=null,_this51.focusMucJid=null,_this51.noBridgeAvailable=!1,_this51.options=s||{},_this51.moderator=new Ls(_this51.roomjid,_this51.xmpp,_this51.eventEmitter,{connection:_this51.xmpp.options,conference:_this51.options}),(void 0===_this51.options.enableLobby||_this51.options.enableLobby)&&(_this51.lobby=new Cs(_assertThisInitialized(_this51))),_this51.avModeration=new ps(_assertThisInitialized(_this51)),_this51.breakoutRooms=new Ss(_assertThisInitialized(_this51)),_this51.initPresenceMap(s),_this51.lastPresences={},_this51.phoneNumber=null,_this51.phonePin=null,_this51.connectionTimes={},_this51.participantPropertyListener=null,_this51.locked=!1,_this51.transcriptionStatus=hs;return _this51;}_createClass(Us,[{key:"initPresenceMap",value:function initPresenceMap(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.presMap.to=this.myroomjid,this.presMap.xns="http://jabber.org/protocol/muc",this.presMap.nodes=[],e.statsId&&this.presMap.nodes.push({tagName:"stats-id",value:e.statsId}),this.presenceUpdateTime=Date.now();}},{key:"join",value:function join(e,t){var _this52=this;return this.password=e,this.replaceParticipant=t,new Promise(function(e){_this52.options.disableFocus&&xs.info("Conference focus disabled for ".concat(_this52.roomjid)),(_this52.options.disableFocus?Promise.resolve():_this52.moderator.allocateConferenceFocus()).then(function(){_this52.sendPresence(!0),_this52._removeConnListeners.push(_this52.connection.addEventListener(ds.Events.CONN_STATUS_CHANGED,_this52.onConnStatusChanged.bind(_this52))),e();});});}},{key:"sendPresence",value:function sendPresence(e){var t=this.presMap.to;if(!this.connection||!this.connection.connected||!t||!this.joined&&!e)return;var n=(0,rt.$pres)({to:t});e&&(this.replaceParticipant&&n.c("flip_device").up(),n.c("x",{xmlns:this.presMap.xns}),this.password&&n.c("password").t(this.password).up(),this.options.billingId&&n.c("billingid").t(this.options.billingId).up(),n.up()),Fs.json2packet(this.presMap.nodes,n),this.presenceSyncTime=Date.now(),this.connection.send(n),e&&this.connection.flush();}},{key:"doLeave",value:function doLeave(){xs.log("do leave",this.myroomjid);var e=(0,rt.$pres)({to:this.myroomjid,type:"unavailable"});this.presMap.length=0,!this.connection.isUsingWebSocket&&this.connection.flush(),this.connection.send(e),this.connection.flush();}},{key:"discoRoomInfo",value:function discoRoomInfo(){var _this53=this;var e=(0,rt.$iq)({type:"get",to:this.roomjid}).c("query",{xmlns:rt.Strophe.NS.DISCO_INFO});this.connection.sendIQ(e,function(e){var t=1===$CC(e).find(\'>query>feature[var="muc_passwordprotected"]\').length;t!==_this53.locked&&(_this53.eventEmitter.emit(zn().MUC_LOCK_CHANGED,t),_this53.locked=t);var n=$CC(e).find(\'>query>x[type="result"]>field[var="muc#roominfo_meetingId"]>value\');n.length?_this53.setMeetingId(n.text()):xs.warn("No meeting ID from backend");var i=1===$CC(e).find(\'>query>feature[var="muc_membersonly"]\').length,s=$CC(e).find(\'>query>x[type="result"]>field[var="muc#roominfo_lobbyroom"]>value\');_this53.lobby&&_this53.lobby.setLobbyRoomJid(s&&s.length?s.text():void 0);var r=$CC(e).find(\'>query>x[type="result"]>field[var="muc#roominfo_isbreakout"]>value\'),o=Boolean(null==r?void 0:r.text());_this53.breakoutRooms._setIsBreakoutRoom(o);var a=$CC(e).find(\'>query>x[type="result"]>field[var="muc#roominfo_breakout_main_room"]>value\');null!=a&&a.length&&_this53.breakoutRooms._setMainRoomJid(a.text()),i!==_this53.membersOnlyEnabled&&(_this53.membersOnlyEnabled=i,_this53.eventEmitter.emit(zn().MUC_MEMBERS_ONLY_CHANGED,i));},function(e){dn().callErrorHandler(e),xs.error("Error getting room info: ",e);});}},{key:"setMeetingId",value:function setMeetingId(e){this.meetingId!==e&&(this.meetingId&&xs.warn("Meeting Id changed from:".concat(this.meetingId," to:").concat(e)),this.meetingId=e,this.eventEmitter.emit(zn().MEETING_ID_SET,e));}},{key:"createNonAnonymousRoom",value:function createNonAnonymousRoom(){var _this54=this;if(this.options.disableDiscoInfo)return;var e=(0,rt.$iq)({type:"get",to:this.roomjid}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}).c("x",{xmlns:"jabber:x:data",type:"submit"});this.connection.sendIQ(e,function(e){if(!$CC(e).find(\'>query>x[xmlns="jabber:x:data"]>field[var="muc#roomconfig_whois"]\').length){var _e58="non-anonymous rooms not supported";return dn().callErrorHandler(new Error(_e58)),void xs.error(_e58);}var t=(0,rt.$iq)({to:_this54.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});t.c("x",{xmlns:"jabber:x:data",type:"submit"}),t.c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up(),t.c("field",{var:"muc#roomconfig_whois"}).c("value").t("anyone").up().up(),_this54.connection.sendIQ(t);},function(e){dn().callErrorHandler(e),xs.error("Error getting room configuration form: ",e);});}},{key:"onConnStatusChanged",value:function onConnStatusChanged(e){e===ds.Status.CONNECTED&&this.sendPresence();}},{key:"onPresence",value:function onPresence(e){var t=e.getAttribute("from"),n={},i=e.getElementsByTagName("status")[0];i&&(n.status=i.textContent||"");var s=!1,r=!1;var o=e.getElementsByTagNameNS("http://jabber.org/protocol/muc#user","x")[0],a=o&&o.getElementsByTagName("item")[0];n.isReplaceParticipant=e.getElementsByTagName("flip_device").length,n.affiliation=a&&a.getAttribute("affiliation"),n.role=a&&a.getAttribute("role");var c=a&&a.getAttribute("jid");n.jid=c,n.isFocus=c&&0===c.indexOf("".concat(this.moderator.getFocusUserJid(),"/")),n.isHiddenDomain=c&&c.indexOf("@")>0&&this.options.hiddenDomain===c.substring(c.indexOf("@")+1,c.indexOf("/")),this.eventEmitter.emit(zn().PRESENCE_RECEIVED,{fromHiddenDomain:n.isHiddenDomain,presence:e});var d=e.querySelector("x");d&&d.remove();var l=[];Fs.packet2JSON(e,l),this.lastPresences[t]=l;var h=function h(e){var t={},n=e.children.find(function(e){return"user"===e.tagName;});if(n){t.user={};var _loop5=function _loop5(){var e=_arr2[_i30];var i=n.children.find(function(t){return t.tagName===e;});i&&(t.user[e]=i.value);};for(var _i30=0,_arr2=["id","name","avatar"];_i30<_arr2.length;_i30++){_loop5();}}var i=e.children.find(function(e){return"group"===e.tagName;});return i&&(t.group=i.value),t;};for(var _e59=0;_e59<l.length;_e59++){var _t46=l[_e59];switch(_t46.tagName){case"bot":{var _e60=_t46.attributes;if(!_e60)break;var _i31=_e60.type;n.botType=_i31;break;}case"nick":n.nick=_t46.value;break;case"userId":n.id=_t46.value;break;case"stats-id":n.statsID=_t46.value;break;case"identity":n.identity=h(_t46);break;case"features":n.features=this._extractFeatures(_t46);break;case"stat":{var _e61=_t46.attributes;if(!_e61)break;var _i32=_e61.name;"version"===_i32&&(n.version=_e61.value);break;}}}if(!this.joined&&!this.inProgressEmitted){var _e62=this.connectionTimes["muc.join.started"]=window.performance.now();xs.log("(TIME) MUC join started:\\t",_e62),this.eventEmitter.emit(zn().MUC_JOIN_IN_PROGRESS),this.inProgressEmitted=!0;}if(t===this.myroomjid){var _e63="owner"===n.affiliation?n.role:"none";if(this.role!==_e63&&(this.role=_e63,this.eventEmitter.emit(zn().LOCAL_ROLE_CHANGED,this.role)),!this.joined){this.joined=!0;var _e64=this.connectionTimes["muc.joined"]=window.performance.now();xs.log("(TIME) MUC joined:\\t",_e64),this.password&&(this.locked=!0),this.presenceUpdateTime>=this.presenceSyncTime&&this.sendPresence(),this.eventEmitter.emit(zn().MUC_JOINED),!this.options.disableDiscoInfo&&this.discoRoomInfo();}}else if(void 0===c)xs.info("Ignoring member with undefined JID");else if(void 0===this.members[t])this.members[t]=n,xs.log("entered",t,n),s=void 0!==n.status,r=void 0!==n.version,n.isFocus?this._initFocus(t,n.features):(this.eventEmitter.emit(zn().MUC_MEMBER_JOINED,t,n.nick,n.role,n.isHiddenDomain,n.statsID,n.status,n.identity,n.botType,n.jid,n.features,n.isReplaceParticipant),s=!1);else{var _e65=this.members[t];_e65.role!==n.role&&(_e65.role=n.role,this.eventEmitter.emit(zn().MUC_ROLE_CHANGED,t,n.role)),_e65.affiliation!==n.affiliation&&(_e65.affiliation=n.affiliation),_e65.botType!==n.botType&&(_e65.botType=n.botType,this.eventEmitter.emit(zn().MUC_MEMBER_BOT_TYPE_CHANGED,t,n.botType)),n.isFocus&&(_e65.isFocus=!0,this._initFocus(t,n.features)),n.displayName&&(_e65.displayName=n.displayName),_e65.status!==n.status&&(s=!0,_e65.status=n.status),_e65.version!==n.version&&(r=!0,_e65.version=n.version),st()(_e65.features,n.features)||(_e65.features=n.features,this.eventEmitter.emit(zn().PARTICIPANT_FEATURES_CHANGED,t,n.features));}for(var _e66=0;_e66<l.length;_e66++){var _i33=l[_e66];switch(_i33.tagName){case"nick":if(!n.isFocus){var _e67=this.xmpp.options.displayJids?rt.Strophe.getResourceFromJid(t):n.nick;this.eventEmitter.emit(zn().DISPLAY_NAME_CHANGED,t,_e67);}break;case"bridgeNotAvailable":n.isFocus&&!this.noBridgeAvailable&&(this.noBridgeAvailable=!0,this.eventEmitter.emit(zn().BRIDGE_DOWN));break;case"conference-properties":if(n.isFocus){var _e68={};for(var _t47=0;_t47<_i33.children.length;_t47++){var _n30=_i33.children[_t47].attributes;_n30&&_n30.key&&(_e68[_n30.key]=_n30.value);}this.eventEmitter.emit(zn().CONFERENCE_PROPERTIES_CHANGED,_e68),void 0===this.restartByTerminateSupported&&(this.restartByTerminateSupported="true"===_e68["support-terminate-restart"],xs.info("Jicofo supports restart by terminate: ".concat(this.supportsRestartByTerminate())));}break;case"transcription-status":{var _e69=_i33.attributes;if(!_e69)break;var _t48=_e69.status;_t48&&_t48!==this.transcriptionStatus&&(this.transcriptionStatus=_t48,this.eventEmitter.emit(zn().TRANSCRIPTION_STATUS_CHANGED,_t48));break;}case"call-control":{var _e70=_i33.attributes;if(!_e70)break;this.phoneNumber=_e70.phone||null,this.phonePin=_e70.pin||null,this.eventEmitter.emit(zn().PHONE_NUMBER_CHANGED);break;}default:this.processNode(_i33,t);}}s&&this.eventEmitter.emit(zn().PRESENCE_STATUS,t,n.status),r&&xs.info("Received version for ".concat(c,": ").concat(n.version));}},{key:"_extractFeatures",value:function _extractFeatures(e){var t=new Set();for(var _n31=0;_n31<e.children.length;_n31++){var _i34=e.children[_n31].attributes;_i34&&_i34.var&&t.add(_i34.var);}return t;}},{key:"_initFocus",value:function _initFocus(e,t){this.focusMucJid=e,this.focusFeatures=t;}},{key:"setParticipantPropertyListener",value:function setParticipantPropertyListener(e){this.participantPropertyListener=e;}},{key:"supportsRestartByTerminate",value:function supportsRestartByTerminate(){return this.restartByTerminateSupported;}},{key:"processNode",value:function processNode(e,t){try{var _n32=this.presHandlers[e.tagName];e.tagName.startsWith("jitsi_participant_")&&(_n32=[this.participantPropertyListener]),_n32&&_n32.forEach(function(n){n(e,rt.Strophe.getResourceFromJid(t),t);});}catch(t){dn().callErrorHandler(t),xs.error("Error processing:".concat(e.tagName," node."),t);}}},{key:"sendMessage",value:function sendMessage(e,t){var n=(0,rt.$msg)({to:this.roomjid,type:"groupchat"});"body"===t?n.c(t,{},e):n.c(t,{xmlns:"http://jitsi.org/jitmeet"},e),this.connection.send(n),this.eventEmitter.emit(zn().SENDING_CHAT_MESSAGE,e);}},{key:"sendPrivateMessage",value:function sendPrivateMessage(e,t,n){var i=(0,rt.$msg)({to:"".concat(this.roomjid,"/").concat(e),type:"chat"});"body"===n?i.c(n,t).up():i.c(n,{xmlns:"http://jitsi.org/jitmeet"},t).up(),this.connection.send(i),this.eventEmitter.emit(zn().SENDING_PRIVATE_CHAT_MESSAGE,t);}},{key:"setSubject",value:function setSubject(e){var t=(0,rt.$msg)({to:this.roomjid,type:"groupchat"});t.c("subject",e),this.connection.send(t);}},{key:"onParticipantLeft",value:function onParticipantLeft(e,t){delete this.lastPresences[e],t||(this.eventEmitter.emit(zn().MUC_MEMBER_LEFT,e),this.moderator.onMucMemberLeft(e));}},{key:"onPresenceUnavailable",value:function onPresenceUnavailable(e,t){var _this55=this;if($CC(e).find(\'>ignore[xmlns="http://jitsi.org/jitmeet/"]\').length)return!0;var n=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>destroy\');if(n.length){var _t49;var _i35=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>destroy>reason\');return _i35.length&&(_t49=_i35.text()),this.eventEmitter.emit(zn().MUC_DESTROYED,_t49,n.attr("jid")),this.connection.emuc.doLeave(this.roomjid),!0;}var i=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="110"]\').length,s=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="307"]\').length,r=Object.keys(this.members),o=$CC(e).find("flip_device").length;if(s){var _n33=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>item>actor\');var _s12,_r9;_n33.length&&(_s12=_n33.attr("nick"));var _a4=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>item>reason\');_a4.length&&(_r9=_a4.text()),this.eventEmitter.emit(zn().KICKED,i,_s12,rt.Strophe.getResourceFromJid(t),_r9,o);}i?(r.forEach(function(e){var t=_this55.members[e];delete _this55.members[e],_this55.onParticipantLeft(e,t.isFocus);}),this.connection.emuc.doLeave(this.roomjid),s||this.eventEmitter.emit(zn().MUC_LEFT)):(delete this.members[t],this.onParticipantLeft(t,!1));}},{key:"onMessage",value:function onMessage(e,t){var n=e.getAttribute("type");if("error"===n){var _t50=$CC(e).find(">settings-error>text").text();if(_t50.length)return this.eventEmitter.emit(zn().SETTINGS_ERROR_RECEIVED,_t50),!0;var _n34=$CC(e).find(">error>text").text();return this.eventEmitter.emit(zn().CHAT_ERROR_RECEIVED,_n34),!0;}var i=$CC(e).find(">body").text(),s=$CC(e).find(">subject");if(s.length){var _e71=s.text();(_e71||""===_e71)&&(this.eventEmitter.emit(zn().SUBJECT_CHANGED,_e71),xs.log("Subject is changed to ".concat(_e71)));}var r=$CC(e).find(">delay").attr("stamp");if(!r&&(r=$CC(e).find(\'>[xmlns="jabber:x:delay"]\').attr("stamp"),r)){var _e72=r.match(/(\\d{4})(\\d{2})(\\d{2}T\\d{2}:\\d{2}:\\d{2})/);r="".concat(_e72[1],"-").concat(_e72[2],"-").concat(_e72[3],"Z");}if(t===this.roomjid){var _n35;if($CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="104"]\').length)this.discoRoomInfo();else if((_n35=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>invite\'))&&_n35.length){var _s13=$CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>password\');var _r10;_s13&&_s13.length&&(_r10=_s13.text()),this.eventEmitter.emit(zn().INVITE_MESSAGE_RECEIVED,t,_n35.attr("from"),i,_r10);}}var o=$CC(e).find(">json-message").text();if(o){var _e73=this.xmpp.tryParseJSONAndVerify(o);if(_e73&&void 0===r)return void this.eventEmitter.emit(zn().JSON_MESSAGE_RECEIVED,t,_e73);}i&&("chat"===n?this.eventEmitter.emit(zn().PRIVATE_MESSAGE_RECEIVED,t,i,this.myroomjid,r):"groupchat"===n&&this.eventEmitter.emit(zn().MESSAGE_RECEIVED,t,i,this.myroomjid,r));}},{key:"onPresenceError",value:function onPresenceError(e,t){if($CC(e).find(\'>error[type="auth"]>not-authorized[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]\').length)xs.log("on password required",t),this.eventEmitter.emit(zn().PASSWORD_REQUIRED);else if($CC(e).find(\'>error[type="cancel"]>not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]\').length)rt.Strophe.getDomainFromJid(e.getAttribute("to"))===this.xmpp.options.hosts.anonymousdomain?this.eventEmitter.emit(zn().ROOM_JOIN_ERROR):(xs.warn("onPresError ",e),this.eventEmitter.emit(zn().ROOM_CONNECT_NOT_ALLOWED_ERROR));else if($CC(e).find(">error>service-unavailable").length)xs.warn("Maximum users limit for the room has been reached",e),this.eventEmitter.emit(zn().ROOM_MAX_USERS_ERROR);else if($CC(e).find(\'>error[type="auth"]>registration-required[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]\').length){var _t51=$CC(e).find(\'>error[type="auth"]>lobbyroom\');var _n36;if(_t51.length)_n36=_t51.text();else{var _t52=$CC(e).find(">lobbyroom");_t52.length&&(_n36=_t52.text());}this.eventEmitter.emit(zn().ROOM_CONNECT_MEMBERS_ONLY_ERROR,_n36);}else xs.warn("onPresError ",e),this.eventEmitter.emit(zn().ROOM_CONNECT_ERROR);}},{key:"setAffiliation",value:function setAffiliation(e,t){var n=(0,rt.$iq)({to:this.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:t,nick:rt.Strophe.getResourceFromJid(e)}).c("reason").t("Your affiliation has been changed to \'".concat(t,"\'.")).up().up().up();this.connection.sendIQ(n,function(n){return xs.log("Set affiliation of participant with jid: ",e,"to",t,n);},function(e){return xs.log("Set affiliation of participant error: ",e);});}},{key:"kick",value:function kick(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"You have been kicked.";var n=(0,rt.$iq)({to:this.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{nick:rt.Strophe.getResourceFromJid(e),role:"none"}).c("reason").t(t).up().up().up();this.connection.sendIQ(n,function(t){return xs.log("Kick participant with jid: ",e,t);},function(e){return xs.log("Kick participant error: ",e);});}},{key:"lockRoom",value:function lockRoom(e,t,n,i){var _this56=this;this.connection.sendIQ((0,rt.$iq)({to:this.roomjid,type:"get"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}),function(s){if($CC(s).find(\'>query>x[xmlns="jabber:x:data"]>field[var="muc#roomconfig_roomsecret"]\').length){var _i36=(0,rt.$iq)({to:_this56.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});_i36.c("x",{xmlns:"jabber:x:data",type:"submit"}),_i36.c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up(),_i36.c("field",{var:"muc#roomconfig_roomsecret"}).c("value").t(e).up().up(),_i36.c("field",{var:"muc#roomconfig_passwordprotectedroom"}).c("value").t(null===e||0===e.length?"0":"1").up().up(),_this56.membersOnlyEnabled&&_i36.c("field",{var:"muc#roomconfig_membersonly"}).c("value").t("true").up().up(),_i36.c("field",{var:"muc#roomconfig_whois"}).c("value").t("anyone").up().up(),_this56.connection.sendIQ(_i36,function(){_this56.password=e,t();},n);}else i();},n);}},{key:"setMembersOnly",value:function setMembersOnly(e,t,n){var _this57=this;e&&Object.values(this.members).filter(function(e){return!e.isFocus;}).length&&Object.values(this.members).forEach(function(e){e.jid&&!$s.includes(e.affiliation)&&_this57.xmpp.connection.sendIQ((0,rt.$iq)({to:_this57.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:"member",jid:e.jid}).up().up());});var i=n||function(){};this.xmpp.connection.sendIQ((0,rt.$iq)({to:this.roomjid,type:"get"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}),function(n){if($CC(n).find(\'>query>x[xmlns="jabber:x:data"]>field[var="muc#roomconfig_membersonly"]\').length){var _n37=(0,rt.$iq)({to:_this57.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});_n37.c("x",{xmlns:"jabber:x:data",type:"submit"}),_n37.c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up(),_n37.c("field",{var:"muc#roomconfig_membersonly"}).c("value").t(e?"true":"false").up().up(),_this57.locked&&_n37.c("field",{var:"muc#roomconfig_passwordprotectedroom"}).c("value").t("1").up().up(),_this57.xmpp.connection.sendIQ(_n37,t,i);}else i(new Error("Setting members only room not supported!"));},i);}},{key:"addToPresence",value:function addToPresence(e,t){return this.addOrReplaceInPresence(e,t);}},{key:"addOrReplaceInPresence",value:function addOrReplaceInPresence(e,t){t.tagName=e;var n=this.presMap.nodes.filter(function(t){return e===t.tagName;});return!(1===n.length&&st()(n[0],t)||(this.removeFromPresence(e),this.presMap.nodes.push(t),this.presenceUpdateTime=Date.now(),0));}},{key:"getFromPresence",value:function getFromPresence(e){return this.presMap.nodes.find(function(t){return e===t.tagName;});}},{key:"removeFromPresence",value:function removeFromPresence(e){var t=this.presMap.nodes.filter(function(t){return e!==t.tagName;});this.presMap.nodes=t,this.presenceUpdateTime=Date.now();}},{key:"addPresenceListener",value:function addPresenceListener(e,t){if("function"!=typeof t)throw new Error(\'"handler" is not a function\');var n=this.presHandlers[e];n||(this.presHandlers[e]=n=[]),-1===n.indexOf(t)?n.push(t):xs.warn("Trying to add the same handler more than once for: ".concat(e));}},{key:"removePresenceListener",value:function removePresenceListener(e,t){var n=this.presHandlers[e],i=n?n.indexOf(t):-1;-1!==i?n.splice(i,1):xs.warn("Handler for: ".concat(e," was not registered"));}},{key:"isFocus",value:function isFocus(e){var t=this.members[e];return t?t.isFocus:null;}},{key:"isModerator",value:function isModerator(){return"moderator"===this.role;}},{key:"getMemberRole",value:function getMemberRole(e){return this.members[e]?this.members[e].role:null;}},{key:"addAudioInfoToPresence",value:function addAudioInfoToPresence(e){var t="audiomuted";return!(e&&!this.getFromPresence(t))&&this.addOrReplaceInPresence(t,{value:e.toString()});}},{key:"addVideoInfoToPresence",value:function addVideoInfoToPresence(e){var t="videomuted";return!(e&&!this.getFromPresence(t))&&this.addOrReplaceInPresence(t,{value:e.toString()});}},{key:"getMediaPresenceInfo",value:function getMediaPresenceInfo(e,t){var n=this.lastPresences["".concat(this.roomjid,"/").concat(e)];if(!n)return null;var i={muted:!0,videoType:void 0};var s=null;if(t===Rn)s=js(n,"audiomuted");else{if(t!==wn)return xs.error("Unsupported media type: ".concat(t)),null;{s=js(n,"videomuted");var _e74=js(n,"jitsi_participant_codecType"),_t53=js(n,"videoType");_t53.length>0&&(i.videoType=_t53[0].value),_e74.length>0&&(i.codecType=_e74[0].value);}}return s.length>0&&(i.muted="true"===s[0].value),i;}},{key:"getLastPresence",value:function getLastPresence(e){return this.lastPresences["".concat(this.roomjid,"/").concat(e)];}},{key:"isSIPCallingSupported",value:function isSIPCallingSupported(){return!!this.moderator&&this.moderator.isSipGatewayEnabled();}},{key:"dial",value:function dial(e){return this.connection.rayo.dial(e,"fromnumber",rt.Strophe.getBareJidFromJid(this.myroomjid),this.password,this.focusMucJid);}},{key:"hangup",value:function hangup(){return this.connection.rayo.hangup();}},{key:"getLobby",value:function getLobby(){return this.lobby;}},{key:"getAVModeration",value:function getAVModeration(){return this.avModeration;}},{key:"getBreakoutRooms",value:function getBreakoutRooms(){return this.breakoutRooms;}},{key:"getPhoneNumber",value:function getPhoneNumber(){return this.phoneNumber;}},{key:"getPhonePin",value:function getPhonePin(){return this.phonePin;}},{key:"getMeetingId",value:function getMeetingId(){return this.meetingId;}},{key:"muteParticipant",value:function muteParticipant(e,t,n){xs.info("set mute",t,e);var i=(0,rt.$iq)({to:this.focusMucJid,type:"set"}).c("mute",{xmlns:"http://jitsi.org/jitmeet/".concat(n),jid:e}).t(t.toString()).up();this.connection.sendIQ(i,function(e){return xs.log("set mute",e);},function(e){return xs.log("set mute error",e);});}},{key:"onMute",value:function onMute(e){if(e.getAttribute("from")!==this.focusMucJid)return void xs.warn("Ignored mute from non focus peer");var t=$CC(e).find("mute");t.length&&"true"===t.text()?this.eventEmitter.emit(zn().AUDIO_MUTED_BY_FOCUS,t.attr("actor")):xs.warn("Ignoring a mute request which does not explicitly specify a positive mute command.");}},{key:"onMuteVideo",value:function onMuteVideo(e){if(e.getAttribute("from")!==this.focusMucJid)return void xs.warn("Ignored mute from non focus peer");var t=$CC(e).find("mute");t.length&&"true"===t.text()?this.eventEmitter.emit(zn().VIDEO_MUTED_BY_FOCUS,t.attr("actor")):xs.warn("Ignoring a mute request which does not explicitly specify a positive mute command.");}},{key:"clean",value:function clean(){this._removeConnListeners.forEach(function(e){return e();}),this._removeConnListeners=[],this.joined=!1,this.inProgressEmitted=!1;}},{key:"leave",value:function leave(){var _this58=this;var e,t=this;this.avModeration.dispose(),this.breakoutRooms.dispose();var n=[];return(null===(e=this.lobby)||void 0===e?void 0:e.lobbyRoom)&&n.push(this.lobby.leave()),n.push(new Promise(function(e,n){var i=-1;var s=function s(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.eventEmitter.removeListener(zn().MUC_LEFT,s),clearTimeout(i),r?(t.connection.emuc.doLeave(t.roomjid),n(new Error("The timeout for the confirmation about leaving the room expired."))):e();};i=setTimeout(function(){return s(!0);},5e3),_this58.clean(),_this58.eventEmitter.on(zn().MUC_LEFT,s),_this58.doLeave();})),Promise.allSettled(n);}}]);return Us;}(vi);var Bs=(0,g.getLogger)("modules/xmpp/strophe.emuc.js");var Vs=/*#__PURE__*/function(_rs){_inherits(Vs,_rs);var _super14=_createSuper(Vs);function Vs(e){var _this59;_classCallCheck(this,Vs);_this59=_super14.call(this),_this59.xmpp=e,_this59.rooms={};return _this59;}_createClass(Vs,[{key:"init",value:function init(e){_get(_getPrototypeOf(Vs.prototype),"init",this).call(this,e),this.connection.addHandler(this.onPresence.bind(this),null,"presence",null,null,null,null),this.connection.addHandler(this.onPresenceUnavailable.bind(this),null,"presence","unavailable",null),this.connection.addHandler(this.onPresenceError.bind(this),null,"presence","error",null),this.connection.addHandler(this.onMessage.bind(this),null,"message",null,null),this.connection.addHandler(this.onMute.bind(this),"http://jitsi.org/jitmeet/audio","iq","set",null,null),this.connection.addHandler(this.onMuteVideo.bind(this),"http://jitsi.org/jitmeet/video","iq","set",null,null);}},{key:"createRoom",value:function createRoom(e,t,n){var i=rt.Strophe.getBareJidFromJid(e);if(this.isRoomCreated(i)){var _e75="You are already in the room!";throw Bs.error(_e75),new Error(_e75);}return this.rooms[i]=new Us(this.connection,e,t,this.xmpp,n),this.eventEmitter.emit(zn().EMUC_ROOM_ADDED,this.rooms[i]),this.rooms[i];}},{key:"isRoomCreated",value:function isRoomCreated(e){return e in this.rooms;}},{key:"doLeave",value:function doLeave(e){this.eventEmitter.emit(zn().EMUC_ROOM_REMOVED,this.rooms[e]),delete this.rooms[e];}},{key:"onPresence",value:function onPresence(e){var t=e.getAttribute("from");if(e.getAttribute("type"))return!0;var n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||($CC(e).find(\'>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="201"]\').length&&n.createNonAnonymousRoom(),n.onPresence(e),!0);}},{key:"onPresenceUnavailable",value:function onPresenceUnavailable(e){var t=e.getAttribute("from"),n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||(n.onPresenceUnavailable(e,t),!0);}},{key:"onPresenceError",value:function onPresenceError(e){var t=e.getAttribute("from"),n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||(n.onPresenceError(e,t),!0);}},{key:"onMessage",value:function onMessage(e){var t=e.getAttribute("from"),n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||(n.onMessage(e,t),!0);}},{key:"onMute",value:function onMute(e){var t=e.getAttribute("from"),n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||(n.onMute(e),!0);}},{key:"onMuteVideo",value:function onMuteVideo(e){var t=e.getAttribute("from"),n=this.rooms[rt.Strophe.getBareJidFromJid(t)];return!n||(n.onMuteVideo(e),!0);}}]);return Vs;}(rs);var Js=(0,g.getLogger)("FeatureFlags"),Hs=new(/*#__PURE__*/function(){function _class9(){_classCallCheck(this,_class9);}_createClass(_class9,[{key:"init",value:function init(e){this._sourceNameSignaling=Boolean(e.sourceNameSignaling),Js.info("Source name signaling: ".concat(this._sourceNameSignaling));}},{key:"isSourceNameSignalingEnabled",value:function isSourceNameSignalingEnabled(){return this._sourceNameSignaling;}}]);return _class9;}())(),Gs=(0,g.getLogger)("modules/xmpp/JingleHelperFunctions.js");function qs(e,t){var n=(0,rt.$build)("source",{xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0",ssrc:t.s,name:Hs.isSourceNameSignalingEnabled()?t.n:void 0});return t.m&&n.c("parameter",{name:"msid",value:t.m}).up(),n.c("ssrc-info",{xmlns:"http://jitsi.org/jitmeet",owner:e}).up(),n.node;}function Ks(e){var t=(0,rt.$build)("ssrc-group",{xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0",semantics:(n=e[0],"f"===n?"FID":"s"===n?"SIM":null)});var n;for(var _n38=1;_n38<e.length;_n38++)t.c("source",{xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0",ssrc:e[_n38]}).up();return t.node;}function zs(e,t){var n=$CC(e).find("jingle")[0];var i,s=$CC(n).find("content[name=\\"".concat(t,"\\"]"));return s.length?s=s[0]:(s=(0,rt.$build)("content",{name:t}).node,n.appendChild(s)),i=$CC(s).find("description"),i.length?i=i[0]:(i=(0,rt.$build)("description",{xmlns:"urn:xmpp:jingle:apps:rtp:1",media:t}).node,s.appendChild(i)),i;}function Ws(e,t){var n;var i;try{i=JSON.parse(t.textContent);}catch(e){return Gs.error("json-message XML contained invalid JSON, ignoring: ".concat(t.textContent)),null;}if(null===(n=i)||void 0===n||!n.sources)return null;var s=zs(e,Rn),r=zs(e,wn),o=new Map();for(var _e76 in i.sources)if(i.sources.hasOwnProperty(_e76)){var _t54=[],_n39=i.sources[_e76],_d3=(null==_n39?void 0:_n39.length)&&_n39[0],_l2=(null==_n39?void 0:_n39.length)>1&&_n39[1],_h2=(null==_n39?void 0:_n39.length)>2&&_n39[2],_u2=(null==_n39?void 0:_n39.length)>3&&_n39[3];if(null!=_d3&&_d3.length)for(var _n40=0;_n40<_d3.length;_n40++){var a;r.appendChild(qs(_e76,_d3[_n40])),_t54.push(null===(a=_d3[_n40])||void 0===a?void 0:a.s);}if(null!=_l2&&_l2.length)for(var _e77=0;_e77<_l2.length;_e77++)r.appendChild(Ks(_l2[_e77]));if(null!=_h2&&_h2.length)for(var _n41=0;_n41<_h2.length;_n41++){var c;s.appendChild(qs(_e76,_h2[_n41])),_t54.push(null===(c=_h2[_n41])||void 0===c?void 0:c.s);}if(null!=_u2&&_u2.length)for(var _e78=0;_e78<_u2.length;_e78++)s.appendChild(Ks(_u2[_e78]));o.set(_e76,_t54);}return o;}var Qs=n(4391),Xs=n.n(Qs),Ys=n(8043),Zs=n.n(Ys);var er=n(9077).getLogger("modules/RTC/ScreenObtainer.js"),tr={obtainStream:null,init:function init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e,this.obtainStream=this._createObtainStreamMethod(),this.obtainStream||er.info("Desktop sharing disabled");},_createObtainStreamMethod:function _createObtainStreamMethod(){return nn.isNWJS()?function(e,t){window.JitsiMeetNW.obtainDesktopStream(e,function(e,n){var i;i=e&&"InvalidStateError"===e.name?new Et(mt):new Et(e,n,["desktop"]),"function"==typeof t&&t(i);});}:nn.isElectron()?this.obtainScreenOnElectron:nn.isReactNative()&&nn.supportsGetDisplayMedia()?this.obtainScreenFromGetDisplayMediaRN:nn.supportsGetDisplayMedia()?this.obtainScreenFromGetDisplayMedia:(er.log("Screen sharing not supported on ",nn.getName()),null);},_getAudioConstraints:function _getAudioConstraints(){var e=this.options.audioQuality;return null==e||!e.stereo||{autoGainControl:!1,channelCount:2,echoCancellation:!1,noiseSuppression:!1};},isSupported:function isSupported(){return null!==this.obtainStream;},obtainScreenOnElectron:function obtainScreenOnElectron(e,t){var n=this;if(window.JitsiMeetScreenObtainer&&window.JitsiMeetScreenObtainer.openDesktopPicker){var _this$options=this.options,_i37=_this$options.desktopSharingFrameRate,_s14=_this$options.desktopSharingSources;window.JitsiMeetScreenObtainer.openDesktopPicker({desktopSharingSources:_s14||["screen","window"]},function(s,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(s){var a,c;var _d4=!1;if(o){_d4={};var _e79=n._getAudioConstraints();"boolean"!=typeof _e79&&(_d4={optional:_e79}),"screen"===r&&(_d4.mandatory={chromeMediaSource:"desktop"});}var _l3={audio:_d4,video:{mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:s,minFrameRate:null!==(a=null==_i37?void 0:_i37.min)&&void 0!==a?a:5,maxFrameRate:null!==(c=null==_i37?void 0:_i37.max)&&void 0!==c?c:5,maxWidth:window.screen.width,maxHeight:window.screen.height}}};navigator.mediaDevices.getUserMedia(_l3).then(function(t){return e({stream:t,sourceId:s,sourceType:r});},t);}else t(new Et(mt));},function(e){return t(new Et(ct,e));});}else t(new Et(dt));},obtainScreenFromGetDisplayMedia:function obtainScreenFromGetDisplayMedia(e,t){var n;n=navigator.getDisplayMedia?navigator.getDisplayMedia.bind(navigator):navigator.mediaDevices.getDisplayMedia.bind(navigator.mediaDevices);var i=this.options.desktopSharingFrameRate,s="object"!=_typeof(i)||{frameRate:i},r=this._getAudioConstraints();s.frameRate&&delete s.frameRate.min;var o={video:s,audio:r,cursor:"always"};er.info("Using getDisplayMedia for screen sharing",o),n(o).then(function(t){e({stream:t,sourceId:t.id});}).catch(function(e){var n={errorName:e&&e.name,errorMsg:e&&e.message,errorStack:e&&e.stack};er.error("getDisplayMedia error",o,n),n.errorMsg&&-1!==n.errorMsg.indexOf("denied by system")?t(new Et(ut)):t(new Et(mt));});},obtainScreenFromGetDisplayMediaRN:function obtainScreenFromGetDisplayMediaRN(e,t){er.info("Using getDisplayMedia for screen sharing"),navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(t){e({stream:t,sourceId:t.id});}).catch(function(){t(new Et(mt));});},setDesktopSharingFrameRate:function setDesktopSharingFrameRate(e){er.info("Setting the desktop capture rate to ".concat(e)),this.options.desktopSharingFrameRate={min:5,max:e};}},nr=tr,ir=(0,g.getLogger)("modules/sdp/SDPUtil.js"),sr={filterSpecialChars:function filterSpecialChars(e){return e?e.replace(/[\\\\\\/\\{,\\}\\+]/g,""):e;},iceparams:function iceparams(e,t){var n,i,s=null;return(i=sr.findLine(e,"a=ice-ufrag:",t))&&(n=sr.findLine(e,"a=ice-pwd:",t))&&(s={ufrag:sr.parseICEUfrag(i),pwd:sr.parseICEPwd(n)}),s;},parseICEUfrag:function parseICEUfrag(e){return e.substring(12);},buildICEUfrag:function buildICEUfrag(e){return"a=ice-ufrag:".concat(e);},parseICEPwd:function parseICEPwd(e){return e.substring(10);},buildICEPwd:function buildICEPwd(e){return"a=ice-pwd:".concat(e);},parseMID:function parseMID(e){return e.substring(6);},parseMSIDAttribute:function parseMSIDAttribute(e){var t=e.find(function(e){return e.indexOf(" msid:")>0;});if(!t)return;var n=t.substring(t.indexOf(" msid:")+6);return sr.filterSpecialChars(n);},parseMLine:function parseMLine(e){var t={},n=e.substring(2).split(" ");return t.media=n.shift(),t.port=n.shift(),t.proto=n.shift(),""===n[n.length-1]&&n.pop(),t.fmt=n,t;},buildMLine:function buildMLine(e){return"m=".concat(e.media," ").concat(e.port," ").concat(e.proto," ").concat(e.fmt.join(" "));},parseRTPMap:function parseRTPMap(e){var t={};var n=e.substring(9).split(" ");return t.id=n.shift(),n=n[0].split("/"),t.name=n.shift(),t.clockrate=n.shift(),t.channels=n.length?n.shift():"1",t;},parseSCTPMap:function parseSCTPMap(e){var t=e.substring(10).split(" ");return[t[0],t[1],t.length>2?t[2]:null];},parseSCTPPort:function parseSCTPPort(e){return e.substring(12);},buildRTPMap:function buildRTPMap(e){var t="a=rtpmap:".concat(e.getAttribute("id")," ").concat(e.getAttribute("name"),"/").concat(e.getAttribute("clockrate"));return e.getAttribute("channels")&&"1"!==e.getAttribute("channels")&&(t+="/".concat(e.getAttribute("channels"))),t;},parseCrypto:function parseCrypto(e){var t={},n=e.substring(9).split(" ");return t.tag=n.shift(),t["crypto-suite"]=n.shift(),t["key-params"]=n.shift(),n.length&&(t["session-params"]=n.join(" ")),t;},parseFingerprint:function parseFingerprint(e){var t={},n=e.substring(14).split(" ");return t.hash=n.shift(),t.fingerprint=n.shift(),t;},parseFmtp:function parseFmtp(e){var t=[];var n=e.split(" ");n.shift(),n=n.join(" ").split(";");for(var _e80=0;_e80<n.length;_e80++){var _i38=n[_e80].split("=")[0];for(;_i38.length&&" "===_i38[0];)_i38=_i38.substring(1);var _s15=n[_e80].split("=")[1];_i38&&_s15?t.push({name:_i38,value:_s15}):_i38&&t.push({name:"",value:_i38});}return t;},parseICECandidate:function parseICECandidate(e){var t={},n=e.split(" ");t.foundation=n[0].substring(12),t.component=n[1],t.protocol=n[2].toLowerCase(),t.priority=n[3],t.ip=n[4],t.port=n[5],t.type=n[7],t.generation=0;for(var _e81=8;_e81<n.length;_e81+=2)switch(n[_e81]){case"raddr":t["rel-addr"]=n[_e81+1];break;case"rport":t["rel-port"]=n[_e81+1];break;case"generation":t.generation=n[_e81+1];break;case"tcptype":t.tcptype=n[_e81+1];break;default:ir.debug("parseICECandidate not translating \\"".concat(n[_e81],"\\" = \\"").concat(n[_e81+1],"\\""));}return t.network="1",t.id=Math.random().toString(36).substr(2,10),t;},buildICECandidate:function buildICECandidate(e){var t=["a=candidate:".concat(e.foundation),e.component,e.protocol,e.priority,e.ip,e.port,"typ",e.type].join(" ");switch(t+=" ",e.type){case"srflx":case"prflx":case"relay":e.hasOwnAttribute("rel-addr")&&e.hasOwnAttribute("rel-port")&&(t+="raddr",t+=" ",t+=e["rel-addr"],t+=" ",t+="rport",t+=" ",t+=e["rel-port"],t+=" ");}return e.hasOwnAttribute("tcptype")&&(t+="tcptype",t+=" ",t+=e.tcptype,t+=" "),t+="generation",t+=" ",t+=e.hasOwnAttribute("generation")?e.generation:"0",t;},parseSSRC:function parseSSRC(e){var t=new Map(),n=e.split("\\r\\n");for(var _e82=0;_e82<n.length;_e82++)if("a=ssrc:"===n[_e82].substring(0,7)){var _i39=n[_e82].split("a=ssrc:")[1].split(" ")[0];t.get(_i39)||t.set(_i39,[]),t.get(_i39).push(n[_e82]);}return t;},parseSourceNameLine:function parseSourceNameLine(e){var t=e.find(function(e){return e.indexOf(" name:")>0;});return null==t?void 0:t.substring(t.indexOf(" name:")+6);},parseRTCPFB:function parseRTCPFB(e){var t=e.substr(10).split(" "),n={};return n.pt=t.shift(),n.type=t.shift(),n.params=t,n;},parseExtmap:function parseExtmap(e){var t=e.substr(9).split(" "),n={};return n.value=t.shift(),-1===n.value.indexOf("/")?n.direction="both":(n.direction=n.value.substr(n.value.indexOf("/")+1),n.value=n.value.substr(0,n.value.indexOf("/"))),n.uri=t.shift(),n.params=t,n;},findLine:function findLine(e,t,n){var i=e.split("\\r\\n");for(var _e83=0;_e83<i.length;_e83++)if(i[_e83].substring(0,t.length)===t)return i[_e83];if(!n)return!1;i=n.split("\\r\\n");for(var _e84=0;_e84<i.length;_e84++)if(i[_e84].substring(0,t.length)===t)return i[_e84];return!1;},findLines:function findLines(e,t,n){var i=e.split("\\r\\n");var s=[];for(var _e85=0;_e85<i.length;_e85++)i[_e85].substring(0,t.length)===t&&s.push(i[_e85]);if(s.length||!n)return s;i=n.split("\\r\\n");for(var _e86=0;_e86<i.length;_e86++)i[_e86].substring(0,t.length)===t&&s.push(i[_e86]);return s;},candidateToJingle:function candidateToJingle(e){if(0===e.indexOf("candidate:"))e="a=".concat(e);else if("a=candidate:"!==e.substring(0,12))return ir.warn("parseCandidate called with a line that is not a candidate line"),ir.warn(e),null;"\\r\\n"===e.substring(e.length-2)&&(e=e.substring(0,e.length-2));var t={},n=e.split(" ");if("typ"!==n[6])return ir.warn("did not find typ in the right place"),ir.warn(e),null;t.foundation=n[0].substring(12),t.component=n[1],t.protocol=n[2].toLowerCase(),t.priority=n[3],t.ip=n[4],t.port=n[5],t.type=n[7],t.generation="0";for(var _e87=8;_e87<n.length;_e87+=2)switch(n[_e87]){case"raddr":t["rel-addr"]=n[_e87+1];break;case"rport":t["rel-port"]=n[_e87+1];break;case"generation":t.generation=n[_e87+1];break;case"tcptype":t.tcptype=n[_e87+1];break;default:ir.debug("not translating \\"".concat(n[_e87],"\\" = \\"").concat(n[_e87+1],"\\""));}return t.network="1",t.id=Math.random().toString(36).substr(2,10),t;},candidateFromJingle:function candidateFromJingle(e){var t="a=candidate:";t+=e.getAttribute("foundation"),t+=" ",t+=e.getAttribute("component"),t+=" ";var n=e.getAttribute("protocol");switch(nn.isFirefox()&&"ssltcp"===n.toLowerCase()&&(n="tcp"),t+=n,t+=" ",t+=e.getAttribute("priority"),t+=" ",t+=e.getAttribute("ip"),t+=" ",t+=e.getAttribute("port"),t+=" ",t+="typ",t+=" ".concat(e.getAttribute("type")),t+=" ",e.getAttribute("type")){case"srflx":case"prflx":case"relay":e.getAttribute("rel-addr")&&e.getAttribute("rel-port")&&(t+="raddr",t+=" ",t+=e.getAttribute("rel-addr"),t+=" ",t+="rport",t+=" ",t+=e.getAttribute("rel-port"),t+=" ");}return"tcp"===n.toLowerCase()&&(t+="tcptype",t+=" ",t+=e.getAttribute("tcptype"),t+=" "),t+="generation",t+=" ",t+=e.getAttribute("generation")||"0","".concat(t,"\\r\\n");},parsePrimaryVideoSsrc:function parsePrimaryVideoSsrc(e){var t=e.ssrcs.map(function(e){return e.id;}).filter(function(e,t,n){return n.indexOf(e)===t;}).length,n=e.ssrcGroups&&e.ssrcGroups.length||0;if(t>1&&0===n)return;var i=null;if(1===t)i=e.ssrcs[0].id;else if(2===t){var _t55=e.ssrcGroups.find(function(e){return"FID"===e.semantics;});_t55&&(i=_t55.ssrcs.split(" ")[0]);}else if(t>=3){var _t56=e.ssrcGroups.find(function(e){return"SIM"===e.semantics;});_t56&&(i=_t56.ssrcs.split(" ")[0]);}return i;},generateSsrc:function generateSsrc(){return Gi().randomInt(1,4294967295);},getSsrcAttribute:function getSsrcAttribute(e,t,n){for(var _i40=0;_i40<e.ssrcs.length;++_i40){var _s16=e.ssrcs[_i40];if(_s16.id===t&&_s16.attribute===n)return _s16.value;}},parseGroupSsrcs:function parseGroupSsrcs(e){return e.ssrcs.split(" ").map(function(e){return parseInt(e,10);});},getMedia:function getMedia(e,t){return e.media.find(function(e){return e.type===t;});},getUfrag:function getUfrag(e){var t=e.split("\\n").filter(function(e){return e.startsWith("a=ice-ufrag:");});if(t.length>0)return t[0].substr("a=ice-ufrag:".length);},preferCodec:function preferCodec(e,t){if(!e||!t)return;var n=e.rtp.filter(function(e){return e.codec&&e.codec.toLowerCase()===t.toLowerCase();}).map(function(e){return e.payload;});if(n){var _t57=e.payloads.toString().split(" ").map(function(e){return parseInt(e,10);});var _iterator27=_createForOfIteratorHelper(n.reverse()),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _e88=_step27.value;var _n42=_t57.indexOf(_e88);_t57.splice(_n42,1),_t57.unshift(_e88);}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}e.payloads=_t57.join(" ");}},stripCodec:function stripCodec(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!t)return;var i=[];var s=[];var r=t.toLowerCase()===Xs().H264&&n;var _iterator28=_createForOfIteratorHelper(e.rtp),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _n44=_step28.value;_n44.codec&&_n44.codec.toLowerCase()===t.toLowerCase()&&(r?i.push(_n44.payload):s.push(_n44.payload));}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}if(r&&(s=e.fmtp.filter(function(e){return i.indexOf(e.payload)>-1&&e.config.includes("profile-level-id=64");}).map(function(e){return e.payload;})),s.length>0){var _s17;var _t58=s.map(function(e){return"apt=".concat(e);}),_n43=e.fmtp.filter(function(e){return-1!==_t58.indexOf(e.config);});(_s17=s).push.apply(_s17,_toConsumableArray(_n43.map(function(e){return e.payload;})));var _i41=e.payloads.toString().split(" ").map(Number).filter(function(e){return-1===s.indexOf(e);});0===_i41.length?(e.port=0,e.direction=Zs().INACTIVE,e.payloads="*"):e.payloads=_i41.join(" "),e.rtp=e.rtp.filter(function(e){return-1!==_i41.indexOf(e.payload);}),e.fmtp=e.fmtp.filter(function(e){return-1!==_i41.indexOf(e.payload);}),e.rtcpFb&&(e.rtcpFb=e.rtcpFb.filter(function(e){return-1!==_i41.indexOf(e.payload);}));}}},rr=sr;function or(e){var t=e.split("\\r\\nm=");for(var _e89=1,_n45=t.length;_e89<_n45;_e89++){var _i42="m=".concat(t[_e89]);_e89!==_n45-1&&(_i42+="\\r\\n"),t[_e89]=_i42;}var n="".concat(t.shift(),"\\r\\n");this.media=t,this.raw=n+t.join(""),this.session=n;}function ar(e,t){if(!t)return!1;if(e.length!==t.length)return!1;for(var _n46=0,_i43=e.length;_n46<_i43;_n46++)if(e[_n46]instanceof Array&&t[_n46]instanceof Array){if(!e[_n46].equals(t[_n46]))return!1;}else if(e[_n46]!==t[_n46])return!1;return!0;}function cr(e,t){if(this.mySDP=e,this.otherSDP=t,!e)throw new Error(\'"mySDP" is undefined!\');if(!t)throw new Error(\'"otherSDP" is undefined!\');}or.prototype.failICE=!1,or.prototype.removeTcpCandidates=!1,or.prototype.removeUdpCandidates=!1,or.prototype.getMediaSsrcMap=function(){var _this60=this;var e={};var _loop6=function _loop6(){var n={mediaindex:_t59,mid:rr.parseMID(rr.findLine(_this60.media[_t59],"a=mid:")),ssrcs:{},ssrcGroups:[]};e[_t59]=n,rr.findLines(_this60.media[_t59],"a=ssrc:").forEach(function(e){var t=e.substring(7).split(" ")[0];n.ssrcs[t]||(n.ssrcs[t]={ssrc:t,lines:[]}),n.ssrcs[t].lines.push(e);}),rr.findLines(_this60.media[_t59],"a=ssrc-group:").forEach(function(e){var t=e.indexOf(" "),i=e.substr(0,t).substr(13),s=e.substr(14+i.length).split(" ");s.length&&n.ssrcGroups.push({semantics:i,ssrcs:s});});};for(var _t59=0;_t59<this.media.length;_t59++){_loop6();}return e;},or.prototype.containsSSRC=function(e){var t=this.getMediaSsrcMap();var n=!1;return Object.keys(t).forEach(function(i){n||t[i].ssrcs[e]&&(n=!0);}),n;},or.prototype.toJingle=function(e,t){rr.findLines(this.session,"a=group:").forEach(function(t){var n=t.split(" "),i=n.shift().substr(8);e.c("group",{xmlns:"urn:xmpp:jingle:apps:grouping:0",semantics:i});for(var _t60=0;_t60<n.length;_t60++)e.c("content",{name:n[_t60]}).up();e.up();});for(var _n47=0;_n47<this.media.length;_n47++){var _i44=rr.parseMLine(this.media[_n47].split("\\r\\n")[0]);if("audio"!==_i44.media&&"video"!==_i44.media&&"application"!==_i44.media)continue;var _s18=void 0;var _r11=rr.findLine(this.media[_n47],"a=ssrc:");_s18=!!_r11&&_r11.substring(7).split(" ")[0],e.c("content",{creator:t,name:_i44.media});var _o9=rr.findLine(this.media[_n47],"a=mid:");if(_o9){var _t61=rr.parseMID(_o9);e.attrs({name:_t61});}if("audio"===_i44.media||"video"===_i44.media){e.c("description",{xmlns:"urn:xmpp:jingle:apps:rtp:1",media:_i44.media}),_s18&&e.attrs({ssrc:_s18});for(var _t62=0;_t62<_i44.fmt.length;_t62++){var _s19=rr.findLine(this.media[_n47],"a=rtpmap:".concat(_i44.fmt[_t62]));e.c("payload-type",rr.parseRTPMap(_s19));var _r12=rr.findLine(this.media[_n47],"a=fmtp:".concat(_i44.fmt[_t62]));if(_r12){var _t63=rr.parseFmtp(_r12);for(var _n48=0;_n48<_t63.length;_n48++)e.c("parameter",_t63[_n48]).up();}this.rtcpFbToJingle(_n47,e,_i44.fmt[_t62]),e.up();}if(_s18){var _t64=rr.parseSSRC(this.media[_n47]);var _iterator29=_createForOfIteratorHelper(_t64),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _step29$value=_slicedToArray(_step29.value,2),_n49=_step29$value[0],_i45=_step29$value[1];var _t65=rr.parseSourceNameLine(_i45);e.c("source",{ssrc:_n49,name:Hs.isSourceNameSignalingEnabled()?_t65:void 0,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"});var _s20=rr.parseMSIDAttribute(_i45);_s20&&(e.c("parameter"),e.attrs({name:"msid"}),e.attrs({value:_s20}),e.up()),e.up();}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}rr.findLines(this.media[_n47],"a=ssrc-group:").forEach(function(t){var n=t.indexOf(" "),i=t.substr(0,n).substr(13),s=t.substr(14+i.length).split(" ");s.length&&(e.c("ssrc-group",{semantics:i,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),s.forEach(function(t){return e.c("source",{ssrc:t}).up();}),e.up());});}var _t66=rr.findLines(this.media[_n47],"a=rid:");if(_t66.length&&nn.usesRidsForSimulcast()){var _i46=_t66.map(function(e){return e.split(":")[1];}).map(function(e){return e.split(" ")[0];});_i46.forEach(function(t){e.c("source",{rid:t,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),e.up();}),rr.findLine(this.media[_n47],"a=simulcast:")&&(e.c("rid-group",{semantics:"SIM",xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),_i46.forEach(function(t){e.c("source",{rid:t}).up();}),e.up());}rr.findLine(this.media[_n47],"a=rtcp-mux")&&e.c("rtcp-mux").up(),this.rtcpFbToJingle(_n47,e,"*");var _r13=rr.findLines(this.media[_n47],"a=extmap:");for(var _t67=0;_t67<_r13.length;_t67++){var _n50=rr.parseExtmap(_r13[_t67]);if(e.c("rtp-hdrext",{xmlns:"urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",uri:_n50.uri,id:_n50.value}),_n50.hasOwnProperty("direction"))switch(_n50.direction){case Zs().SENDONLY:e.attrs({senders:"responder"});break;case Zs().RECVONLY:e.attrs({senders:"initiator"});break;case Zs().SENDRECV:e.attrs({senders:"both"});break;case Zs().INACTIVE:e.attrs({senders:"none"});}e.up();}e.up();}this.transportToJingle(_n47,e);var _a5=this.media[_n47];rr.findLine(_a5,"a=".concat(Zs().SENDRECV),this.session)?e.attrs({senders:"both"}):rr.findLine(_a5,"a=".concat(Zs().SENDONLY),this.session)?e.attrs({senders:"initiator"}):rr.findLine(_a5,"a=".concat(Zs().RECVONLY),this.session)?e.attrs({senders:"responder"}):rr.findLine(_a5,"a=".concat(Zs().INACTIVE),this.session)&&e.attrs({senders:"none"}),"0"!==_i44.port||rr.findLine(_a5,"a=bundle-only",this.session)||e.attrs({senders:"rejected"}),e.up();}return e.up(),e;},or.prototype.transportToJingle=function(e,t){var _this61=this;t.c("transport");var n=rr.findLine(this.media[e],"a=sctp-port:",this.session),i=rr.findLine(this.media[e],"a=sctpmap:",this.session);if(n){var _e90=rr.parseSCTPPort(n);t.c("sctpmap",{xmlns:"urn:xmpp:jingle:transports:dtls-sctp:1",number:_e90,protocol:"webrtc-datachannel"}),t.attrs({streams:0}),t.up();}else if(i){var _e91=rr.parseSCTPMap(i);t.c("sctpmap",{xmlns:"urn:xmpp:jingle:transports:dtls-sctp:1",number:_e91[0],protocol:_e91[1]}),_e91.length>2?t.attrs({streams:_e91[2]}):t.attrs({streams:0}),t.up();}rr.findLines(this.media[e],"a=fingerprint:",this.session).forEach(function(n){var i=rr.parseFingerprint(n);i.xmlns="urn:xmpp:jingle:apps:dtls:0",t.c("fingerprint").t(i.fingerprint),delete i.fingerprint;var s=rr.findLine(_this61.media[e],"a=setup:",_this61.session);s&&(i.setup=s.substr(8)),t.attrs(i),t.up();});var s=rr.iceparams(this.media[e],this.session);s&&(s.xmlns="urn:xmpp:jingle:transports:ice-udp:1",t.attrs(s),rr.findLines(this.media[e],"a=candidate:",this.session).forEach(function(e){var n=rr.candidateToJingle(e);_this61.failICE&&(n.ip="1.1.1.1");var i=n&&"string"==typeof n.protocol?n.protocol.toLowerCase():"";_this61.removeTcpCandidates&&("tcp"===i||"ssltcp"===i)||_this61.removeUdpCandidates&&"udp"===i||t.c("candidate",n).up();})),t.up();},or.prototype.rtcpFbToJingle=function(e,t,n){rr.findLines(this.media[e],"a=rtcp-fb:".concat(n)).forEach(function(e){var n=rr.parseRTCPFB(e);"trr-int"===n.type?(t.c("rtcp-fb-trr-int",{xmlns:"urn:xmpp:jingle:apps:rtp:rtcp-fb:0",value:n.params[0]}),t.up()):(t.c("rtcp-fb",{xmlns:"urn:xmpp:jingle:apps:rtp:rtcp-fb:0",type:n.type}),n.params.length>0&&t.attrs({subtype:n.params[0]}),t.up());});},or.prototype.rtcpFbFromJingle=function(e,t){var n="";var i=e.find(\'>rtcp-fb-trr-int[xmlns="urn:xmpp:jingle:apps:rtp:rtcp-fb:0"]\');return i.length&&(n+="a=rtcp-fb:* trr-int ",i.attr("value")?n+=i.attr("value"):n+="0",n+="\\r\\n"),e.find(\'>rtcp-fb[xmlns="urn:xmpp:jingle:apps:rtp:rtcp-fb:0"]\').each(function(e,i){n+="a=rtcp-fb:".concat(t," ").concat(i.getAttribute("type")),i.hasAttribute("subtype")&&(n+=" ".concat(i.getAttribute("subtype"))),n+="\\r\\n";}),n;},or.prototype.fromJingle=function(e){var _this62=this;var t=Date.now();this.raw="v=0\\r\\no=- ".concat(t," 2 IN IP4 0.0.0.0\\r\\ns=-\\r\\nt=0 0\\r\\n");var n=$CC(e).find(\'>group[xmlns="urn:xmpp:jingle:apps:grouping:0"]\');n.length&&n.each(function(e,t){var n=$CC(t).find(">content").map(function(e,t){return t.getAttribute("name");}).get();n.length>0&&(_this62.raw+="a=group:".concat(t.getAttribute("semantics")||t.getAttribute("type")," ").concat(n.join(" "),"\\r\\n"));}),this.session=this.raw,e.find(">content").each(function(e,t){var n=_this62.jingle2media($CC(t));_this62.media.push(n);}),this.raw=this.session+this.media.join("");},or.prototype.jingle2media=function(e){var _this63=this;var t=e.find(">description"),n=e.find(\'>transport[xmlns="urn:xmpp:jingle:transports:ice-udp:1"]\');var i="";var s=n.find(\'>sctpmap[xmlns="urn:xmpp:jingle:transports:dtls-sctp:1"]\'),r={media:t.attr("media"),port:"9"};switch("rejected"===e.attr("senders")&&(r.port="0"),n.find(\'>fingerprint[xmlns="urn:xmpp:jingle:apps:dtls:0"]\').length?r.proto=s.length?"UDP/DTLS/SCTP":"UDP/TLS/RTP/SAVPF":r.proto="UDP/TLS/RTP/SAVPF",s.length?(i+="m=application ".concat(r.port," UDP/DTLS/SCTP webrtc-datachannel\\r\\n"),i+="a=sctp-port:".concat(s.attr("number"),"\\r\\n"),i+="a=max-message-size:262144\\r\\n"):(r.fmt=t.find(">payload-type").map(function(e,t){return t.getAttribute("id");}).get(),i+="".concat(rr.buildMLine(r),"\\r\\n")),i+="c=IN IP4 0.0.0.0\\r\\n",s.length||(i+="a=rtcp:1 IN IP4 0.0.0.0\\r\\n"),n.length&&(n.attr("ufrag")&&(i+="".concat(rr.buildICEUfrag(n.attr("ufrag")),"\\r\\n")),n.attr("pwd")&&(i+="".concat(rr.buildICEPwd(n.attr("pwd")),"\\r\\n")),n.find(\'>fingerprint[xmlns="urn:xmpp:jingle:apps:dtls:0"]\').each(function(e,t){i+="a=fingerprint:".concat(t.getAttribute("hash")),i+=" ".concat($CC(t).text()),i+="\\r\\n",t.hasAttribute("setup")&&(i+="a=setup:".concat(t.getAttribute("setup"),"\\r\\n"));})),n.find(">candidate").each(function(e,t){var n=t.getAttribute("protocol");n="string"==typeof n?n.toLowerCase():"",_this63.removeTcpCandidates&&("tcp"===n||"ssltcp"===n)||_this63.removeUdpCandidates&&"udp"===n||(_this63.failICE&&t.setAttribute("ip","1.1.1.1"),i+=rr.candidateFromJingle(t));}),e.attr("senders")){case"initiator":i+="a=".concat(Zs().SENDONLY,"\\r\\n");break;case"responder":i+="a=".concat(Zs().RECVONLY,"\\r\\n");break;case"none":i+="a=".concat(Zs().INACTIVE,"\\r\\n");break;case"both":i+="a=".concat(Zs().SENDRECV,"\\r\\n");}i+="a=mid:".concat(e.attr("name"),"\\r\\n"),t.find(">rtcp-mux").length&&(i+="a=rtcp-mux\\r\\n"),t.find(">payload-type").each(function(e,t){i+="".concat(rr.buildRTPMap(t),"\\r\\n"),$CC(t).find(">parameter").length&&(i+="a=fmtp:".concat(t.getAttribute("id")," "),i+=$CC(t).find(">parameter").map(function(e,t){var n=t.getAttribute("name");return(n?"".concat(n,"="):"")+t.getAttribute("value");}).get().join("; "),i+="\\r\\n"),i+=_this63.rtcpFbFromJingle($CC(t),t.getAttribute("id"));}),i+=this.rtcpFbFromJingle(t,"*"),t.find(\'>rtp-hdrext[xmlns="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0"]\').each(function(e,t){i+="a=extmap:".concat(t.getAttribute("id")," ").concat(t.getAttribute("uri"),"\\r\\n");}),t.find(\'>ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(e,t){var n=t.getAttribute("semantics"),s=$CC(t).find(">source").map(function(e,t){return t.getAttribute("ssrc");}).get();s.length&&(i+="a=ssrc-group:".concat(n," ").concat(s.join(" "),"\\r\\n"));});var o="",a="";return t.find(\'>source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(e,t){var n=t.getAttribute("ssrc");var i=!0,s="";$CC(t).find(">parameter").each(function(e,t){var r;var o=t.getAttribute("name");var a=t.getAttribute("value");a=rr.filterSpecialChars(a),s+="a=ssrc:".concat(n," ").concat(o),a&&a.length&&(s+=":".concat(a)),s+="\\r\\n",null!==(r=a)&&void 0!==r&&r.includes("mixedmslabel")&&(i=!1);}),i?o+=s:a+=s;}),i+=a+o,i;},cr.prototype.getNewMedia=function(){var e=this.mySDP.getMediaSsrcMap(),t=this.otherSDP.getMediaSsrcMap(),n={};return Object.keys(t).forEach(function(i){var s=e[i],r=t[i];s||!r?(Object.keys(r.ssrcs).forEach(function(e){(-1===Object.keys(s.ssrcs).indexOf(e)||r.ssrcs[e].lines&&s.ssrcs[e].lines&&void 0!==s.ssrcs[e].lines.find(function(e){return-1!==e.indexOf("msid");})!=(void 0!==r.ssrcs[e].lines.find(function(e){return-1!==e.indexOf("msid");})))&&(n[i]||(n[i]={mediaindex:r.mediaindex,mid:r.mid,ssrcs:{},ssrcGroups:[]}),n[i].ssrcs[e]=r.ssrcs[e]);}),r.ssrcGroups.forEach(function(e){var t=!1;for(var _n51=0;_n51<s.ssrcGroups.length;_n51++){var _i47=s.ssrcGroups[_n51];if(e.semantics===_i47.semantics&&ar(e.ssrcs,_i47.ssrcs)){t=!0;break;}}t||(n[i]||(n[i]={mediaindex:r.mediaindex,mid:r.mid,ssrcs:{},ssrcGroups:[]}),n[i].ssrcGroups.push(e));})):n[i]=r;}),n;},cr.prototype.toJingle=function(e){var t=this.getNewMedia();var n=!1;return Object.keys(t).forEach(function(i){n=!0;var s=t[i];e.c("content",{name:s.mid}),e.c("description",{xmlns:"urn:xmpp:jingle:apps:rtp:1",media:s.mid}),Object.keys(s.ssrcs).forEach(function(t){var n=s.ssrcs[t],i=n.lines,r=rr.parseSourceNameLine(i);e.c("source",{xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),e.attrs({name:Hs.isSourceNameSignalingEnabled()?r:void 0,ssrc:n.ssrc});var o=rr.parseMSIDAttribute(i);o&&(e.c("parameter"),e.attrs({name:"msid"}),e.attrs({value:o}),e.up()),e.up();}),s.ssrcGroups.forEach(function(t){t.ssrcs.length&&(e.c("ssrc-group",{semantics:t.semantics,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),t.ssrcs.forEach(function(t){e.c("source",{ssrc:t}).up();}),e.up());}),e.up(),e.up();}),n;};var dr=n(8223),lr=n.n(dr);var hr=(0,g.getLogger)("modules/util/AsyncQueue.js");var ur=/*#__PURE__*/function(){function ur(){_classCallCheck(this,ur);this._queue=lr().queue(this._processQueueTasks.bind(this),1),this._stopped=!1;}_createClass(ur,[{key:"clear",value:function clear(){this._queue.kill();}},{key:"_processQueueTasks",value:function _processQueueTasks(e,t){try{e(t);}catch(e){hr.error("Task failed: ".concat(null==e?void 0:e.stack)),t(e);}}},{key:"push",value:function push(e,t){this._stopped?t&&t(new Error("The queue has been stopped")):this._queue.push(e,t);}},{key:"shutdown",value:function shutdown(){this._stopped=!0;}}]);return ur;}();var pr=n(2593);var mr="pending",fr="active",gr="ended",_r=(0,g.getLogger)("modules/xmpp/JingleSession.js");var vr=/*#__PURE__*/function(_vi7){_inherits(vr,_vi7);var _super15=_createSuper(vr);function vr(e,t,n,i,s,r,o){var _this64;_classCallCheck(this,vr);_this64=_super15.call(this),_this64.sid=e,_this64.localJid=t,_this64.remoteJid=n,_this64.connection=i,_this64.mediaConstraints=s,_this64.pcConfig=r,_this64.isInitiator=o,_this64.usedrip=!0,_this64.dripContainer=[],_this64.room=null,_this64._signalingLayer=null,_this64.state=null,_this64.rtc=null;return _this64;}_createClass(vr,[{key:"initiatorJid",get:function get(){return this.isInitiator?this.localJid:this.remoteJid;}},{key:"responderJid",get:function get(){return this.isInitiator?this.remoteJid:this.localJid;}},{key:"initialize",value:function initialize(e,t,n,i){if(null!==this.state){var _e92="attempt to initiate on session ".concat(this.sid,"\\n                   in state ").concat(this.state);throw _r.error(_e92),new Error(_e92);}this.room=e,this.rtc=t,this._signalingLayer=n,this.state=mr,this.doInitialize(i);}},{key:"doInitialize",value:function doInitialize(e){}},{key:"addIceCandidates",value:function addIceCandidates(e){}},{key:"getState",value:function getState(){return this.state;}},{key:"addSources",value:function addSources(e){}},{key:"removeSources",value:function removeSources(e){}},{key:"terminate",value:function terminate(e,t,n){}},{key:"acceptOffer",value:function acceptOffer(e,t,n){}},{key:"_getInitiatorJid",value:function _getInitiatorJid(){return this.isInitiator?this.localJid:this.remoteJid;}}]);return vr;}(vi);var Sr="media_session.REMOTE_VIDEO_CONSTRAINTS_CHANGED",yr=(0,g.getLogger)("modules/xmpp/JingleSessionPC.js"),Er=1e4;var Cr=/*#__PURE__*/function(_vr){_inherits(Cr,_vr);var _super16=_createSuper(Cr);function Cr(e,t,n,i,s,r,o,a){var _this65;_classCallCheck(this,Cr);_this65=_super16.call(this,e,t,n,i,s,r,a),_this65._bridgeSessionId=null,_this65._cachedOldLocalSdp=void 0,_this65._cachedNewLocalSdp=void 0,_this65._iceCheckingStartedTimestamp=null,_this65._gatheringStartedTimestamp=null,_this65.localRecvMaxFrameHeight=void 0,_this65._localVideoActive=!0,_this65._remoteVideoActive=!0,_this65._gatheringReported=!1,_this65.lasticecandidate=!1,_this65.closed=!1,_this65.isP2P=o,_this65.remoteRecvMaxFrameHeight=void 0,_this65.modificationQueue=new ur(),_this65.wasConnected=!1,_this65.establishmentDuration=void 0,_this65._xmppListeners=[],_this65._xmppListeners.push(i.addEventListener(ds.Events.CONN_STATUS_CHANGED,_this65.onXmppStatusChanged.bind(_assertThisInitialized(_this65)))),_this65._removeSenderVideoConstraintsChangeListener=void 0;return _this65;}_createClass(Cr,[{key:"_assertNotEnded",value:function _assertNotEnded(){return this.state!==gr;}},{key:"doInitialize",value:function doInitialize(e){var _this66=this;var t,n,i;this.failICE=Boolean(e.failICE),this.lasticecandidate=!1,this.options=e,this.isReconnect=!1,this.wasstable=!1,this.webrtcIceUdpDisable=Boolean(e.webrtcIceUdpDisable),this.webrtcIceTcpDisable=Boolean(e.webrtcIceTcpDisable);var s={disableRtx:e.disableRtx};if(e.gatherStats&&(s.maxstats=300),s.capScreenshareBitrate=!1,s.enableInsertableStreams=e.enableInsertableStreams,s.videoQuality=e.videoQuality,s.forceTurnRelay=e.forceTurnRelay,s.audioQuality=e.audioQuality,s.usesUnifiedPlan=this.usesUnifiedPlan=nn.supportsUnifiedPlan()&&(nn.isFirefox()||nn.isWebKitBased()||(nn.isChromiumBased()&&this.isP2P?null===(t=null===(n=e.p2p)||void 0===n?void 0:n.enableUnifiedOnChrome)||void 0===t||t:null===(i=e.enableUnifiedOnChrome)||void 0===i||i)),this.isP2P){s.disableSimulcast=!0;var _t68=this._abtestSuspendVideoEnabled(e);void 0!==_t68&&(s.abtestSuspendVideo=_t68);}else{var r,o;s.disableSimulcast=e.disableSimulcast||e.preferH264&&!e.disableH264||e.videoQuality&&e.videoQuality.preferredCodec===Qs.H264,s.capScreenshareBitrate=s.disableSimulcast||!("number"==typeof(null===(r=e.desktopSharingFrameRate)||void 0===r?void 0:r.max)&&(null===(o=e.desktopSharingFrameRate)||void 0===o?void 0:o.max)>5),jn.analytics.addPermanentProperties({capScreenshareBitrate:s.capScreenshareBitrate});}e.startSilent&&(s.startSilent=!0),this.peerconnection=this.rtc.createPeerConnection(this._signalingLayer,this.pcConfig,this.isP2P,s),this.peerconnection.onicecandidate=function(e){if(!e)return;var t=e.candidate,n=window.performance.now();if(t){null===_this66._gatheringStartedTimestamp&&(_this66._gatheringStartedTimestamp=n);var _e93=t.protocol;if("string"==typeof _e93)if(_e93=_e93.toLowerCase(),"tcp"===_e93||"ssltcp"===_e93){if(_this66.webrtcIceTcpDisable)return;}else if("udp"===_e93&&_this66.webrtcIceUdpDisable)return;}else _this66._gatheringReported||(jn.sendAnalytics(At,{phase:"gathering",value:n-_this66._gatheringStartedTimestamp,p2p:_this66.isP2P,initiator:_this66.isInitiator}),_this66._gatheringReported=!0);_this66.sendIceCandidate(t);},this.peerconnection.onsignalingstatechange=function(){"stable"===_this66.peerconnection.signalingState?_this66.wasstable=!0:"closed"!==_this66.peerconnection.signalingState&&"closed"!==_this66.peerconnection.connectionState||_this66.room.eventEmitter.emit(zn().SUSPEND_DETECTED,_this66);},this.peerconnection.oniceconnectionstatechange=function(){var e=window.performance.now();var t=!1;switch(_this66.isP2P||(_this66.room.connectionTimes["ice.state.".concat(_this66.peerconnection.iceConnectionState)]=e),yr.log("(TIME) ICE ".concat(_this66.peerconnection.iceConnectionState," ").concat(_this66.isP2P?"P2P":"JVB",":\\t"),e),jn.sendAnalytics("ice.state.changed",{p2p:_this66.isP2P,state:_this66.peerconnection.iceConnectionState,signaling_state:_this66.peerconnection.signalingState,reconnect:_this66.isReconnect,value:e}),_this66.room.eventEmitter.emit(zn().ICE_CONNECTION_STATE_CHANGED,_this66,_this66.peerconnection.iceConnectionState),_this66.peerconnection.iceConnectionState){case"checking":_this66._iceCheckingStartedTimestamp=e;break;case"connected":if("stable"===_this66.peerconnection.signalingState){t=!0;var _e94=!_this66.options.enableIceRestart&&_this66.room.supportsRestartByTerminate();(_this66.isReconnect||_e94)&&_this66.room.eventEmitter.emit(zn().CONNECTION_RESTORED,_this66);}if(!_this66.wasConnected&&(_this66.wasstable||t||_this66.usesUnifiedPlan&&_this66.isInitiator&&nn.isChromiumBased())){jn.sendAnalytics(At,{phase:"checking",value:e-_this66._iceCheckingStartedTimestamp,p2p:_this66.isP2P,initiator:_this66.isInitiator});var _t69=Math.min(_this66._iceCheckingStartedTimestamp,_this66._gatheringStartedTimestamp);_this66.establishmentDuration=e-_t69,jn.sendAnalytics(At,{phase:"establishment",value:_this66.establishmentDuration,p2p:_this66.isP2P,initiator:_this66.isInitiator}),_this66.wasConnected=!0,_this66.room.eventEmitter.emit(zn().CONNECTION_ESTABLISHED,_this66);}_this66.isReconnect=!1;break;case"disconnected":_this66.isReconnect=!0,_this66.wasstable&&_this66.room.eventEmitter.emit(zn().CONNECTION_INTERRUPTED,_this66);break;case"failed":_this66.room.eventEmitter.emit(zn().CONNECTION_ICE_FAILED,_this66);}},this.peerconnection.onconnectionstatechange=function(){var e=_this66.peerconnection.iceConnectionState;"failed"===_this66.peerconnection.connectionState&&"disconnected"===e&&_this66.room.eventEmitter.emit(zn().CONNECTION_ICE_FAILED,_this66);},this.peerconnection.onnegotiationneeded=function(){var e=_this66.peerconnection.signalingState,t=_this66.peerconnection.remoteDescription;if(_this66.usesUnifiedPlan&&!_this66.isP2P&&"stable"===e&&t&&"string"==typeof t.sdp){yr.info("".concat(_this66," onnegotiationneeded fired on ").concat(_this66.peerconnection));var _e95=function _e95(e){var t=new or(_this66.peerconnection.localDescription.sdp);_this66._renegotiate().then(function(){return _this66.peerconnection.configureSenderVideoEncodings();}).then(function(){var e=new or(_this66.peerconnection.localDescription.sdp);_this66.notifyMySSRCUpdate(t,e);}).then(function(){return e();},function(t){return e(t);});};_this66.modificationQueue.push(_e95,function(e){e?yr.error("".concat(_this66," onnegotiationneeded error"),e):yr.debug("".concat(_this66," onnegotiationneeded executed - OK"));});}};}},{key:"getRemoteRecvMaxFrameHeight",value:function getRemoteRecvMaxFrameHeight(){if(this.isP2P)return this.remoteRecvMaxFrameHeight;}},{key:"sendIceCandidate",value:function sendIceCandidate(e){var _this67=this;var t=new or(this.peerconnection.localDescription.sdp);if(e&&e.candidate.length&&!this.lasticecandidate){var _n52=rr.iceparams(t.media[e.sdpMLineIndex],t.session),_i48=rr.candidateToJingle(e.candidate);if(!_n52||!_i48){var _e96="failed to get ice && jcand";return dn().callErrorHandler(new Error(_e96)),void yr.error(_e96);}_n52.xmlns="urn:xmpp:jingle:transports:ice-udp:1",this.usedrip?(0===this.dripContainer.length&&setTimeout(function(){0!==_this67.dripContainer.length&&(_this67.sendIceCandidates(_this67.dripContainer),_this67.dripContainer=[]);},150),this.dripContainer.push(e)):this.sendIceCandidates([e]);}else yr.log("".concat(this," sendIceCandidate: last candidate")),this.lasticecandidate=!0;}},{key:"sendIceCandidates",value:function sendIceCandidates(e){var _this68=this;if(!this._assertNotEnded("sendIceCandidates"))return;yr.log("".concat(this," sendIceCandidates ").concat(JSON.stringify(e)));var t=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-info",initiator:this.initiatorJid,sid:this.sid}),n=new or(this.peerconnection.localDescription.sdp);var _loop7=function _loop7(i){var s=e.filter(function(e){return e.sdpMLineIndex===i;}),r=rr.parseMLine(n.media[i].split("\\r\\n")[0]);if(s.length>0){var _e97=rr.iceparams(n.media[i],n.session);_e97.xmlns="urn:xmpp:jingle:transports:ice-udp:1",t.c("content",{creator:_this68.initiatorJid===_this68.localJid?"initiator":"responder",name:s[0].sdpMid?s[0].sdpMid:r.media}).c("transport",_e97);for(var _e98=0;_e98<s.length;_e98++){var _n53=rr.candidateToJingle(s[_e98].candidate);_this68.failICE&&(_n53.ip="1.1.1.1"),t.c("candidate",_n53).up();}var _o10=rr.findLine(n.media[i],"a=fingerprint:",n.session);if(_o10){var _e99=rr.parseFingerprint(_o10);_e99.required=!0,t.c("fingerprint",{xmlns:"urn:xmpp:jingle:apps:dtls:0"}).t(_e99.fingerprint),delete _e99.fingerprint,t.attrs(_e99),t.up();}t.up(),t.up();}};for(var _i49=0;_i49<n.media.length;_i49++){_loop7(_i49);}this.connection.sendIQ(t,null,this.newJingleErrorHandler(t),Er);}},{key:"sendIceFailedNotification",value:function sendIceFailedNotification(){var e=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-info",initiator:this.initiatorJid,sid:this.sid}).c("ice-state",{xmlns:"http://jitsi.org/protocol/focus"}).t("failed").up();this._bridgeSessionId&&e.c("bridge-session",{xmlns:"http://jitsi.org/protocol/focus",id:this._bridgeSessionId}),this.connection.sendIQ2(e,{timeout:65}).catch(this.newJingleErrorHandler(e));}},{key:"addIceCandidates",value:function addIceCandidates(e){var _this69=this;if("closed"===this.peerconnection.signalingState)return void yr.warn("".concat(this," Ignored add ICE candidate when in closed state"));var t=[];e.find(">content>transport>candidate").each(function(e,n){var i=rr.candidateFromJingle(n);i=i.replace("\\r\\n","").replace("a=","");var s=new RTCIceCandidate({sdpMLineIndex:0,sdpMid:"",candidate:i});t.push(s);}),t.length?(yr.debug("".concat(this," Queued add (").concat(t.length,") ICE candidates task")),this.modificationQueue.push(function(e){var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _e100=_step30.value;_this69.peerconnection.addIceCandidate(_e100).then(function(){return yr.debug("".concat(_this69," addIceCandidate ok!"));},function(e){return yr.error("".concat(_this69," addIceCandidate failed!"),e);});}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}e(),yr.debug("".concat(_this69," ICE candidates task finished"));})):yr.error("".concat(this," No ICE candidates to add ?"),e[0]&&e[0].outerHTML);}},{key:"readSsrcInfo",value:function readSsrcInfo(e){var _this70=this;$CC(e).find(\'>description>source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(e,t){var n=Number(t.getAttribute("ssrc"));if(_this70.isP2P)_this70._signalingLayer.setSSRCOwner(n,rt.Strophe.getResourceFromJid(_this70.remoteJid));else{if(Hs.isSourceNameSignalingEnabled()&&t.hasAttribute("name")){var _e101=t.getAttribute("name");_this70._signalingLayer.setTrackSourceName(n,_e101);}$CC(t).find(\'>ssrc-info[xmlns="http://jitsi.org/jitmeet"]\').each(function(e,t){var i=t.getAttribute("owner");var s;i&&i.length&&(isNaN(n)||n<0?yr.warn("".concat(_this70," Invalid SSRC ").concat(n," value received for ").concat(i)):_this70._signalingLayer.setSSRCOwner(n,(s=i,rt.Strophe.getResourceFromJid(s)||s)));});}});}},{key:"generateRecvonlySsrc",value:function generateRecvonlySsrc(){this.peerconnection?this.peerconnection.generateRecvonlySsrc():yr.error("".concat(this," Unable to generate recvonly SSRC - no peerconnection"));}},{key:"getConfiguredVideoCodec",value:function getConfiguredVideoCodec(){return this.peerconnection.getConfiguredVideoCodec();}},{key:"acceptOffer",value:function acceptOffer(e,t,n,i){var _this71=this;this.setOfferAnswerCycle(e,function(){_this71.sendSessionAccept(function(){t(),_this71.room.eventEmitter.emit(zn().SESSION_ACCEPT,_this71);},function(e){n(e),_this71.room.eventEmitter.emit(zn().SESSION_ACCEPT_ERROR,_this71,e);});},n,i);}},{key:"invite",value:function invite(){var _this72=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!this.isInitiator)throw new Error("Trying to invite from the responder session");yr.debug("".concat(this," Queued invite task")),this.modificationQueue.push(function(t){var n=[];var _iterator31=_createForOfIteratorHelper(e),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t70=_step31.value;n.push(_this72.peerconnection.addTrack(_t70,_this72.isInitiator));}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}Promise.all(n).then(function(){return _this72.peerconnection.createOffer(_this72.mediaConstraints);}).then(function(e){return _this72.peerconnection.setLocalDescription(e);}).then(function(){_this72.sendSessionInitiate(_this72.peerconnection.localDescription.sdp);}).then(function(){return t();},function(e){return t(e);});},function(e){e?yr.error("".concat(_this72," invite error"),e):yr.debug("".concat(_this72," invite executed - OK"));});}},{key:"sendSessionInitiate",value:function sendSessionInitiate(e){var _this73=this;var t=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-initiate",initiator:this.initiatorJid,sid:this.sid});new or(e).toJingle(t,this.isInitiator?"initiator":"responder"),t=t.tree(),yr.debug("".concat(this," Session-initiate: "),t),this.connection.sendIQ(t,function(){yr.info("".concat(_this73," Got RESULT for \\"session-initiate\\""));},function(e){yr.error("".concat(_this73," \\"session-initiate\\" error"),e);},Er);}},{key:"setAnswer",value:function setAnswer(e){var _this74=this;if(!this.isInitiator)throw new Error("Trying to set an answer on the responder session");this.setOfferAnswerCycle(e,function(){if(yr.info("".concat(_this74," setAnswer - succeeded")),_this74.usesUnifiedPlan&&nn.isChromiumBased()){var _e102=function _e102(e){var t=_this74.peerconnection.remoteDescription.sdp,n=new RTCSessionDescription({type:"offer",sdp:t});return _this74._responderRenegotiate(n).then(function(){return e();},function(t){return e(t);});};yr.debug("".concat(_this74," Queued responderRenegotiate task")),_this74.modificationQueue.push(_e102,function(e){e?yr.error("".concat(_this74," failed to renegotiate a decoder for muted endpoint ").concat(e)):yr.debug("".concat(_this74," renegotiate a decoder for muted endpoint"));});}},function(e){yr.error("".concat(_this74," setAnswer failed: "),e);});}},{key:"setOfferAnswerCycle",value:function setOfferAnswerCycle(e,t,n){var _this75=this;var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];yr.debug("".concat(this," Queued setOfferAnswerCycle task")),this.modificationQueue.push(function(t){var n=[];var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _e104=_step32.value;n.push(_this75.peerconnection.addTrack(_e104,_this75.isInitiator));}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}var s=_this75._processNewJingleOfferIq(e),r=_this75.peerconnection.localDescription.sdp,o=$CC(e).find(\'>bridge-session[xmlns="http://jitsi.org/protocol/focus"]\').attr("id");o!==_this75._bridgeSessionId&&(_this75._bridgeSessionId=o),Promise.all(n).then(function(){return _this75._renegotiate(s.raw);}).then(function(){if(_this75.state===mr&&(_this75.state=fr,!_this75.isP2P||_this75._localVideoActive&&!_this75.localRecvMaxFrameHeight||_this75.sendContentModify()),r){var _e103=new or(_this75.peerconnection.localDescription.sdp);_this75.notifyMySSRCUpdate(new or(r),_e103);}}).then(function(){return t();},function(e){return t(e);});},function(e){e?(yr.error("".concat(_this75," setOfferAnswerCycle task failed: ").concat(e)),n(e)):(yr.debug("".concat(_this75," setOfferAnswerCycle task done")),t());});}},{key:"setVideoCodecs",value:function setVideoCodecs(){var _this76=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n=this.peerconnection.getConfiguredVideoCodec();if(this._assertNotEnded()&&e!==n){yr.info("".concat(this," Switching video codec from ").concat(n," to ").concat(e)),this.peerconnection.setVideoCodecs(e,t);var _i50=function _i50(e){_this76._renegotiate().then(function(){return yr.debug("".concat(_this76," setVideoCodecs task is done")),e();},function(t){return yr.error("".concat(_this76," setVideoCodecs task failed: ").concat(t)),e(t);});};yr.debug("".concat(this," Queued setVideoCodecs task")),this.modificationQueue.push(_i50);}}},{key:"replaceTransport",value:function replaceTransport(e,t,n){var _this77=this;if(this.options.enableForcedReload){var _e105=new or(this.peerconnection.localDescription.sdp);return this.sendTransportAccept(_e105,t,n),void this.room.eventEmitter.emit(zn().CONNECTION_RESTARTED,this);}this.room.eventEmitter.emit(zn().ICE_RESTARTING,this);var i=e.clone();e.find(">content[name=\'data\']").attr("senders","rejected"),e.find(">content>description>source").remove(),e.find(">content>description>ssrc-group").remove();var s=e.find(">content>transport>fingerprint");s.attr("hash","sha-1"),s.text("00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"),this.setOfferAnswerCycle(e,function(){_this77.setOfferAnswerCycle(i,function(){var e=new or(_this77.peerconnection.localDescription.sdp);_this77.sendTransportAccept(e,t,n),_this77.room.eventEmitter.emit(zn().ICE_RESTART_SUCCESS,_this77,i);},n);},n);}},{key:"sendSessionAccept",value:function sendSessionAccept(e,t){var _this78=this;var n=new or(this.peerconnection.localDescription.sdp),i=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-accept",initiator:this.initiatorJid,responder:this.responderJid,sid:this.sid});this.webrtcIceTcpDisable&&(n.removeTcpCandidates=!0),this.webrtcIceUdpDisable&&(n.removeUdpCandidates=!0),this.failICE&&(n.failICE=!0),n.toJingle(i,this.initiatorJid===this.localJid?"initiator":"responder"),yr.info("".concat(this," Sending session-accept")),yr.debug(i.tree()),this.connection.sendIQ(i,e,this.newJingleErrorHandler(i,function(e){t(e),_this78.room.eventEmitter.emit(zn().SESSION_ACCEPT_TIMEOUT,_this78);}),Er);}},{key:"sendContentModify",value:function sendContentModify(){var e=this.localRecvMaxFrameHeight,t=this._localVideoActive?"both":"none";var n=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"content-modify",initiator:this.initiatorJid,sid:this.sid}).c("content",{name:"video",senders:t});void 0!==e&&(n=n.c("max-frame-height",{xmlns:"http://jitsi.org/jitmeet/video"}).t(e)),yr.info("".concat(this," sending content-modify, video senders: ").concat(t,", max frame height: ").concat(e)),yr.debug(n.tree()),this.connection.sendIQ(n,null,this.newJingleErrorHandler(n),Er);}},{key:"setReceiverVideoConstraint",value:function setReceiverVideoConstraint(e){yr.info("".concat(this," setReceiverVideoConstraint - max frame height: ").concat(e)),this.localRecvMaxFrameHeight=e,this.isP2P?this.state===fr&&this.sendContentModify():this.rtc.setReceiverVideoConstraint(e);}},{key:"sendTransportAccept",value:function sendTransportAccept(e,t,n){var _this79=this;var i=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-accept",initiator:this.initiatorJid,sid:this.sid});e.media.forEach(function(t,n){var s=rr.parseMLine(t.split("\\r\\n")[0]);i.c("content",{creator:_this79.initiatorJid===_this79.localJid?"initiator":"responder",name:s.media}),e.transportToJingle(n,i),i.up();}),yr.info("".concat(this," Sending transport-accept")),yr.debug(i.tree()),this.connection.sendIQ(i,t,this.newJingleErrorHandler(i,n),Er);}},{key:"sendTransportReject",value:function sendTransportReject(e,t){var n=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-reject",initiator:this.initiatorJid,sid:this.sid});yr.info("".concat(this," Sending \'transport-reject\'")),yr.debug(n.tree()),this.connection.sendIQ(n,e,this.newJingleErrorHandler(n,t),Er);}},{key:"setSenderVideoConstraint",value:function setSenderVideoConstraint(e){if(this._assertNotEnded()){if(yr.info("".concat(this," setSenderVideoConstraint: ").concat(e)),!this.isP2P&&nn.isReactNative()&&void 0!==e){var _t71=e>0;return this.setMediaTransferActive(!0,_t71);}return void 0===e?this.peerconnection.configureSenderVideoEncodings():this.peerconnection.setSenderVideoConstraints(e);}return Promise.resolve();}},{key:"terminate",value:function terminate(e,t,n){if(this.state!==gr){if(!n||Boolean(n.sendSessionTerminate)){var _i51=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-terminate",initiator:this.initiatorJid,sid:this.sid}).c("reason").c(n&&n.reason||"success").up();n&&n.reasonDescription?_i51.c("text").t(n.reasonDescription).up().up():_i51.up(),this._bridgeSessionId&&_i51.c("bridge-session",{xmlns:"http://jitsi.org/protocol/focus",id:this._bridgeSessionId,restart:n&&!0===n.requestRestart}).up(),yr.info("".concat(this," Sending session-terminate")),yr.debug(_i51.tree()),this.connection.sendIQ(_i51,e,this.newJingleErrorHandler(_i51,t),Er);}else yr.info("".concat(this," Skipped sending session-terminate"));this.connection.jingle.terminate(this.sid);}}},{key:"onTerminated",value:function onTerminated(e,t){yr.info("".concat(this," Session terminated"),e,t),this._xmppListeners.forEach(function(e){return e();}),this._xmppListeners=[],this._removeSenderVideoConstraintsChangeListener&&this._removeSenderVideoConstraintsChangeListener(),this.close();}},{key:"onXmppStatusChanged",value:function onXmppStatusChanged(e){e===ds.Status.CONNECTED&&this._cachedOldLocalSdp&&(yr.info("".concat(this," Sending SSRC update on reconnect")),this.notifyMySSRCUpdate(this._cachedOldLocalSdp,this._cachedNewLocalSdp));}},{key:"_parseSsrcInfoFromSourceAdd",value:function _parseSsrcInfoFromSourceAdd(e,t){var n=[],i=this;return $CC(e).each(function(e,s){var r=$CC(s).attr("name");var o="";$CC(s).find(\'ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(){var e=this.getAttribute("semantics"),t=$CC(this).find(">source").map(function(){return this.getAttribute("ssrc");}).get();t.length&&(o+="a=ssrc-group:".concat(e," ").concat(t.join(" "),"\\r\\n"));}),$CC(s).find(\'source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(){var e=$CC(this).attr("ssrc");t.containsSSRC(e)?(!i.usesUnifiedPlan||!i.isP2P)&&yr.warn("".concat(i," Source-add request for existing SSRC: ").concat(e)):$CC(this).find(">parameter").each(function(){o+="a=ssrc:".concat(e," ").concat($CC(this).attr("name")),$CC(this).attr("value")&&$CC(this).attr("value").length&&(o+=":".concat($CC(this).attr("value"))),o+="\\r\\n";});}),t.media.forEach(function(e,t){rr.findLine(e,"a=mid:".concat(r))&&(n[t]||(n[t]=""),n[t]+=o);});}),n;}},{key:"addRemoteStream",value:function addRemoteStream(e){this._addOrRemoveRemoteStream(!0,e);}},{key:"removeRemoteStream",value:function removeRemoteStream(e){this._addOrRemoveRemoteStream(!1,e);}},{key:"removeRemoteStreamsOnLeave",value:function removeRemoteStreamsOnLeave(e){var _this80=this;yr.debug("".concat(this," Queued removeRemoteStreamsOnLeave task for participant ").concat(e)),this.modificationQueue.push(function(t){var n=_this80.peerconnection.getRemoteSourceInfoByParticipant(e);if(n.length){_this80.peerconnection.removeRemoteTracks(e);var _i52=new or(_this80.peerconnection.localDescription.sdp),_s21=_this80._processRemoteRemoveSource(n);_this80._renegotiate(_s21.raw).then(function(){var e=new or(_this80.peerconnection.localDescription.sdp);_this80.notifyMySSRCUpdate(_i52,e),t();}).catch(function(e){return t(e);});}else t();},function(e){e?yr.error("".concat(_this80," removeRemoteStreamsOnLeave error:"),e):yr.info("".concat(_this80," removeRemoteStreamsOnLeave done!"));});}},{key:"_addOrRemoveRemoteStream",value:function _addOrRemoveRemoteStream(e,t){var _this81=this;var n=e?"addRemoteStream":"removeRemoteStream";e&&this.readSsrcInfo(t),yr.debug("".concat(this," Queued ").concat(n," task")),this.modificationQueue.push(function(i){if(!_this81.peerconnection.localDescription||!_this81.peerconnection.localDescription.sdp){var _e106="".concat(n," - localDescription not ready yet");return yr.error(_e106),void i(_e106);}yr.log("".concat(_this81," Processing ").concat(n));var s=new or(_this81.peerconnection.localDescription.sdp),r=new or(_this81.peerconnection.remoteDescription.sdp),o=e?_this81._parseSsrcInfoFromSourceAdd(t,r):_this81._parseSsrcInfoFromSourceRemove(t,r),a=e?_this81._processRemoteAddSource(o):_this81._processRemoteRemoveSource(o),c=new RTCSessionDescription({type:"offer",sdp:a.raw});(e&&_this81.usesUnifiedPlan&&_this81.isP2P&&nn.isChromiumBased()?_this81._responderRenegotiate(c):_this81._renegotiate(a.raw)).then(function(){var e=new or(_this81.peerconnection.localDescription.sdp);yr.log("".concat(_this81," ").concat(n," - OK")),_this81.notifyMySSRCUpdate(s,e),i();},function(e){yr.error("".concat(_this81," ").concat(n," failed:"),e),i(e);});});}},{key:"_processNewJingleOfferIq",value:function _processNewJingleOfferIq(e){var t=new or("");return this.webrtcIceTcpDisable&&(t.removeTcpCandidates=!0),this.webrtcIceUdpDisable&&(t.removeUdpCandidates=!0),this.failICE&&(t.failICE=!0),t.fromJingle(e),this.readSsrcInfo($CC(e).find(">content")),t;}},{key:"_processRemoteRemoveSource",value:function _processRemoteRemoveSource(e){var _this82=this;var t=this.usesUnifiedPlan?new or(this.peerconnection.peerconnection.remoteDescription.sdp):new or(this.peerconnection.remoteDescription.sdp);return e.forEach(function(e,n){(e=e.split("\\r\\n")).pop(),_this82.usesUnifiedPlan?e.forEach(function(e){var n=t.media.findIndex(function(t){return t.includes(e);});if(n>-1){var i;var _r14=null===(i=rr.parseMLine(t.media[n].split("\\r\\n")[0]))||void 0===i?void 0:i.media;if(_this82.isP2P){var _e107=_this82.peerconnection.getDesiredMediaDirection(_r14,!1);[Zs().SENDRECV,Zs().SENDONLY].forEach(function(i){t.media[n]=t.media[n].replace("a=".concat(i),"a=".concat(_e107));});}else{var s;var _i53=null===(s=rr.parseMLine(t.media[n].split("\\r\\n")[0]))||void 0===s?void 0:s.port;t.media[n]=t.media[n].replace("".concat(e,"\\r\\n"),""),t.media[n]=t.media[n].replace("m=".concat(_r14," ").concat(_i53),"m=".concat(_r14," 0"));}}}):e.forEach(function(e){t.media[n]=t.media[n].replace("".concat(e,"\\r\\n"),"");});}),t.raw=t.session+t.media.join(""),t;}},{key:"_processRemoteAddSource",value:function _processRemoteAddSource(e){var _this83=this;var t=new or(this.peerconnection.remoteDescription.sdp);return e.forEach(function(e,n){if(t.media[n]+=e,_this83.isP2P&&_this83.usesUnifiedPlan){var i;var _e108=null===(i=rr.parseMLine(t.media[n].split("\\r\\n")[0]))||void 0===i?void 0:i.media,_s22=_this83.peerconnection.getDesiredMediaDirection(_e108,!0);[Zs().RECVONLY,Zs().INACTIVE].forEach(function(e){t.media[n]=t.media[n].replace("a=".concat(e),"a=".concat(_s22));});}}),t.raw=t.session+t.media.join(""),t;}},{key:"_renegotiate",value:function _renegotiate(e){if("closed"===this.peerconnection.signalingState){var _e109=new Error("Attempted to renegotiate in state closed");return this.room.eventEmitter.emit(zn().RENEGOTIATION_FAILED,_e109,this),Promise.reject(_e109);}var t=e||this.peerconnection.remoteDescription.sdp;if(!t){var _e110=new Error("Can not renegotiate without remote description, current state: ".concat(this.state));return this.room.eventEmitter.emit(zn().RENEGOTIATION_FAILED,_e110,this),Promise.reject(_e110);}var n=new RTCSessionDescription({type:this.isInitiator?"answer":"offer",sdp:t});return this.isInitiator?this._initiatorRenegotiate(n):this._responderRenegotiate(n);}},{key:"_responderRenegotiate",value:function _responderRenegotiate(e){var _this84=this;return yr.debug("".concat(this," Renegotiate: setting remote description")),this.peerconnection.setRemoteDescription(e).then(function(){return yr.debug("".concat(_this84," Renegotiate: creating answer")),_this84.peerconnection.createAnswer(_this84.mediaConstraints).then(function(e){return yr.debug("".concat(_this84," Renegotiate: setting local description")),_this84.peerconnection.setLocalDescription(e);});});}},{key:"_initiatorRenegotiate",value:function _initiatorRenegotiate(e){var _this85=this;return yr.debug("".concat(this," Renegotiate: creating offer")),this.peerconnection.createOffer(this.mediaConstraints).then(function(t){return yr.debug("".concat(_this85," Renegotiate: setting local description")),_this85.peerconnection.setLocalDescription(t).then(function(){return yr.debug("".concat(_this85," Renegotiate: setting remote description")),_this85.peerconnection.setRemoteDescription(e);});});}},{key:"replaceTrack",value:function replaceTrack(e,t){var _this86=this;var n=function n(_n54){yr.debug("".concat(_this86," replaceTrack worker started. oldTrack = ").concat(e,", newTrack = ").concat(t));var i=_this86.peerconnection.localDescription.sdp;_this86.usesUnifiedPlan||(_this86.peerconnection.options.capScreenshareBitrate&&e&&t&&t.isVideoTrack()&&_this86.peerconnection.clearRecvonlySsrc(),!e&&t&&t.isVideoTrack()?_this86.peerconnection.clearRecvonlySsrc():e&&e.isVideoTrack()&&!t&&(_this86.peerconnection.clearRecvonlySsrc(),_this86.peerconnection.generateRecvonlySsrc())),_this86.peerconnection.replaceTrack(e,t).then(function(n){var s=Promise.resolve();return yr.debug("".concat(_this86," TPC.replaceTrack finished. shouldRenegotiate = ").concat(n,", JingleSessionState = ").concat(_this86.state)),n&&(e||t)&&_this86.state===fr&&(s=_this86._renegotiate().then(function(){var e=new or(_this86.peerconnection.localDescription.sdp);_this86.notifyMySSRCUpdate(new or(i),e);})),s.then(function(){if(null!=t&&t.isVideoTrack())return yr.debug("".concat(_this86," replaceTrack worker: configuring video stream")),_this86.peerconnection.configureSenderVideoEncodings();});}).then(function(){return _n54();},function(e){return _n54(e);});};return new Promise(function(i,s){yr.debug("".concat(_this86," Queued replaceTrack task. Old track = ").concat(e,", new track = ").concat(t)),_this86.modificationQueue.push(n,function(e){e?(yr.error("".concat(_this86," Replace track error:"),e),s(e)):(yr.info("".concat(_this86,"  Replace track done!")),i());});});}},{key:"_parseSsrcInfoFromSourceRemove",value:function _parseSsrcInfoFromSourceRemove(e,t){var n=[];return $CC(e).each(function(e,i){var s=$CC(i).attr("name");var r="";$CC(i).find(\'ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(){var e=this.getAttribute("semantics"),t=$CC(this).find(">source").map(function(){return this.getAttribute("ssrc");}).get();t.length&&(r+="a=ssrc-group:".concat(e," ").concat(t.join(" "),"\\r\\n"));});var o=[];$CC(i).find(\'source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]\').each(function(){var e=$CC(this).attr("ssrc");o.push(e);}),t.media.forEach(function(e,t){rr.findLine(e,"a=mid:".concat(s))&&(n[t]||(n[t]=""),o.forEach(function(i){var s=rr.findLines(e,"a=ssrc:".concat(i));s.length&&(n[t]+="".concat(s.join("\\r\\n"),"\\r\\n"));}),n[t]+=r);});}),n;}},{key:"_verifyNoSSRCChanged",value:function _verifyNoSSRCChanged(e,t){var n=new or(this.peerconnection.localDescription.sdp);var i=new cr(t,n);var s=i.getNewMedia();if(Object.keys(s).length)return yr.error("".concat(this," - some SSRC were added on ").concat(e),s),!1;i=new cr(n,t);var r=i.getNewMedia();return!Object.keys(r).length||(yr.error("".concat(this," - some SSRCs were removed on ").concat(e),r),!1);}},{key:"addTrackAsUnmute",value:function addTrackAsUnmute(e){var _this87=this;return this._addRemoveTrackAsMuteUnmute(!1,e).then(function(){if(e.isVideoTrack())return _this87.peerconnection.configureSenderVideoEncodings();});}},{key:"removeTrackAsMute",value:function removeTrackAsMute(e){return this._addRemoveTrackAsMuteUnmute(!0,e);}},{key:"_addRemoveTrackAsMuteUnmute",value:function _addRemoveTrackAsMuteUnmute(e,t){var _this88=this;if(!t)return Promise.reject(\'invalid "track" argument value\');var n=e?"removeTrackMute":"addTrackUnmute",i=function i(_i54){var s=_this88.peerconnection;if(!s)return void _i54("Error:  tried ".concat(n," track with no active peerconnection"));var r=s.localDescription.sdp;(e?s.removeTrackMute(t):s.addTrackUnmute(t)).then(function(e){e&&r&&s.remoteDescription.sdp?_this88._renegotiate().then(function(){!_this88.usesUnifiedPlan&&_this88._verifyNoSSRCChanged(n,new or(r));var e=s.localDescription.sdp;_this88.notifyMySSRCUpdate(new or(r),new or(e)),_i54();}):_i54();},_i54);};return yr.debug("".concat(this," Queued ").concat(n," task")),new Promise(function(e,t){_this88.modificationQueue.push(i,function(i){i?(yr.error("".concat(_this88," ").concat(n," failed")),t(i)):(yr.debug("".concat(_this88," ").concat(n," done")),e());});});}},{key:"setMediaTransferActive",value:function setMediaTransferActive(e,t){var _this89=this;if(!this.peerconnection)return Promise.reject(\'Can not modify transfer active state, before "initialize" is called\');var n=e?"audio active":"audio inactive",i=t?"video active":"video inactive";yr.info("".concat(this," Queued make ").concat(i,", ").concat(n," task"));var s=function s(n){var i=_this89.state===fr,s=_this89.peerconnection.setAudioTransferActive(e);_this89._localVideoActive!==t&&(_this89._localVideoActive=t,_this89.isP2P&&i&&_this89.sendContentModify());var r=_this89.peerconnection.setVideoTransferActive(_this89._localVideoActive&&_this89._remoteVideoActive);i&&(s||r)?_this89._renegotiate().then(n,n):n();};return new Promise(function(e,t){_this89.modificationQueue.push(s,function(s){s?(yr.error("".concat(_this89," Make ").concat(i,", ").concat(n," task failed!")),t(s)):(yr.debug("".concat(_this89," Make ").concat(i,", ").concat(n," task done!")),e());});});}},{key:"modifyContents",value:function modifyContents(e){var _this90=this;var t=Cr.parseVideoSenders(e),n=Cr.parseMaxFrameHeight(e);n&&(yr.info("".concat(this," received remote max frame height: ").concat(n)),this.remoteRecvMaxFrameHeight=n,this.eventEmitter.emit(Sr,this)),null!==t?(yr.debug("".concat(this," queued \\"content-modify\\" task(video senders=\\"").concat(t,"\\")")),this.modificationQueue.push(function(e){_this90._assertNotEnded("content-modify")&&_this90._modifyRemoteVideoActive(t)?_this90._renegotiate().then(e,e):e();},function(e){e?yr.error("".concat(_this90," \\"content-modify\\" failed"),e):yr.debug("".concat(_this90," \\"content-modify\\" task(video senders=\\"").concat(t,"\\") done"));})):yr.error("".concat(this," - failed to parse video \\"senders\\" attribute in\\"content-modify\\" action"));}},{key:"_modifyRemoteVideoActive",value:function _modifyRemoteVideoActive(e){var t="both"===e||"initiator"===e&&this.isInitiator||"responder"===e&&!this.isInitiator;return t!==this._remoteVideoActive&&(yr.debug("".concat(this," new remote video active: ").concat(t)),this._remoteVideoActive=t),this.peerconnection.setVideoTransferActive(this._localVideoActive&&this._remoteVideoActive);}},{key:"notifyMySSRCUpdate",value:function notifyMySSRCUpdate(e,t){var _this91=this;if(this.state!==fr)return void yr.warn("".concat(this," Skipping SSRC update in \'").concat(this.state," \' state."));if(!this.connection.connected)return this._cachedOldLocalSdp||(this._cachedOldLocalSdp=e),this._cachedNewLocalSdp=t,void yr.warn("".concat(this," Not sending SSRC update while the signaling is disconnected"));this._cachedOldLocalSdp=void 0,this._cachedNewLocalSdp=void 0;var n=function n(e){var t=e.getNewMedia();var n=[],i=null;return Object.keys(t).forEach(function(e){var s=Object.keys(t[e].ssrcs);i=t[e].mid,null!=s&&s.length&&(n=n.concat(s));}),{mediaType:i,ssrcs:n};};var i=new cr(t,e);var s=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"source-remove",initiator:this.initiatorJid,sid:this.sid}),r=i.toJingle(s),o={};if(r){var _e111=n(i);yr.info("".concat(this," Sending source-remove for ").concat(_e111.mediaType," ssrcs=").concat(_e111.ssrcs)),this.connection.sendIQ(s,function(){_this91.room.eventEmitter.emit(zn().SOURCE_REMOVE,_this91,o);},this.newJingleErrorHandler(s,function(e){_this91.room.eventEmitter.emit(zn().SOURCE_REMOVE_ERROR,_this91,e,o);}),Er);}i=new cr(e,t);var a=(0,rt.$iq)({to:this.remoteJid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"source-add",initiator:this.initiatorJid,sid:this.sid});if(i.toJingle(a)){var _e112=n(i);yr.info("".concat(this," Sending source-add for ").concat(_e112.mediaType," ssrcs=").concat(_e112.ssrcs)),this.connection.sendIQ(a,function(){_this91.room.eventEmitter.emit(zn().SOURCE_ADD,_this91,o);},this.newJingleErrorHandler(a,function(t){_this91.room.eventEmitter.emit(zn().SOURCE_ADD_ERROR,_this91,t,_e112.mediaType,o);}),Er);}}},{key:"newJingleErrorHandler",value:function newJingleErrorHandler(e,t){var _this92=this;return function(e){var n={},i=$CC(e).find("error");if(i.length){n.code=i.attr("code");var _t72=$CC(e).find("error :first");_t72.length&&(n.reason=_t72[0].tagName);var _s23=i.find(">text");_s23.length&&(n.msg=_s23.text());}e||(n.reason="timeout"),n.session=_this92.toString(),t?t(n):_this92.state===gr&&"item-not-found"===n.reason?yr.debug("".concat(_this92," Jingle error: ").concat(JSON.stringify(n))):dn().callErrorHandler(new Error("Jingle error: ".concat(JSON.stringify(n))));};}},{key:"getIceConnectionState",value:function getIceConnectionState(){return this.peerconnection.getConnectionState();}},{key:"close",value:function close(){var _this93=this;this.state=gr,this.establishmentDuration=void 0,this.peerconnection&&(this.peerconnection.onicecandidate=null,this.peerconnection.oniceconnectionstatechange=null,this.peerconnection.onnegotiationneeded=null,this.peerconnection.onsignalingstatechange=null),yr.debug("".concat(this," Clearing modificationQueue")),this.modificationQueue.clear(),yr.debug("".concat(this," Queued PC close task")),this.modificationQueue.push(function(e){_this93.peerconnection&&_this93.peerconnection.close(),e(),yr.debug("".concat(_this93," PC close task done!"));}),yr.debug("".concat(this," Shutdown modificationQueue!")),this.modificationQueue.shutdown();}},{key:"toString",value:function toString(){return"JingleSessionPC[session=".concat(this.isP2P?"P2P":"JVB",",initiator=").concat(this.isInitiator,",sid=").concat(this.sid,"]");}},{key:"_abtestSuspendVideoEnabled",value:function _abtestSuspendVideoEnabled(e){var t=e.abTesting;if(!t||!t.enableSuspendVideoTest)return;var n=this._getInitiatorJid();return(0,pr.integerHash)(n)%2==0;}}],[{key:"parseVideoSenders",value:function parseVideoSenders(e){var t=e.find(\'>content[name="video"]\');if(t.length){var _e113=t[0].getAttribute("senders");if("both"===_e113||"initiator"===_e113||"responder"===_e113||"none"===_e113)return _e113;}return null;}},{key:"parseMaxFrameHeight",value:function parseMaxFrameHeight(e){var t=e.find(\'>content[name="video"]>max-frame-height\');return t.length?Number(t.text()):null;}}]);return Cr;}(vr);var br=(0,g.getLogger)("modules/xmpp/strophe.jingle.js");function Tr(e){var t=$CC(e).find(">candidate"),n=[];return t.each(function(e,t){var i=t.attributes,s=[];for(var _e114=0;_e114<i.length;_e114++){var _t73=i[_e114];s.push("".concat(_t73.name,": ").concat(_t73.value));}n.push(s.join(" "));}),n;}var Rr=/*#__PURE__*/function(_ss2){_inherits(Rr,_ss2);var _super17=_createSuper(Rr);function Rr(e,t,n){var _this94;_classCallCheck(this,Rr);_this94=_super17.call(this),_this94.xmpp=e,_this94.eventEmitter=t,_this94.sessions={},_this94.jvbIceConfig=n.jvb,_this94.p2pIceConfig=n.p2p,_this94.mediaConstraints={offerToReceiveAudio:!0,offerToReceiveVideo:!0};return _this94;}_createClass(Rr,[{key:"init",value:function init(e){_get(_getPrototypeOf(Rr.prototype),"init",this).call(this,e),this.connection.addHandler(this.onJingle.bind(this),"urn:xmpp:jingle:1","iq","set",null,null);}},{key:"onJingle",value:function onJingle(e){var t=$CC(e).find("jingle").attr("sid"),n=$CC(e).find("jingle").attr("action"),i=e.getAttribute("from"),s=(0,rt.$iq)({type:"result",to:i,id:e.getAttribute("id")});var r=this.sessions[t];if("session-initiate"!==n){if(!r)return s.attrs({type:"error"}),s.c("error",{type:"cancel"}).c("item-not-found",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up().c("unknown-session",{xmlns:"urn:xmpp:jingle:errors:1"}),br.warn("invalid session id: ".concat(t)),br.debug(e),this.connection.send(s),!0;if(i!==r.remoteJid)return br.warn("jid mismatch for session id",t,r.remoteJid,e),s.attrs({type:"error"}),s.c("error",{type:"cancel"}).c("item-not-found",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up().c("unknown-session",{xmlns:"urn:xmpp:jingle:errors:1"}),this.connection.send(s),!0;}else if(void 0!==r)return s.attrs({type:"error"}),s.c("error",{type:"cancel"}).c("service-unavailable",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up(),br.warn("duplicate session id",t,e),this.connection.send(s),!0;var o=window.performance.now(),a="focus"!==rt.Strophe.getResourceFromJid(i),c=$CC(e).find("jingle>json-message");if(null!=c&&c.length){var d;var _t74;br.info("Found a JSON-encoded element in ".concat(n,", translating to standard Jingle."));for(var _n55=0;_n55<c.length;_n55++)_t74=Ws(e,c[_n55]);if(null!==(d=_t74)&&void 0!==d&&d.size){var _e115=[];var _iterator33=_createForOfIteratorHelper(_t74.keys()),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _n56=_step33.value;_e115.push("".concat(_n56,":[").concat(_t74.get(_n56),"]"));}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}br.debug("Received ".concat(n," from ").concat(i," with sources=").concat(_e115.join(", ")));}}switch(n){case"session-initiate":{br.log("(TIME) received session-initiate:\\t",o);var _t75=$CC(e).find("jingle>startmuted");if(a&&br.debug("Received ".concat(n," from ").concat(i)),null!=_t75&&_t75.length){var _e116=_t75.attr(Rn),_n57=_t75.attr(wn);this.eventEmitter.emit(zn().START_MUTED_FROM_FOCUS,"true"===_e116,"true"===_n57);}var _s24=a?this.p2pIceConfig:this.jvbIceConfig;r=new Cr($CC(e).find("jingle").attr("sid"),$CC(e).attr("to"),i,this.connection,this.mediaConstraints,JSON.parse(JSON.stringify(_s24)),a,!1),this.sessions[r.sid]=r,this.eventEmitter.emit(zn().CALL_INCOMING,r,$CC(e).find(">jingle"),o);break;}case"session-accept":{var _t76=[],_s25=$CC(e).find("jingle>content");var _iterator34=_createForOfIteratorHelper(_s25),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _e117=_step34.value;var _n58=$CC(_e117).find("description").attr("ssrc");_n58&&_t76.push(_n58);}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}br.debug("Received ".concat(n," from ").concat(i," with ssrcs=").concat(_t76)),this.eventEmitter.emit(zn().CALL_ACCEPTED,r,$CC(e).find(">jingle"));break;}case"content-modify":{var _t77=$CC(e).find(\'jingle>content[name="video"]>max-frame-height\');br.debug("Received ".concat(n," from ").concat(i," with a max-frame-height=").concat(null==_t77?void 0:_t77.text())),r.modifyContents($CC(e).find(">jingle"));break;}case"transport-info":{var _t78=Tr($CC(e).find("jingle>content>transport"));br.debug("Received ".concat(n," from ").concat(i," for candidates=").concat(_t78.join(", "))),this.eventEmitter.emit(zn().TRANSPORT_INFO,r,$CC(e).find(">jingle"));break;}case"session-terminate":{br.log("terminating...",r.sid);var _t79=null,_s26=null;$CC(e).find(">jingle>reason").length&&(_t79=$CC(e).find(">jingle>reason>:first")[0].tagName,_s26=$CC(e).find(">jingle>reason>text").text()),br.debug("Received ".concat(n," from ").concat(i," disconnect reason=").concat(_s26)),this.terminate(r.sid,_t79,_s26),this.eventEmitter.emit(zn().CALL_ENDED,r,_t79,_s26);break;}case"transport-replace":{var l;br.info("(TIME) Start transport replace:\\t",o);var _t80=$CC(e).find("jingle>content>transport"),_s27=Tr(_t80),_c3=$CC(_t80).attr("ufrag"),_d5=$CC(_t80).attr("pwd"),_h3=null===(l=$CC(_t80).find(">fingerprint"))||void 0===l?void 0:l.text();br.debug("Received ".concat(n," from ").concat(i," with iceUfrag=").concat(_c3,", icePwd=").concat(_d5,", DTLS fingerprint=").concat(_h3,", candidates=").concat(_s27.join(", "))),jn.sendAnalytics(Mt("transport-replace.received",{p2p:a,value:o})),r.replaceTransport($CC(e).find(">jingle"),function(){var e=window.performance.now();br.info("(TIME) Transport replace success:\\t",e),jn.sendAnalytics(Mt("transport-replace.success",{p2p:a,value:e}));},function(e){dn().callErrorHandler(e),br.error("Transport replace failed",e),r.sendTransportReject();});break;}case"source-add":r.addRemoteStream($CC(e).find(">jingle>content"));break;case"source-remove":r.removeRemoteStream($CC(e).find(">jingle>content"));break;default:br.warn("jingle action not implemented",n),s.attrs({type:"error"}),s.c("error",{type:"cancel"}).c("bad-request",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up();}return this.connection.send(s),!0;}},{key:"newP2PJingleSession",value:function newP2PJingleSession(e,t){var n=new Cr(Gi().randomHexString(12),e,t,this.connection,this.mediaConstraints,this.p2pIceConfig,!0,!0);return this.sessions[n.sid]=n,n;}},{key:"terminate",value:function terminate(e,t,n){this.sessions.hasOwnProperty(e)&&("ended"!==this.sessions[e].state&&this.sessions[e].onTerminated(t,n),delete this.sessions[e]);}},{key:"getStunAndTurnCredentials",value:function getStunAndTurnCredentials(){var _this95=this;this.connection.sendIQ((0,rt.$iq)({type:"get",to:this.xmpp.options.hosts.domain}).c("services",{xmlns:"urn:xmpp:extdisco:2"}),function(e){return _this95.onReceiveStunAndTurnCredentials(e);},function(){br.warn("getting turn credentials with extdisco:2 failed, trying extdisco:1"),_this95.connection.sendIQ((0,rt.$iq)({type:"get",to:_this95.xmpp.options.hosts.domain}).c("services",{xmlns:"urn:xmpp:extdisco:1"}),function(e){return _this95.onReceiveStunAndTurnCredentials(e);},function(){br.warn("getting turn credentials failed"),br.warn("is mod_turncredentials or similar installed and configured?");});});}},{key:"onReceiveStunAndTurnCredentials",value:function onReceiveStunAndTurnCredentials(e){var t=[];$CC(e).find(">services>service").each(function(e,n){var i={},s=(n=$CC(n)).attr("type");switch(s){case"stun":i.urls="stun:".concat(n.attr("host")),n.attr("port")&&(i.urls+=":".concat(n.attr("port"))),t.push(i);break;case"turn":case"turns":{i.urls="".concat(s,":"),i.username=n.attr("username"),i.urls+=n.attr("host"),n.attr("port")&&(i.urls+=":".concat(n.attr("port")));var _e118=n.attr("transport");_e118&&"udp"!==_e118&&(i.urls+="?transport=".concat(_e118)),i.credential=n.attr("password")||i.credential,t.push(i);break;}}});var n=this.xmpp.options;for(var _e119=t.length-1;_e119>0;_e119--){var _n59=Math.floor(Math.random()*(_e119+1)),_i55=t[_e119];t[_e119]=t[_n59],t[_n59]=_i55;}var i;return i=n.useTurnUdp?function(e){return e.urls.startsWith("turn");}:function(e){return e.urls.startsWith("turn")&&e.urls.indexOf("transport=tcp")>=0;},this.jvbIceConfig.iceServers=t.filter(i),this.p2pIceConfig.iceServers=t,t.length>0;}},{key:"getLog",value:function getLog(){var _this96=this;var e={};return Object.keys(this.sessions).forEach(function(t){var n=_this96.sessions[t].peerconnection;n&&n.updateLog&&(e["jingle_".concat(t)]={updateLog:n.updateLog,stats:n.stats,url:window.location.href});}),e;}}]);return Rr;}(ss);var Ar=/*#__PURE__*/function(_ss3){_inherits(Ar,_ss3);var _super18=_createSuper(Ar);function Ar(){var _this97;_classCallCheck(this,Ar);_this97=_super18.call(this),_this97.log=[];return _this97;}_createClass(Ar,[{key:"init",value:function init(e){_get(_getPrototypeOf(Ar.prototype),"init",this).call(this,e),this.connection.rawInput=this.logIncoming.bind(this),this.connection.rawOutput=this.logOutgoing.bind(this);}},{key:"logIncoming",value:function logIncoming(e){this.log.push([new Date().getTime(),"incoming",e]);}},{key:"logOutgoing",value:function logOutgoing(e){this.log.push([new Date().getTime(),"outgoing",e]);}}]);return Ar;}(ss);var wr=(0,g.getLogger)("modules/xmpp/strophe.rayo.js"),Ir="urn:xmpp:rayo:1";var Pr=/*#__PURE__*/function(_ss4){_inherits(Pr,_ss4);var _super19=_createSuper(Pr);function Pr(){_classCallCheck(this,Pr);return _super19.apply(this,arguments);}_createClass(Pr,[{key:"init",value:function init(e){_get(_getPrototypeOf(Pr.prototype),"init",this).call(this,e),this.connection.addHandler(this.onRayo.bind(this),Ir,"iq","set",null,null);}},{key:"onRayo",value:function onRayo(e){wr.info("Rayo IQ",e);}},{key:"dial",value:function dial(e,t,n,i,s){var _this98=this;return new Promise(function(r,o){if(!s)return void o(new Error("Internal error!"));var a=(0,rt.$iq)({type:"set",to:s});a.c("dial",{xmlns:Ir,to:e,from:t}),a.c("header",{name:"JvbRoomName",value:n}).up(),i&&i.length&&a.c("header",{name:"JvbRoomPassword",value:i}).up(),_this98.connection.sendIQ(a,function(e){wr.info("Dial result ",e);var t=$CC(e).find("ref").attr("uri");_this98.callResource=t.substr("xmpp:".length),wr.info("Received call resource: ".concat(_this98.callResource)),r();},function(e){wr.info("Dial error ",e),o(e);});});}},{key:"hangup",value:function hangup(){var _this99=this;return new Promise(function(e,t){if(!_this99.callResource)return t(new Error("No call in progress")),void wr.warn("No call in progress");var n=(0,rt.$iq)({type:"set",to:_this99.callResource});n.c("hangup",{xmlns:Ir}),_this99.connection.sendIQ(n,function(t){wr.info("Hangup result ",t),_this99.callResource=null,e();},function(e){wr.info("Hangup error ",e),_this99.callResource=null,t(new Error("Hangup error "));});});}}]);return Pr;}(ss);var Mr=(0,g.getLogger)("modules/xmpp/strophe.util.js");var Dr=-1;var Nr=/request id \\d+.\\d+ got 200/,kr=/request errored, status: (\\d+), number of errors: \\d+/,Or=(0,g.getLogger)("modules/xmpp/xmpp.js"),Lr=/<failure.*><not-allowed\\/><text>(.*)<\\/text><\\/failure>/gi;var xr=[{urls:"stun:meet-jit-si-turnrelay.jitsi.net:443"}],Fr="type",jr="http://jitsi.org/protocol/jigasi",$r="https://jitsi.org/meet/e2ee";var Ur=/*#__PURE__*/function(_vi8){_inherits(Ur,_vi8);var _super20=_createSuper(Ur);function Ur(e,t){var _this100;_classCallCheck(this,Ur);var n;_this100=_super20.call(this),_this100.connection=null,_this100.disconnectInProgress=!1,_this100.connectionTimes={},_this100.options=e,_this100.token=t,_this100.authenticatedUser=!1,rt.Strophe.log=function(e,t){switch(Mr.trace("Strophe",e,t),"string"==typeof t&&-1!==t.indexOf("Request ")&&-1!==t.indexOf("timed out (secondary), restarting")&&(e=rt.Strophe.LogLevel.WARN),e){case rt.Strophe.LogLevel.DEBUG:-1!==Dr&&Nr.test(t)&&(Mr.debug("Reset lastErrorStatus"),Dr=-1);break;case rt.Strophe.LogLevel.WARN:Mr.warn("Strophe: ".concat(t));var _e120=kr.exec(t);_e120&&2===_e120.length&&(Dr=parseInt(_e120[1],10),Mr.debug("lastErrorStatus set to: ".concat(Dr)));break;case rt.Strophe.LogLevel.ERROR:case rt.Strophe.LogLevel.FATAL:t="Strophe: ".concat(t),dn().callErrorHandler(new Error(t)),Mr.error(t);}},rt.Strophe.getLastErrorStatus=function(){return Dr;},rt.Strophe.getStatusString=function(e){switch(e){case rt.Strophe.Status.BINDREQUIRED:return"BINDREQUIRED";case rt.Strophe.Status.ERROR:return"ERROR";case rt.Strophe.Status.CONNECTING:return"CONNECTING";case rt.Strophe.Status.CONNFAIL:return"CONNFAIL";case rt.Strophe.Status.AUTHENTICATING:return"AUTHENTICATING";case rt.Strophe.Status.AUTHFAIL:return"AUTHFAIL";case rt.Strophe.Status.CONNECTED:return"CONNECTED";case rt.Strophe.Status.DISCONNECTED:return"DISCONNECTED";case rt.Strophe.Status.DISCONNECTING:return"DISCONNECTING";case rt.Strophe.Status.ATTACHED:return"ATTACHED";default:return"unknown";}},rt.Strophe.addConnectionPlugin("logger",new Ar());var i=e.xmppPing||{};i.domain=e.hosts.domain,_this100.connection=function(e){var t=e.enableWebsocketResume,_e$serviceUrl=e.serviceUrl,n=_e$serviceUrl===void 0?"/http-bind":_e$serviceUrl,i=e.shard,s=e.token,r=e.websocketKeepAlive,o=e.websocketKeepAliveUrl,a=e.xmppPing;return s&&(n+="".concat(-1===n.indexOf("?")?"?":"&","token=").concat(s)),new ds({enableWebsocketResume:t,serviceUrl:n,websocketKeepAlive:r,websocketKeepAliveUrl:o,xmppPing:a,shard:i});}({enableWebsocketResume:e.enableWebsocketResume,serviceUrl:e.serviceUrl||e.bosh,token:t,websocketKeepAlive:e.websocketKeepAlive,websocketKeepAliveUrl:e.websocketKeepAliveUrl,xmppPing:i,shard:null===(n=e.deploymentInfo)||void 0===n?void 0:n.shard}),_this100.connection.on(ds.Events.CONN_SHARD_CHANGED,function(){var e={shard_changed:!0,suspend_time:_this100.connection.ping.getPingSuspendTime(),time_since_last_success:_this100.connection.getTimeSinceLastSuccess()};_this100.eventEmitter.emit(li,mi,void 0,void 0,e);}),_this100._initStrophePlugins(),_this100.caps=new Qi(_this100.connection,"https://jitsi.org/jitsi-meet"),_this100.initFeaturesList(),$CC(window).on((_this100.options.disableBeforeUnloadHandlers?"":"beforeunload ")+"unload",function(e){_this100.disconnect(e).catch(function(){});});return _this100;}_createClass(Ur,[{key:"initFeaturesList",value:function initFeaturesList(){this.caps.addFeature("urn:xmpp:jingle:1"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:1"),this.caps.addFeature("urn:xmpp:jingle:transports:ice-udp:1"),this.caps.addFeature("urn:xmpp:jingle:apps:dtls:0"),this.caps.addFeature("urn:xmpp:jingle:transports:dtls-sctp:1"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:audio"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:video"),this.caps.addFeature("http://jitsi.org/json-encoded-sources"),!this.options.disableRtx&&nn.supportsRTX()&&this.caps.addFeature("urn:ietf:rfc:4588"),!0===this.options.enableOpusRed&&nn.supportsAudioRed()&&this.caps.addFeature("http://jitsi.org/opus-red"),(void 0===this.options.enableRemb||this.options.enableRemb)&&this.caps.addFeature("http://jitsi.org/remb"),nn.isFirefox()||void 0!==this.options.enableTcc&&!this.options.enableTcc||this.caps.addFeature("http://jitsi.org/tcc"),this.caps.addFeature("urn:ietf:rfc:5761"),this.caps.addFeature("urn:ietf:rfc:5888"),nn.isChromiumBased()&&!0===this.options.enableLipSync&&(Or.info("Lip-sync enabled !"),this.caps.addFeature("http://jitsi.org/meet/lipsync")),this.connection.rayo&&this.caps.addFeature("urn:xmpp:rayo:client:1"),Ji.isSupported(this.options)&&this.caps.addFeature($r,!1,!0);}},{key:"getConnection",value:function getConnection(){return this.connection;}},{key:"connectionHandler",value:function connectionHandler(){var _this101=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;var i=window.performance.now(),s=rt.Strophe.getStatusString(t).toLowerCase();if(this.connectionTimes[s]=i,Or.log("(TIME) Strophe ".concat(s).concat(n?"[".concat(n,"]"):"",":\\t"),i),this.eventEmitter.emit(zn().CONNECTION_STATUS_CHANGED,e,t,n),this._maybeSendDeploymentInfoStat(),t===rt.Strophe.Status.CONNECTED||t===rt.Strophe.Status.ATTACHED)this._sysMessageHandler&&(this.connection._stropheConn.deleteHandler(this._sysMessageHandler),this._sysMessageHandler=null),this.sendDiscoInfo&&this.connection.jingle.getStunAndTurnCredentials(),Or.info("My Jabber ID: ".concat(this.connection.jid)),this._resetState(),this.sendDeploymentInfo=!1,this.sendDiscoInfo&&this.caps.getFeaturesAndIdentities(this.options.hosts.domain).then(function(e){var t=e.features,n=e.identities;t.has(rt.Strophe.NS.PING)||Or.error("Ping NOT supported by ".concat(_this101.options.hosts.domain," - please enable ping in your XMPP server config")),_this101._processDiscoInfoIdentities(n,void 0);}).catch(function(e){var t="Feature discovery error";dn().callErrorHandler(new Error("".concat(t,": ").concat(e))),Or.error(t,e),_this101._maybeSendDeploymentInfoStat(!0);}),this.sendDiscoInfo=!1,e.password&&(this.authenticatedUser=!0),this.connection&&this.connection.connected&&rt.Strophe.getResourceFromJid(this.connection.jid)&&this.eventEmitter.emit(di,rt.Strophe.getResourceFromJid(this.connection.jid));else if(t===rt.Strophe.Status.CONNFAIL)"x-strophe-bad-non-anon-jid"===n?this.anonymousConnectionFailed=!0:this.connectionFailed=!0,this.lastErrorMsg=n,"giving-up"===n&&this.eventEmitter.emit(li,mi,n);else if(t===rt.Strophe.Status.ERROR)this.lastErrorMsg=n;else if(t===rt.Strophe.Status.DISCONNECTED){this.connection.ping.stopInterval();var _e121=Boolean(this.disconnectInProgress),_t81=n||this.lastErrorMsg;if(this.anonymousConnectionFailed)this.eventEmitter.emit(li,fi);else if(this.connectionFailed)this.eventEmitter.emit(li,mi,_t81,void 0,this._getConnectionFailedReasonDetails());else if(_e121)this.eventEmitter.emit(ci,_t81);else{Or.error("XMPP connection dropped!");var _e122=rt.Strophe.getLastErrorStatus();_e122>=500&&_e122<600?this.eventEmitter.emit(li,gi,_t81||"server-error",void 0,this._getConnectionFailedReasonDetails()):this.eventEmitter.emit(li,pi,_t81||"connection-dropped-error",void 0,this._getConnectionFailedReasonDetails());}}else if(t===rt.Strophe.Status.AUTHFAIL){var _t82=this.getConnection().getLastFailedMessage();this.eventEmitter.emit(li,fi,n||this._parseConnectionFailedMessage(_t82),e);}}},{key:"_processDiscoInfoIdentities",value:function _processDiscoInfoIdentities(e,t){var _this102=this;e.forEach(function(e){if("av_moderation"===e.type&&(_this102.avModerationComponentAddress=e.name),"speakerstats"===e.type&&(_this102.speakerStatsComponentAddress=e.name),"conference_duration"===e.type&&(_this102.conferenceDurationComponentAddress=e.name),"lobbyrooms"===e.type){_this102.lobbySupported=!0;var _n60=function _n60(e){e.forEach(function(e){e.endsWith("#displayname_required")&&_this102.eventEmitter.emit(ui);});};t?_n60(t):e.name&&_this102.caps.getFeaturesAndIdentities(e.name,e.type).then(function(e){var t=e.features;return _n60(t);}).catch(function(e){return Or.warn("Error getting features from lobby.",e&&e.message);});}"shard"===e.type&&(_this102.options.deploymentInfo.shard=_this102.connection.shard=e.name),"region"===e.type&&(_this102.options.deploymentInfo.region=_this102.connection.region=e.name),"breakout_rooms"===e.type&&(_this102.breakoutRoomsComponentAddress=e.name);}),this._maybeSendDeploymentInfoStat(!0),(this.avModerationComponentAddress||this.speakerStatsComponentAddress||this.conferenceDurationComponentAddress)&&this.connection.addHandler(this._onPrivateMessage.bind(this),null,"message",null,null);}},{key:"_parseConnectionFailedMessage",value:function _parseConnectionFailedMessage(e){if(!e)return null;var t=Lr.exec(e);return t?t[1]:null;}},{key:"_connect",value:function _connect(e,t){this._resetState(),this.sendDiscoInfo=!0,this.sendDeploymentInfo=!0,this.connection._stropheConn&&this.connection._stropheConn._addSysHandler?this._sysMessageHandler=this.connection._stropheConn._addSysHandler(this._onSystemMessage.bind(this),null,"message"):Or.warn("Cannot attach strophe system handler, jiconop cannot operate"),this.connection.connect(e,t,this.connectionHandler.bind(this,{jid:e,password:t}));}},{key:"_onSystemMessage",value:function _onSystemMessage(e){if(0===$CC(e).find(">services").length&&0===$CC(e).find(">query").length)return;this.sendDiscoInfo=!1;var t=this.connection.jingle.onReceiveStunAndTurnCredentials(e),_Wi=Wi(e),n=_Wi.features,i=_Wi.identities;this._processDiscoInfoIdentities(i,n),(t||i.size>0||n.size>0)&&(this.connection._stropheConn.deleteHandler(this._sysMessageHandler),this._sysMessageHandler=null);}},{key:"attach",value:function attach(e){this._resetState(),this.sendDiscoInfo=!0;var t=this.connectionTimes.attaching=window.performance.now();Or.log("(TIME) Strophe Attaching:\\t",t),this.connection.attach(e.jid,e.sid,parseInt(e.rid,10)+1,this.connectionHandler.bind(this,{jid:e.jid,password:e.password}));}},{key:"_resetState",value:function _resetState(){this.anonymousConnectionFailed=!1,this.connectionFailed=!1,this.lastErrorMsg=void 0,this.disconnectInProgress=void 0;}},{key:"connect",value:function connect(e,t){if(!e){var _this$options$hosts=this.options.hosts,_t83=_this$options$hosts.anonymousdomain,_n61=_this$options$hosts.domain;var _i56=_t83||_n61;var _window=window,_s28=_window.location;if(_t83){var _e123=_s28&&_s28.search;(_e123&&-1!==_e123.indexOf("login=true")||this.token)&&(_i56=_n61);}e=_i56||_s28&&_s28.hostname;}return this._connect(e,t);}},{key:"createRoom",value:function createRoom(e,t,n){var i=e.domain||t.customDomain;var s="".concat(this.getRoomJid(e,i),"/");var r=n?n(this.connection.jid,this.authenticatedUser):Gi().randomHexString(8).toLowerCase();return Or.info("JID ".concat(this.connection.jid," using MUC nickname ").concat(r)),s+=r,this.connection.emuc.createRoom(s,null,t);}},{key:"getRoomJid",value:function getRoomJid(e,t){return"".concat(e,"@").concat(t||this.options.hosts.muc.toLowerCase());}},{key:"isRoomCreated",value:function isRoomCreated(e,t){return this.connection.emuc.isRoomCreated(this.getRoomJid(e,t));}},{key:"getJid",value:function getJid(){return this.connection.jid;}},{key:"getJingleLog",value:function getJingleLog(){var e=this.connection.jingle;return e?e.getLog():{};}},{key:"getXmppLog",value:function getXmppLog(){return(this.connection.logger||{}).log||null;}},{key:"dial",value:function dial(){var _this$connection$rayo;(_this$connection$rayo=this.connection.rayo).dial.apply(_this$connection$rayo,arguments);}},{key:"ping",value:function ping(e){var _this103=this;return new Promise(function(t,n){_this103.connection.ping.ping(_this103.connection.pingDomain,t,n,e);});}},{key:"getSessions",value:function getSessions(){return this.connection.jingle.sessions;}},{key:"disconnect",value:function disconnect(e){var _this104=this;return this.disconnectInProgress?this.disconnectInProgress:this.connection?(this.disconnectInProgress=new Promise(function(e){var t=function t(n,i){i===rt.Strophe.Status.DISCONNECTED&&(e(),_this104.eventEmitter.removeListener(zn().CONNECTION_STATUS_CHANGED,t));};_this104.eventEmitter.on(zn().CONNECTION_STATUS_CHANGED,t);}),this._cleanupXmppConnection(e),this.disconnectInProgress):Promise.resolve();}},{key:"_cleanupXmppConnection",value:function _cleanupXmppConnection(e){if(!this.connection.isUsingWebSocket&&this.connection.flush(),!this.connection.isUsingWebSocket&&null!=e){var _t84=e.type;if(("beforeunload"===_t84||"unload"===_t84)&&(this.connection.options.sync=!0,this.connection.sendUnavailableBeacon()))return;}this.connection.disconnect(),!0!==this.connection.options.sync&&this.connection.flush();}},{key:"_initStrophePlugins",value:function _initStrophePlugins(){var e={jvb:{iceServers:[]},p2p:{iceServers:[]}},t=this.options.p2p&&this.options.p2p.stunServers||xr;Array.isArray(t)&&(Or.info("P2P STUN servers: ",t),e.p2p.iceServers=t),this.options.p2p&&this.options.p2p.iceTransportPolicy&&(Or.info("P2P ICE transport policy: ",this.options.p2p.iceTransportPolicy),e.p2p.iceTransportPolicy=this.options.p2p.iceTransportPolicy),this.connection.addConnectionPlugin("emuc",new Vs(this)),this.connection.addConnectionPlugin("jingle",new Rr(this,this.eventEmitter,e)),this.connection.addConnectionPlugin("rayo",new Pr());}},{key:"_getConnectionFailedReasonDetails",value:function _getConnectionFailedReasonDetails(){var e={};if(this.options.deploymentInfo&&this.options.deploymentInfo.shard&&this.connection.lastResponseHeaders){var _t85=this.connection.lastResponseHeaders.trim().split(/[\\r\\n]+/),_n62={};_t85.forEach(function(e){var t=e.split(": "),i=t.shift(),s=t.join(": ");_n62[i]=s;}),e.shard_changed=this.options.deploymentInfo.shard!==_n62["x-jitsi-shard"];}return e.suspend_time=this.connection.ping.getPingSuspendTime(),e.time_since_last_success=this.connection.getTimeSinceLastSuccess(),e;}},{key:"sendDominantSpeakerEvent",value:function sendDominantSpeakerEvent(e){if(!this.speakerStatsComponentAddress||!e)return;var t=(0,rt.$msg)({to:this.speakerStatsComponentAddress});t.c("speakerstats",{xmlns:"http://jitsi.org/jitmeet",room:e}).up(),this.connection.send(t);}},{key:"sendFacialExpressionEvent",value:function sendFacialExpressionEvent(e,t){if(!this.speakerStatsComponentAddress||!e)return;var n=(0,rt.$msg)({to:this.speakerStatsComponentAddress});n.c("facialExpression",{xmlns:"http://jitsi.org/jitmeet",room:e,expression:t.facialExpression,duration:t.duration}).up(),this.connection.send(n);}},{key:"tryParseJSONAndVerify",value:function tryParseJSONAndVerify(e){if(!e)return!1;try{var _t86=JSON.parse(e);if(_t86&&"object"==_typeof(_t86)){var _e124=_t86[Fr];if(void 0!==_e124)return _t86;Or.debug("parsing valid json but does not have correct structure","topic: ",_e124);}}catch(t){return Or.error("Error parsing json ".concat(e),t),!1;}return!1;}},{key:"_onPrivateMessage",value:function _onPrivateMessage(e){var t=e.getAttribute("from");if(t!==this.speakerStatsComponentAddress&&t!==this.conferenceDurationComponentAddress&&t!==this.avModerationComponentAddress&&t!==this.breakoutRoomsComponentAddress)return!0;var n=$CC(e).find(">json-message").text(),i=this.tryParseJSONAndVerify(n);return!i||("speakerstats"===i[Fr]&&i.users?this.eventEmitter.emit(zn().SPEAKER_STATS_RECEIVED,i.users):"conference_duration"===i[Fr]&&i.created_timestamp?this.eventEmitter.emit(zn().CONFERENCE_TIMESTAMP_RECEIVED,i.created_timestamp):"av_moderation"===i[Fr]?this.eventEmitter.emit(zn().AV_MODERATION_RECEIVED,i):"breakout_rooms"===i[Fr]&&this.eventEmitter.emit(zn().BREAKOUT_ROOMS_EVENT,i),!0);}},{key:"_maybeSendDeploymentInfoStat",value:function _maybeSendDeploymentInfoStat(e){var t=[rt.Strophe.Status.ERROR,rt.Strophe.Status.CONNFAIL,rt.Strophe.Status.AUTHFAIL,rt.Strophe.Status.DISCONNECTED,rt.Strophe.Status.CONNTIMEOUT];if(!(e||t.includes(this.connection.status)&&this.sendDeploymentInfo))return;var n=this.options.deploymentInfo;if(n&&Object.keys(n).length>0){var _e125={id:"deployment_info"};for(var _t87 in n)n.hasOwnProperty(_t87)&&(_e125[_t87]=n[_t87]);jn.sendLog(JSON.stringify(_e125));}this.sendDeploymentInfo=!1;}}]);return Ur;}(vi);function Br(e){var _this105=this;var t,n=e.id,i=e.password,s=e.onCreateResource,r=e.onLoginSuccessful,o=e.roomPassword,a=!1,c=new Ur(this.connection.options);var d=new Promise(function(e,d){t=d,c.addListener(ci,function(){c=void 0;}),c.addListener(di,function(){a||(r&&r(),c.createRoom(_this105.options.name,_this105.options.config,s).moderator.authenticate().then(function(){c&&c.disconnect(),a||(_this105.join(o),e());}).catch(function(e){var t=e.error,n=e.message;c.disconnect(),d({authenticationError:t,message:n});}));}),c.addListener(li,function(e,t,n){d({connectionError:e,credentials:n,message:t}),c=void 0;}),a||c.connect(n,i);});return d.cancel=function(){a=!0,t({}),c&&c.disconnect();},d;}var Vr=(0,g.getLogger)("modules/RTC/CodecSelection.js");var Jr=/*#__PURE__*/function(){function Jr(e,t){var _this106=this;_classCallCheck(this,Jr);this.conference=e,this.options=t,this.disabledCodec=t.disabledCodec===Xs().VP8?void 0:this._getCodecMimeType(t.disabledCodec);var n=this._getCodecMimeType(t.jvbCodec),i=this._getCodecMimeType(t.p2pCodec);this.jvbPreferredCodec=n&&this._isCodecSupported(n)?n:Xs().VP8,this.p2pPreferredCodec=i&&this._isCodecSupported(i)?i:Xs().VP8,Vr.debug("Codec preferences for the conference are JVB: ".concat(this.jvbPreferredCodec,",\\n            P2P: ").concat(this.p2pPreferredCodec)),this.jvbPreferredCodec!==Xs().VP9||nn.supportsVP9()||(this.jvbPreferredCodec=Xs().VP8),this.conference.on(je,function(){return _this106._selectPreferredCodec();}),this.conference.on($e,function(){return _this106._selectPreferredCodec();}),this.conference.on(le,function(e){return _this106._onMediaSessionStarted(e);});}_createClass(Jr,[{key:"_getCodecMimeType",value:function _getCodecMimeType(e){return"string"==typeof e?Object.values(Xs()).find(function(t){return t===e.toLowerCase();}):null;}},{key:"_isCodecSupported",value:function _isCodecSupported(e){return!(!nn.isFirefox()&&!nn.isReactNative())||window.RTCRtpReceiver&&window.RTCRtpReceiver.getCapabilities&&window.RTCRtpReceiver.getCapabilities("video").codecs.some(function(t){return t.mimeType.toLowerCase()==="video/".concat(e);});}},{key:"_onMediaSessionStarted",value:function _onMediaSessionStarted(e){var t=e.isP2P?this.p2pPreferredCodec:this.jvbPreferredCodec,n=this.disabledCodec&&this._isCodecSupported(this.disabledCodec)?this.disabledCodec:null;this._selectPreferredCodec(e,t,n);}},{key:"_selectPreferredCodec",value:function _selectPreferredCodec(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||this.conference.jvbJingleSession,i=e||this.jvbPreferredCodec;var s=i;if(n&&!n.isP2P&&!this.options.enforcePreferredCodec){var _e126=this.conference.getParticipants().map(function(e){return e.getId();});var _iterator35=_createForOfIteratorHelper(_e126),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t88=_step35.value;var _e127=n._signalingLayer.getPeerMediaInfo(_t88,wn),_r15=null==_e127?void 0:_e127.codecType;_r15&&_r15!==i&&(_r15!==Xs().VP9||nn.supportsVP9())&&(s=_r15);}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}}n&&n.setVideoCodecs(s,t);}},{key:"getPreferredCodec",value:function getPreferredCodec(){return this.jvbPreferredCodec;}}]);return Jr;}();var Hr=n(7318),Gr=n.n(Hr);var qr=(0,g.getLogger)("modules/RTC/BridgeChannel.js");var Kr=/*#__PURE__*/function(){function Kr(e,t,n){_classCallCheck(this,Kr);if(!e&&!t)throw new TypeError("At least peerconnection or wsUrl must be given");if(e&&t)throw new TypeError("Just one of peerconnection or wsUrl must be given");if(e?qr.debug("constructor() with peerconnection"):qr.debug("constructor() with wsUrl:\\"".concat(t,"\\"")),this._channel=null,this._eventEmitter=n,this._mode=null,this._areRetriesEnabled=!1,this._closedFromClient=!1,e){var _t89=e.createDataChannel("JVB data channel",{protocol:"http://jitsi.org/protocols/colibri"});this._handleChannel(_t89),this._mode="datachannel";}else t&&(this._areRetriesEnabled=!0,this._wsUrl=t,this._initWebSocket());}_createClass(Kr,[{key:"_initWebSocket",value:function _initWebSocket(){var e=new WebSocket(this._wsUrl);this._handleChannel(e),this._mode="websocket";}},{key:"_startConnectionRetries",value:function _startConnectionRetries(){var _this107=this;var e=1;var t=function t(){_this107.isOpen()||(_this107._initWebSocket(_this107._wsUrl),e=Math.min(2*e,60),_this107._retryTimeout=setTimeout(t,1e3*e));};this._retryTimeout=setTimeout(t,1e3*e);}},{key:"_stopConnectionRetries",value:function _stopConnectionRetries(){this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=void 0);}},{key:"_retryWebSocketConnection",value:function _retryWebSocketConnection(e){var _this108=this;if(!this._areRetriesEnabled)return;var t=e.code,n=e.reason;jn.sendAnalytics(function(e,t){return{type:Ct,action:"bridge-channel.error",attributes:{code:e,reason:t}};}(t,n)),this._areRetriesEnabled=!1,this._eventEmitter.once(Vn().DATA_CHANNEL_OPEN,function(){_this108._stopConnectionRetries(),_this108._areRetriesEnabled=!0;}),this._startConnectionRetries();}},{key:"mode",get:function get(){return this._mode;}},{key:"close",value:function close(){if(this._closedFromClient=!0,this._stopConnectionRetries(),this._areRetriesEnabled=!1,this._channel){try{this._channel.close();}catch(e){}this._channel=null;}}},{key:"isOpen",value:function isOpen(){return this._channel&&("open"===this._channel.readyState||this._channel.readyState===WebSocket.OPEN);}},{key:"sendEndpointStatsMessage",value:function sendEndpointStatsMessage(e){this._send(_objectSpread({colibriClass:"EndpointStats"},e));}},{key:"sendMessage",value:function sendMessage(e,t){this._send({colibriClass:"EndpointMessage",msgPayload:t,to:e});}},{key:"sendSetLastNMessage",value:function sendSetLastNMessage(e){qr.log("Sending lastN=".concat(e,".")),this._send({colibriClass:"LastNChangedEvent",lastN:e});}},{key:"sendSelectedEndpointsMessage",value:function sendSelectedEndpointsMessage(e){qr.log("Sending selected endpoints: ".concat(e,".")),this._send({colibriClass:"SelectedEndpointsChangedEvent",selectedEndpoints:e});}},{key:"sendReceiverVideoConstraintMessage",value:function sendReceiverVideoConstraintMessage(e){qr.log("Sending ReceiverVideoConstraint with maxFrameHeight=".concat(e,"px")),this._send({colibriClass:"ReceiverVideoConstraint",maxFrameHeight:e});}},{key:"sendNewReceiverVideoConstraintsMessage",value:function sendNewReceiverVideoConstraintsMessage(e){qr.log("Sending ReceiverVideoConstraints with ".concat(JSON.stringify(e))),this._send(_objectSpread({colibriClass:"ReceiverVideoConstraints"},e));}},{key:"sendVideoTypeMessage",value:function sendVideoTypeMessage(e){qr.debug("Sending VideoTypeMessage with video type as ".concat(e)),this._send({colibriClass:"VideoTypeMessage",videoType:e});}},{key:"sendSourceVideoTypeMessage",value:function sendSourceVideoTypeMessage(e,t){qr.info("Sending SourceVideoTypeMessage with video type ".concat(e,": ").concat(t)),this._send({colibriClass:"SourceVideoTypeMessage",sourceName:e,videoType:t});}},{key:"_handleChannel",value:function _handleChannel(e){var _this109=this;var t=this._eventEmitter;e.onopen=function(){qr.info("".concat(_this109._mode," channel opened")),t.emit(Vn().DATA_CHANNEL_OPEN);},e.onerror=function(e){"websocket"!==_this109._mode&&qr.error("Channel error: ".concat(e.message));},e.onmessage=function(e){var n,i=e.data;try{n=JSON.parse(i);}catch(e){return dn().callErrorHandler(e),void qr.error("Failed to parse channel message as JSON: ",i,e);}var s=n.colibriClass;switch(s){case"DominantSpeakerEndpointChangeEvent":{var _n63=n,_e128=_n63.dominantSpeakerEndpoint,_n63$previousSpeakers=_n63.previousSpeakers,_i57=_n63$previousSpeakers===void 0?[]:_n63$previousSpeakers;qr.debug("Dominant speaker: ".concat(_e128,", previous speakers: ").concat(_i57)),t.emit(Vn().DOMINANT_SPEAKER_CHANGED,_e128,_i57);break;}case"EndpointConnectivityStatusChangeEvent":{var _e129=n.endpoint,_i58="true"===n.active;qr.info("Endpoint connection status changed: ".concat(_e129," active=").concat(_i58)),t.emit(Vn().ENDPOINT_CONN_STATUS_CHANGED,_e129,_i58);break;}case"EndpointMessage":t.emit(Vn().ENDPOINT_MESSAGE_RECEIVED,n.from,n.msgPayload);break;case"EndpointStats":t.emit(Vn().ENDPOINT_STATS_RECEIVED,n.from,n);break;case"LastNEndpointsChangeEvent":{var _e130=n.lastNEndpoints;qr.info("New forwarded endpoints: ".concat(_e130)),t.emit(Vn().LASTN_ENDPOINT_CHANGED,_e130);break;}case"SenderVideoConstraints":{var _e131=n.videoConstraints;_e131&&(qr.info("SenderVideoConstraints: ".concat(JSON.stringify(_e131))),t.emit(Vn().SENDER_VIDEO_CONSTRAINTS_CHANGED,_e131));break;}case"ServerHello":qr.info("Received ServerHello, version=".concat(n.version,"."));break;default:qr.debug("Channel JSON-formatted message: ",n),t.emit("rtc.datachannel.".concat(s),n);}},e.onclose=function(e){qr.info("Channel closed by "+(_this109._closedFromClient?"client":"server")),"websocket"===_this109._mode&&(_this109._closedFromClient||(qr.error("Channel closed: ".concat(e.code," ").concat(e.reason)),_this109._retryWebSocketConnection(e))),_this109._channel=null;},this._channel=e;}},{key:"_send",value:function _send(e){var t=this._channel;if(!this.isOpen())throw qr.error("Bridge Channel send: no opened channel."),new Error("No opened channel");t.send(JSON.stringify(e));}}]);return Kr;}();var zr=n(4940),Wr=n.n(zr),Qr=n(3465),Xr=n.n(Qr),Yr=n(6125),Zr=n.n(Yr);var eo=(0,g.getLogger)("modules/RTC/RTCUtils.js");nn.usesAdapter()&&n(835);var to=new(nt())(),no={video:{height:{ideal:720,max:720,min:180},width:{ideal:1280,max:1280,min:320}}};var io="default",so=!1,ro=!1,oo=!1,ao=!1,co=!1,lo=null;var ho=document.createElement("audio"),uo=void 0!==ho.setSinkId;var po,mo=[];function fo(){}function go(e,t){var n=Boolean(t)&&t.getAudioTracks().length>0,i=Boolean(t)&&t.getVideoTracks().length>0,s={};-1!==e.indexOf("video")&&(s.video=i),-1!==e.indexOf("audio")&&(s.audio=n),to.emit(Vn().PERMISSIONS_CHANGED,s);}function _o(e){var t=e.filter(function(e){return"audioinput"===e.kind;}).length,n=e.filter(function(e){return"audiooutput"===e.kind;}).length,i=e.filter(function(e){return"videoinput"===e.kind;}).length,s=e.filter(function(e){return"videooutput"===e.kind;}).length;e.forEach(function(e){var r={audio_input_device_count:t,audio_output_device_count:n,video_input_device_count:i,video_output_device_count:s,device_id:e.deviceId,device_group_id:e.groupId,device_kind:e.kind,device_label:e.label};jn.sendAnalytics("available.device",r);});}function vo(e){(function(e){return e.length!==mo.length||e.map(t).sort().join("")!==mo.map(t).sort().join("");function t(e){return JSON.stringify({kind:e.kind,deviceId:e.deviceId,groupId:e.groupId,label:e.label,facing:e.facing});}})(e)&&(mo=e.slice(0),eo.info("list of media devices has changed:",mo),_o(mo),to.emit(Vn().DEVICE_LIST_WILL_CHANGE,mo),to.emit(Vn().DEVICE_LIST_CHANGED,mo));}var So=new(/*#__PURE__*/function(_vi9){_inherits(_class10,_vi9);var _super21=_createSuper(_class10);function _class10(){_classCallCheck(this,_class10);return _super21.call(this,to);}_createClass(_class10,[{key:"init",value:function init(){var _this110=this;var e;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;"boolean"==typeof t.disableAEC&&(oo=t.disableAEC,eo.info("Disable AEC: ".concat(oo))),"boolean"==typeof t.disableNS&&(ao=t.disableNS,eo.info("Disable NS: ".concat(ao))),"boolean"==typeof t.disableAP&&(ro=t.disableAP,eo.info("Disable AP: ".concat(ro))),"boolean"==typeof t.disableAGC&&(co=t.disableAGC,eo.info("Disable AGC: ".concat(co))),"boolean"==typeof(null===(e=t.audioQuality)||void 0===e?void 0:e.stereo)&&(lo=t.audioQuality.stereo,eo.info("Stereo: ".concat(lo))),window.clearInterval(po),po=void 0,nn.isReactNative()?(this.RTCPeerConnectionType=RTCPeerConnection,this.attachMediaStream=void 0,this.getStreamID=function(e){var t=e.id;return"number"==typeof t?t:rr.filterSpecialChars(t);},this.getTrackID=function(e){var t=e.id;return t;}):(this.RTCPeerConnectionType=RTCPeerConnection,this.attachMediaStream=(n=function n(e,t){e&&(e.srcObject=t);},function(e,t){var i=n.apply(So,arguments);return t&&So.isDeviceChangeAvailable("output")&&t.getAudioTracks&&t.getAudioTracks().length&&so&&e.setSinkId(So.getAudioOutputDevice()).catch(function(t){var n=new Et(t,null,["audiooutput"]);dn().callUnhandledRejectionHandler({promise:this,reason:n}),eo.warn("Failed to set audio output device for the element. Default audio output device will be used instead",e,n);}),i;}),this.getStreamID=function(e){var t=e.id;return t;},this.getTrackID=function(e){var t=e.id;return t;}),this.pcConstraints=nn.isChromiumBased()||nn.isReactNative()?{optional:[{googScreencastMinBitrate:100},{googCpuOveruseDetection:!0}]}:{},nr.init(t),this.isDeviceListAvailable()&&this.enumerateDevices(function(e){mo=e.slice(0),eo.debug("Available devices: ",mo),_o(mo),to.emit(Vn().DEVICE_LIST_AVAILABLE,mo),nn.supportsDeviceChangeEvent()?navigator.mediaDevices.addEventListener("devicechange",function(){return _this110.enumerateDevices(fo);}):po=window.setInterval(function(){return _this110.enumerateDevices(fo);},3e3);});}},{key:"enumerateDevices",value:function enumerateDevices(e){navigator.mediaDevices.enumerateDevices().then(function(t){vo(t),e(t);}).catch(function(t){eo.warn("Failed to  enumerate devices. ".concat(t)),vo([]),e([]);});}},{key:"_getUserMedia",value:function _getUserMedia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise(function(i,s){var r,o=!1;"number"==typeof n&&!isNaN(n)&&n>0&&(r=setTimeout(function(){o=!0,r=void 0,s(new Et(ft));},n)),navigator.mediaDevices.getUserMedia(t).then(function(t){eo.log("onUserMediaSuccess"),go(e,t),o||(void 0!==r&&clearTimeout(r),i(t));}).catch(function(n){eo.warn("Failed to get access to local media. ".concat(n," ").concat(JSON.stringify(t)));var i=new Et(n,t,e);o||(void 0!==r&&clearTimeout(r),s(n)),i.name===ut&&go(e,void 0);});});}},{key:"_getDesktopMedia",value:function _getDesktopMedia(){return nr.isSupported()?new Promise(function(e,t){nr.obtainStream(function(t){e(t);},function(e){t(e);});}):Promise.reject(new Error("Desktop sharing is not supported!"));}},{key:"_getMissingTracks",value:function _getMissingTracks(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;var n=[],i=e.includes("audio"),s=t&&t.getAudioTracks().length>0;i&&!s&&n.push("audio");var r=e.includes("video"),o=t&&t.getVideoTracks().length>0;return r&&!o&&n.push("video"),n;}},{key:"obtainAudioAndVideoPermissions",value:function obtainAudioAndVideoPermissions(e){var _this111=this;var t=e.timeout,n=_objectWithoutProperties(e,_excluded),i=[],s=function(){if(-1===(n.devices||[]).indexOf("desktop"))return Promise.resolve();var e=n.desktopSharingSourceDevice;if(e){var _n64=mo&&mo.find(function(t){return"videoinput"===t.kind&&(t.deviceId===e||t.label===e);});if(!_n64)return Promise.reject(new Et({name:"ConstraintNotSatisfiedError"},{},[e]));var _i59=["video"],_s29={video:{deviceId:_n64.deviceId}};return this._getUserMedia(_i59,_s29,t).then(function(e){return{sourceType:"device",stream:e};});}return this._getDesktopMedia();}.bind(this),r=function(){var e=(n.devices||["audio","video"]).filter(function(e){return"audio"===e||"video"===e;});if(!e.length)return Promise.resolve();var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n=Xr()(t.constraints||no);if(e.indexOf("video")>=0){if(Zr()[t.resolution]){var _e132=Zr()[t.resolution];n.video.height={ideal:_e132.height},n.video.width={ideal:_e132.width};}if(n.video||(n.video={}),nn.isWebKitBased()&&(n.video.height&&n.video.height.ideal?n.video.height={ideal:n.video.height.ideal}:eo.warn("Ideal camera height missing, camera may not start properly"),n.video.width&&n.video.width.ideal?n.video.width={ideal:n.video.width.ideal}:eo.warn("Ideal camera width missing, camera may not start properly")),t.cameraDeviceId)n.video.deviceId=t.cameraDeviceId;else{var _e133=t.facingMode||Wr().USER;n.video.facingMode=_e133;}}else n.video=!1;return e.indexOf("audio")>=0?(n.audio&&"boolean"!=typeof n.audio||(n.audio={}),n.audio={autoGainControl:!co&&!ro,deviceId:t.micDeviceId,echoCancellation:!oo&&!ro,noiseSuppression:!ao&&!ro},lo&&Object.assign(n.audio,{channelCount:2})):n.audio=!1,n;}(e,n);return eo.info("Got media constraints: ",JSON.stringify(i)),this._getUserMedia(e,i,t);}.bind(this);return s().then(function(e){if(!e)return;var t=e.stream,n=e.sourceId,s=e.sourceType,r=t.getAudioTracks();if(r.length){var _e134=new MediaStream(r);i.push({stream:_e134,sourceId:n,sourceType:s,track:_e134.getAudioTracks()[0]});}var o=t.getVideoTracks();if(o.length){var _e135=new MediaStream(o);i.push({stream:_e135,sourceId:n,sourceType:s,track:_e135.getVideoTracks()[0],videoType:Hn().DESKTOP});}}).then(r).then(function(e){if(!e)return;var t=e.getAudioTracks();if(t.length){var _e136=new MediaStream(t);i.push({stream:_e136,track:_e136.getAudioTracks()[0],effects:n.effects});}var s=e.getVideoTracks();if(s.length){var _e137=new MediaStream(s);i.push({stream:_e137,track:_e137.getVideoTracks()[0],videoType:Hn().CAMERA,effects:n.effects});}}).then(function(){return i;}).catch(function(e){return i.forEach(function(e){var t=e.stream;_this111.stopMediaStream(t);}),Promise.reject(e);});}},{key:"isDeviceListAvailable",value:function isDeviceListAvailable(){return Boolean(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices);}},{key:"isDeviceChangeAvailable",value:function isDeviceChangeAvailable(e){return"output"===e||"audiooutput"===e?uo:"audioinput"!==e&&"input"!==e||!nn.isIosBrowser();}},{key:"stopMediaStream",value:function stopMediaStream(e){e&&(e.getTracks().forEach(function(e){e.stop&&e.stop();}),e.stop&&e.stop(),e.release&&e.release());}},{key:"isDesktopSharingEnabled",value:function isDesktopSharingEnabled(){return nr.isSupported();}},{key:"setAudioOutputDevice",value:function setAudioOutputDevice(e){return this.isDeviceChangeAvailable("output")?ho.setSinkId(e).then(function(){io=e,so=!0,eo.log("Audio output device set to ".concat(e)),to.emit(Vn().AUDIO_OUTPUT_DEVICE_CHANGED,e);}):Promise.reject(new Error("Audio output device change is not supported"));}},{key:"setDesktopSharingFrameRate",value:function setDesktopSharingFrameRate(e){nr.setDesktopSharingFrameRate(e);}},{key:"getAudioOutputDevice",value:function getAudioOutputDevice(){return io;}},{key:"getCurrentlyAvailableMediaDevices",value:function getCurrentlyAvailableMediaDevices(){return mo;}},{key:"arePermissionsGrantedForAvailableDevices",value:function arePermissionsGrantedForAvailableDevices(){return mo.some(function(e){return Boolean(e.label);});}},{key:"getEventDataForActiveDevice",value:function getEventDataForActiveDevice(e){var t=[],n={deviceId:e.deviceId,kind:e.kind,label:e.label,groupId:e.groupId};return t.push(n),{deviceList:t};}},{key:"setSuspendVideo",value:function setSuspendVideo(e,t){e.optional||(e.optional=[]),e.optional=e.optional.filter(function(e){return!e.hasOwnProperty("googSuspendBelowMinBitrate");}),t&&e.optional.push({googSuspendBelowMinBitrate:"true"});}}]);return _class10;}(vi))(),yo=So,Eo=(0,g.getLogger)("modules/RTC/JitsiTrack.js"),Co={track_mute:"onmute",track_unmute:"onunmute",track_ended:"onended"};var bo=/*#__PURE__*/function(_nt){_inherits(bo,_nt);var _super22=_createSuper(bo);function bo(e,t,n,i,s,r){var _this112;_classCallCheck(this,bo);_this112=_super22.call(this),_this112.addEventListener=_this112.addListener,_this112.removeEventListener=_this112.off=_this112.removeListener,_this112.containers=[],_this112.conference=e,_this112.audioLevel=-1,_this112.type=s,_this112.track=n,_this112.videoType=r,_this112.handlers=new Map(),_this112.disposed=!1,_this112._streamInactiveHandler=i,_this112._setStream(t);return _this112;}_createClass(bo,[{key:"_addMediaStreamInactiveHandler",value:function _addMediaStreamInactiveHandler(e){nn.isFirefox()?this.track.onended=e:this.stream.oninactive=e;}},{key:"_setHandler",value:function _setHandler(e,t){if(Co.hasOwnProperty(e)){if(t?this.handlers.set(e,t):this.handlers.delete(e),this.stream){var _iterator36=_createForOfIteratorHelper(this.stream.getTracks()),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _n65=_step36.value;_n65[Co[e]]=t;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}}}else Eo.error("Invalid handler type ".concat(e));}},{key:"_unregisterHandlers",value:function _unregisterHandlers(){if(this.stream){var _iterator37=_createForOfIteratorHelper(this.handlers.keys()),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _e138=_step37.value;var _iterator38=_createForOfIteratorHelper(this.stream.getVideoTracks()),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _t90=_step38.value;_t90[Co[_e138]]=void 0;}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}this._streamInactiveHandler&&this._addMediaStreamInactiveHandler(void 0);}else Eo.warn("".concat(this,": unable to unregister handlers - no stream object"));}},{key:"_setStream",value:function _setStream(e){if(this.stream!==e&&(this.stream=e,this.stream)){var _iterator39=_createForOfIteratorHelper(this.handlers.keys()),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e139=_step39.value;this._setHandler(_e139,this.handlers.get(_e139));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}this._streamInactiveHandler&&this._addMediaStreamInactiveHandler(this._streamInactiveHandler);}}},{key:"getVideoType",value:function getVideoType(){return this.videoType;}},{key:"getType",value:function getType(){return this.type;}},{key:"isAudioTrack",value:function isAudioTrack(){return this.getType()===Rn;}},{key:"isWebRTCTrackMuted",value:function isWebRTCTrackMuted(){return this.track&&this.track.muted;}},{key:"isVideoTrack",value:function isVideoTrack(){return this.getType()===wn;}},{key:"isLocal",value:function isLocal(){throw new Error("Not implemented by subclass");}},{key:"isLocalAudioTrack",value:function isLocalAudioTrack(){return this.isAudioTrack()&&this.isLocal();}},{key:"getOriginalStream",value:function getOriginalStream(){return this.stream;}},{key:"getStreamId",value:function getStreamId(){return this.stream?this.stream.id:null;}},{key:"getTrack",value:function getTrack(){return this.track;}},{key:"getTrackLabel",value:function getTrackLabel(){return this.track.label;}},{key:"getTrackId",value:function getTrackId(){return this.track?this.track.id:null;}},{key:"getUsageLabel",value:function getUsageLabel(){return this.isAudioTrack()?"mic":this.videoType?this.videoType:"default";}},{key:"_maybeFireTrackAttached",value:function _maybeFireTrackAttached(e){this.conference&&e&&this.conference._onTrackAttach(this,e);}},{key:"attach",value:function attach(e){this.stream&&(this._onTrackAttach(e),yo.attachMediaStream(e,this.stream)),this.containers.push(e),this._maybeFireTrackAttached(e),this._attachTTFMTracker(e);}},{key:"detach",value:function detach(e){for(var _t91=this.containers,_n66=_t91.length-1;_n66>=0;--_n66){var _i60=_t91[_n66];e||(this._onTrackDetach(_i60),yo.attachMediaStream(_i60,null)),e&&_i60!==e||_t91.splice(_n66,1);}e&&(this._onTrackDetach(e),yo.attachMediaStream(e,null));}},{key:"_onTrackAttach",value:function _onTrackAttach(e){}},{key:"_onTrackDetach",value:function _onTrackDetach(e){}},{key:"_attachTTFMTracker",value:function _attachTTFMTracker(e){}},{key:"dispose",value:function dispose(){return this.removeAllListeners(),this.disposed=!0,Promise.resolve();}},{key:"isScreenSharing",value:function isScreenSharing(){}},{key:"getId",value:function getId(){return this.stream?yo.getStreamID(this.stream):null;}},{key:"isActive",value:function isActive(){return void 0===this.stream.active||this.stream.active;}},{key:"setAudioLevel",value:function setAudioLevel(e,t){var n=e;nn.supportsReceiverStats()&&void 0!==t&&this.isMuted()&&(n=0),this.audioLevel!==n?(this.audioLevel=n,this.emit(Yn,n,t)):0===this.audioLevel&&0===n&&this.isLocal()&&!this.isWebRTCTrackMuted()&&this.emit(ii,n);}},{key:"getMSID",value:function getMSID(){var e=this.getStreamId(),t=this.getTrackId();return e&&t?"".concat(e," ").concat(t):null;}},{key:"setAudioOutput",value:function setAudioOutput(e){var _this113=this;return yo.isDeviceChangeAvailable("output")?this.isVideoTrack()?Promise.resolve():Promise.all(this.containers.map(function(t){return t.setSinkId(e).catch(function(e){throw Eo.warn("Failed to change audio output device on element. Default or previously set audio output device will be used.",t,e),e;});})).then(function(){_this113.emit(Zn,e);}):Promise.reject(new Error("Audio output device change is not supported"));}}]);return bo;}(nt());var To=(0,g.getLogger)("modules/RTC/JitsiLocalTrack.js");var Ro=/*#__PURE__*/function(_bo){_inherits(Ro,_bo);var _super23=_createSuper(Ro);function Ro(e){var _this114;_classCallCheck(this,Ro);var t=e.deviceId,n=e.facingMode,i=e.mediaType,s=e.resolution,r=e.rtcId,o=e.sourceId,a=e.sourceType,c=e.stream,d=e.track,l=e.videoType,_e$effects=e.effects,h=_e$effects===void 0?[]:_e$effects;_this114=_super23.call(this,null,c,d,function(){return _this114.emit(Xn);},i,l),_this114._setEffectInProgress=!1;var u=h.find(function(e){return e.isEnabled(_assertThisInitialized(_this114));});u&&_this114._startStreamEffect(u);var p=l===Hn().DESKTOP?d.getSettings().displaySurface:null;_this114.metadata=_objectSpread({timestamp:Date.now()},p?{displaySurface:p}:{}),_this114.rtcId=r,_this114.sourceId=o,_this114.sourceType=a,_this114.resolution=d.getSettings().height,_this114.maxEnabledResolution=s,_this114._constraints=d.getConstraints(),Object.keys(_this114._constraints).length||l!==Hn().CAMERA||(_this114._constraints={height:d.getSettings().height,width:d.getSettings().width}),_this114.deviceId=t,_this114._prevSetMuted=Promise.resolve(),_this114._facingMode=n,_this114._trackEnded=!1,_this114._hasSentData=!1,_this114._testDataSent=!0,_this114._realDeviceId=""===_this114.deviceId?void 0:_this114.deviceId,_this114._trackMutedTS=0,_this114._onDeviceListWillChange=function(e){var t=_this114._realDeviceId;_this114._setRealDeviceIdFromDeviceList(e),(void 0===_this114.getTrack().readyState&&void 0!==_this114._realDeviceId&&!e.find(function(e){return e.deviceId===_this114._realDeviceId;})||void 0!==t&&void 0===_this114._realDeviceId)&&(_this114._trackEnded=!0);},_this114.isAudioTrack()&&yo.isDeviceChangeAvailable("output")&&(_this114._onAudioOutputDeviceChanged=_this114.setAudioOutput.bind(_assertThisInitialized(_this114)),yo.addListener(Vn().AUDIO_OUTPUT_DEVICE_CHANGED,_this114._onAudioOutputDeviceChanged)),yo.addListener(Vn().DEVICE_LIST_WILL_CHANGE,_this114._onDeviceListWillChange),_this114._initNoDataFromSourceHandlers();return _this114;}_createClass(Ro,[{key:"_addStreamToConferenceAsUnmute",value:function _addStreamToConferenceAsUnmute(){var _this115=this;return this.conference?new Promise(function(e,t){_this115.conference._addLocalTrackAsUnmute(_this115).then(e,function(e){return t(new Error(e));});}):Promise.resolve();}},{key:"_fireNoDataFromSourceEvent",value:function _fireNoDataFromSourceEvent(){var e=!this.isReceivingData();this.emit(ni,e),jn.sendAnalytics(function(e,t){return{attributes:{media_type:e,value:t},action:"track.no.data.from.source",type:Ct};}(this.getType(),e)),jn.sendLog(JSON.stringify({name:ni,log:e}));}},{key:"_initNoDataFromSourceHandlers",value:function _initNoDataFromSourceHandlers(){var _this116=this;this._isNoDataFromSourceEventsEnabled()&&(this._setHandler("track_mute",function(){_this116._trackMutedTS=window.performance.now(),_this116._fireNoDataFromSourceEvent();}),this._setHandler("track_unmute",function(){_this116._fireNoDataFromSourceEvent(),jn.sendAnalyticsAndLog("track.unmuted",{media_type:_this116.getType(),track_type:"local",value:window.performance.now()-_this116._trackMutedTS});}),this.isVideoTrack()&&this.videoType===Hn().CAMERA&&this._setHandler("track_ended",function(){_this116.isReceivingData()||_this116._fireNoDataFromSourceEvent();}));}},{key:"_isNoDataFromSourceEventsEnabled",value:function _isNoDataFromSourceEventsEnabled(){return!this.isVideoTrack()||this.videoType!==Hn().DESKTOP;}},{key:"_queueSetMuted",value:function _queueSetMuted(e){var t=this._setMuted.bind(this,e);return this._prevSetMuted=this._prevSetMuted.then(t,t),this._prevSetMuted;}},{key:"_removeStreamFromConferenceAsMute",value:function _removeStreamFromConferenceAsMute(e,t){this.conference?this.conference._removeLocalTrackAsMute(this).then(e,function(e){return t(new Error(e));}):e();}},{key:"_sendMuteStatus",value:function _sendMuteStatus(e){this.conference&&this.conference._setTrackMuteStatus(this.getType(),this,e)&&this.conference.room.sendPresence();}},{key:"_setMuted",value:function _setMuted(e){var _this117=this;if(this.isMuted()===e)return Promise.resolve();if(this.disposed)return Promise.reject(new Et(gt));var t=Promise.resolve();var n=function n(){return To.info("Mute ".concat(_this117,": ").concat(e));};if(this.isAudioTrack()||this.videoType===Hn().DESKTOP||!nn.doesVideoMuteByStreamRemove())n(),this._streamEffect&&this._streamEffect.setMuted?this._streamEffect.setMuted(e):this.track&&(this.track.enabled=!e);else if(e)t=new Promise(function(e,t){n(),_this117._removeStreamFromConferenceAsMute(function(){_this117._streamEffect&&_this117._stopStreamEffect(),_this117._unregisterHandlers(),_this117.stopStream(),_this117._setStream(null),e();},t);});else{n();var _e140={cameraDeviceId:this.getDeviceId(),devices:[wn],effects:this._streamEffect?[this._streamEffect]:[],facingMode:this.getCameraFacingMode()};t=yo.obtainAudioAndVideoPermissions(Object.assign({},_e140,{constraints:{video:this._constraints}})),t=t.then(function(e){var t=_this117.getType()===An?wn:_this117.getType(),n=e.find(function(e){return e.track.kind===t;});if(!n)throw new Et(_t);return _this117._setStream(n.stream),_this117.track=n.track,_this117.videoType!==n.videoType&&(To.warn("".concat(_this117,": video type has changed after unmute!"),_this117.videoType,n.videoType),_this117.videoType=n.videoType),_this117._streamEffect&&_this117._startStreamEffect(_this117._streamEffect),_this117.containers.map(function(e){return yo.attachMediaStream(e,_this117.stream);}),_this117._addStreamToConferenceAsUnmute();});}return t.then(function(){_this117._sendMuteStatus(e),_this117.emit(ei,_this117);});}},{key:"_setRealDeviceIdFromDeviceList",value:function _setRealDeviceIdFromDeviceList(e){var t=this.getTrack(),n="".concat(t.kind,"input");var i=e.find(function(e){return e.kind===n&&e.label===t.label;});if(!i&&"default"===this._realDeviceId){var _s30=(t.label||"").replace("Default - ","");i=e.find(function(e){return e.kind===n&&e.label===_s30;});}this._realDeviceId=i?i.deviceId:void 0;}},{key:"_setStream",value:function _setStream(e){_get(_getPrototypeOf(Ro.prototype),"_setStream",this).call(this,e),e?(this.storedMSID=this.getMSID(),To.debug("Setting new MSID: ".concat(this.storedMSID," on ").concat(this))):To.debug("Setting \'null\' stream on ".concat(this));}},{key:"_startStreamEffect",value:function _startStreamEffect(e){this._streamEffect=e,this._originalStream=this.stream,this._setStream(this._streamEffect.startEffect(this._originalStream)),this.track=this.stream.getTracks()[0];}},{key:"_stopStreamEffect",value:function _stopStreamEffect(){this._streamEffect&&(this._streamEffect.stopEffect(),this._setStream(this._originalStream),this._originalStream=null,this.track=this.stream?this.stream.getTracks()[0]:null);}},{key:"_switchCamera",value:function _switchCamera(){this.isVideoTrack()&&this.videoType===Hn().CAMERA&&"function"==typeof this.track._switchCamera&&(this.track._switchCamera(),this._facingMode=this._facingMode===Wr().ENVIRONMENT?Wr().USER:Wr().ENVIRONMENT);}},{key:"_switchStreamEffect",value:function _switchStreamEffect(e){this._streamEffect&&(this._stopStreamEffect(),this._streamEffect=void 0),e&&this._startStreamEffect(e);}},{key:"dispose",value:function dispose(){var _this118=this;var e=Promise.resolve();return this._streamEffect&&(e=this.setEffect()),this.conference&&(e=e.then(function(){return _this118.conference.removeTrack(_this118);})),this.stream&&(this.stopStream(),this.detach()),yo.removeListener(Vn().DEVICE_LIST_WILL_CHANGE,this._onDeviceListWillChange),this._onAudioOutputDeviceChanged&&yo.removeListener(Vn().AUDIO_OUTPUT_DEVICE_CHANGED,this._onAudioOutputDeviceChanged),e.then(function(){return _get(_getPrototypeOf(Ro.prototype),"dispose",_this118).call(_this118);});}},{key:"getCameraFacingMode",value:function getCameraFacingMode(){if(this.isVideoTrack()&&this.videoType===Hn().CAMERA){var e,t;var _n67=null===(e=(t=this.track).getSettings)||void 0===e?void 0:e.call(t);return _n67&&"facingMode"in _n67?_n67.facingMode:void 0!==this._facingMode?this._facingMode:Wr().USER;}}},{key:"getDeviceId",value:function getDeviceId(){return this._realDeviceId||this.deviceId;}},{key:"getDuration",value:function getDuration(){return Date.now()/1e3-this.metadata.timestamp/1e3;}},{key:"getParticipantId",value:function getParticipantId(){return this.conference&&this.conference.myUserId();}},{key:"isEnded",value:function isEnded(){return this.isVideoTrack()&&this.isMuted()?this._trackEnded:"ended"===this.getTrack().readyState||this._trackEnded;}},{key:"isLocal",value:function isLocal(){return!0;}},{key:"isMuted",value:function isMuted(){return!this.stream||!(!this.isVideoTrack()||this.isActive())||(this._streamEffect&&this._streamEffect.isMuted?this._streamEffect.isMuted():!this.track||!this.track.enabled);}},{key:"isReceivingData",value:function isReceivingData(){return!(!this.isVideoTrack()||!this.isMuted()&&!this._stopStreamInProgress&&this.videoType!==Hn().DESKTOP)||!!this.stream&&(this._effectEnabled?this._originalStream:this.stream).getTracks().some(function(e){return!("readyState"in e&&"live"!==e.readyState||"muted"in e&&!0===e.muted);});}},{key:"mute",value:function mute(){return this._queueSetMuted(!0);}},{key:"onByteSentStatsReceived",value:function onByteSentStatsReceived(e,t){var _this119=this;t>0&&(this._hasSentData=!0);var n=e.getConnectionState();this._testDataSent&&"connected"===n&&(setTimeout(function(){_this119._hasSentData||(To.warn("".concat(_this119," \'bytes sent\' <= 0:                         ").concat(t)),jn.analytics.sendEvent("track.no-bytes-sent",{media_type:_this119.getType()}));},3e3),this._testDataSent=!1);}},{key:"setConference",value:function setConference(e){this.conference=e;for(var _e141=0;_e141<this.containers.length;_e141++)this._maybeFireTrackAttached(this.containers[_e141]);}},{key:"setEffect",value:function setEffect(e){var _this120=this;if(void 0===this._streamEffect&&void 0===e)return Promise.resolve();if(void 0!==e&&!e.isEnabled(this))return Promise.reject(new Error("Incompatible effect instance!"));if(!0===this._setEffectInProgress)return Promise.reject(new Error("setEffect already in progress!"));if(this.isMuted()&&!this.isAudioTrack())return this._streamEffect=e,Promise.resolve();var t=this.conference;return t?(this._setEffectInProgress=!0,t.removeTrack(this).then(function(){return _this120._switchStreamEffect(e),_this120.isVideoTrack()&&_this120.containers.forEach(function(e){return yo.attachMediaStream(e,_this120.stream);}),t.addTrack(_this120);}).then(function(){_this120._setEffectInProgress=!1;}).catch(function(e){throw _this120._setEffectInProgress=!1,_this120._switchStreamEffect(),To.error("Failed to switch to the new stream!",e),e;})):(this._switchStreamEffect(e),this.isVideoTrack()&&this.containers.forEach(function(e){return yo.attachMediaStream(e,_this120.stream);}),Promise.resolve());}},{key:"stopStream",value:function stopStream(){this._stopStreamInProgress=!0;try{yo.stopMediaStream(this.stream);}finally{this._stopStreamInProgress=!1;}}},{key:"toString",value:function toString(){return"LocalTrack[".concat(this.rtcId,",").concat(this.getType(),"]");}},{key:"unmute",value:function unmute(){return this._queueSetMuted(!1);}}]);return Ro;}(bo);var Ao=n(2342);var wo=function wo(e,t){return void 0!==e&&void 0!==e.media&&Array.isArray(e.media)&&e.media.forEach(function(e){e.sources&&e.sources.length&&(e.ssrcs=[],e.sources.forEach(function(t){Object.keys(t).forEach(function(n){"id"!==n&&e.ssrcs.push({id:t.id,attribute:n,value:t[n]});});}),delete e.sources),e.ssrcGroups&&e.ssrcGroups.length&&e.ssrcGroups.forEach(function(e){void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&(e.ssrcs=e.ssrcs.join(" "));});}),Ao.write(e,t);},Io=function Io(e){var t=Ao.parse(e);return void 0!==t&&void 0!==t.media&&Array.isArray(t.media)&&t.media.forEach(function(e){void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&(e.sources=[],e.ssrcs.forEach(function(t){var n=e.sources.findIndex(function(e){return e.id===t.id;});if(n>-1)e.sources[n][t.attribute]=t.value;else{var _n68={id:t.id};_n68[t.attribute]=t.value,e.sources.push(_n68);}}),delete e.ssrcs),void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&e.ssrcGroups.forEach(function(e){"string"==typeof e.ssrcs&&(e.ssrcs=e.ssrcs.split(" "));});}),t;},Po=["audio","video","data"],Mo=function Mo(e){return e.find(function(e){return"SIM"===e.semantics;});},Do=function Do(e){return e.find(function(e){return"FID"===e.semantics;});};function No(e,t,n,i){if(!e||!t)return;var s=function s(e){return i.find(function(t){return t.id.toString()===e;});};t.ssrcs.forEach(function(t){e.sources.push(s(t));var i=n[parseInt(t,10)].find(function(e){return"FID"===e.semantics;});if(i){var _n69=i.ssrcs.find(function(e){return e!==t;});e.sources.push(s(_n69)),e.ssrcGroups.push(i);}}),e.ssrcGroups.push(t);}function ko(e,t,n,i){if(!e||!t)return;if(e.sources=[],e.ssrcGroups=[],!n[t.id])return e.sources.push(t),void(e.msid=t.msid);var s=Mo(n[t.id]),r=Do(n[t.id]);if(s)No(e,s,n,i);else if(r){var _s31=r.ssrcs.find(function(e){return e!==t;}),_o11=Mo(n[_s31]);_o11?No(e,_o11,n,i):(r.ssrcs.forEach(function(t){e.sources.push(function(e){return i.find(function(t){return t.id.toString()===e;});}(t));}),e.ssrcGroups.push(r));}e.msid=e.sources[0].msid;}function Oo(e,t,n){if(!n.find(function(t){return!!t.sources&&t.sources.some(function(t){return t.id===e.id;});})){if(!t[e.id])return!1;var _i61=Mo(t[e.id]),_s32=Do(t[e.id]);return _i61?n.some(function(e){return e.sources&&e.sources.some(function(e){return e.id.toString()===_i61.ssrcs[0];});}):!(!_s32||e.id.toString()===_s32.ssrcs[0])&&Oo({id:_s32.ssrcs[0]},t,n);}return!0;}var Lo=/*#__PURE__*/function(){function Lo(){_classCallCheck(this,Lo);}_createClass(Lo,[{key:"toPlanB",value:function toPlanB(e){if(!e||"string"!=typeof e.sdp)return console.warn("An empty description was passed as an argument."),e;var t=Io(e.sdp);if(!t.media||!t.media.length)return console.warn("The description has no media."),e;if(t.media.every(function(e){return-1!==Po.indexOf(e.mid);}))return console.warn("The description does not look like unified plan sdp"),e;var n={},i=t.media;t.media=[],i.forEach(function(e){var t=e.type;if("application"===t)return e.mid="data",void(n[e.mid]=e);if(void 0===n[t]){var _i62=Qr(e);_i62.sources&&Array.isArray(_i62.sources)&&_i62.sources.forEach(function(t){e.msid?t.msid=e.msid:delete t.msid;}),_i62.ssrcGroups&&e.msid||(_i62.ssrcGroups=[]),delete _i62.msid,_i62.mid=t,n[t]=_i62;}else e.msid&&(e.sources&&Array.isArray(e.sources)&&(n[t].sources=(n[t].sources||[]).concat(e.sources)),void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&(n[t].ssrcGroups=n[t].ssrcGroups.concat(e.ssrcGroups)));}),t.media=Object.values(n);var s=[];Object.values(n).forEach(function(e){"inactive"!==e.direction&&s.push(e.mid);}),t.groups.forEach(function(e){"BUNDLE"===e.type&&(e.mids=s.join(" "));}),t.msidSemantic={semantic:"WMS",token:"*"};var r=wo(t);return new RTCSessionDescription({type:e.type,sdp:r});}},{key:"toUnifiedPlan",value:function toUnifiedPlan(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!e||"string"!=typeof e.sdp)return console.warn("An empty description was passed as an argument."),e;var n=Io(e.sdp);if(!n.media||!n.media.length)return console.warn("The description has no media."),e;if(n.media.length>3||n.media.every(function(e){return-1===Po.indexOf(e.mid);}))return console.warn("The description does not look like plan-b"),e;var i=t?Io(t.sdp):null,s=function(e,t){if(!e||!t||0===e.media.length||0===t.media.length)return!1;var n=e.media[0],i=t.media[0];return n.iceUfrag!==i.iceUfrag||n.icePwd!==i.icePwd;}(n,i),r=n.media[0].iceUfrag,o=n.media[0].icePwd,a=n.media[0].fingerprint,c={};n.media.forEach(function(e){var t=e.type;if("application"===t){if(!i||!i.media){var _t92=Qr(e);return _t92.mid=Object.keys(c).length.toString(),void(c[e.mid]=_t92);}var _n70=i.media.findIndex(function(e){return e.type===t;});return void(_n70&&(i.media[_n70]=e,i.media[_n70].mid=_n70));}var n=function(e){var t={};return e&&Array.isArray(e)?(e.forEach(function(e){e.ssrcs&&Array.isArray(e.ssrcs)&&e.ssrcs.forEach(function(n){void 0===t[n]&&(t[n]=[]),t[n].push(e);});}),t):t;}(e.ssrcGroups);if(e.sources)e.sources.forEach(function(s,r){if(!s.msid)return;if(!i||!i.media){if(Oo(s,n,Object.values(c)))return;var _t93=Qr(e);return _t93.mid=Object.keys(c).length.toString(),_t93.direction=r||"sendonly"===e.direction?"sendonly":"sendrecv",_t93.bundleOnly=void 0,ko(_t93,s,n,e.sources),void(c[_t93.mid]=_t93);}if(Oo(s,n,i.media))return;var o=(d=t,(a=i)&&d?a.media.find(function(e){return 0===e.port&&e.type===d;}):null);var a,d;if(o)return o.port=e.port,o.direction="sendonly",void ko(o,s,n,e.sources);var l=Qr(e);l.mid=i.media.length.toString(),l.direction="sendonly",ko(l,s,n,e.sources),i.media.push(l);});else if(!i){var _t94=Qr(e);_t94.mid=Object.keys(c).length.toString(),c[e.mid]=_t94;}}),n.media=i?i.media:Object.values(c);var d=[];n.media.forEach(function(e){d.push(e.mid),s&&(e.iceUfrag=r,e.icePwd=o,e.fingerprint=a);}),n.groups.forEach(function(e){"BUNDLE"===e.type&&(e.mids=d.join(" "));}),n.msidSemantic={semantic:"WMS",token:"*"},n.origin.sessionVersion++;var l=wo(n);return new RTCSessionDescription({type:e.type,sdp:l});}}]);return Lo;}();var xo=n(766);var Fo="signaling.peerMuted",jo="signaling.peerVideoType";function $o(e,t,n){return"".concat(e,"-").concat(t.substring(0,1)).concat(n);}function Uo(e){var t=e.indexOf("-")+1;if(t<=0)throw new Error("Invalid source name: ".concat(e));var n=e.substr(t,1);for(var _i63=0,_Object$values2=Object.values(o);_i63<_Object$values2.length;_i63++){var _e142=_Object$values2[_i63];if(_e142.substr(0,1)===n)return _e142;}throw new Error("Invalid source name: ".concat(e));}var Bo=/*#__PURE__*/function(_vi10){_inherits(Bo,_vi10);var _super24=_createSuper(Bo);function Bo(){_classCallCheck(this,Bo);return _super24.apply(this,arguments);}_createClass(Bo,[{key:"getSSRCOwner",value:function getSSRCOwner(e){throw new Error("not implemented");}},{key:"getPeerMediaInfo",value:function getPeerMediaInfo(e,t){throw new Error("not implemented");}},{key:"getPeerSourceInfo",value:function getPeerSourceInfo(e,t){throw new Error("not implemented");}},{key:"getTrackSourceName",value:function getTrackSourceName(e){throw new Error("not implemented");}}]);return Bo;}(vi);function Vo(e){return parseInt(e.ssrcs.split(" ")[0],10);}function Jo(e){return parseInt(e.ssrcs.split(" ")[1],10);}function Ho(e){return e.ssrcs?e.ssrcs.map(function(e){return e.id;}).filter(function(e,t,n){return n.indexOf(e)===t;}).length:0;}var Go=/*#__PURE__*/function(){function Go(e){_classCallCheck(this,Go);if(!e)throw new Error("mLine is undefined");this.mLine=e;}_createClass(Go,[{key:"ssrcs",get:function get(){return this.mLine.ssrcs||(this.mLine.ssrcs=[]),this.mLine.ssrcs;},set:function set(e){this.mLine.ssrcs=e;}},{key:"direction",get:function get(){return this.mLine.direction;},set:function set(e){this.mLine.direction=e;}},{key:"ssrcGroups",get:function get(){return this.mLine.ssrcGroups||(this.mLine.ssrcGroups=[]),this.mLine.ssrcGroups;},set:function set(e){this.mLine.ssrcGroups=e;}},{key:"getSSRCAttrValue",value:function getSSRCAttrValue(e,t){var n=this.ssrcs.find(function(n){return n.id===e&&n.attribute===t;});return n&&n.value;}},{key:"removeSSRC",value:function removeSSRC(e){this.mLine.ssrcs&&this.mLine.ssrcs.length&&(this.mLine.ssrcs=this.mLine.ssrcs.filter(function(t){return t.id!==e;}));}},{key:"addSSRCAttribute",value:function addSSRCAttribute(e){this.ssrcs.push(e);}},{key:"findGroup",value:function findGroup(e,t){return this.ssrcGroups.find(function(n){return n.semantics===e&&(!t||t===n.ssrcs);});}},{key:"findGroups",value:function findGroups(e){return this.ssrcGroups.filter(function(t){return t.semantics===e;});}},{key:"findGroupByPrimarySSRC",value:function findGroupByPrimarySSRC(e,t){return this.ssrcGroups.find(function(n){return n.semantics===e&&Vo(n)===t;});}},{key:"findSSRCByMSID",value:function findSSRCByMSID(e){return this.ssrcs.find(function(t){return"msid"===t.attribute&&(null===e||t.value===e);});}},{key:"getSSRCCount",value:function getSSRCCount(){return Ho(this.mLine);}},{key:"containsAnySSRCGroups",value:function containsAnySSRCGroups(){return void 0!==this.mLine.ssrcGroups;}},{key:"getPrimaryVideoSsrc",value:function getPrimaryVideoSsrc(){var e=this.mLine.type;if("video"!==e)throw new Error("getPrimarySsrc doesn\'t work with \'".concat(e,"\'"));if(1===Ho(this.mLine))return this.mLine.ssrcs[0].id;if(this.mLine.ssrcGroups){var _e143=this.findGroup("SIM");if(_e143)return Vo(_e143);var _t95=this.findGroup("FID");if(_t95)return Vo(_t95);var _n71=this.findGroup("FEC-FR");if(_n71)return Vo(_n71);}}},{key:"getRtxSSRC",value:function getRtxSSRC(e){var t=this.findGroupByPrimarySSRC("FID",e);return t&&Jo(t);}},{key:"getSSRCs",value:function getSSRCs(){return this.ssrcs.map(function(e){return e.id;}).filter(function(e,t,n){return n.indexOf(e)===t;});}},{key:"getPrimaryVideoSSRCs",value:function getPrimaryVideoSSRCs(){var e=this.mLine.type;if("video"!==e)throw new Error("getPrimaryVideoSSRCs doesn\'t work with ".concat(e));var t=this.getSSRCs();var _iterator40=_createForOfIteratorHelper(this.ssrcGroups),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e144=_step40.value;if("FID"===_e144.semantics||"FEC-FR"===_e144.semantics){var _n72=Jo(_e144);t.splice(t.indexOf(_n72),1);}}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}return t;}},{key:"dumpSSRCGroups",value:function dumpSSRCGroups(){return JSON.stringify(this.mLine.ssrcGroups);}},{key:"removeGroupsWithSSRC",value:function removeGroupsWithSSRC(e){this.mLine.ssrcGroups&&(this.mLine.ssrcGroups=this.mLine.ssrcGroups.filter(function(t){return-1===t.ssrcs.indexOf("".concat(e));}));}},{key:"removeGroupsBySemantics",value:function removeGroupsBySemantics(e){this.mLine.ssrcGroups&&(this.mLine.ssrcGroups=this.mLine.ssrcGroups.filter(function(t){return t.semantics!==e;}));}},{key:"replaceSSRC",value:function replaceSSRC(e,t){this.mLine.ssrcs&&this.mLine.ssrcs.forEach(function(n){n.id===e&&(n.id=t);});}},{key:"addSSRCGroup",value:function addSSRCGroup(e){this.ssrcGroups.push(e);}}]);return Go;}();var qo=/*#__PURE__*/function(){function qo(e){_classCallCheck(this,qo);this.parsedSDP=xo.parse(e);}_createClass(qo,[{key:"selectMedia",value:function selectMedia(e){var t=this.parsedSDP.media.find(function(t){return t.type===e;});return t?new Go(t):null;}},{key:"toRawSDP",value:function toRawSDP(){return xo.write(this.parsedSDP);}}]);return qo;}();var Ko=(0,g.getLogger)("modules/sdp/LocalSdpMunger.js");var zo=/*#__PURE__*/function(){function zo(e,t){_classCallCheck(this,zo);this.tpc=e,this.localEndpointId=t;}_createClass(zo,[{key:"_addMutedLocalVideoTracksToSDP",value:function _addMutedLocalVideoTracksToSDP(e){var t=this.tpc.getLocalTracks(wn);if(!t.length)return!1;1!==t.length&&Ko.error("".concat(this.tpc," there is more than 1 video track ! Strange things may happen !"),t);var n=e.selectMedia("video");if(!n)return Ko.debug("".concat(this.tpc," unable to hack local video track SDP- no \\"video\\" media")),!1;var i=!1;var _iterator41=_createForOfIteratorHelper(t),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e145=_step41.value;var _t96=_e145.isMuted(),_s33=_e145.getOriginalStream(),_r16=_e145.videoType===Hn().CAMERA,_o12=_s33&&this.tpc.isMediaStreamInPc(_s33);if(!_r16||!_t96&&_o12)continue;var _a6=this.tpc.isSimulcastOn()?this.tpc.simulcast.ssrcCache:[this.tpc.sdpConsistency.cachedPrimarySsrc];if(!_a6.length){Ko.error("No SSRCs stored for: ".concat(_e145," in ").concat(this.tpc));continue;}i=!0,n.direction=Zs().SENDRECV;var _c4="injected-".concat(_a6[0]);var _iterator42=_createForOfIteratorHelper(_a6),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var _t97=_step42.value;n.removeSSRC(_t97),n.addSSRCAttribute({id:_t97,attribute:"cname",value:_c4}),n.addSSRCAttribute({id:_t97,attribute:"msid",value:_e145.storedMSID});}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}if(_a6.length>1){var _e146={ssrcs:_a6.join(" "),semantics:"SIM"};n.findGroup(_e146.semantics,_e146.ssrcs)||n.addSSRCGroup(_e146);}this.tpc.options.disableRtx||this.tpc.rtxModifier.modifyRtxSsrcs2(n);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}return i;}},{key:"_generateMsidAttribute",value:function _generateMsidAttribute(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e||!t)return Ko.warn("Unable to munge local MSID - track id=".concat(t," or media type=").concat(e," is missing")),null;var i=this.tpc.id;return"-"!==n&&n?"".concat(n,"-").concat(i," ").concat(t,"-").concat(i):"".concat(this.localEndpointId,"-").concat(e,"-").concat(i," ").concat(t,"-").concat(i);}},{key:"_transformMediaIdentifiers",value:function _transformMediaIdentifiers(e){var _this121=this;var t;var n=this.tpc.id;var _iterator43=_createForOfIteratorHelper(e.ssrcs),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _t99=_step43.value;switch(_t99.attribute){case"cname":case"label":case"mslabel":_t99.value=_t99.value&&"".concat(_t99.value,"-").concat(n);break;case"msid":if(_t99.value){var _n74=_t99.value.split(" ");var i;2===_n74.length?_t99.value=this._generateMsidAttribute(null===(i=e.mLine)||void 0===i?void 0:i.type,_n74[1],_n74[0]):Ko.warn("Unable to munge local MSID - weird format detected: ".concat(_t99.value));}}}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}if(!this.tpc.usesUnifiedPlan())return;var s=null===(t=e.mLine)||void 0===t?void 0:t.direction;if(s===Zs().RECVONLY||s===Zs().INACTIVE)e.ssrcs=void 0,e.ssrcGroups=void 0;else{var r,o,a;var _t98=null===(r=e.mLine)||void 0===r?void 0:r.msid,_n73=_t98&&_t98.split(" ")[1],_i64=_toConsumableArray(new Set(null===(o=e.mLine)||void 0===o||null===(a=o.ssrcs)||void 0===a?void 0:a.map(function(e){return e.id;})));var _iterator44=_createForOfIteratorHelper(_i64),_step44;try{var _loop8=function _loop8(){var t=_step44.value;if(!e.ssrcs.find(function(e){return e.id===t&&"msid"===e.attribute;})){var _i65=_this121._generateMsidAttribute(null===(c=e.mLine)||void 0===c?void 0:c.type,_n73);e.ssrcs.push({id:t,attribute:"msid",value:_i65});}};for(_iterator44.s();!(_step44=_iterator44.n()).done;){var c;_loop8();}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}}}},{key:"maybeAddMutedLocalVideoTracksToSDP",value:function maybeAddMutedLocalVideoTracksToSDP(e){if(!e)throw new Error("No local description passed in.");var t=new qo(e.sdp);return this._addMutedLocalVideoTracksToSDP(t)?new RTCSessionDescription({type:e.type,sdp:t.toRawSDP()}):e;}},{key:"transformStreamIdentifiers",value:function transformStreamIdentifiers(e){if(!e||!e.sdp||!e.type)return e;var t=new qo(e.sdp),n=t.selectMedia("audio");n&&(this._transformMediaIdentifiers(n),this._injectSourceNames(n));var i=t.selectMedia("video");return i&&(this._transformMediaIdentifiers(i),this._injectSourceNames(i)),new RTCSessionDescription({type:e.type,sdp:t.toRawSDP()});}},{key:"_injectSourceNames",value:function _injectSourceNames(e){var _this122=this;var t,n,i;if(!Hs.isSourceNameSignalingEnabled())return;var s=_toConsumableArray(new Set(null===(t=e.mLine)||void 0===t||null===(n=t.ssrcs)||void 0===n?void 0:n.map(function(e){return e.id;}))),r=null===(i=e.mLine)||void 0===i?void 0:i.type;if(!r)throw new Error("_transformMediaIdentifiers - no media type in mediaSection");var _iterator45=_createForOfIteratorHelper(s),_step45;try{var _loop9=function _loop9(){var t=_step45.value;e.ssrcs.find(function(e){return e.id===t&&"name"===e.attribute;})||e.ssrcs.push({id:t,attribute:"name",value:$o(_this122.localEndpointId,r,0)});};for(_iterator45.s();!(_step45=_iterator45.n()).done;){_loop9();}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}}}]);return zo;}();var Wo=(0,g.getLogger)("modules/sdp/RtxModifier.js");function Qo(e,t,n){var i=t.id,s=t.msid,r=t.cname,o=e.getRtxSSRC(i);o!==n&&(o&&(e.removeSSRC(o),e.removeGroupsWithSSRC(o)),e.addSSRCAttribute({id:n,attribute:"cname",value:r}),e.addSSRCAttribute({id:n,attribute:"msid",value:s}),e.addSSRCGroup({semantics:"FID",ssrcs:"".concat(i," ").concat(n)}));}var Xo=/*#__PURE__*/function(){function Xo(){_classCallCheck(this,Xo);this.correspondingRtxSsrcs=new Map();}_createClass(Xo,[{key:"clearSsrcCache",value:function clearSsrcCache(){this.correspondingRtxSsrcs.clear();}},{key:"setSsrcCache",value:function setSsrcCache(e){Wo.debug("Setting ssrc cache to ",e),this.correspondingRtxSsrcs=e;}},{key:"modifyRtxSsrcs",value:function modifyRtxSsrcs(e){var t=new qo(e),n=t.selectMedia("video");return n?this.modifyRtxSsrcs2(n)?t.toRawSDP():e:(Wo.debug("No \'video\' media found in the sdp: ".concat(e)),e);}},{key:"modifyRtxSsrcs2",value:function modifyRtxSsrcs2(e){if("recvonly"===e.direction)return!1;if(e.getSSRCCount()<1)return!1;var t=e.getPrimaryVideoSSRCs();var _iterator46=_createForOfIteratorHelper(t),_step46;try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var _n75=_step46.value;var _t100=e.getSSRCAttrValue(_n75,"msid"),_i66=e.getSSRCAttrValue(_n75,"cname");var _s34=this.correspondingRtxSsrcs.get(_n75);if(!_s34){_s34=e.getRtxSSRC(_n75)||rr.generateSsrc(),this.correspondingRtxSsrcs.set(_n75,_s34);}Qo(e,{id:_n75,cname:_i66,msid:_t100},_s34);}}catch(err){_iterator46.e(err);}finally{_iterator46.f();}return!0;}},{key:"stripRtx",value:function stripRtx(e){var t=new qo(e),n=t.selectMedia("video");if(!n)return Wo.debug("No \'video\' media found in the sdp: ".concat(e)),e;if("recvonly"===n.direction)return Wo.debug("RtxModifier doing nothing, video m line is recvonly"),e;if(n.getSSRCCount()<1)return Wo.debug("RtxModifier doing nothing, no video ssrcs present"),e;if(!n.containsAnySSRCGroups())return Wo.debug("RtxModifier doing nothing, no video ssrcGroups present"),e;var i=n.findGroups("FID");n.removeGroupsBySemantics("FID");var _iterator47=_createForOfIteratorHelper(i),_step47;try{for(_iterator47.s();!(_step47=_iterator47.n()).done;){var _e147=_step47.value;var _t101=Jo(_e147);n.removeSSRC(_t101);}}catch(err){_iterator47.e(err);}finally{_iterator47.f();}return t.toRawSDP();}}]);return Xo;}();var Yo=(0,g.getLogger)("modules/sdp/SdpConsistency.js");var Zo=/*#__PURE__*/function(){function Zo(e){_classCallCheck(this,Zo);this.clearVideoSsrcCache(),this.logPrefix=e;}_createClass(Zo,[{key:"clearVideoSsrcCache",value:function clearVideoSsrcCache(){this.cachedPrimarySsrc=null,this.injectRecvOnly=!1;}},{key:"setPrimarySsrc",value:function setPrimarySsrc(e){if("number"!=typeof e)throw new Error("Primary SSRC must be a number!");this.cachedPrimarySsrc=e;}},{key:"hasPrimarySsrcCached",value:function hasPrimarySsrcCached(){return Boolean(this.cachedPrimarySsrc);}},{key:"makeVideoPrimarySsrcsConsistent",value:function makeVideoPrimarySsrcsConsistent(e){var t=new qo(e),n=t.selectMedia("video");if(!n)return Yo.debug("".concat(this.logPrefix," no \'video\' media found in the sdp: ").concat(e)),e;if("recvonly"===n.direction)this.cachedPrimarySsrc&&this.injectRecvOnly?n.addSSRCAttribute({id:this.cachedPrimarySsrc,attribute:"cname",value:"recvonly-".concat(this.cachedPrimarySsrc)}):Yo.info("".concat(this.logPrefix," no SSRC found for the recvonly video stream!"));else{var _t102=n.getPrimaryVideoSsrc();if(!_t102)return Yo.info("".concat(this.logPrefix," sdp-consistency couldn\'t parse new primary ssrc")),e;if(this.cachedPrimarySsrc){n.replaceSSRC(_t102,this.cachedPrimarySsrc);var _iterator48=_createForOfIteratorHelper(n.ssrcGroups),_step48;try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){var _e148=_step48.value;if("FID"===_e148.semantics){var _n76=Vo(_e148),_i67=Jo(_e148);_n76===_t102&&(_e148.ssrcs="".concat(this.cachedPrimarySsrc," ").concat(_i67));}}}catch(err){_iterator48.e(err);}finally{_iterator48.f();}}else this.cachedPrimarySsrc=_t102;this.injectRecvOnly=!0;}return t.toRawSDP();}}]);return Zo;}();var ea=n(9077).getLogger("modules/RTC/JitsiRemoteTrack.js"),ta=n(1645);var na=!1,ia=!1;var sa=["abort","canplaythrough","ended","error"];var ra=/*#__PURE__*/function(_bo2){_inherits(ra,_bo2);var _super25=_createSuper(ra);function ra(e,t,n,i,s,r,o,a,c,d,l){var _this123;_classCallCheck(this,ra);if(_this123=_super25.call(this,t,i,s,function(){},r,o),_this123.rtc=e,"number"!=typeof a)throw new TypeError("SSRC ".concat(a," is not a number"));_this123.ssrc=a,_this123.ownerEndpointId=n,_this123.muted=c,_this123.isP2P=d,_this123._sourceName=l,ea.debug("New remote track added: ".concat(_assertThisInitialized(_this123))),_this123.hasBeenMuted=c,_this123.rtc&&_this123.track&&_this123._bindTrackHandlers(),_this123._containerHandlers={},sa.forEach(function(e){_this123._containerHandlers[e]=_this123._containerEventHandler.bind(_assertThisInitialized(_this123),e);});return _possibleConstructorReturn(_this123);}_createClass(ra,[{key:"_bindTrackHandlers",value:function _bindTrackHandlers(){var _this124=this;this.track.addEventListener("mute",function(){return _this124._onTrackMute();}),this.track.addEventListener("unmute",function(){return _this124._onTrackUnmute();}),this.track.addEventListener("ended",function(){ea.debug("\\"onended\\" event(".concat(Date.now(),"): ").concat(_this124));});}},{key:"_onTrackMute",value:function _onTrackMute(){ea.debug("\\"onmute\\" event(".concat(Date.now(),"): ").concat(this)),this.rtc.eventEmitter.emit(ta.REMOTE_TRACK_MUTE,this);}},{key:"_onTrackUnmute",value:function _onTrackUnmute(){ea.debug("\\"onunmute\\" event(".concat(Date.now(),"): ").concat(this)),this.rtc.eventEmitter.emit(ta.REMOTE_TRACK_UNMUTE,this);}},{key:"setMute",value:function setMute(e){this.muted!==e&&(e&&(this.hasBeenMuted=!0),this.stream&&(this.stream.muted=e),this.muted=e,this.emit(ei,this));}},{key:"isMuted",value:function isMuted(){return this.muted;}},{key:"getParticipantId",value:function getParticipantId(){return this.ownerEndpointId;}},{key:"isLocal",value:function isLocal(){return!1;}},{key:"getSSRC",value:function getSSRC(){return this.ssrc;}},{key:"getSourceName",value:function getSourceName(){return this._sourceName;}},{key:"_setVideoType",value:function _setVideoType(e){this.videoType!==e&&(this.videoType=e,this.emit(ti,e));}},{key:"_playCallback",value:function _playCallback(){var e=this.isVideoTrack()?"video":"audio",t=window.performance.now();console.log("(TIME) Render ".concat(e,":\\t"),t),this.conference.getConnectionTimes()["".concat(e,".render")]=t;var n=window.connectionTimes["obtainPermissions.start"],i=window.connectionTimes["obtainPermissions.end"],s=isNaN(i)||isNaN(n)?0:i-n,r=t-(this.conference.getConnectionTimes()["session.initiate"]-this.conference.getConnectionTimes()["muc.joined"])-s;var o;this.conference.getConnectionTimes()["".concat(e,".ttfm")]=r,console.log("(TIME) TTFM ".concat(e,":\\t"),r),jn.sendAnalytics((o={media_type:e,muted:this.hasBeenMuted,value:r},It("ttfm",o)));}},{key:"_attachTTFMTracker",value:function _attachTTFMTracker(e){na&&this.isAudioTrack()||ia&&this.isVideoTrack()||(this.isAudioTrack()&&(na=!0),this.isVideoTrack()&&(ia=!0),e.addEventListener("canplay",this._playCallback.bind(this)));}},{key:"_onTrackAttach",value:function _onTrackAttach(e){var _this125=this;sa.forEach(function(t){e.addEventListener(t,_this125._containerHandlers[t]);});}},{key:"_onTrackDetach",value:function _onTrackDetach(e){var _this126=this;sa.forEach(function(t){e.removeEventListener(t,_this126._containerHandlers[t]);});}},{key:"_containerEventHandler",value:function _containerEventHandler(e){ea.debug("".concat(e," handler was called for a container with attached ").concat(this));}},{key:"_getStatus",value:function _getStatus(){var _this$track=this.track,e=_this$track.enabled,t=_this$track.muted,n=_this$track.readyState;return"readyState: ".concat(n,", muted: ").concat(t,", enabled: ").concat(e);}},{key:"toString",value:function toString(){return"RemoteTrack[userID: ".concat(this.getParticipantId(),", type: ").concat(this.getType(),", ssrc: ").concat(this.getSSRC(),", p2p: ").concat(this.isP2P,", sourceName: ").concat(this._sourceName,", status: ").concat(this._getStatus(),"]");}}]);return ra;}(bo);var oa=(0,g.getLogger)("modules/RTC/TPCUtils.js"),aa=25e5,ca=["1","2","3"];var da=/*#__PURE__*/function(){function da(e){_classCallCheck(this,da);var t,n,i;this.pc=e;var s=null===(t=this.pc.options)||void 0===t||null===(n=t.videoQuality)||void 0===n?void 0:n.maxBitratesVideo,r={low:2e5,standard:7e5,high:aa};this.videoBitrates=null!=s?s:r;var o=null!==(i=this.videoBitrates.VP8)&&void 0!==i?i:this.videoBitrates,a=nn.isFirefox()&&nn.isVersionLessThan(117);this.localStreamEncodingsConfig=[{active:!0,maxBitrate:a?o.high:o.low,rid:"1",scaleResolutionDownBy:a?1:4},{active:!0,maxBitrate:o.standard,rid:"2",scaleResolutionDownBy:2},{active:!0,maxBitrate:a?o.low:o.high,rid:"3",scaleResolutionDownBy:a?4:1}];}_createClass(da,[{key:"_getStreamEncodings",value:function _getStreamEncodings(e){return this.pc.isSimulcastOn()&&e.isVideoTrack()?this.localStreamEncodingsConfig:e.isVideoTrack()?[{active:!0,maxBitrate:this.videoBitrates.high}]:[{active:!0}];}},{key:"ensureCorrectOrderOfSsrcs",value:function ensureCorrectOrderOfSsrcs(e){var t=xo.parse(e.sdp);return t.media.forEach(function(e){if(e.type===Rn)return;if(!e.ssrcGroups||!e.ssrcGroups.length)return;var t=[];var n=new Set();e.ssrcGroups.map(function(e){return e.ssrcs.split(" ").filter(Boolean).forEach(function(e){return n.add(e);});}),n.forEach(function(n){var i=e.ssrcs.filter(function(e){return e.id.toString()===n;});t=t.concat(i);}),e.ssrcs=t;}),new RTCSessionDescription({type:e.type,sdp:xo.write(t)});}},{key:"findTransceiver",value:function findTransceiver(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!=t&&t.track&&t.getOriginalStream()?this.pc.peerconnection.getTransceivers().find(function(e){var n,i;return(null===(n=e.sender)||void 0===n||null===(i=n.track)||void 0===i?void 0:i.id)===t.getTrackId();}):this.pc.peerconnection.getTransceivers().find(function(t){var n,i;return(null===(n=t.receiver)||void 0===n||null===(i=n.track)||void 0===i?void 0:i.kind)===e;});}},{key:"insertUnifiedPlanSimulcastReceive",value:function insertUnifiedPlanSimulcastReceive(e){if(nn.usesSdpMungingForSimulcast())return e;var t=xo.parse(e.sdp),n=t.media.findIndex(function(e){return e.type===wn;});if(t.media[n].rids&&(t.media[n].simulcast_03||t.media[n].simulcast))return t.media.forEach(function(e,i){e.type===wn&&i!==n&&(t.media[i].rids=void 0,t.media[i].simulcast=void 0,t.media[i].simulcast_03=void 0);}),new RTCSessionDescription({type:e.type,sdp:xo.write(t)});t.media[n].rids=[{id:"1",direction:"recv"},{id:"2",direction:"recv"},{id:"3",direction:"recv"}];var i=nn.isFirefox()&&nn.isVersionGreaterThan(71)?"recv ".concat(ca.join(";")):"recv rid=".concat(ca.join(";"));return t.media[n].simulcast_03={value:i},new RTCSessionDescription({type:e.type,sdp:xo.write(t)});}},{key:"addTrack",value:function addTrack(e,t){var n=e.getTrack();if(t){var _t103={direction:Zs().SENDRECV,streams:[e.getOriginalStream()],sendEncodings:[]};nn.isFirefox()||(_t103.sendEncodings=this._getStreamEncodings(e)),this.pc.peerconnection.addTransceiver(n,_t103);}else this.pc.peerconnection.addTrack(n);}},{key:"calculateEncodingsActiveState",value:function calculateEncodingsActiveState(e,t){var _this127=this;var n=e.getTrack(),_n$getSettings=n.getSettings(),i=_n$getSettings.height;return this.localStreamEncodingsConfig.map(function(e){return i/e.scaleResolutionDownBy;}).map(function(n,i){var s;var r=e.getVideoType()!==Hn().CAMERA||t>0&&4===(null===(s=_this127.localStreamEncodingsConfig[i])||void 0===s?void 0:s.scaleResolutionDownBy)||n<=t;return _this127.pc.isSharingLowFpsScreen()&&_this127.pc.usesUnifiedPlan()&&!nn.isWebKitBased()&&1!==_this127.localStreamEncodingsConfig[i].scaleResolutionDownBy&&(r=!1),r;});}},{key:"calculateEncodingsBitrates",value:function calculateEncodingsBitrates(e){var _this128=this;var t,n;var i=e.getVideoType(),s=(null===(t=this.pc.options)||void 0===t||null===(n=t.videoQuality)||void 0===n?void 0:n.desktopBitrate)||5e5,r=e._originalStream&&e._originalStream.id!==e.getStreamId();return this.localStreamEncodingsConfig.map(function(e){return _this128.pc.isSharingLowFpsScreen()&&!nn.isWebKitBased()?r?aa:s:i===Hn().DESKTOP&&nn.isChromiumBased()&&!_this128.pc.usesUnifiedPlan()?void 0:e.maxBitrate;});}},{key:"replaceTrack",value:function replaceTrack(e,t){var n,i;var s=null!==(n=null==t?void 0:t.getType())&&void 0!==n?n:null==e?void 0:e.getType(),r=this.findTransceiver(s,e),o=null!==(i=null==t?void 0:t.getTrack())&&void 0!==i?i:null;return r?(oa.debug("".concat(this.pc," Replacing ").concat(e," with ").concat(t)),r.sender.replaceTrack(o)):Promise.reject(new Error("replace track failed"));}},{key:"setAudioTransferActive",value:function setAudioTransferActive(e){this.setMediaTransferActive(Rn,e);}},{key:"setEncodings",value:function setEncodings(e){var t,n;var i=e.getType(),s=this.findTransceiver(i,e),r=null==s||null===(t=s.sender)||void 0===t?void 0:t.getParameters();return null!=r&&null!==(n=r.encodings)&&void 0!==n&&n.length?(r.encodings=this._getStreamEncodings(e),s.sender.setParameters(r)):Promise.resolve();}},{key:"setMediaTransferActive",value:function setMediaTransferActive(e,t){var n=this.pc.peerconnection.getTransceivers().filter(function(t){return t.receiver&&t.receiver.track&&t.receiver.track.kind===e;}),i=this.pc.getLocalTracks(e);oa.info("".concat(this.pc," ").concat(t?"Enabling":"Suspending"," ").concat(e," media transfer.")),n.forEach(function(e,n){t?0===n&&i.length?e.direction=Zs().SENDRECV:e.direction=Zs().RECVONLY:e.direction=Zs().INACTIVE;});}},{key:"setVideoTransferActive",value:function setVideoTransferActive(e){this.setMediaTransferActive(wn,e);}},{key:"updateEncodingsResolution",value:function updateEncodingsResolution(e){var _this129=this;var t;nn.isWebKitBased()&&e.encodings&&Array.isArray(e.encodings)&&(t=e.encodings).every(function(e){return void 0!==e.scaleResolutionDownBy&&e.scaleResolutionDownBy===t[0].scaleResolutionDownBy;})&&e.encodings.forEach(function(e,t){e.scaleResolutionDownBy=_this129.localStreamEncodingsConfig[t].scaleResolutionDownBy;});}}]);return da;}();var la=(0,g.getLogger)("modules/RTC/TraceablePeerConnection.js");function ha(e,t,i,s,r,o,a){var _this130=this;this.audioTransferActive=!(!0===a.startSilent),this._dtmfSender=void 0,this._dtmfTonesQueue=[],this.videoTransferActive=!0,this.rtc=e,this.id=t,this.isP2P=o,this.remoteTracks=new Map(),this.localTracks=new Map(),this._addedStreams=[],this.localSSRCs=new Map(),this.localUfrag=null,this.remoteUfrag=null,this._dtlsTransport=null,this.signalingLayer=i,this._peerVideoTypeChanged=this._peerVideoTypeChanged.bind(this),this.signalingLayer.on(jo,this._peerVideoTypeChanged),this._peerMutedChanged=this._peerMutedChanged.bind(this),this.signalingLayer.on(Fo,this._peerMutedChanged),this.options=a;var c=r||{};c.optional=c.optional||[],Array.isArray(c.optional)?c.optional.push({rtcStatsSFUP2P:this.isP2P}):la.warn("Optional param is not an array, rtcstats p2p data is omitted."),this.peerconnection=new yo.RTCPeerConnectionType(s,c),this.tpcUtils=new da(this),this.updateLog=[],this.stats={},this.statsinterval=null,this._capScreenshareBitrate=this.options.capScreenshareBitrate,this._usesUnifiedPlan=a.usesUnifiedPlan,this._usesTransceiverCodecPreferences=nn.supportsCodecPreferences()&&this._usesUnifiedPlan,this._usesTransceiverCodecPreferences&&la.info("Using RTCRtpTransceiver#setCodecPreferences for codec selection"),this.maxstats=a.maxstats,this.interop=new Lo();var d=n(2636);this.simulcast=new d({numOfLayers:ca.length,explodeRemoteSimulcast:!1,usesUnifiedPlan:this._usesUnifiedPlan}),this.sdpConsistency=new Zo(this.toString()),this.localSdpMunger=new zo(this,this.rtc.getLocalEndpointId()),this.eventEmitter=e.eventEmitter,this.rtxModifier=new Xo(),this._senderVideoMaxHeight=2160,this.trace=function(e,t){la.debug(e,t),_this130.updateLog.push({time:new Date(),type:e,value:t||""});},this.onicecandidate=null,this.peerconnection.onicecandidate=function(e){_this130.trace("onicecandidate",JSON.stringify(e.candidate,null," ")),null!==_this130.onicecandidate&&_this130.onicecandidate(e);},this._usesUnifiedPlan?(this.onTrack=function(e){var t=e.streams[0];_this130._remoteTrackAdded(t,e.track,e.transceiver),t.addEventListener("removetrack",function(e){_this130._remoteTrackRemoved(t,e.track);});},this.peerconnection.addEventListener("track",this.onTrack)):(this.peerconnection.onaddstream=function(e){return _this130._remoteStreamAdded(e.stream);},this.peerconnection.onremovestream=function(e){return _this130._remoteStreamRemoved(e.stream);}),this.onsignalingstatechange=null,this.peerconnection.onsignalingstatechange=function(e){_this130.trace("onsignalingstatechange",_this130.signalingState),null!==_this130.onsignalingstatechange&&_this130.onsignalingstatechange(e);},this.oniceconnectionstatechange=null,this.peerconnection.oniceconnectionstatechange=function(e){_this130.trace("oniceconnectionstatechange",_this130.iceConnectionState),null!==_this130.oniceconnectionstatechange&&_this130.oniceconnectionstatechange(e);},this.onnegotiationneeded=null,this.peerconnection.onnegotiationneeded=function(e){_this130.trace("onnegotiationneeded"),null!==_this130.onnegotiationneeded&&_this130.onnegotiationneeded(e);},this.onconnectionstatechange=null,this.peerconnection.onconnectionstatechange=function(e){_this130.trace("onconnectionstatechange",_this130.connectionState),null!==_this130.onconnectionstatechange&&_this130.onconnectionstatechange(e);},this.ondatachannel=null,this.peerconnection.ondatachannel=function(e){_this130.trace("ondatachannel"),null!==_this130.ondatachannel&&_this130.ondatachannel(e);},this.maxstats&&(this.statsinterval=window.setInterval(function(){_this130.getStats().then(function(e){if("function"==typeof(null==e?void 0:e.result)){var _t104=e.result();var _loop10=function _loop10(){var n=_t104[_e149];n.names().forEach(function(e){_this130._processStat(n,e,n.stat(e));});};for(var _e149=0;_e149<_t104.length;++_e149){_loop10();}}else e.forEach(function(e){return _this130._processStat(e,"",e);});});},1e3)),la.info("Create new ".concat(this));}ha.prototype._processStat=function(e,t,n){var i="".concat(e.id,"-").concat(t);var s=this.stats[i];var r=new Date();s||(this.stats[i]=s={startTime:r,endTime:r,values:[],times:[]}),s.values.push(n),s.times.push(r.getTime()),s.values.length>this.maxstats&&(s.values.shift(),s.times.shift()),s.endTime=r;};var ua=function ua(e){return null==e?"":"type: ".concat(e.type,"\\r\\n").concat(e.sdp);};ha.prototype.getConnectionState=function(){var e=this.peerconnection.iceConnectionState;return"completed"===e?"connected":e;},ha.prototype.getDesiredMediaDirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n=this.hasAnyTracksOfType(e);if(this._usesUnifiedPlan)return t?n?Zs().SENDRECV:Zs().SENDONLY:n?Zs().RECVONLY:Zs().INACTIVE;var i=e===Rn?this.audioTransferActive:this.videoTransferActive;return i?n?Zs().SENDRECV:Zs().RECVONLY:Zs().INACTIVE;},ha.prototype._getReceiversByEndpointIds=function(e,t){var n=[],i=[];var _iterator49=_createForOfIteratorHelper(e),_step49;try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){var _i68=_step49.value;n=n.concat(this.getRemoteTracks(_i68,t));}}catch(err){_iterator49.e(err);}finally{_iterator49.f();}var s=n.map(function(e){var t;return null===(t=e.track)||void 0===t?void 0:t.id;});return i=this.peerconnection.getReceivers().filter(function(e){return e.track&&e.track.kind===t&&s.find(function(t){return t===e.track.id;});}),i;},ha.prototype.isSimulcastOn=function(){return!this.options.disableSimulcast;},ha.prototype._peerVideoTypeChanged=function(e,t){if(!e)return void la.error("".concat(this," No endpointID on peerVideoTypeChanged"));var n=this.getRemoteTracks(e,wn);n.length&&n[0]._setVideoType(t);},ha.prototype._peerMutedChanged=function(e,t,n){if(!e)return void la.error("".concat(this," On peerMuteChanged - no endpoint ID"));var i=this.getRemoteTracks(e,t);i.length&&i[0].setMute(n);},ha.prototype.getAudioLevels=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var t={},n=e.length?this._getReceiversByEndpointIds(e,Rn):this.peerconnection.getReceivers().filter(function(e){return e.track&&e.track.kind===Rn&&e.track.enabled;});return n.forEach(function(e){var n=e.getSynchronizationSources();n&&n.length&&(t[n[0].source]=n[0].audioLevel);}),t;},ha.prototype.getLocalTracks=function(e){var t=Array.from(this.localTracks.values());return void 0!==e&&(t=t.filter(function(t){return t.getType()===e;})),t;},ha.prototype.getLocalVideoTrack=function(){return this.getLocalTracks(wn)[0];},ha.prototype.hasAnyTracksOfType=function(e){if(!e)throw new Error(\'"mediaType" is required\');return this.getLocalTracks(e).length>0;},ha.prototype.getRemoteTracks=function(e,t){var n=[],i=e?[e]:this.remoteTracks.keys();var _iterator50=_createForOfIteratorHelper(i),_step50;try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){var _e150=_step50.value;var _i69=this.remoteTracks.get(_e150);if(_i69){var _iterator51=_createForOfIteratorHelper(_i69.keys()),_step51;try{for(_iterator51.s();!(_step51=_iterator51.n()).done;){var _e151=_step51.value;if(!t||t===_e151){var _t105=_i69.get(_e151);_t105&&n.push(_t105);}}}catch(err){_iterator51.e(err);}finally{_iterator51.f();}}}}catch(err){_iterator50.e(err);}finally{_iterator50.f();}return n;},ha.prototype.getRemoteSourceInfoByParticipant=function(e){var t=[],n=this.getRemoteTracks(e);if(null==n||!n.length)return t;var i=n.map(function(e){return e.getSSRC();}),s=new or(this.remoteDescription.sdp);return i.forEach(function(e,n){var _iterator52=_createForOfIteratorHelper(s.media),_step52;try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var _i70=_step52.value;var _s35="",_r17=rr.findLines(_i70,"a=ssrc:".concat(e));if(_r17.length){t[n]||(t[n]="");var _o13=rr.findLines(_i70,"a=ssrc-group:FID ".concat(e));if(_o13.length){var _e152=_o13[0].split(" ")[2];_s35+="".concat(_o13[0],"\\r\\n"),_r17=_r17.concat(rr.findLines(_i70,"a=ssrc:".concat(_e152)));}t[n]+="".concat(_r17.join("\\r\\n"),"\\r\\n"),t[n]+=_s35;}}}catch(err){_iterator52.e(err);}finally{_iterator52.f();}}),t;},ha.prototype.getTargetVideoBitrates=function(){var e=this.getConfiguredVideoCodec();return this.tpcUtils.videoBitrates[e.toUpperCase()]||this.tpcUtils.videoBitrates;},ha.prototype.getTrackBySSRC=function(e){if("number"!=typeof e)throw new Error("SSRC ".concat(e," is not a number"));var _iterator53=_createForOfIteratorHelper(this.localTracks.values()),_step53;try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var _t106=_step53.value;if(this.getLocalSSRC(_t106)===e)return _t106;}}catch(err){_iterator53.e(err);}finally{_iterator53.f();}var _iterator54=_createForOfIteratorHelper(this.getRemoteTracks()),_step54;try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var _t107=_step54.value;if(_t107.getSSRC()===e)return _t107;}}catch(err){_iterator54.e(err);}finally{_iterator54.f();}return null;},ha.prototype.getSsrcByTrackId=function(e){var t=function t(_t108){return _t108.getTrack().id===e;},n=this.getLocalTracks().find(t);if(n)return this.getLocalSSRC(n);var i=this.getRemoteTracks().find(t);return i?i.getSSRC():null;},ha.prototype._remoteStreamAdded=function(e){var _this131=this;var t=va.getStreamID(e);if(!va.isUserStreamById(t))return void la.info("".concat(this," ignored remote \'stream added\' event for non-user stream[id=").concat(t,"]"));nn.isChromiumBased()&&(e.onaddtrack=function(t){_this131._remoteTrackAdded(e,t.track);},e.onremovetrack=function(t){_this131._remoteTrackRemoved(e,t.track);});var n=e.getAudioTracks();var _iterator55=_createForOfIteratorHelper(n),_step55;try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var _t109=_step55.value;this._remoteTrackAdded(e,_t109);}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}var i=e.getVideoTracks();var _iterator56=_createForOfIteratorHelper(i),_step56;try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var _t110=_step56.value;this._remoteTrackAdded(e,_t110);}}catch(err){_iterator56.e(err);}finally{_iterator56.f();}},ha.prototype._remoteTrackAdded=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var i=va.getStreamID(e),s=t.kind;if(!this.isP2P&&!va.isUserStreamById(i))return void la.info("".concat(this," ignored remote \'stream added\' event for non-user stream[id=").concat(i,"]"));if(la.info("".concat(this," adding remote track for stream[id=").concat(i,",type=").concat(s,"]")),!s)return void cn.callErrorHandler(new Error("MediaType undefined for remote track, stream id: ".concat(i)));var r=this._usesUnifiedPlan?new or(this.peerconnection.remoteDescription.sdp):new or(this.remoteDescription.sdp);var o;if(this._usesUnifiedPlan){if(n&&n.mid){var _e153=n.mid;o=r.media.filter(function(t){return rr.findLine(t,"a=mid:".concat(_e153));});}else o=r.media.filter(function(e){var t=rr.findLine(e,"a=msid:");return void 0!==t&&i===t.substring(7).split(" ")[0];});}else o=r.media.filter(function(e){return e.startsWith("m=".concat(s));});if(!o.length)return void cn.callErrorHandler(new Error("No media lines found in remote SDP for remote stream[id=".concat(i,",type=").concat(s,"]")));var a=rr.findLines(o[0],"a=ssrc:");if(a=a.filter(function(e){return-1!==e.indexOf("msid:".concat(i));}),!a.length)return void cn.callErrorHandler(new Error("No SSRC lines found in remote SDP for remote stream[msid=".concat(i,",type=").concat(s,"]")));var c=a[0].substring(7).split(" ")[0],d=Number(c),l=this.signalingLayer.getSSRCOwner(d);if(isNaN(d)||d<0)return void cn.callErrorHandler(new Error("Invalid SSRC for remote stream[ssrc=".concat(d,",id=").concat(i,",type=").concat(s,"]")));if(!l)return void cn.callErrorHandler(new Error("No SSRC owner known for remote stream[ssrc=".concat(d,",id=").concat(i,",type=").concat(s,"]")));var h;Hs.isSourceNameSignalingEnabled()&&(h=this.signalingLayer.getTrackSourceName(d),h||(h=$o(l,s,0))),la.info("".concat(this," creating remote track[endpoint=").concat(l,",ssrc=").concat(d,",type=").concat(s,",sourceName=").concat(h,"]"));var u=this.signalingLayer.getPeerMediaInfo(l,s);if(!u)return void cn.callErrorHandler(new Error("".concat(this,": no peer media info available for ").concat(l)));var p=u.muted,m=u.videoType;this._createRemoteTrack(l,e,t,s,m,d,p,h);},ha.prototype._createRemoteTrack=function(e,t,n,i,s,r,o,a){var c=this.remoteTracks.get(e);c||(c=new Map(),this.remoteTracks.set(e,c));var d=c.get(i);if(d&&d.getTrack()===n)return void la.info("".concat(this," ignored duplicated track event for track[endpoint=").concat(e,",type=").concat(i,"]"));d&&(la.error("".concat(this," received a second remote track for track[endpoint=").concat(e,",type=").concat(i,"]deleting the existing track")),this._remoteTrackRemoved(d.getOriginalStream(),d.getTrack()));var l=new ra(this.rtc,this.rtc.conference,e,t,n,i,s,r,o,this.isP2P,a);c.set(i,l),this.eventEmitter.emit(Vn().REMOTE_TRACK_ADDED,l,this);},ha.prototype._remoteStreamRemoved=function(e){if(!va.isUserStream(e)){var _t111=va.getStreamID(e);return void la.info("Ignored remote \'stream removed\' event for stream[id=".concat(_t111,"]"));}var t=e.getVideoTracks();var _iterator57=_createForOfIteratorHelper(t),_step57;try{for(_iterator57.s();!(_step57=_iterator57.n()).done;){var _n77=_step57.value;this._remoteTrackRemoved(e,_n77);}}catch(err){_iterator57.e(err);}finally{_iterator57.f();}var n=e.getAudioTracks();var _iterator58=_createForOfIteratorHelper(n),_step58;try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var _t112=_step58.value;this._remoteTrackRemoved(e,_t112);}}catch(err){_iterator58.e(err);}finally{_iterator58.f();}},ha.prototype._remoteTrackRemoved=function(e,t){var n=va.getStreamID(e),i=t&&va.getTrackID(t);va.isUserStreamById(n)?(la.info("".concat(this," remote track removed stream[id=").concat(n,",trackId=").concat(i,"]")),n?i?this._removeRemoteTrackById(n,i)||la.warn("".concat(this," Removed track not found for stream[id=").concat(n,",trackId=").concat(i,"]")):cn.callErrorHandler(new Error("".concat(this," remote track removal failed - no track ID"))):cn.callErrorHandler(new Error("".concat(this," remote track removal failed - no stream ID")))):la.info("".concat(this," ignored remote \'stream removed\' event for non-user stream[id=").concat(n,"]"));},ha.prototype._getRemoteTrackById=function(e,t){var _iterator59=_createForOfIteratorHelper(this.remoteTracks.values()),_step59;try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _n78=_step59.value;var _iterator60=_createForOfIteratorHelper(_n78.values()),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var _i71=_step60.value;if(_i71.getStreamId()==e&&_i71.getTrackId()==t)return _i71;}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}}}catch(err){_iterator59.e(err);}finally{_iterator59.f();}},ha.prototype.removeRemoteTracks=function(e){var t=[],n=this.remoteTracks.get(e);if(n){var _i72=n.get(Rn),_s36=n.get(wn);_i72&&t.push(_i72),_s36&&t.push(_s36),this.remoteTracks.delete(e);}return la.debug("".concat(this," removed remote tracks[endpoint=").concat(e,",count=").concat(t.length)),t;},ha.prototype._removeRemoteTrack=function(e){e.dispose();var t=e.getParticipantId(),n=this.remoteTracks.get(t);n?n.delete(e.getType())||la.error("".concat(this," Failed to remove ").concat(e," - type mapping messed up ?")):la.error("".concat(this," removeRemoteTrack: no remote tracks map for endpoint=").concat(t)),this.eventEmitter.emit(Vn().REMOTE_TRACK_REMOVED,e);},ha.prototype._removeRemoteTrackById=function(e,t){var n=this._getRemoteTrackById(e,t);return n&&this._removeRemoteTrack(n),n;},ha.prototype._extractSSRCMap=function(e){var t=new Map(),n=new Map();if("object"!=_typeof(e)||null===e||"string"!=typeof e.sdp)return la.warn("An empty description was passed as an argument"),t;var i=xo.parse(e.sdp);if(!Array.isArray(i.media))return t;var s=i.media;this._usesUnifiedPlan&&(s=[],[Rn,wn].forEach(function(e){var t=i.media.find(function(t){return t.type===e;});t&&s.push(t);}));var _iterator61=_createForOfIteratorHelper(s),_step61;try{for(_iterator61.s();!(_step61=_iterator61.n()).done;){var _e154=_step61.value;if(!Array.isArray(_e154.ssrcs))continue;if(Array.isArray(_e154.ssrcGroups)){var _iterator62=_createForOfIteratorHelper(_e154.ssrcGroups),_step62;try{for(_iterator62.s();!(_step62=_iterator62.n()).done;){var _t113=_step62.value;if(void 0!==_t113.semantics&&void 0!==_t113.ssrcs){var _e155=_t113.ssrcs.split(" ").map(function(e){return parseInt(e,10);}),_i73=_e155[0];_t113.ssrcs=_e155,n.has(_i73)||n.set(_i73,[]),n.get(_i73).push(_t113);}}}catch(err){_iterator62.e(err);}finally{_iterator62.f();}}var _i74=_e154.ssrcs;_i74=this._usesUnifiedPlan?_i74.filter(function(e){return"cname"===e.attribute;}):_i74.filter(function(e){return"msid"===e.attribute;});var _iterator63=_createForOfIteratorHelper(_i74),_step63;try{for(_iterator63.s();!(_step63=_iterator63.n()).done;){var _s37=_step63.value;var _i75=this._usesUnifiedPlan?_e154.type:_s37.value,_r18=_s37.id;var _o14=t.get(_i75);if(_o14||(_o14={ssrcs:[],groups:[],msid:_i75},t.set(_i75,_o14)),_o14.ssrcs.push(_r18),n.has(_r18)){var _e156=n.get(_r18);var _iterator64=_createForOfIteratorHelper(_e156),_step64;try{for(_iterator64.s();!(_step64=_iterator64.n()).done;){var _t114=_step64.value;_o14.groups.push(_t114);}}catch(err){_iterator64.e(err);}finally{_iterator64.f();}}}}catch(err){_iterator63.e(err);}finally{_iterator63.f();}}}catch(err){_iterator61.e(err);}finally{_iterator61.f();}return t;};ha.prototype.getLocalSSRC=function(e){var t=this._getSSRC(e.rtcId);return t&&t.ssrcs[0];},ha.prototype._injectSsrcGroupForUnifiedSimulcast=function(e){var t=xo.parse(e.sdp),n=t.media.find(function(e){return"video"===e.type;});n.ssrcGroups=n.ssrcGroups||[];var i=n.ssrcGroups.filter(function(e){return"FID"===e.semantics;});if(n.simulcast||n.simulcast_03){var _t115=[];if(i&&i.length?i.forEach(function(e){_t115.push(e.ssrcs.split(" ")[0]);}):n.ssrcs.forEach(function(e){"msid"===e.attribute&&_t115.push(e.id);}),n.ssrcGroups.find(function(e){return"SIM"===e.semantics;}))return e;n.ssrcGroups.push({semantics:"SIM",ssrcs:_t115.join(" ")});}return new RTCSessionDescription({type:e.type,sdp:xo.write(t)});};var pa={signalingState:function signalingState(){return this.peerconnection.signalingState;},iceConnectionState:function iceConnectionState(){return this.peerconnection.iceConnectionState;},connectionState:function connectionState(){return this.peerconnection.connectionState;},localDescription:function localDescription(){var e=this.peerconnection.localDescription;return e?(this.trace("getLocalDescription::preTransform",ua(e)),this._usesUnifiedPlan&&!this.isP2P?(e=this.interop.toPlanB(e),this.trace("getLocalDescription::postTransform (Plan B)",ua(e)),e=this._injectSsrcGroupForUnifiedSimulcast(e),this.trace("getLocalDescription::postTransform (inject ssrc group)",ua(e))):this._usesUnifiedPlan||(nn.doesVideoMuteByStreamRemove()&&(e=this.localSdpMunger.maybeAddMutedLocalVideoTracksToSDP(e),la.debug("getLocalDescription::postTransform (munge local SDP)",e)),e=function(e,t){if(!e)throw new Error("No local description passed in.");var n=new qo(e.sdp),i=n.selectMedia(Rn);var s=!1;i&&i.direction!==Zs().SENDRECV&&(t.startSilent?i.direction=Zs().INACTIVE:i.direction=Zs().SENDRECV,s=!0);var r=n.selectMedia(wn);return r&&r.direction!==Zs().SENDRECV&&(r.direction=Zs().SENDRECV,s=!0),s?new RTCSessionDescription({type:e.type,sdp:n.toRawSDP()}):e;}(e,this.options)),e=this.localSdpMunger.transformStreamIdentifiers(e),e):(la.debug("".concat(this," getLocalDescription no localDescription found")),{});},remoteDescription:function remoteDescription(){var e=this.peerconnection.remoteDescription;return e?(this.trace("getRemoteDescription::preTransform",ua(e)),this._usesUnifiedPlan&&(this.isP2P?e=this._adjustRemoteMediaDirection(e):(e=this.interop.toPlanB(e),this.trace("getRemoteDescription::postTransform (Plan B)",ua(e)))),e):(la.debug("".concat(this," getRemoteDescription no remoteDescription found")),{});}};Object.keys(pa).forEach(function(e){Object.defineProperty(ha.prototype,e,{get:pa[e]});}),ha.prototype._getSSRC=function(e){return this.localSSRCs.get(e);},ha.prototype.isSharingLowFpsScreen=function(){return this._isSharingScreen()&&this._capScreenshareBitrate;},ha.prototype._isSharingScreen=function(){var e=this.getLocalVideoTrack();return e&&e.videoType===Jn.DESKTOP;},ha.prototype._mungeCodecOrder=function(e){var _this132=this;if(!this.codecPreference)return e;var t=xo.parse(e.sdp),n=t.media.find(function(e){return e.type===_this132.codecPreference.mediaType;});if(!n)return e;if(this.codecPreference.enable){if(rr.preferCodec(n,this.codecPreference.mimeType),this.codecPreference.mimeType===Qs.H264&&nn.isReactNative()&&this.isP2P&&rr.stripCodec(n,this.codecPreference.mimeType,!0),this.codecPreference.mimeType===Qs.VP9&&this.getConfiguredVideoCodec()===Qs.VP9){var _e157=this.tpcUtils.videoBitrates.VP9||this.tpcUtils.videoBitrates,_t116=_e157.high?_e157.high:aa,_i76=Math.floor((this._isSharingScreen()?aa:_t116)/1e3);n.bandwidth=[{type:"AS",limit:_i76}];}else n.bandwidth=void 0;}else rr.stripCodec(n,this.codecPreference.mimeType);return new RTCSessionDescription({type:e.type,sdp:xo.write(t)});},ha.prototype.addTrack=function(e){var _this133=this;var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n=e.rtcId;if(la.info("".concat(this," adding ").concat(e)),this.localTracks.has(n))return Promise.reject(new Error("".concat(e," is already in ").concat(this)));this.localTracks.set(n,e);var i=e.getOriginalStream();if(this._usesUnifiedPlan){if(la.debug("".concat(this," TPC.addTrack using unified plan")),i)try{this.tpcUtils.addTrack(e,t);}catch(t){return la.error("".concat(this," Adding track=").concat(e," failed: ").concat(null==t?void 0:t.message)),Promise.reject(t);}}else{if(i)this._addStream(i);else if(!nn.doesVideoMuteByStreamRemove()||e.isAudioTrack()||e.isVideoTrack()&&!e.isMuted())return Promise.reject(new Error("".concat(this," no WebRTC stream for track=").concat(e)));if(nn.doesVideoMuteByStreamRemove()&&e.isVideoTrack()&&e.isMuted()){var _t117=this.generateNewStreamSSRCInfo(e);this.sdpConsistency.setPrimarySsrc(_t117.ssrcs[0]);var _n79=_t117.groups.find(function(e){return"SIM"===e.semantics;});_n79&&this.simulcast.setSsrcCache(_n79.ssrcs);var _i77=_t117.groups.filter(function(e){return"FID"===e.semantics;});if(_i77){var _e158=new Map();_i77.forEach(function(t){var n=t.ssrcs[0],i=t.ssrcs[1];_e158.set(n,i);}),this.rtxModifier.setSsrcCache(_e158);}}}var s=Promise.resolve();return nn.isFirefox()&&(s=s.then(function(){return i&&_this133.tpcUtils.setEncodings(e);})),s;},ha.prototype.addTrackUnmute=function(e){var _this134=this;if(la.info("".concat(this," Adding track=").concat(e," as unmute")),!this._assertTrackBelongs("addTrackUnmute",e))return Promise.reject("Track not found on the peerconnection");var t=e.getOriginalStream();return t?this._usesUnifiedPlan?this.tpcUtils.replaceTrack(null,e).then(function(){return _this134.isP2P;}):(this._addStream(t),Promise.resolve(!0)):(la.error("".concat(this," Unable to add track=").concat(e," as unmute - no WebRTC stream")),Promise.reject("Stream not found"));},ha.prototype._addStream=function(e){this.peerconnection.addStream(e),this._addedStreams.push(e);},ha.prototype._removeStream=function(e){this.peerconnection.removeStream(e),this._addedStreams=this._addedStreams.filter(function(t){return t!==e;});},ha.prototype._assertTrackBelongs=function(e,t){var n=this.localTracks.has(null==t?void 0:t.rtcId);return n||la.error("".concat(this," ").concat(e,": track=").concat(t," does not belong to pc")),n;},ha.prototype.getConfiguredVideoCodec=function(){var e;var t=null===(e=this.peerconnection.localDescription)||void 0===e?void 0:e.sdp,n=Qs.VP8;if(!t)return n;var i=xo.parse(t).media.find(function(e){return e.type===wn;}).rtp[0].codec;return i?Object.values(Qs).find(function(e){return e===i.toLowerCase();}):n;},ha.prototype.setDesktopSharingFrameRate=function(e){var t=e<=5;this._capScreenshareBitrate=this.isSimulcastOn()&&t;},ha.prototype.setVideoCodecs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n=null===t,i=t||e;this.codecPreference&&(e||t)?(this.codecPreference.enable=n,this.codecPreference.mimeType=i):e||t?this.codecPreference={enable:n,mediaType:wn,mimeType:i}:la.warn("".concat(this," Invalid codec settings[preferred=").concat(e,",disabled=").concat(t,"],\\n            atleast one value is needed"));},ha.prototype.isMediaStreamInPc=function(e){return this._addedStreams.indexOf(e)>-1;},ha.prototype.removeTrack=function(e){var t=e.getOriginalStream();this.trace("removeStream",e.rtcId,t?t.id:void 0),this._assertTrackBelongs("removeStream",e)&&(this.localTracks.delete(e.rtcId),this.localSSRCs.delete(e.rtcId),t&&this.peerconnection.removeStream(t));},ha.prototype.findSenderByKind=function(e){if(this.peerconnection.getSenders)return this.peerconnection.getSenders().find(function(t){return t.track&&t.track.kind===e;});},ha.prototype.findReceiverForTrack=function(e){return this.peerconnection.getReceivers().find(function(t){return t.track===e;});},ha.prototype.findSenderForTrack=function(e){if(this.peerconnection.getSenders)return this.peerconnection.getSenders().find(function(t){return t.track===e;});},ha.prototype.replaceTrack=function(e,t){var _this135=this;if(!e&&!t)return la.info("".concat(this," replaceTrack called with no new track and no old track")),Promise.resolve();var n=Boolean(!e||!this.localTracks.has(null==e?void 0:e.rtcId));if(this._usesUnifiedPlan){var i;la.debug("".concat(this," TPC.replaceTrack using unified plan"));var _s38=null!==(i=null==t?void 0:t.getType())&&void 0!==i?i:null==e?void 0:e.getType(),_r19=null==t?void 0:t.getOriginalStream(),_o15=t&&!_r19?Promise.resolve():this.tpcUtils.replaceTrack(e,t),_a7=this.tpcUtils.findTransceiver(_s38,e);return _o15.then(function(){e&&_this135.localTracks.delete(e.rtcId),t&&_this135.localTracks.set(t.rtcId,t);var i=_s38===Rn?_this135.audioTransferActive:_this135.videoTransferActive;return _a7&&i&&(_a7.direction=t?Zs().SENDRECV:Zs().RECVONLY),(nn.usesSdpMungingForSimulcast()||!t?Promise.resolve():_this135.tpcUtils.setEncodings(t)).then(function(){return _this135.isP2P||n;});});}la.debug("".concat(this," TPC.replaceTrack using plan B"));var s=Promise.resolve();return e&&this.removeTrack(e),t&&(s=this.addTrack(t)),s.then(function(){return!0;});},ha.prototype.removeTrackMute=function(e){var t=e.getOriginalStream();return this.trace("removeStreamMute",e.rtcId,t?t.id:null),this._assertTrackBelongs("removeStreamMute",e)?this._usesUnifiedPlan?this.tpcUtils.replaceTrack(e,null):t?(la.info("".concat(this," Removing track=").concat(e," as mute")),this._removeStream(t),Promise.resolve(!0)):(la.error("".concat(this," removeStreamMute - no WebRTC stream for track=").concat(e)),Promise.reject("Stream not found")):Promise.reject("Track not found in the peerconnection");},ha.prototype.createDataChannel=function(e,t){return this.trace("createDataChannel",e,t),this.peerconnection.createDataChannel(e,t);},ha.prototype._ensureSimulcastGroupIsLast=function(e){var t=e.sdp;var n=t.indexOf("m=video"),i=t.indexOf("a=ssrc-group:SIM",n);var s=t.lastIndexOf("a=ssrc-group");if(-1===i||-1===s||s===i)return e;var r=t.indexOf("\\r\\n",i),o=t.substring(i,r+2);t=t.replace(o,""),s=t.lastIndexOf("a=ssrc-group");var a=t.indexOf("\\r\\n",s),c=t.slice(0,a),d=o.trim(),l=t.slice(a);return t="".concat(c,"\\r\\n").concat(d).concat(l),new RTCSessionDescription({type:e.type,sdp:t});},ha.prototype._adjustLocalMediaDirection=function(e){var t=new qo(e.sdp);var n=!1;var i=t.selectMedia(Rn);if(i){var _e159=this.getDesiredMediaDirection(Rn);i.direction!==_e159&&(i.direction=_e159,la.info("".concat(this," Adjusted local audio direction to ").concat(_e159)),n=!0);}else la.warn("".concat(this," No \\"audio\\" media found in the local description"));var s=t.selectMedia(wn);if(s){var _e160=this.getDesiredMediaDirection(wn);s.direction!==_e160&&(s.direction=_e160,la.info("".concat(this," Adjusted local video direction to ").concat(_e160)),n=!0);}else la.warn("".concat(this," No \\"video\\" media found in the local description"));return n?new RTCSessionDescription({type:e.type,sdp:t.toRawSDP()}):e;},ha.prototype._adjustRemoteMediaDirection=function(e){var _this136=this;var t=new qo(e.sdp);return[Rn,wn].forEach(function(e){var n=t.selectMedia(e),i=_this136.hasAnyTracksOfType(e),s=_this136.getRemoteTracks(null,e).length>0;n.direction=i&&s?Zs().SENDRECV:i?Zs().RECVONLY:s?Zs().SENDONLY:Zs().INACTIVE;}),new RTCSessionDescription({type:e.type,sdp:t.toRawSDP()});},ha.prototype._mungeOpus=function(e){var t=this.options.audioQuality;if(!(null!=t&&t.stereo||null!=t&&t.opusMaxAverageBitrate))return e;var n=xo.parse(e.sdp),i=n.media;var _iterator65=_createForOfIteratorHelper(i),_step65;try{var _loop11=function _loop11(){var e=_step65.value;if("audio"===e.type){var _e$rtp$find=e.rtp.find(function(e){return e.codec===Qs.OPUS;}),_n80=_e$rtp$find.payload;if(!_n80)return"continue";var _i78=e.fmtp.find(function(e){return e.payload===_n80;});_i78||(_i78={payload:_n80,config:""});var _s39=xo.parseParams(_i78.config);var _r20=!1;if(null!=t&&t.stereo&&(_s39.stereo=1,_r20=!0),null!=t&&t.opusMaxAverageBitrate&&(_s39.maxaveragebitrate=t.opusMaxAverageBitrate,_r20=!0),!_r20)return"continue";var _o16="";for(var _i79=0,_Object$keys=Object.keys(_s39);_i79<_Object$keys.length;_i79++){var _e161=_Object$keys[_i79];_o16+="".concat(_e161,"=").concat(_s39[_e161],"; ");}_i78.config=_o16.trim();}};for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _ret2=_loop11();if(_ret2==="continue")continue;}}catch(err){_iterator65.e(err);}finally{_iterator65.f();}return new RTCSessionDescription({type:e.type,sdp:xo.write(n)});},ha.prototype._initializeDtlsTransport=function(){var _this137=this;if(!this.peerconnection.getSenders||this._dtlsTransport)return;var e=this.peerconnection.getSenders();0!==e.length&&e[0].transport&&(this._dtlsTransport=e[0].transport,this._dtlsTransport.onerror=function(e){la.error("".concat(_this137," DtlsTransport error: ").concat(e));},this._dtlsTransport.onstatechange=function(){_this137.trace("dtlsTransport.onstatechange",_this137._dtlsTransport.state);});},ha.prototype.configureSenderVideoEncodings=function(){return this.setSenderVideoConstraints(this._senderVideoMaxHeight);},ha.prototype.setLocalDescription=function(e){var _this138=this;var t=e;return this.trace("setLocalDescription::preTransform",ua(t)),t=this._mungeOpus(t),this._usesUnifiedPlan||(t=this._adjustLocalMediaDirection(t),t=this._ensureSimulcastGroupIsLast(t)),this._usesTransceiverCodecPreferences||(t=this._mungeCodecOrder(t)),this.trace("setLocalDescription::postTransform",ua(t)),new Promise(function(e,n){_this138.peerconnection.setLocalDescription(t).then(function(){_this138.trace("setLocalDescriptionOnSuccess");var n=rr.getUfrag(t.sdp);n!==_this138.localUfrag&&(_this138.localUfrag=n,_this138.eventEmitter.emit(Vn().LOCAL_UFRAG_CHANGED,_this138,n)),_this138._initializeDtlsTransport(),e();},function(e){_this138.trace("setLocalDescriptionOnFailure",e),_this138.eventEmitter.emit(Vn().SET_LOCAL_DESCRIPTION_FAILED,e,_this138),n(e);});});},ha.prototype.setAudioTransferActive=function(e){la.debug("".concat(this," audio transfer active: ").concat(e));var t=this.audioTransferActive!==e;return this.audioTransferActive=e,this._usesUnifiedPlan?(this.tpcUtils.setAudioTransferActive(e),!1):t;},ha.prototype.setRemoteDescription=function(e){var _this139=this;var t=e;if(this.trace("setRemoteDescription::preTransform",ua(e)),t=this._mungeOpus(t),this._usesUnifiedPlan){if(!this.isP2P){var _e162=this.peerconnection.remoteDescription;t=this.interop.toUnifiedPlan(t,_e162),this.trace("setRemoteDescription::postTransform (Unified)",ua(t));}this.isSimulcastOn()&&(t=this.simulcast.mungeRemoteDescription(t),this.trace("setRemoteDescription::postTransform (simulcast)",ua(t)),t=this.tpcUtils.insertUnifiedPlanSimulcastReceive(t),this.trace("setRemoteDescription::postTransform (sim receive)",ua(t))),t=this.tpcUtils.ensureCorrectOrderOfSsrcs(t),this.trace("setRemoteDescription::postTransform (correct ssrc order)",ua(t));}else this.isSimulcastOn()&&(t=this.simulcast.mungeRemoteDescription(t,!0),this.trace("setRemoteDescription::postTransform (simulcast)",ua(t))),t=function(e){if("object"!=_typeof(e)||null===e||"string"!=typeof e.sdp)return la.warn("An empty description was passed as an argument"),e;var t=n(766),i=t.parse(e.sdp);void 0!==i&&void 0!==i.media&&Array.isArray(i.media)&&i.media.forEach(function(e){var t=[],n=[];if(void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&e.ssrcGroups.forEach(function(e){void 0!==e.semantics&&"FID"===e.semantics&&void 0!==e.ssrcs&&t.push(Number(e.ssrcs.split(" ")[0]));}),Array.isArray(e.ssrcs)){var _i80;for(_i80=0;_i80<e.ssrcs.length;_i80++)"object"==_typeof(e.ssrcs[_i80])&&void 0!==e.ssrcs[_i80].id&&t.indexOf(e.ssrcs[_i80].id)>=0&&(n.push(e.ssrcs[_i80]),delete e.ssrcs[_i80]);for(_i80=0;_i80<e.ssrcs.length;_i80++)void 0!==e.ssrcs[_i80]&&n.push(e.ssrcs[_i80]);e.ssrcs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!nn.isChrome()||!nn.isVersionGreaterThan(70))return e;var t=_toConsumableArray(e);return e.filter(function(e){return"mslabel"===e.attribute&&"-"===e.value;}).map(function(e){return e.id;}).forEach(function(e){var n=t.find(function(t){return t.id===e&&"cname"===t.attribute;});n.value="".concat(Zs().RECVONLY,"-").concat(e),t=t.filter(function(t){return t.id!==e;}),t.push(n);}),t;}(n);}});var s=t.write(i);return new RTCSessionDescription({type:e.type,sdp:s});}(t);return t=this._mungeCodecOrder(t),this.trace("setRemoteDescription::postTransform (munge codec order)",ua(t)),new Promise(function(e,n){_this139.peerconnection.setRemoteDescription(t).then(function(){_this139.trace("setRemoteDescriptionOnSuccess");var n=rr.getUfrag(t.sdp);n!==_this139.remoteUfrag&&(_this139.remoteUfrag=n,_this139.eventEmitter.emit(Vn().REMOTE_UFRAG_CHANGED,_this139,n)),_this139._initializeDtlsTransport(),e();},function(e){_this139.trace("setRemoteDescriptionOnFailure",e),_this139.eventEmitter.emit(Vn().SET_REMOTE_DESCRIPTION_FAILED,e,_this139),n(e);});});},ha.prototype.setSenderVideoConstraints=function(e){var _this140=this;var t;if(e<0)throw new Error("Invalid frameHeight: ".concat(e));if(nn.isReactNative())return Promise.resolve();this._senderVideoMaxHeight=e;var n=this.getLocalVideoTrack();if(!n||n.isMuted())return Promise.resolve();var i=this.findSenderByKind(wn);if(!i)return Promise.resolve();var s=i.getParameters();if(null==s||null===(t=s.encodings)||void 0===t||!t.length)return Promise.resolve();var r=this.isSharingLowFpsScreen()?"maintain-resolution":"maintain-framerate";s.degradationPreference=r,la.info("".concat(this," Setting degradation preference [preference=").concat(r,",track=").concat(n)),this.encodingsEnabledState=this.tpcUtils.calculateEncodingsActiveState(n,e);var o=this.tpcUtils.calculateEncodingsBitrates(n),a=n.getVideoType();if(this.isSimulcastOn()){for(var _e163 in s.encodings){var c,d;s.encodings.hasOwnProperty(_e163)&&(s.encodings[_e163].active=this.encodingsEnabledState[_e163],nn.isFirefox()&&(s.encodings[_e163].degradationPreference=r),this.getConfiguredVideoCodec()===Qs.VP8&&(null!==(c=this.options)&&void 0!==c&&null!==(d=c.videoQuality)&&void 0!==d&&d.maxBitratesVideo||this.isSharingLowFpsScreen()||this._usesUnifiedPlan)&&(s.encodings[_e163].maxBitrate=o[_e163]));}this.tpcUtils.updateEncodingsResolution(s);}else if(e>0){var l,h;var _t118=1;if(a===Jn.CAMERA&&n.resolution>e&&(_t118=Math.floor(n.resolution/e)),s.encodings[0].active=!0,s.encodings[0].scaleResolutionDownBy=_t118,nn.isFirefox()&&(s.encodings[0].degradationPreference=r),this.getConfiguredVideoCodec()===Qs.VP8&&null!==(l=this.options)&&void 0!==l&&null!==(h=l.videoQuality)&&void 0!==h&&h.maxBitratesVideo){var u;var _e164=null===(u=this.getTargetVideoBitrates())||void 0===u?void 0:u.high;var p,m;a===Jn.CAMERA&&(_e164=null!==(p=null===(m=this.tpcUtils.localStreamEncodingsConfig.find(function(e){return e.scaleResolutionDownBy===_t118;}))||void 0===m?void 0:m.maxBitrate)&&void 0!==p?p:_e164),s.encodings[0].maxBitrate=_e164;}}else s.encodings[0].active=!1;return la.info("".concat(this," setting max height=").concat(e,",encodings=").concat(JSON.stringify(s.encodings))),i.setParameters(s).then(function(){n.maxEnabledResolution=e,_this140.eventEmitter.emit(Vn().LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED,n);});},ha.prototype.setVideoTransferActive=function(e){la.debug("".concat(this," video transfer active: ").concat(e));var t=this.videoTransferActive!==e;return this.videoTransferActive=e,this._usesUnifiedPlan?(this.tpcUtils.setVideoTransferActive(e),!1):t;},ha.prototype.sendTones=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;if(!this._dtmfSender){if(this.peerconnection.getSenders){var _e165=this.peerconnection.getSenders().find(function(e){return e.dtmf;});this._dtmfSender=_e165&&_e165.dtmf,this._dtmfSender&&la.info("".concat(this," initialized DTMFSender using getSenders"));}if(!this._dtmfSender){var _e166=Array.from(this.localTracks.values()).find(function(e){return e.isAudioTrack();});this.peerconnection.createDTMFSender&&_e166&&(this._dtmfSender=this.peerconnection.createDTMFSender(_e166.getTrack())),this._dtmfSender&&la.info("".concat(this," initialized DTMFSender using deprecated createDTMFSender"));}this._dtmfSender&&(this._dtmfSender.ontonechange=this._onToneChange.bind(this));}if(this._dtmfSender){if(this._dtmfSender.toneBuffer)return void this._dtmfTonesQueue.push({tones:e,duration:t,interToneGap:n});this._dtmfSender.insertDTMF(e,t,n);}else la.warn("".concat(this," sendTones - failed to select DTMFSender"));},ha.prototype._onToneChange=function(e){if(this._dtmfSender&&""===e.tone&&this._dtmfTonesQueue.length){var _this$_dtmfTonesQueue=this._dtmfTonesQueue.shift(),_e167=_this$_dtmfTonesQueue.tones,_t119=_this$_dtmfTonesQueue.duration,_n81=_this$_dtmfTonesQueue.interToneGap;this._dtmfSender.insertDTMF(_e167,_t119,_n81);}},ha.prototype.generateRecvonlySsrc=function(){var e=rr.generateSsrc();la.info("".concat(this," generated new recvonly SSRC=").concat(e)),this.sdpConsistency.setPrimarySsrc(e);},ha.prototype.clearRecvonlySsrc=function(){la.info("".concat(this," Clearing primary video SSRC!")),this.sdpConsistency.clearVideoSsrcCache();},ha.prototype.close=function(){this.trace("stop"),this.signalingLayer.off(Fo,this._peerMutedChanged),this.signalingLayer.off(jo,this._peerVideoTypeChanged),this._usesUnifiedPlan&&this.peerconnection.removeEventListener("track",this.onTrack);var _iterator66=_createForOfIteratorHelper(this.remoteTracks.values()),_step66;try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _e168=_step66.value;var _iterator67=_createForOfIteratorHelper(_e168.values()),_step67;try{for(_iterator67.s();!(_step67=_iterator67.n()).done;){var _t120=_step67.value;this._removeRemoteTrack(_t120);}}catch(err){_iterator67.e(err);}finally{_iterator67.f();}}}catch(err){_iterator66.e(err);}finally{_iterator66.f();}this.remoteTracks.clear(),this._addedStreams=[],this._dtmfSender=null,this._dtmfTonesQueue=[],this.rtc._removePeerConnection(this)||la.error("".concat(this," RTC._removePeerConnection returned false")),null!==this.statsinterval&&(window.clearInterval(this.statsinterval),this.statsinterval=null),la.info("".concat(this," Closing peerconnection")),this.peerconnection.close();},ha.prototype.createAnswer=function(e){return this._createOfferOrAnswer(!1,e);},ha.prototype.createOffer=function(e){return this._createOfferOrAnswer(!0,e);},ha.prototype._createOfferOrAnswer=function(e,t){var _this141=this;var n=e?"Offer":"Answer";this.trace("create".concat(n),JSON.stringify(t,null," "));var i=function i(e,t,_i82){try{_this141.trace("create".concat(n,"OnSuccess::preTransform"),ua(e)),_this141._usesUnifiedPlan||(_this141.hasAnyTracksOfType(wn)||_this141.sdpConsistency.hasPrimarySsrcCached()||_this141.generateRecvonlySsrc(),e=new RTCSessionDescription({type:e.type,sdp:_this141.sdpConsistency.makeVideoPrimarySsrcsConsistent(e.sdp)}),_this141.trace("create".concat(n,"OnSuccess::postTransform (make primary audio/video ssrcs consistent)"),ua(e)));var _i81=_this141.getLocalVideoTrack();_this141.isSimulcastOn()&&nn.usesSdpMungingForSimulcast()&&((null==_i81?void 0:_i81.getVideoType())===Jn.CAMERA||_this141._usesUnifiedPlan||!_this141.isSharingLowFpsScreen())&&(e=_this141.simulcast.mungeLocalDescription(e),_this141.trace("create".concat(n,"OnSuccess::postTransform (simulcast)"),ua(e))),!_this141.options.disableRtx&&nn.usesSdpMungingForSimulcast()&&(e=new RTCSessionDescription({type:e.type,sdp:_this141.rtxModifier.modifyRtxSsrcs(e.sdp)}),_this141.trace("create".concat(n,"OnSuccess::postTransform (rtx modifier)"),ua(e)));var _s40=_this141._extractSSRCMap(e);_this141._processLocalSSRCsMap(_s40),t(e);}catch(t){_this141.trace("create".concat(n,"OnError"),t),_this141.trace("create".concat(n,"OnError"),ua(e)),la.error("".concat(_this141," create").concat(n,"OnError"),t,ua(e)),_i82(t);}},s=function s(t,i){_this141.trace("create".concat(n,"OnFailure"),t);var s=e?Vn().CREATE_OFFER_FAILED:Vn().CREATE_ANSWER_FAILED;_this141.eventEmitter.emit(s,t,_this141),i(t);};if(this._usesTransceiverCodecPreferences){var _e169=this.peerconnection.getTransceivers().find(function(e){var t,n;return e.receiver&&(null===(t=e.receiver)||void 0===t||null===(n=t.track)||void 0===n?void 0:n.kind)===wn;});if(_e169){var r,o,a;var _t121=null===(r=RTCRtpReceiver.getCapabilities(wn))||void 0===r?void 0:r.codecs;var _n82=null===(o=this.codecPreference)||void 0===o?void 0:o.mimeType,_i83=null===(a=this.codecPreference)||void 0===a?void 0:a.enable;_t121&&_n82&&_i83?_t121.sort(function(e){return e.mimeType.toLowerCase()==="".concat(wn,"/").concat(_n82)?-1:1;}):_t121&&_n82&&(_t121=_t121.filter(function(e){return e.mimeType.toLowerCase()!=="".concat(wn,"/").concat(_n82);})),nn.isChromiumBased()&&(_t121=_t121.filter(function(e){return e.mimeType.toLowerCase()!=="".concat(wn,"/").concat(Qs.ULPFEC);}));try{_e169.setCodecPreferences(_t121);}catch(e){la.warn("".concat(this," Setting codec[preference=").concat(_n82,",enable=").concat(_i83,"] failed"),e);}}}return new Promise(function(n,r){var o;o=e?_this141.peerconnection.createOffer(t):_this141.peerconnection.createAnswer(t),o.then(function(e){return i(e,n,r);},function(e){return s(e,r);});});},ha.prototype._extractPrimarySSRC=function(e){return e&&e.groups&&e.groups.length?e.groups[0].ssrcs[0]:e&&e.ssrcs&&e.ssrcs.length?e.ssrcs[0]:null;},ha.prototype._processLocalSSRCsMap=function(e){var _iterator68=_createForOfIteratorHelper(this.localTracks.values()),_step68;try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _t122=_step68.value;var _n83=this._usesUnifiedPlan?_t122.getType():_t122.storedMSID;if(e.has(_n83)){var _i84=e.get(_n83);if(!_i84)return void la.error("".concat(this," No SSRC found for stream=").concat(_n83));var _s41=this.localSSRCs.get(_t122.rtcId),_r21=this._extractPrimarySSRC(_i84),_o17=this._extractPrimarySSRC(_s41);_r21!==_o17&&(_o17&&la.error("".concat(this," Overwriting SSRC for track=").concat(_t122,"] with ssrc=").concat(_i84)),this.localSSRCs.set(_t122.rtcId,_i84),this.eventEmitter.emit(Vn().LOCAL_TRACK_SSRC_UPDATED,_t122,_r21));}else _t122.isVideoTrack()||_t122.isMuted()||la.warn("".concat(this," No SSRCs found in the local SDP for track=").concat(_t122,", stream=").concat(_n83));}}catch(err){_iterator68.e(err);}finally{_iterator68.f();}},ha.prototype.addIceCandidate=function(e){return this.trace("addIceCandidate",JSON.stringify({candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,usernameFragment:e.usernameFragment},null," ")),this.peerconnection.addIceCandidate(e);},ha.prototype.getActiveSimulcastStreams=function(){var e=1;var t;return this.isSimulcastOn()&&this.encodingsEnabledState?e=null===(t=this.encodingsEnabledState.filter(function(e){return Boolean(e);}))||void 0===t?void 0:t.length:this.isSimulcastOn()&&(e=ca.length),e;},ha.prototype.getStats=function(){return this.peerconnection.getStats();},ha.prototype.generateNewStreamSSRCInfo=function(e){var t=e.rtcId;var n=this._getSSRC(t);if(n&&la.error("".concat(this," Overwriting local SSRCs for track id=").concat(t)),!this.isSimulcastOn()||e.getVideoType()!==Jn.CAMERA&&this.isSharingLowFpsScreen())n={ssrcs:[rr.generateSsrc()],groups:[]};else{n={ssrcs:[],groups:[]};for(var _e170=0;_e170<ca.length;_e170++)n.ssrcs.push(rr.generateSsrc());n.groups.push({ssrcs:n.ssrcs.slice(),semantics:"SIM"});}if(!this.options.disableRtx){var _e171=n.ssrcs.length;for(var _t123=0;_t123<_e171;++_t123){var _e172=n.ssrcs[_t123],_i85=rr.generateSsrc();n.ssrcs.push(_i85),n.groups.push({ssrcs:[_e172,_i85],semantics:"FID"});}}return n.msid=e.storedMSID,this.localSSRCs.set(t,n),n;},ha.prototype.usesUnifiedPlan=function(){return this._usesUnifiedPlan;},ha.prototype.toString=function(){return"TPC[id=".concat(this.id,",type=").concat(this.isP2P?"P2P":"JVB","]");};var ma=(0,g.getLogger)("modules/RTC/RTC.js");var fa=0,ga=0;function _a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.sourceId,n=e.sourceType,i=e.stream,s=e.track,r=e.videoType,o=e.effects,_s$getSettings=s.getSettings(),a=_s$getSettings.deviceId,c=_s$getSettings.facingMode;return ga=Sn(ga),new Ro({deviceId:a,facingMode:c,mediaType:s.kind,rtcId:ga,sourceId:t,sourceType:n,stream:i,track:s,videoType:r||null,effects:o});});}var va=/*#__PURE__*/function(_vi11){_inherits(va,_vi11);var _super26=_createSuper(va);function va(e){var _this142;_classCallCheck(this,va);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_this142=_super26.call(this),_this142.conference=e,_this142.peerConnections=new Map(),_this142.localTracks=[],_this142.options=t,_this142._channel=null,_this142._lastN=void 0,_this142._lastNEndpoints=null,_this142._maxFrameHeight=void 0,_this142._selectedEndpoints=null,_this142._lastNChangeListener=_this142._onLastNChanged.bind(_assertThisInitialized(_this142)),_this142._onDeviceListChanged=_this142._onDeviceListChanged.bind(_assertThisInitialized(_this142)),_this142._updateAudioOutputForAudioTracks=_this142._updateAudioOutputForAudioTracks.bind(_assertThisInitialized(_this142)),_this142._videoType=Gr().NONE,yo.isDeviceChangeAvailable("output")&&(yo.addListener(Vn().AUDIO_OUTPUT_DEVICE_CHANGED,_this142._updateAudioOutputForAudioTracks),yo.addListener(Vn().DEVICE_LIST_CHANGED,_this142._onDeviceListChanged));return _this142;}_createClass(va,[{key:"destroy",value:function destroy(){yo.removeListener(Vn().AUDIO_OUTPUT_DEVICE_CHANGED,this._updateAudioOutputForAudioTracks),yo.removeListener(Vn().DEVICE_LIST_CHANGED,this._onDeviceListChanged),this._channelOpenListener&&this.removeListener(Vn().DATA_CHANNEL_OPEN,this._channelOpenListener);}},{key:"initializeBridgeChannel",value:function initializeBridgeChannel(e,t){var _this143=this;this._channel=new Kr(e,t,this.eventEmitter),this._channelOpenListener=function(){var e=function e(_e173,t,n){dn().callErrorHandler(_e173),ma.error("Cannot send ".concat(t,"(").concat(JSON.stringify(n),") endpoint message"),_e173);};if(_this143._receiverVideoConstraints)try{_this143._channel.sendNewReceiverVideoConstraintsMessage(_this143._receiverVideoConstraints);}catch(t){e(t,"ReceiverVideoConstraints",_this143._receiverVideoConstraints);}if(_this143._selectedEndpoints)try{_this143._channel.sendSelectedEndpointsMessage(_this143._selectedEndpoints);}catch(t){e(t,"SelectedEndpointsChangedEvent",_this143._selectedEndpoints);}if(void 0!==_this143._maxFrameHeight)try{_this143._channel.sendReceiverVideoConstraintMessage(_this143._maxFrameHeight);}catch(t){e(t,"ReceiverVideoConstraint",_this143._maxFrameHeight);}if(void 0!==_this143._lastN&&-1!==_this143._lastN)try{_this143._channel.sendSetLastNMessage(_this143._lastN);}catch(t){e(t,"LastNChangedEvent",_this143._lastN);}if(!Hs.isSourceNameSignalingEnabled())try{_this143._channel.sendVideoTypeMessage(_this143._videoType);}catch(t){e(t,"VideoTypeMessage",_this143._videoType);}_this143.removeListener(Vn().DATA_CHANNEL_OPEN,_this143._channelOpenListener),_this143._channelOpenListener=null;},this.addListener(Vn().DATA_CHANNEL_OPEN,this._channelOpenListener),this.addListener(Vn().LASTN_ENDPOINT_CHANGED,this._lastNChangeListener);}},{key:"_onDeviceListChanged",value:function _onDeviceListChanged(){this._updateAudioOutputForAudioTracks(yo.getAudioOutputDevice());}},{key:"_onLastNChanged",value:function _onLastNChanged(){var _this144=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var t=this._lastNEndpoints||[];var n=[],i=[];this._lastNEndpoints=e,n=t.filter(function(e){return!_this144.isInLastN(e);}),i=e.filter(function(e){return-1===t.indexOf(e);}),this.conference.eventEmitter.emit(ae,n,i);}},{key:"onCallEnded",value:function onCallEnded(){this._channel&&(this._channel&&"websocket"===this._channel.mode&&this._channel.close(),this._channel=null);}},{key:"setDesktopSharingFrameRate",value:function setDesktopSharingFrameRate(e){yo.setDesktopSharingFrameRate(e);}},{key:"setNewReceiverVideoConstraints",value:function setNewReceiverVideoConstraints(e){this._receiverVideoConstraints=e,this._channel&&this._channel.isOpen()&&this._channel.sendNewReceiverVideoConstraintsMessage(e);}},{key:"setReceiverVideoConstraint",value:function setReceiverVideoConstraint(e){this._maxFrameHeight=e,this._channel&&this._channel.isOpen()&&this._channel.sendReceiverVideoConstraintMessage(e);}},{key:"setVideoType",value:function setVideoType(e){this._videoType!==e&&(this._videoType=e,this._channel&&this._channel.isOpen()&&this._channel.sendVideoTypeMessage(e));}},{key:"sendSourceVideoType",value:function sendSourceVideoType(e,t){this._channel&&this._channel.isOpen()&&this._channel.sendSourceVideoTypeMessage(e,t);}},{key:"selectEndpoints",value:function selectEndpoints(e){this._selectedEndpoints=e,this._channel&&this._channel.isOpen()&&this._channel.sendSelectedEndpointsMessage(e);}},{key:"createPeerConnection",value:function createPeerConnection(e,t,n,i){var s=JSON.parse(JSON.stringify(yo.pcConstraints));void 0!==i.abtestSuspendVideo&&(yo.setSuspendVideo(s,i.abtestSuspendVideo),jn.analytics.addPermanentProperties({abtestSuspendVideo:i.abtestSuspendVideo})),i.enableInsertableStreams&&(ma.debug("E2EE - setting insertable streams constraints"),t.encodedInsertableStreams=!0),(nn.isReactNative()||nn.isChromiumBased()&&!i.usesUnifiedPlan)&&(ma.debug("WebRTC application is running in plan-b mode"),t.sdpSemantics="plan-b"),i.forceTurnRelay&&(t.iceTransportPolicy="relay"),t.bundlePolicy="max-bundle",fa=Sn(fa);var r=new ha(this,fa,e,t,s,n,i);return this.peerConnections.set(r.id,r),r;}},{key:"_removePeerConnection",value:function _removePeerConnection(e){var t=e.id;return!!this.peerConnections.has(t)&&(this.peerConnections.delete(t),!0);}},{key:"addLocalTrack",value:function addLocalTrack(e){if(!e)throw new Error("track must not be null nor undefined");this.localTracks.push(e),e.conference=this.conference;}},{key:"getLocalVideoTrack",value:function getLocalVideoTrack(){var e=this.getLocalTracks(wn);return e.length?e[0]:void 0;}},{key:"getLocalAudioTrack",value:function getLocalAudioTrack(){var e=this.getLocalTracks(Rn);return e.length?e[0]:void 0;}},{key:"getLocalEndpointId",value:function getLocalEndpointId(){return this.conference.myUserId();}},{key:"getLocalTracks",value:function getLocalTracks(e){var t=this.localTracks.slice();return void 0!==e&&(t=t.filter(function(t){return t.getType()===e;})),t;}},{key:"getRemoteTracks",value:function getRemoteTracks(e){var t=[];var _iterator69=_createForOfIteratorHelper(this.peerConnections.values()),_step69;try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var _n84=_step69.value;var _i86=_n84.getRemoteTracks(void 0,e);_i86&&(t=t.concat(_i86));}}catch(err){_iterator69.e(err);}finally{_iterator69.f();}return t;}},{key:"setAudioMute",value:function setAudioMute(e){var t=[];return this.getLocalTracks(Rn).forEach(function(n){t.push(e?n.mute():n.unmute());}),Promise.all(t);}},{key:"setVideoMute",value:function setVideoMute(e){var t=[];return this.getLocalTracks(wn).concat(this.getLocalTracks(An)).forEach(function(n){t.push(e?n.mute():n.unmute());}),Promise.all(t);}},{key:"removeLocalTrack",value:function removeLocalTrack(e){var t=this.localTracks.indexOf(e);-1!==t&&this.localTracks.splice(t,1);}},{key:"closeBridgeChannel",value:function closeBridgeChannel(){this._channel&&(this._channel.close(),this._channel=null,this.removeListener(Vn().LASTN_ENDPOINT_CHANGED,this._lastNChangeListener));}},{key:"setAudioLevel",value:function setAudioLevel(e,t,n,i){var s=e.getTrackBySSRC(t);s&&(s.isAudioTrack()?(s.isLocal()!==i&&ma.error("".concat(s," was expected to ").concat(i?"be":"not be"," local")),s.setAudioLevel(n,e)):ma.warn("Received audio level for non-audio track: ".concat(t)));}},{key:"sendChannelMessage",value:function sendChannelMessage(e,t){if(!this._channel)throw new Error("Channel support is disabled!");this._channel.sendMessage(e,t);}},{key:"sendEndpointStatsMessage",value:function sendEndpointStatsMessage(e){this._channel&&this._channel.isOpen()&&this._channel.sendEndpointStatsMessage(e);}},{key:"setLastN",value:function setLastN(e){this._lastN!==e&&(this._lastN=e,this._channel&&this._channel.isOpen()&&this._channel.sendSetLastNMessage(e),this.eventEmitter.emit(Vn().LASTN_VALUE_CHANGED,e));}},{key:"isInLastN",value:function isInLastN(e){return!this._lastNEndpoints||this._lastNEndpoints.indexOf(e)>-1;}},{key:"_updateAudioOutputForAudioTracks",value:function _updateAudioOutputForAudioTracks(e){var t=this.getRemoteTracks(Rn);var _iterator70=_createForOfIteratorHelper(t),_step70;try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var _n85=_step70.value;_n85.setAudioOutput(e);}}catch(err){_iterator70.e(err);}finally{_iterator70.f();}}}],[{key:"createLocalTracks",value:function createLocalTracks(e){return _a(e);}},{key:"obtainAudioAndVideoPermissions",value:function obtainAudioAndVideoPermissions(e){return yo.obtainAudioAndVideoPermissions(e).then(function(e){return _a(e);});}},{key:"addListener",value:function addListener(e,t){yo.addListener(e,t);}},{key:"removeListener",value:function removeListener(e,t){yo.removeListener(e,t);}},{key:"init",value:function init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=e,yo.init(this.options);}},{key:"attachMediaStream",value:function attachMediaStream(e,t){return yo.attachMediaStream(e,t);}},{key:"getStreamID",value:function getStreamID(e){return yo.getStreamID(e);}},{key:"getTrackID",value:function getTrackID(e){return yo.getTrackID(e);}},{key:"isDeviceListAvailable",value:function isDeviceListAvailable(){return yo.isDeviceListAvailable();}},{key:"isDeviceChangeAvailable",value:function isDeviceChangeAvailable(e){return yo.isDeviceChangeAvailable(e);}},{key:"isWebRtcSupported",value:function isWebRtcSupported(){return nn.isSupported();}},{key:"getAudioOutputDevice",value:function getAudioOutputDevice(){return yo.getAudioOutputDevice();}},{key:"getCurrentlyAvailableMediaDevices",value:function getCurrentlyAvailableMediaDevices(){return yo.getCurrentlyAvailableMediaDevices();}},{key:"arePermissionsGrantedForAvailableDevices",value:function arePermissionsGrantedForAvailableDevices(){return yo.arePermissionsGrantedForAvailableDevices();}},{key:"getEventDataForActiveDevice",value:function getEventDataForActiveDevice(e){return yo.getEventDataForActiveDevice(e);}},{key:"setAudioOutputDevice",value:function setAudioOutputDevice(e){return yo.setAudioOutputDevice(e);}},{key:"isUserStream",value:function isUserStream(e){return va.isUserStreamById(yo.getStreamID(e));}},{key:"isUserStreamById",value:function isUserStreamById(e){return e&&"mixedmslabel"!==e&&"default"!==e;}},{key:"enumerateDevices",value:function enumerateDevices(e){yo.enumerateDevices(e);}},{key:"stopMediaStream",value:function stopMediaStream(e){yo.stopMediaStream(e);}},{key:"isDesktopSharingEnabled",value:function isDesktopSharingEnabled(){return yo.isDesktopSharingEnabled();}}]);return va;}(vi);var Sa="cq.local_stats_updated",ya="cq.remote_stats_updated",Ea=n(6125),Ca=n(1122),ba=n(4188),Ta=(0,g.getLogger)("modules/connectivity/ConnectionQuality.js"),Ra=[{width:1920,height:1080,layers:3,target:"high",targetRN:4e6},{width:1280,height:720,layers:3,target:"high",targetRN:25e5},{width:960,height:540,layers:3,target:"standard",targetRN:9e5},{width:640,height:360,layers:2,target:"standard",targetRN:5e5},{width:480,height:270,layers:2,target:"low",targetRN:35e4},{width:320,height:180,layers:1,target:"low",targetRN:15e4}];var Aa=800;var wa=/*#__PURE__*/function(){function wa(e,t,n){var _this145=this;_classCallCheck(this,wa);var i;this.eventEmitter=t,this._conference=e,this._localStats={connectionQuality:100,jvbRTT:void 0},this._lastConnectionQualityUpdate=-1,this._options=n,this._remoteStats={},this._timeIceConnected=-1,this._timeVideoUnmuted=-1,(null===(i=this._options.config)||void 0===i?void 0:i.startBitrate)>0&&(Aa=this._options.config.startBitrate),e.on(W,function(){_this145._updateLocalConnectionQuality(0),_this145.eventEmitter.emit(Sa,_this145._localStats),_this145._broadcastLocalStats();}),e.room.addListener(ba.ICE_CONNECTION_STATE_CHANGED,function(e,t){e.isP2P||"connected"!==t||(_this145._timeIceConnected=window.performance.now());}),e.on(ne,function(e,t){"stats"===t.type&&_this145._updateRemoteStats(e.getId(),t.values);}),e.on(ie,function(e,t){_this145._updateRemoteStats(e.getId(),t);}),e.on(ne,function(e,t){"facial_expression"===t.type&&_this145.eventEmitter.emit(Ye,e.getId(),t);}),e.statistics.addConnectionStatsListener(this._updateLocalStats.bind(this)),e.on(Oe,function(e){e.isVideoTrack()&&(e.isMuted()?_this145._timeVideoUnmuted=-1:_this145._maybeUpdateUnmuteTime());}),e.on(Ne,function(e){e.isVideoTrack()&&!e.isMuted()&&_this145._maybeUpdateUnmuteTime();}),e.rtc.on(Bn.LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED,function(e){_this145._localStats.maxEnabledResolution=e.maxEnabledResolution;}),e.on(de,function(e){_this145._localStats.serverRegion=e;}),e.on(be,function(e){_this145._localStats.bridgeCount=Number((e||{})["bridge-count"]);});}_createClass(wa,[{key:"_maybeUpdateUnmuteTime",value:function _maybeUpdateUnmuteTime(){this._timeVideoUnmuted<0&&(this._timeVideoUnmuted=window.performance.now());}},{key:"_calculateConnectionQuality",value:function _calculateConnectionQuality(e,t,n){var i=Ea[n];var s,r=100;if(this._localStats.packetLoss&&(s=this._localStats.packetLoss.upload,t&&(s*=.5)),t||!i||e===Ca.DESKTOP||this._timeIceConnected<0||this._timeVideoUnmuted<0)void 0===s?(Ta.error("Cannot calculate connection quality, unknown packet loss."),r=100):r=s<=2?100:s<=4?70:s<=6?50:s<=8?30:s<=12?10:0;else{var _e174=this._conference.getActivePeerConnection();if(_e174){var o,a;var _t124=_e174.isSimulcastOn(),_n86=_e174.getTargetVideoBitrates();_n86.codec=_e174.getConfiguredVideoCodec();var _s42=window.performance.now()-Math.max(this._timeVideoUnmuted,this._timeIceConnected),_c5=null!==(o=null===(a=this._options.config)||void 0===a?void 0:a.pcStatsInterval)&&void 0!==o?o:1e4;var _d6=function(e,t,n,i){var s=0,r=Math.min(t.height,t.width),o=Ra.find(function(e){return e.height<=r;});if(o&&e&&i.codec===Xs().VP8){var _loop12=function _loop12(){var e=r;if(o=Ra.find(function(t){return t.height===e;}),!o)return"break";s+=nn.isReactNative()?o.targetRN:i[o.target];};for(r=o.height;r>=180;r/=2){var _ret3=_loop12();if(_ret3==="break")break;}}else o&&(s=nn.isReactNative()?o.targetRN:i[o.target]);return Math.min(s/1e3,function(e){return e>6e4?Number.MAX_SAFE_INTEGER:Aa*Math.pow(1.08,e/1e3);}(Math.max(0,n-1e3)));}(_t124,i,_s42,_n86);_d6=Math.min(_d6,2500),_s42>_c5&&(r=100*this._localStats.bitrate.upload/_d6);}s&&s>=10&&(r=Math.min(r,30));}if(this._lastConnectionQualityUpdate>0){var _e175=2,_t125=this._localStats.connectionQuality,_n87=(window.performance.now()-this._lastConnectionQualityUpdate)/1e3;r=Math.min(r,_t125+_n87*_e175);}return Math.min(100,r);}},{key:"_updateLocalConnectionQuality",value:function _updateLocalConnectionQuality(e){this._localStats.connectionQuality=e,this._lastConnectionQualityUpdate=window.performance.now();}},{key:"_broadcastLocalStats",value:function _broadcastLocalStats(){var e={bitrate:this._localStats.bitrate,packetLoss:this._localStats.packetLoss,connectionQuality:this._localStats.connectionQuality,jvbRTT:this._localStats.jvbRTT,serverRegion:this._localStats.serverRegion,maxEnabledResolution:this._localStats.maxEnabledResolution,avgAudioLevels:this._localStats.localAvgAudioLevels};try{this._conference.sendEndpointStatsMessage(e);}catch(e){}}},{key:"_updateLocalStats",value:function _updateLocalStats(e,t){if(!e.isP2P){var _e176=t.transport&&t.transport.length&&t.transport[0].rtt;this._localStats.jvbRTT=_e176||void 0;}if(e!==this._conference.getActivePeerConnection())return;var n;var i=!this._conference.isConnectionInterrupted(),s=this._conference.getLocalVideoTrack(),r=s?s.videoType:void 0,o=!s||s.isMuted(),a=s?Math.min(s.resolution,s.maxEnabledResolution):null;for(n in o||this._maybeUpdateUnmuteTime(),t)t.hasOwnProperty(n)&&(this._localStats[n]=t[n]);i&&this._updateLocalConnectionQuality(this._calculateConnectionQuality(r,o,a)),this.eventEmitter.emit(Sa,this._localStats),this._broadcastLocalStats();}},{key:"_updateRemoteStats",value:function _updateRemoteStats(e,t){this._remoteStats[e]={bitrate:t.bitrate,packetLoss:t.packetLoss,connectionQuality:t.connectionQuality,jvbRTT:t.jvbRTT,serverRegion:t.serverRegion,maxEnabledResolution:t.maxEnabledResolution,avgAudioLevels:t.avgAudioLevels},this.eventEmitter.emit(ya,e,this._remoteStats[e]);}},{key:"getStats",value:function getStats(){return this._localStats;}}]);return wa;}();var Ia=(0,g.getLogger)("modules/connectivity/IceFailedHandling.js");var Pa=/*#__PURE__*/function(){function Pa(e){_classCallCheck(this,Pa);this._conference=e;}_createClass(Pa,[{key:"_actOnIceFailed",value:function _actOnIceFailed(){var _this$_conference$opt=this._conference.options.config,e=_this$_conference$opt.enableForcedReload,t=_this$_conference$opt.enableIceRestart,n=void 0!==t&&!t,i=this._conference.room.supportsRestartByTerminate(),s=i&&!t;if(Ia.info("ICE failed, enableForcedReload: ".concat(e,", enableIceRestart: ").concat(t,", supports restart by terminate: ").concat(i)),n||!t&&!i||e){Ia.info("ICE failed, but ICE restarts are disabled");var _t126=e?T:D;return void this._conference.eventEmitter.emit(J,_t126);}var r=this._conference.jvbJingleSession,o=r&&r.getIceConnectionState();r?"connected"===o?Ia.info("ICE connection restored - not sending ICE failed"):(Ia.info("Sending ICE failed - the connection did not recover, ICE state: ".concat(o,", use \'session-terminate\': ").concat(s)),s?this._conference.jvbJingleSession.terminate(function(){Ia.info("session-terminate for ice restart - done");},function(e){Ia.error("session-terminate for ice restart - error: ".concat(e.message));},{reason:"connectivity-error",reasonDescription:"ICE FAILED",requestRestart:!0,sendSessionTerminate:!0}):this._conference.jvbJingleSession.sendIceFailedNotification()):Ia.warn("Not sending ICE failed - no JVB connection");}},{key:"start",value:function start(){var _this146=this;this._conference.xmpp.ping(65e3).then(function(){_this146._canceled||(_this146._iceFailedTimeout=window.setTimeout(function(){_this146._iceFailedTimeout=void 0,_this146._actOnIceFailed();},2e3));},function(e){Ia.error("PING error/timeout - not sending ICE failed",e);});}},{key:"cancel",value:function cancel(){this._canceled=!0,window.clearTimeout(this._iceFailedTimeout);}}]);return Pa;}();var Ma="detector_state_change",Da="audio_input_state_changed",Na="no_audio_input_detected",ka="detection.vad_noise_device",Oa="vad-report-published",La="detection.vad_score_published",xa="detection.vad_talk_while_muted";var Fa=/*#__PURE__*/function(_nt2){_inherits(Fa,_nt2);var _super27=_createSuper(Fa);function Fa(e){var _this147;_classCallCheck(this,Fa);_this147=_super27.call(this),_this147._conference=e,_this147._timeoutTrigger=null,_this147._hasAudioInput=null,nn.supportsReceiverStats()||e.statistics.addAudioLevelListener(_this147._audioLevel.bind(_assertThisInitialized(_this147))),e.on(Ne,_this147._trackAdded.bind(_assertThisInitialized(_this147)));return _this147;}_createClass(Fa,[{key:"_clearTriggerTimeout",value:function _clearTriggerTimeout(){clearTimeout(this._timeoutTrigger),this._timeoutTrigger=null;}},{key:"_handleAudioInputStateChange",value:function _handleAudioInputStateChange(e){var t=0!==e;null!==this._hasAudioInput&&this._hasAudioInput===t||(this._hasAudioInput=t,this.emit(Da,this._hasAudioInput));}},{key:"_handleNoAudioInputDetection",value:function _handleNoAudioInputDetection(e){var _this148=this;this._eventFired||(0!==e||this._timeoutTrigger?0!==e&&this._timeoutTrigger&&this._clearTriggerTimeout():this._timeoutTrigger=setTimeout(function(){_this148._eventFired=!0,_this148.emit(Na);},4e3));}},{key:"_audioLevel",value:function _audioLevel(e,t,n,i){if(!i||!this._audioTrack)return;var s=e.localSSRCs.get(this._audioTrack.rtcId);s&&s.ssrcs.includes(t)&&(this._handleAudioInputStateChange(n),this._handleNoAudioInputDetection(n));}},{key:"_trackAdded",value:function _trackAdded(e){var _this149=this;e.isLocalAudioTrack()&&(this._audioTrack=e,this._eventFired=!1,this._clearTriggerTimeout(),nn.supportsReceiverStats()&&(e.on(ii,function(e){_this149._handleNoAudioInputDetection(e);}),e.on(Yn,function(e){_this149._handleNoAudioInputDetection(e),_this149._handleAudioInputStateChange(e);})));}}]);return Fa;}(nt());var ja=/*#__PURE__*/function(){function ja(e){_classCallCheck(this,ja);this.conference=e,e.addEventListener(ke,this._audioLevel.bind(this)),this.myUserID=this.conference.myUserId();}_createClass(ja,[{key:"_audioLevel",value:function _audioLevel(e,t){!this.conference.isP2PActive()||t<=.6||e===this.myUserID&&this.conference.getLocalAudioTrack().isMuted()||this.conference.rtc.eventEmitter.emit(Vn().DOMINANT_SPEAKER_CHANGED,e);}}]);return ja;}();function $a(e){var t=window.AudioContext||window.webkitAudioContext;if(t)return new t(e);}var Ua=/*#__PURE__*/function(_nt3){_inherits(Ua,_nt3);var _super28=_createSuper(Ua);function Ua(e,t,n){var _this150;_classCallCheck(this,Ua);_this150=_super28.call(this),_this150._procNodeSampleRate=e,_this150._vadProcessor=t,_this150._localTrack=n,_this150._bufferResidue=new Float32Array([]),_this150._audioContext=$a({sampleRate:t.getRequiredPCMFrequency()}),_this150._vadSampleSize=t.getSampleLength(),_this150._onAudioProcess=_this150._onAudioProcess.bind(_assertThisInitialized(_this150)),_this150._initializeAudioContext();return _this150;}_createClass(Ua,[{key:"_initializeAudioContext",value:function _initializeAudioContext(){this._audioSource=this._audioContext.createMediaStreamSource(this._localTrack.stream),this._audioProcessingNode=this._audioContext.createScriptProcessor(this._procNodeSampleRate,1,1);}},{key:"_onAudioProcess",value:function _onAudioProcess(e){var t=e.inputBuffer.getChannelData(0),n=[].concat(_toConsumableArray(this._bufferResidue),_toConsumableArray(t)),i=Date.now();var s=0;for(;s+this._vadSampleSize<n.length;s+=this._vadSampleSize){var _e177=n.slice(s,s+this._vadSampleSize),_t127=this._vadProcessor.calculateAudioFrameVAD(_e177.slice());this.emit(La,{timestamp:i,score:_t127,pcmData:_e177,deviceId:this._localTrack.getDeviceId()});}this._bufferResidue=n.slice(s,n.length);}},{key:"_connectAudioGraph",value:function _connectAudioGraph(){this._audioProcessingNode.onaudioprocess=this._onAudioProcess,this._audioSource.connect(this._audioProcessingNode),this._audioProcessingNode.connect(this._audioContext.destination);}},{key:"_disconnectAudioGraph",value:function _disconnectAudioGraph(){this._audioProcessingNode.onaudioprocess=function(){},this._audioProcessingNode.disconnect(),this._audioSource.disconnect();}},{key:"_cleanupResources",value:function _cleanupResources(){this._disconnectAudioGraph(),this._localTrack.stopStream();}},{key:"getDeviceId",value:function getDeviceId(){return this._localTrack.getDeviceId();}},{key:"getTrackLabel",value:function getTrackLabel(){return this._localTrack.getDeviceLabel();}},{key:"start",value:function start(){this._connectAudioGraph();}},{key:"stop",value:function stop(){this._disconnectAudioGraph(),this._bufferResidue=[];}},{key:"destroy",value:function destroy(){this._destroyed||(this._cleanupResources(),this._destroyed=!0);}}],[{key:"create",value:function create(e,t,n){return va.obtainAudioAndVideoPermissions({devices:["audio"],micDeviceId:e}).then(function(i){if(!i[0])throw new Error("Failed to create jitsi local track for device id: ".concat(e));return new Ua(t,n,i[0]);});}}]);return Ua;}(nt());var Ba=(0,g.getLogger)("modules/detection/VADAudioAnalyser.js");var Va=/*#__PURE__*/function(_tt$EventEmitter){_inherits(Va,_tt$EventEmitter);var _super29=_createSuper(Va);function Va(e,t){var _this151;_classCallCheck(this,Va);_this151=_super29.call(this),_this151._createVADProcessor=t,_this151._vadEmitter=null,_this151._isVADEmitterRunning=!1,_this151._detectionServices=[],_this151._vadInitTracker=Promise.resolve(),_this151._processVADScore=_this151._processVADScore.bind(_assertThisInitialized(_this151)),e.on(Ne,_this151._trackAdded.bind(_assertThisInitialized(_this151))),e.on(Le,_this151._trackRemoved.bind(_assertThisInitialized(_this151))),e.on(Oe,_this151._trackMuteChanged.bind(_assertThisInitialized(_this151)));return _this151;}_createClass(Va,[{key:"addVADDetectionService",value:function addVADDetectionService(e){var _this152=this;this._detectionServices.push(e),e.on(Ma,function(){!_this152._detectionServices.filter(function(e){return!0===e.isActive();}).length&&_this152._isVADEmitterRunning?_this152._stopVADEmitter():_this152._isVADEmitterRunning||_this152._startVADEmitter();});}},{key:"_startVADEmitter",value:function _startVADEmitter(){this._vadEmitter&&(this._vadEmitter.on(La,this._processVADScore),this._vadEmitter.start(),this._isVADEmitterRunning=!0);}},{key:"_stopVADEmitter",value:function _stopVADEmitter(){this._vadEmitter&&(this._vadEmitter.removeListener(La,this._processVADScore),this._vadEmitter.stop()),this._isVADEmitterRunning=!1;}},{key:"_processVADScore",value:function _processVADScore(e){var _iterator71=_createForOfIteratorHelper(this._detectionServices),_step71;try{for(_iterator71.s();!(_step71=_iterator71.n()).done;){var _t128=_step71.value;_t128.processVADScore(e);}}catch(err){_iterator71.e(err);}finally{_iterator71.f();}}},{key:"_changeDetectorsMuteState",value:function _changeDetectorsMuteState(e){var _iterator72=_createForOfIteratorHelper(this._detectionServices),_step72;try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var _t129=_step72.value;_t129.changeMuteState(e);}}catch(err){_iterator72.e(err);}finally{_iterator72.f();}}},{key:"_trackAdded",value:function _trackAdded(e){var _this153=this;e.isLocalAudioTrack()&&(this._vadInitTracker=this._vadInitTracker.then(function(){return _this153._createVADProcessor();}).then(function(t){return Ua.create(e.getDeviceId(),4096,t);}).then(function(t){Ba.debug("Created VAD emitter for track: ",e.getTrackLabel()),_this153._vadEmitter=t,_this153._changeDetectorsMuteState(e.isMuted());}).catch(function(e){Ba.warn("Failed to start VADAudioAnalyser",e);}));}},{key:"_trackMuteChanged",value:function _trackMuteChanged(e){var _this154=this;e.isLocalAudioTrack()&&(this._vadInitTracker=this._vadInitTracker.then(function(){_this154._changeDetectorsMuteState(e.isMuted());}));}},{key:"_trackRemoved",value:function _trackRemoved(e){var _this155=this;e.isLocalAudioTrack()&&(this._vadInitTracker=this._vadInitTracker.then(function(){Ba.debug("Removing track from VAD detection - ",e.getTrackLabel()),_this155._vadEmitter&&(_this155._stopVADEmitter(),_this155._vadEmitter.destroy(),_this155._vadEmitter=null);var _iterator73=_createForOfIteratorHelper(_this155._detectionServices),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _e178=_step73.value;_e178.reset();}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}}));}}]);return Va;}(tt.EventEmitter);var Ja=/*#__PURE__*/function(_tt$EventEmitter2){_inherits(Ja,_tt$EventEmitter2);var _super30=_createSuper(Ja);function Ja(){var _this156;_classCallCheck(this,Ja);_this156=_super30.call(this),_this156._processing=!1,_this156._scoreArray=[],_this156._audioLvlArray=[],_this156._active=!1,_this156._calculateNoisyScore=_this156._calculateNoisyScore.bind(_assertThisInitialized(_this156));return _this156;}_createClass(Ja,[{key:"_calculateNoisyScore",value:function _calculateNoisyScore(){var e=yn(this._scoreArray),t=yn(this._audioLvlArray);e<.2&&t>.04&&(this.emit(ka),this._setActiveState(!1)),this.reset();}},{key:"_recordValues",value:function _recordValues(e,t){this._scoreArray.push(e),this._audioLvlArray.push(t);}},{key:"_setActiveState",value:function _setActiveState(e){this._active=e,this.emit(Ma,this._active);}},{key:"changeMuteState",value:function changeMuteState(e){this._setActiveState(!e),this.reset();}},{key:"isActive",value:function isActive(){return this._active;}},{key:"reset",value:function reset(){this._processing=!1,this._scoreArray=[],this._audioLvlArray=[],clearTimeout(this._processTimeout);}},{key:"processVADScore",value:function processVADScore(e){if(this._active)if(this._processing){var _t130=En(e.pcmData);this._recordValues(e.score,yn(_t130));}else if(e.score<.2){var _t131=yn(En(e.pcmData));_t131>.02&&(this._processing=!0,this._recordValues(e.score,_t131),this._processTimeout=setTimeout(this._calculateNoisyScore,1500));}}}]);return Ja;}(tt.EventEmitter);var Ha=/*#__PURE__*/function(_tt$EventEmitter3){_inherits(Ha,_tt$EventEmitter3);var _super31=_createSuper(Ha);function Ha(){var _this157;_classCallCheck(this,Ha);_this157=_super31.call(this),_this157._processing=!1,_this157._scoreArray=[],_this157._active=!1,_this157._calculateVADScore=_this157._calculateVADScore.bind(_assertThisInitialized(_this157));return _this157;}_createClass(Ha,[{key:"_calculateVADScore",value:function _calculateVADScore(){yn(this._scoreArray)>.6&&(this.emit(xa),this._setActiveState(!1)),this.reset();}},{key:"_setActiveState",value:function _setActiveState(e){this._active=e,this.emit(Ma,this._active);}},{key:"changeMuteState",value:function changeMuteState(e){this._setActiveState(e),this.reset();}},{key:"isActive",value:function isActive(){return this._active;}},{key:"processVADScore",value:function processVADScore(e){this._active&&(this._processing?this._scoreArray.push(e.score):e.score>.9&&(this._processing=!0,this._scoreArray.push(e.score),this._processTimeout=setTimeout(this._calculateVADScore,700)));}},{key:"reset",value:function reset(){this._processing=!1,this._scoreArray=[],clearTimeout(this._processTimeout);}}]);return Ha;}(tt.EventEmitter);var Ga="e2eping.e2e_rtt_changed",qa=(0,g.getLogger)("modules/e2eping/e2eping.js"),Ka="e2e-ping-request",za="e2e-ping-response";var Wa=/*#__PURE__*/function(){function Wa(e,t){_classCallCheck(this,Wa);this.participant=e,this.e2eping=t,this.id=e.getId(),this.requests={},this.lastRequestId=1,this.clearIntervals=this.clearIntervals.bind(this),this.sendRequest=this.sendRequest.bind(this),this.handleResponse=this.handleResponse.bind(this),this.maybeSendAnalytics=this.maybeSendAnalytics.bind(this),this.sendAnalytics=this.sendAnalytics.bind(this),t.isDataChannelOpen&&this.sendRequest(),this.pingInterval=window.setInterval(this.sendRequest,t.pingIntervalMs),this.analyticsInterval=window.setTimeout(this.maybeSendAnalytics,this.e2eping.analyticsIntervalMs);}_createClass(Wa,[{key:"clearIntervals",value:function clearIntervals(){this.pingInterval&&window.clearInterval(this.pingInterval),this.analyticsInterval&&window.clearInterval(this.analyticsInterval);}},{key:"sendRequest",value:function sendRequest(){var e=this.lastRequestId++,t={type:Ka,id:e};this.e2eping.sendMessage(t,this.id),this.requests[e]={id:e,timeSent:window.performance.now()};}},{key:"handleResponse",value:function handleResponse(e){var t=this.requests[e.id];t&&(t.rtt=window.performance.now()-t.timeSent,this.e2eping.eventEmitter.emit(Ga,this.participant,t.rtt)),this.maybeSendAnalytics();}},{key:"maybeSendAnalytics",value:function maybeSendAnalytics(){var e=window.performance.now();var t,n,i=1/0;for(n in this.requests)this.requests.hasOwnProperty(n)&&(t=this.requests[n],t.timeSent<e-this.e2eping.analyticsIntervalMs?delete this.requests[n]:t.rtt&&(i=Math.min(i,t.rtt)));i<1/0&&this.sendAnalytics(i);}},{key:"sendAnalytics",value:function sendAnalytics(e){jn.sendAnalytics(function(e,t,n){return{attributes:{participant_id:e,region:t,rtt:n},name:"e2e_rtt",type:Ct};}(this.id,this.participant.getProperty("region"),e));}}]);return Wa;}();var Qa=/*#__PURE__*/function(){function Qa(e,t,n){_classCallCheck(this,Qa);this.conference=e,this.eventEmitter=e.eventEmitter,this.sendMessage=n,this.pingIntervalMs=1e4,this.analyticsIntervalMs=6e4,this.participants={},this.isDataChannelOpen=!1,t&&t.e2eping&&("number"==typeof t.e2eping.pingInterval&&(this.pingIntervalMs=t.e2eping.pingInterval),"number"==typeof t.e2eping.analyticsInterval&&(this.analyticsIntervalMs=t.e2eping.analyticsInterval),this.analyticsIntervalMs>0&&this.analyticsIntervalMs<this.pingIntervalMs&&(this.analyticsIntervalMs=this.pingIntervalMs)),qa.info("Initializing e2e ping; pingInterval=".concat(this.pingIntervalMs,", analyticsInterval=").concat(this.analyticsIntervalMs,".")),this.participantJoined=this.participantJoined.bind(this),e.on(je,this.participantJoined),this.participantLeft=this.participantLeft.bind(this),e.on($e,this.participantLeft),this.messageReceived=this.messageReceived.bind(this),e.on(ne,this.messageReceived),this.dataChannelOpened=this.dataChannelOpened.bind(this),e.on(X,this.dataChannelOpened);}_createClass(Qa,[{key:"dataChannelOpened",value:function dataChannelOpened(){this.isDataChannelOpen=!0;for(var _e179 in this.participants)if(this.participants.hasOwnProperty(_e179)){var _t132=this.participants[_e179];window.setTimeout(_t132.sendRequest,200);}}},{key:"messageReceived",value:function messageReceived(e,t){t.type===Ka?this.handleRequest(e.getId(),t):t.type===za&&this.handleResponse(e.getId(),t);}},{key:"participantJoined",value:function participantJoined(e,t){this.pingIntervalMs<=0||(this.participants[e]&&(qa.info("Participant wrapper already exists for ".concat(e,". Clearing.")),this.participants[e].clearIntervals(),delete this.participants[e]),this.participants[e]=new Wa(t,this));}},{key:"participantLeft",value:function participantLeft(e){this.pingIntervalMs<=0||this.participants[e]&&(this.participants[e].clearIntervals(),delete this.participants[e]);}},{key:"handleRequest",value:function handleRequest(e,t){if(t&&t.id){var _n88={type:za,id:t.id};this.sendMessage(_n88,e);}else qa.info("Received an invalid e2e ping request from ".concat(e,"."));}},{key:"handleResponse",value:function handleResponse(e,t){var n=this.participants[e];n&&n.handleResponse(t);}},{key:"stop",value:function stop(){qa.info("Stopping e2eping"),this.conference.off(je,this.participantJoined),this.conference.off($e,this.participantLeft),this.conference.off(ne,this.messageReceived),this.conference.off(X,this.dataChannelOpened);for(var _e180 in this.participants)this.participants.hasOwnProperty(_e180)&&this.participants[_e180].clearIntervals();this.participants={};}}]);return Qa;}();var Xa=(0,g.getLogger)("modules/event/Jvb121EventGenerator.js");var Ya=/*#__PURE__*/function(){function Ya(e){var _this158=this;_classCallCheck(this,Ya);this._conference=e,this._jvb121=!0,this._conference.addEventListener(je,function(){return _this158.evaluateStatus();}),this._conference.addEventListener($e,function(){return _this158.evaluateStatus();}),this._conference.addEventListener(Ee,function(){return _this158.evaluateStatus();});}_createClass(Ya,[{key:"evaluateStatus",value:function evaluateStatus(){var e=this._jvb121,t=!this._conference.isP2PActive()&&this._conference.getParticipantCount()<=2;e!==t&&(this._jvb121=t,Xa.debug("JVB121 status ".concat(e," => ").concat(t)),this._conference.eventEmitter.emit(se,e,t));}}]);return Ya;}();var Za=(0,g.getLogger)("modules/qualitycontrol/ReceiveVideoController.js");var ec=/*#__PURE__*/function(){function ec(){_classCallCheck(this,ec);this._defaultConstraints={maxHeight:180},this._lastN=-1,this._maxFrameHeight=2160,this._selectedEndpoints=[],this._receiverVideoConstraints={constraints:{},defaultConstraints:this.defaultConstraints,lastN:this._lastN,onStageEndpoints:[],selectedEndpoints:this._selectedEndpoints};}_createClass(ec,[{key:"constraints",get:function get(){return this._receiverVideoConstraints.lastN=this._lastN,this._selectedEndpoints.length?(this._receiverVideoConstraints.constraints={},this._selectedEndpoints.length>1?(this._receiverVideoConstraints.defaultConstraints={maxHeight:this._maxFrameHeight},this._receiverVideoConstraints.onStageEndpoints=[],this._receiverVideoConstraints.selectedEndpoints=[]):(this._receiverVideoConstraints.constraints[this._selectedEndpoints[0]]={maxHeight:this._maxFrameHeight},this._receiverVideoConstraints.defaultConstraints=this._defaultConstraints,this._receiverVideoConstraints.onStageEndpoints=this._selectedEndpoints,this._receiverVideoConstraints.selectedEndpoints=[]),this._receiverVideoConstraints):this._receiverVideoConstraints;}},{key:"updateLastN",value:function updateLastN(e){var t=this._lastN!==e;return t&&(this._lastN=e,Za.debug("Updating ReceiverVideoConstraints lastN(".concat(e,")"))),t;}},{key:"updateReceiveResolution",value:function updateReceiveResolution(e){var t=this._maxFrameHeight!==e;return t&&(this._maxFrameHeight=e,Za.debug("Updating receive maxFrameHeight: ".concat(e))),t;}},{key:"updateReceiverVideoConstraints",value:function updateReceiverVideoConstraints(e){var t=!st()(this._receiverVideoConstraints,e);return t&&(this._receiverVideoConstraints=e,Za.debug("Updating ReceiverVideoConstraints ".concat(JSON.stringify(e)))),t;}},{key:"updateSelectedEndpoints",value:function updateSelectedEndpoints(e){Za.debug("Updating selected endpoints: ".concat(JSON.stringify(e))),this._selectedEndpoints=e;}}]);return ec;}();var tc=/*#__PURE__*/function(){function tc(e,t){var _this159=this;_classCallCheck(this,tc);var n,i;this._conference=e,this._rtc=t;var s=e.options.config;this._lastN=null!==(n=null==s?void 0:s.startLastN)&&void 0!==n?n:(null==s?void 0:s.channelLastN)||-1,this._maxFrameHeight=2160,null===(i=null==s?void 0:s.useNewBandwidthAllocationStrategy)||void 0===i||i?(this._receiverVideoConstraints=new ec(),this._receiverVideoConstraints.updateLastN(this._lastN)&&this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints)):this._rtc.setLastN(this._lastN),this._selectedEndpoints=[],this._conference.on(le,function(e){return _this159._onMediaSessionStarted(e);});}_createClass(tc,[{key:"_onMediaSessionStarted",value:function _onMediaSessionStarted(e){e.isP2P||!this._receiverVideoConstraints?e.setReceiverVideoConstraint(this._maxFrameHeight):(this._receiverVideoConstraints.updateReceiveResolution(this._maxFrameHeight),this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints));}},{key:"getLastN",value:function getLastN(){return this._lastN;}},{key:"selectEndpoints",value:function selectEndpoints(e){var _this160=this;if(this._selectedEndpoints=e,this._receiverVideoConstraints){var _t133=e.filter(function(e){return e!==_this160._conference.myUserId();}),_n89=JSON.parse(JSON.stringify(this._receiverVideoConstraints.constraints));_t133.length&&this._receiverVideoConstraints.updateSelectedEndpoints(_t133);var _i87=this._receiverVideoConstraints.constraints;st()(_i87,_n89)||this._rtc.setNewReceiverVideoConstraints(_i87);}else this._rtc.selectEndpoints(e);}},{key:"setLastN",value:function setLastN(e){if(this._lastN!==e){if(this._lastN=e,this._receiverVideoConstraints)return void(this._receiverVideoConstraints.updateLastN(e)&&this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints));this._rtc.setLastN(e);}}},{key:"setPreferredReceiveMaxFrameHeight",value:function setPreferredReceiveMaxFrameHeight(e){this._maxFrameHeight=e;var _iterator74=_createForOfIteratorHelper(this._conference._getMediaSessions()),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _t134=_step74.value;_t134.isP2P||!this._receiverVideoConstraints?e&&_t134.setReceiverVideoConstraint(e):this._receiverVideoConstraints.updateReceiveResolution(e)&&this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints);}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}}},{key:"setReceiverConstraints",value:function setReceiverConstraints(e){this._receiverVideoConstraints||(this._receiverVideoConstraints=new ec());var t=Object.keys(e).includes("onStageEndpoints","selectedEndpoints"),n=Object.keys(e).includes("onStageSources","selectedSources");if(!Hs.isSourceNameSignalingEnabled()&&n)throw new Error(\'"onStageSources" and "selectedSources" are not supported when sourceNameSignaling is disabled.\');if(Hs.isSourceNameSignalingEnabled()&&t)throw new Error(\'"onStageEndpoints" and "selectedEndpoints" are not supported when sourceNameSignaling is enabled.\');if(this._receiverVideoConstraints.updateReceiverVideoConstraints(e)){var i,s;this._lastN=null!==(i=e.lastN)&&void 0!==i?i:this._lastN,this._selectedEndpoints=null!==(s=e.selectedEndpoints)&&void 0!==s?s:this._selectedEndpoints,this._rtc.setNewReceiverVideoConstraints(e);var _t135=this._conference._getMediaSessions().find(function(e){return e.isP2P;});if(_t135){var r;var _n90=null===(r=Object.values(e.constraints)[0])||void 0===r?void 0:r.maxHeight;var o;_n90||(_n90=null===(o=e.defaultConstraints)||void 0===o?void 0:o.maxHeight),_n90&&_t135.setReceiverVideoConstraint(_n90);}}}}]);return tc;}();var nc=/*#__PURE__*/function(){function nc(e,t){var _this161=this;_classCallCheck(this,nc);var n,i,s;this.conference=e,this.layerSuspensionEnabled=null===(n=null===(i=e.options)||void 0===i||null===(s=i.config)||void 0===s?void 0:s.enableLayerSuspension)||void 0===n||n,this.rtc=t,this.conference.on(le,function(e){return _this161._onMediaSessionStarted(e);}),this.conference.on(he,function(){return _this161._propagateSendMaxFrameHeight();}),this.rtc.on(Vn().SENDER_VIDEO_CONSTRAINTS_CHANGED,function(e){var t;(null===(t=_this161._senderVideoConstraints)||void 0===t?void 0:t.idealHeight)!==e.idealHeight&&(_this161._senderVideoConstraints=e,_this161._propagateSendMaxFrameHeight());});}_createClass(nc,[{key:"_onMediaSessionStarted",value:function _onMediaSessionStarted(e){var _this162=this;e.addListener(Sr,function(e){e===_this162.conference._getActiveMediaSession()&&_this162._propagateSendMaxFrameHeight();});}},{key:"_propagateSendMaxFrameHeight",value:function _propagateSendMaxFrameHeight(){var e=this.selectSendMaxFrameHeight(),t=[];if(e>=0){var _iterator75=_createForOfIteratorHelper(this.conference._getMediaSessions()),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _n91=_step75.value;t.push(_n91.setSenderVideoConstraint(e));}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}return Promise.all(t);}},{key:"selectSendMaxFrameHeight",value:function selectSendMaxFrameHeight(){var e;var t=this.conference._getActiveMediaSession(),n=t?t.isP2P?t.getRemoteRecvMaxFrameHeight():this.layerSuspensionEnabled?null===(e=this._senderVideoConstraints)||void 0===e?void 0:e.idealHeight:void 0:void 0;return this.preferredSendMaxFrameHeight>=0&&n>=0?Math.min(this.preferredSendMaxFrameHeight,n):n>=0?n:this.preferredSendMaxFrameHeight;}},{key:"setPreferredSendMaxFrameHeight",value:function setPreferredSendMaxFrameHeight(e){return this.preferredSendMaxFrameHeight=e,this._propagateSendMaxFrameHeight();}}]);return nc;}();var ic={getFocusRecordingUpdate:function getFocusRecordingUpdate(e){var t=e&&e.getElementsByTagName("jibri-recording-status")[0];if(t)return{error:t.getAttribute("failure_reason"),initiator:t.getAttribute("initiator"),recordingMode:t.getAttribute("recording_mode"),sessionID:t.getAttribute("session_id"),status:t.getAttribute("status")};},getHiddenDomainUpdate:function getHiddenDomainUpdate(e){var t=e.getElementsByTagName("live-stream-view-url")[0],n=t&&t.textContent,i=e.getElementsByTagName("mode")[0],s=i&&i.textContent&&i.textContent.toLowerCase(),r=e.getElementsByTagName("session_id")[0];return{liveStreamViewURL:n,mode:s,sessionID:r&&r.textContent};},getSessionIdFromIq:function getSessionIdFromIq(e){var t=e&&e.getElementsByTagName("jibri")[0];return t&&t.getAttribute("session_id");},getSessionId:function getSessionId(e){var t=e.getElementsByTagName("session_id")[0];return t&&t.textContent;},isFromFocus:function isFromFocus(e){return e.getAttribute("from").includes("focus");}};var sc=/*#__PURE__*/function(){function sc(){_classCallCheck(this,sc);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._connection=e.connection,this._mode=e.mode,this._setSessionID(e.sessionID),this.setStatus(e.status);}_createClass(sc,[{key:"getError",value:function getError(){return this._error;}},{key:"getID",value:function getID(){return this._sessionID;}},{key:"getInitiator",value:function getInitiator(){return this._initiator;}},{key:"getLiveStreamViewURL",value:function getLiveStreamViewURL(){return this._liveStreamViewURL;}},{key:"getStatus",value:function getStatus(){return this._status;}},{key:"getTerminator",value:function getTerminator(){return this._terminator;}},{key:"getMode",value:function getMode(){return this._mode;}},{key:"setError",value:function setError(e){this._error=e;}},{key:"setLiveStreamViewURL",value:function setLiveStreamViewURL(e){this._liveStreamViewURL=e;}},{key:"setStatus",value:function setStatus(e){this._status=e;}},{key:"setInitiator",value:function setInitiator(e){this._initiator=e;}},{key:"setTerminator",value:function setTerminator(e){this._terminator=e;}},{key:"start",value:function start(e){var _this163=this;var t=e.appData,n=e.broadcastId,i=e.focusMucJid,s=e.streamId;return new Promise(function(e,r){_this163._connection.sendIQ(_this163._createIQ({action:"start",appData:t,focusMucJid:i,broadcastId:n,streamId:s}),function(t){_this163.setStatus("pending"),_this163._setSessionID(ic.getSessionIdFromIq(t)),e();},function(e){_this163._setErrorFromIq(e),r(e);});});}},{key:"stop",value:function stop(e){var _this164=this;var t=e.focusMucJid;return new Promise(function(e,n){_this164._connection.sendIQ(_this164._createIQ({action:"stop",focusMucJid:t}),e,n);});}},{key:"_createIQ",value:function _createIQ(e){var t=e.action,n=e.appData,i=e.broadcastId,s=e.focusMucJid,r=e.streamId;return(0,rt.$iq)({to:s,type:"set"}).c("jibri",{xmlns:"http://jitsi.org/protocol/jibri",action:t,app_data:n,recording_mode:this._mode,streamid:r,you_tube_broadcast_id:i}).up();}},{key:"_setErrorFromIq",value:function _setErrorFromIq(e){var t=e.getElementsByTagName("error")[0];this.setError(t.children[0].tagName);}},{key:"_setSessionID",value:function _setSessionID(e){this._sessionID=e;}}]);return sc;}();var rc=(0,g.getLogger)("modules/recording/RecordingManager.js"),oc=(0,g.getLogger)("modules/statistics/AudioOutputProblemDetector.js");var ac=/*#__PURE__*/function(){function ac(e){_classCallCheck(this,ac);this._conference=e,this._localAudioLevelCache={},this._reportedParticipants=[],this._audioProblemCandidates={},this._numberOfRemoteAudioLevelsReceived={},this._onLocalAudioLevelsReport=this._onLocalAudioLevelsReport.bind(this),this._onRemoteAudioLevelReceived=this._onRemoteAudioLevelReceived.bind(this),this._clearUserData=this._clearUserData.bind(this),this._conference.on(ya,this._onRemoteAudioLevelReceived),this._conference.statistics.addConnectionStatsListener(this._onLocalAudioLevelsReport),this._conference.on($e,this._clearUserData);}_createClass(ac,[{key:"_onRemoteAudioLevelReceived",value:function _onRemoteAudioLevelReceived(e,t){var n=t.avgAudioLevels;var i=this._numberOfRemoteAudioLevelsReceived[e]+1||0;if(this._numberOfRemoteAudioLevelsReceived[e]=i,-1!==this._reportedParticipants.indexOf(e)||e in this._audioProblemCandidates||n<=0||i<3)return;var s=this._conference.getParticipantById(e);if(s&&s.getTracksByMediaType(Rn).length>0&&s.isAudioMuted())return;var r=this._localAudioLevelCache[e];Array.isArray(r)&&!r.every(function(e){return 0===e;})||(this._audioProblemCandidates[e]={remoteAudioLevels:n,localAudioLevels:[]});}},{key:"_onLocalAudioLevelsReport",value:function _onLocalAudioLevelsReport(e,t){var _this165=this;var n=t.avgAudioLevels;e===this._conference.getActivePeerConnection()&&(Object.keys(n).forEach(function(e){if(-1!==_this165._reportedParticipants.indexOf(e))return;var t=_this165._localAudioLevelCache[e];Array.isArray(t)?t.length>=2&&t.shift():_this165._localAudioLevelCache[e]=[],_this165._localAudioLevelCache[e].push(n[e]);}),Object.keys(this._audioProblemCandidates).forEach(function(e){var _this165$_audioProble=_this165._audioProblemCandidates[e],t=_this165$_audioProble.localAudioLevels,i=_this165$_audioProble.remoteAudioLevels;if(t.push(n[e]),2===t.length){if(t.every(function(e){return void 0===e||0===e;})){var _n92=JSON.stringify(t);jn.sendAnalytics(function(e,t,n){return{type:Ct,action:"audio.output.problem",attributes:{userID:e,localAudioLevels:t,remoteAudioLevels:n}};}(e,_n92,i)),oc.warn("A potential problem is detected with the audio output for participant ".concat(e,", local audio levels: ").concat(_n92,", remote audio levels: ").concat(i)),_this165._reportedParticipants.push(e),_this165._clearUserData(e);}delete _this165._audioProblemCandidates[e];}}));}},{key:"_clearUserData",value:function _clearUserData(e){delete this._localAudioLevelCache[e];}},{key:"dispose",value:function dispose(){this._conference.off(ya,this._onRemoteAudioLevelReceived),this._conference.off($e,this._clearUserData),this._conference.statistics.removeConnectionStatsListener(this._onLocalAudioLevelsReport),this._localAudioLevelCache=void 0,this._audioProblemCandidates=void 0,this._reportedParticipants=void 0,this._numberOfRemoteAudioLevelsReceived=void 0,this._conference=void 0;}}]);return ac;}();var cc=(0,g.getLogger)("modules/statistics/AvgRTPStatsReporter.js");var dc=/*#__PURE__*/function(){function dc(e){_classCallCheck(this,dc);this.name=e,this.count=0,this.sum=0,this.samples=[];}_createClass(dc,[{key:"addNext",value:function addNext(e){"number"!=typeof e?cc.error("".concat(this.name," - invalid value for idx: ").concat(this.count),e):isNaN(e)||(this.sum+=e,this.samples.push(e),this.count+=1);}},{key:"calculate",value:function calculate(){return this.sum/this.count;}},{key:"appendReport",value:function appendReport(e){e["".concat(this.name,"_avg")]=this.calculate(),e["".concat(this.name,"_samples")]=JSON.stringify(this.samples);}},{key:"reset",value:function reset(){this.samples=[],this.sum=0,this.count=0;}}]);return dc;}();var lc=/*#__PURE__*/function(){function lc(e,t,n){var _this166=this;_classCallCheck(this,lc);this.isP2P=t,this._n=n,this._sampleIdx=0,this._avgRTT=new dc("rtt"),this._avgRemoteRTTMap=new Map(),this._avgRtpStatsReporter=e,this._avgEnd2EndRTT=void 0,this._onConnectionStats=function(e,t){_this166.isP2P===e.isP2P&&_this166._calculateAvgStats(t);};var i=e._conference;i.statistics.addConnectionStatsListener(this._onConnectionStats),this.isP2P||(this._onUserLeft=function(e){return _this166._avgRemoteRTTMap.delete(e);},i.on($e,this._onUserLeft),this._onRemoteStatsUpdated=function(e,t){return _this166._processRemoteStats(e,t);},i.on(ya,this._onRemoteStatsUpdated));}_createClass(lc,[{key:"_calculateAvgStats",value:function _calculateAvgStats(e){if(e){if(nn.supportsRTTStatistics()&&e.transport&&e.transport.length&&this._avgRTT.addNext(e.transport[0].rtt),this._sampleIdx+=1,this._sampleIdx>=this._n){if(nn.supportsRTTStatistics()){var _t136=this._avgRtpStatsReporter._conference,_n93={p2p:this.isP2P,conference_size:_t136.getParticipantCount()};if(e.transport&&e.transport.length&&Object.assign(_n93,{local_candidate_type:e.transport[0].localCandidateType,remote_candidate_type:e.transport[0].remoteCandidateType,transport_type:e.transport[0].type}),this._avgRTT.appendReport(_n93),this.isP2P){var _e181=this._avgRtpStatsReporter.jvbStatsMonitor._avgEnd2EndRTT;isNaN(_e181)||(_n93.rtt_diff=this._avgRTT.calculate()-_e181);}else{var _e182=this._calculateAvgRemoteRTT(),_t137=this._avgRTT.calculate();this._avgEnd2EndRTT=_t137+_e182,isNaN(_t137)||isNaN(_e182)||(_n93.end2end_rtt_avg=this._avgEnd2EndRTT);}jn.sendAnalytics(kt(_n93));}this._resetAvgStats();}}else cc.error("No stats");}},{key:"_calculateAvgRemoteRTT",value:function _calculateAvgRemoteRTT(){var e=0,t=0;var _iterator76=_createForOfIteratorHelper(this._avgRemoteRTTMap.values()),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _n94=_step76.value;var _i88=_n94.calculate();isNaN(_i88)||(t+=_i88,e+=1,_n94.reset());}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}return t/e;}},{key:"_processRemoteStats",value:function _processRemoteStats(e,t){var n="number"==typeof t.jvbRTT;var i=this._avgRemoteRTTMap.get(e);!i&&n&&(i=new dc("".concat(e,"_stat_rtt")),this._avgRemoteRTTMap.set(e,i)),n?i.addNext(t.jvbRTT):i&&this._avgRemoteRTTMap.delete(e);}},{key:"_resetAvgStats",value:function _resetAvgStats(){this._avgRTT.reset(),this._avgRemoteRTTMap&&this._avgRemoteRTTMap.clear(),this._sampleIdx=0;}},{key:"dispose",value:function dispose(){var e=this._avgRtpStatsReporter._conference;e.statistics.removeConnectionStatsListener(this._onConnectionStats),this.isP2P||(e.off(ya,this._onRemoteStatsUpdated),e.off($e,this._onUserLeft));}}]);return lc;}();var hc=/*#__PURE__*/function(){function hc(e,t){var _this167=this;_classCallCheck(this,hc);this._n=t,t>0?(cc.info("Avg RTP stats will be calculated every ".concat(t," samples")),this._sampleIdx=0,this._conference=e,this._avgAudioBitrateUp=new dc("bitrate_audio_upload"),this._avgAudioBitrateDown=new dc("bitrate_audio_download"),this._avgVideoBitrateUp=new dc("bitrate_video_upload"),this._avgVideoBitrateDown=new dc("bitrate_video_download"),this._avgBandwidthUp=new dc("bandwidth_upload"),this._avgBandwidthDown=new dc("bandwidth_download"),this._avgPacketLossTotal=new dc("packet_loss_total"),this._avgPacketLossUp=new dc("packet_loss_upload"),this._avgPacketLossDown=new dc("packet_loss_download"),this._avgRemoteFPS=new dc("framerate_remote"),this._avgRemoteScreenFPS=new dc("framerate_screen_remote"),this._avgLocalFPS=new dc("framerate_local"),this._avgLocalScreenFPS=new dc("framerate_screen_local"),this._avgRemoteCameraPixels=new dc("pixels_remote"),this._avgRemoteScreenPixels=new dc("pixels_screen_remote"),this._avgLocalCameraPixels=new dc("pixels_local"),this._avgLocalScreenPixels=new dc("pixels_screen_local"),this._avgCQ=new dc("connection_quality"),this._cachedTransportStats=void 0,this._onLocalStatsUpdated=function(e){_this167._calculateAvgStats(e),_this167._maybeSendTransportAnalyticsEvent(e);},e.on(Sa,this._onLocalStatsUpdated),this._onP2PStatusChanged=function(){cc.debug("Resetting average stats calculation"),_this167._resetAvgStats(),_this167.jvbStatsMonitor._resetAvgStats(),_this167.p2pStatsMonitor._resetAvgStats();},e.on(Ee,this._onP2PStatusChanged),this._onJvb121StatusChanged=function(e,t){!0===t&&(cc.info("Resetting JVB avg RTP stats"),_this167._resetAvgJvbStats());},e.on(se,this._onJvb121StatusChanged),this.jvbStatsMonitor=new lc(this,!1,t),this.p2pStatsMonitor=new lc(this,!0,t)):cc.info("Avg RTP stats reports are disabled.");}_createClass(hc,[{key:"_calculateAvgStats",value:function _calculateAvgStats(e){if(!e)return void cc.error("No stats");var t=this._conference.isP2PActive(),n=this._conference.getParticipantCount();if(!t&&n<2)return;var i=e.bitrate,s=e.bandwidth,r=e.packetLoss,o=e.framerate,a=e.resolution;if(i){if(s){if(r){if(o){if(a){if(this._avgAudioBitrateUp.addNext(i.audio.upload),this._avgAudioBitrateDown.addNext(i.audio.download),this._avgVideoBitrateUp.addNext(i.video.upload),this._avgVideoBitrateDown.addNext(i.video.download),nn.supportsBandwidthStatistics()&&(this._avgBandwidthUp.addNext(s.upload),this._avgBandwidthDown.addNext(s.download)),this._avgPacketLossUp.addNext(r.upload),this._avgPacketLossDown.addNext(r.download),this._avgPacketLossTotal.addNext(r.total),this._avgCQ.addNext(e.connectionQuality),o&&(this._avgRemoteFPS.addNext(this._calculateAvgVideoFps(o,!1,Jn.CAMERA)),this._avgRemoteScreenFPS.addNext(this._calculateAvgVideoFps(o,!1,Jn.DESKTOP)),this._avgLocalFPS.addNext(this._calculateAvgVideoFps(o,!0,Jn.CAMERA)),this._avgLocalScreenFPS.addNext(this._calculateAvgVideoFps(o,!0,Jn.DESKTOP))),a&&(this._avgRemoteCameraPixels.addNext(this._calculateAvgVideoPixels(a,!1,Jn.CAMERA)),this._avgRemoteScreenPixels.addNext(this._calculateAvgVideoPixels(a,!1,Jn.DESKTOP)),this._avgLocalCameraPixels.addNext(this._calculateAvgVideoPixels(a,!0,Jn.CAMERA)),this._avgLocalScreenPixels.addNext(this._calculateAvgVideoPixels(a,!0,Jn.DESKTOP))),this._sampleIdx+=1,this._sampleIdx>=this._n){var _i89={p2p:t,conference_size:n};e.transport&&e.transport.length&&Object.assign(_i89,{local_candidate_type:e.transport[0].localCandidateType,remote_candidate_type:e.transport[0].remoteCandidateType,transport_type:e.transport[0].type}),this._avgAudioBitrateUp.appendReport(_i89),this._avgAudioBitrateDown.appendReport(_i89),this._avgVideoBitrateUp.appendReport(_i89),this._avgVideoBitrateDown.appendReport(_i89),nn.supportsBandwidthStatistics()&&(this._avgBandwidthUp.appendReport(_i89),this._avgBandwidthDown.appendReport(_i89)),this._avgPacketLossUp.appendReport(_i89),this._avgPacketLossDown.appendReport(_i89),this._avgPacketLossTotal.appendReport(_i89),this._avgRemoteFPS.appendReport(_i89),isNaN(this._avgRemoteScreenFPS.calculate())||this._avgRemoteScreenFPS.appendReport(_i89),this._avgLocalFPS.appendReport(_i89),isNaN(this._avgLocalScreenFPS.calculate())||this._avgLocalScreenFPS.appendReport(_i89),this._avgRemoteCameraPixels.appendReport(_i89),isNaN(this._avgRemoteScreenPixels.calculate())||this._avgRemoteScreenPixels.appendReport(_i89),this._avgLocalCameraPixels.appendReport(_i89),isNaN(this._avgLocalScreenPixels.calculate())||this._avgLocalScreenPixels.appendReport(_i89),this._avgCQ.appendReport(_i89),jn.sendAnalytics(kt(_i89)),this._resetAvgStats();}}else cc.error("No resolution");}else cc.error(\'No "framerate"\');}else cc.error(\'No "packetloss"\');}else cc.error(\'No "bandwidth"\');}else cc.error(\'No "bitrate"\');}},{key:"_calculateAvgVideoPixels",value:function _calculateAvgVideoPixels(e,t,n){var i=0,s=0;var r=this._conference.myUserId();for(var _i90=0,_Object$keys2=Object.keys(e);_i90<_Object$keys2.length;_i90++){var _o18=_Object$keys2[_i90];if(t?_o18===r:_o18!==r){var _r22=t?null:this._conference.getParticipantById(_o18),_a8=e[_o18];if((t||_r22)&&_a8){var _e183=this._calculatePeerAvgVideoPixels(_a8,_r22,n);isNaN(_e183)||(i+=_e183,s+=1);}}}return i/s;}},{key:"_calculatePeerAvgVideoPixels",value:function _calculatePeerAvgVideoPixels(e,t,n){var i=Object.keys(e).map(function(e){return Number(e);}),s=null;var r=this._conference.getActivePeerConnection();t?(s=t.getTracksByMediaType(wn),s&&(i=i.filter(function(e){return s.find(function(t){return!t.isMuted()&&t.getSSRC()===e&&t.videoType===n;});}))):(s=this._conference.getLocalTracks(wn),i=i.filter(function(e){return s.find(function(t){return!t.isMuted()&&r.getLocalSSRC(t)===e&&t.videoType===n;});}));var o=0,a=0;var _iterator77=_createForOfIteratorHelper(i),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _t138=_step77.value;var _n95=Number(e[_t138].height)*Number(e[_t138].width);!isNaN(_n95)&&_n95>0&&(o+=_n95,a+=1);}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return o/a;}},{key:"_calculateAvgVideoFps",value:function _calculateAvgVideoFps(e,t,n){var i=0,s=0;var r=this._conference.myUserId();for(var _i91=0,_Object$keys3=Object.keys(e);_i91<_Object$keys3.length;_i91++){var _o19=_Object$keys3[_i91];if(t?_o19===r:_o19!==r){var _r23=t?null:this._conference.getParticipantById(_o19),_a9=e[_o19];if((t||_r23)&&_a9){var _e184=this._calculatePeerAvgVideoFps(_a9,_r23,n);isNaN(_e184)||(i+=_e184,s+=1);}}}return i/s;}},{key:"_calculatePeerAvgVideoFps",value:function _calculatePeerAvgVideoFps(e,t,n){var i=Object.keys(e).map(function(e){return Number(e);}),s=null;var r=this._conference.getActivePeerConnection();t?(s=t.getTracksByMediaType(wn),s&&(i=i.filter(function(e){return s.find(function(t){return!t.isMuted()&&t.getSSRC()===e&&t.videoType===n;});}))):(s=this._conference.getLocalTracks(wn),i=i.filter(function(e){return s.find(function(t){return!t.isMuted()&&r.getLocalSSRC(t)===e&&t.videoType===n;});}));var o=0,a=0;var _iterator78=_createForOfIteratorHelper(i),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _t139=_step78.value;var _n96=Number(e[_t139]);!isNaN(_n96)&&_n96>0&&(o+=_n96,a+=1);}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}return o/a;}},{key:"_maybeSendTransportAnalyticsEvent",value:function _maybeSendTransportAnalyticsEvent(e){if(!e||!e.transport||!e.transport.length)return;var t={p2p:e.transport[0].p2p,local_candidate_type:e.transport[0].localCandidateType,remote_candidate_type:e.transport[0].remoteCandidateType,transport_type:e.transport[0].type};this._cachedTransportStats&&st()(t,this._cachedTransportStats)||(this._cachedTransportStats=t,jn.sendAnalytics({type:Ct,action:"transport.stats",attributes:t}));}},{key:"_resetAvgJvbStats",value:function _resetAvgJvbStats(){this._resetAvgStats(),this.jvbStatsMonitor._resetAvgStats();}},{key:"_resetAvgStats",value:function _resetAvgStats(){this._avgAudioBitrateUp.reset(),this._avgAudioBitrateDown.reset(),this._avgVideoBitrateUp.reset(),this._avgVideoBitrateDown.reset(),this._avgBandwidthUp.reset(),this._avgBandwidthDown.reset(),this._avgPacketLossUp.reset(),this._avgPacketLossDown.reset(),this._avgPacketLossTotal.reset(),this._avgRemoteFPS.reset(),this._avgRemoteScreenFPS.reset(),this._avgLocalFPS.reset(),this._avgLocalScreenFPS.reset(),this._avgRemoteCameraPixels.reset(),this._avgRemoteScreenPixels.reset(),this._avgLocalCameraPixels.reset(),this._avgLocalScreenPixels.reset(),this._avgCQ.reset(),this._sampleIdx=0;}},{key:"dispose",value:function dispose(){this._conference.off(Ee,this._onP2PStatusChanged),this._conference.off(Sa,this._onLocalStatsUpdated),this._conference.off(se,this._onJvb121StatusChanged),this.jvbStatsMonitor.dispose(),this.p2pStatsMonitor.dispose();}}]);return hc;}();var uc=n(2444),pc=n.n(uc);var mc=/*#__PURE__*/function(){function mc(e){_classCallCheck(this,mc);this.stats={users:{},dominantSpeakerId:null};var t=e.myUserId();this.stats.users[t]=new(pc())(t,null,!0),this.conference=e,e.addEventListener(Z,this._onDominantSpeaker.bind(this)),e.addEventListener(je,this._onUserJoin.bind(this)),e.addEventListener($e,this._onUserLeave.bind(this)),e.addEventListener(Y,this._onDisplayNameChange.bind(this)),e.addEventListener(Ye,this._onFacialExpressionAdd.bind(this)),e.xmpp&&e.xmpp.addListener(zn().SPEAKER_STATS_RECEIVED,this._updateStats.bind(this));}_createClass(mc,[{key:"_onDominantSpeaker",value:function _onDominantSpeaker(e){var t=this.stats.users[this.stats.dominantSpeakerId],n=this.stats.users[e];t&&t.setDominantSpeaker(!1),n&&n.setDominantSpeaker(!0),this.stats.dominantSpeakerId=e;}},{key:"_onUserJoin",value:function _onUserJoin(e,t){t.isHidden()||this.stats.users[e]||(this.stats.users[e]=new(pc())(e,t.getDisplayName()));}},{key:"_onUserLeave",value:function _onUserLeave(e){var t=this.stats.users[e];t&&t.markAsHasLeft();}},{key:"_onDisplayNameChange",value:function _onDisplayNameChange(e,t){var n=this.stats.users[e];n&&n.setDisplayName(t);}},{key:"_onFacialExpressionAdd",value:function _onFacialExpressionAdd(e,t){var n=this.stats.users[e];n&&n.addFacialExpression(t.facialExpression,t.duration);}},{key:"getStats",value:function getStats(){return this.stats.users;}},{key:"_updateStats",value:function _updateStats(e){for(var _t140 in e){var _n97=void 0;var _i92=this.conference.getParticipantById(_t140);_i92&&_i92.isHidden()||(this.stats.users[_t140]?(_n97=this.stats.users[_t140],_n97.getDisplayName()||_n97.setDisplayName(e[_t140].displayName)):(_n97=new(pc())(_t140,e[_t140].displayName),this.stats.users[_t140]=_n97,_n97.markAsHasLeft())),_n97.totalDominantSpeakerTime=e[_t140].totalDominantSpeakerTime,_n97.setFacialExpressions(e[_t140].facialExpressions);}}}]);return mc;}();var fc=/*#__PURE__*/_createClass(function fc(e,t,n,i){_classCallCheck(this,fc);this.blob=e,this.name=t,this.startTime=n,this.wordArray=i;});var gc=/*#__PURE__*/_createClass(function gc(e){_classCallCheck(this,gc);this.track=e,this.recorder=null,this.data=null,this.name=null,this.startTime=null;});var _c="audio/webm",vc="audio/ogg";function Sc(e){if(void 0===e.recorder)throw new Error("Passed an object to startRecorder which is not a TrackRecorder object");e.recorder.start(),e.startTime=new Date();}function yc(e){if(void 0===e.recorder)throw new Error("Passed an object to stopRecorder which is not a TrackRecorder object");e.recorder.stop();}function Ec(){if(MediaRecorder.isTypeSupported(_c))return _c;if(MediaRecorder.isTypeSupported(vc))return vc;throw new Error("unable to create a MediaRecorder with the right mimetype!");}function Cc(e){this.recorders=[],this.fileType=Ec(),this.isRecording=!1,this.jitsiConference=e;}Cc.determineCorrectFileType=Ec,Cc.prototype.addTrack=function(e){if(e.isAudioTrack()){var _t141=this.instantiateTrackRecorder(e);this.recorders.push(_t141),this.updateNames(),this.isRecording&&Sc(_t141);}},Cc.prototype.instantiateTrackRecorder=function(e){var t=new gc(e),n=t.track.getOriginalStream(),i=new MediaStream();return n.getAudioTracks().forEach(function(e){return i.addTrack(e);}),t.recorder=new MediaRecorder(i,{mimeType:this.fileType}),t.data=[],t.recorder.ondataavailable=function(e){e.data.size>0&&t.data.push(e.data);},t;},Cc.prototype.removeTrack=function(e){if(e.isVideoTrack())return;var t=this.recorders;var n;for(n=0;n<t.length;n++)if(t[n].track.getParticipantId()===e.getParticipantId()){var _e185=t[n];this.isRecording?yc(_e185):t.splice(n,1);}this.updateNames();},Cc.prototype.updateNames=function(){var e=this.jitsiConference;this.recorders.forEach(function(t){if(t.track.isLocal())t.name="the transcriber";else{var _n98=t.track.getParticipantId(),_i93=e.getParticipantById(_n98).getDisplayName();"undefined"!==_i93&&(t.name=_i93);}});},Cc.prototype.start=function(){if(this.isRecording)throw new Error("audiorecorder is already recording");this.isRecording=!0,this.recorders.forEach(function(e){return Sc(e);}),console.log("Started the recording of the audio. There are currently ".concat(this.recorders.length," recorders active."));},Cc.prototype.stop=function(){this.isRecording=!1,this.recorders.forEach(function(e){return yc(e);}),console.log("stopped recording");},Cc.prototype.download=function(){var _this168=this;this.recorders.forEach(function(e){var t=new Blob(e.data,{type:_this168.fileType}),n=URL.createObjectURL(t),i=document.createElement("a");document.body.appendChild(i),i.style="display: none",i.href=n,i.download="test.".concat(_this168.fileType.split("/")[1]),i.click(),window.URL.revokeObjectURL(n);});},Cc.prototype.getRecordingResults=function(){var _this169=this;if(this.isRecording)throw new Error("cannot get blobs because the AudioRecorder is still recording!");this.updateNames();var e=[];return this.recorders.forEach(function(t){return e.push(new fc(new Blob(t.data,{type:_this169.fileType}),t.name,t.startTime));}),e;},Cc.prototype.getFileType=function(){return this.fileType;};var bc=Cc;var Tc=/*#__PURE__*/function(){function Tc(e,t,n){_classCallCheck(this,Tc);this.word=e,this.begin=t,this.end=n;}_createClass(Tc,[{key:"getWord",value:function getWord(){return this.word;}},{key:"getBeginTime",value:function getBeginTime(){return this.begin;}},{key:"getEndTime",value:function getEndTime(){return this.end;}}]);return Tc;}();var Rc=/*#__PURE__*/function(_ref5){_inherits(Rc,_ref5);var _super32=_createSuper(Rc);function Rc(){var _this170;_classCallCheck(this,Rc);_this170=_super32.call(this),_this170.url=function(){var e="config does not contain an url to a Sphinx4 https server";if(void 0===config.sphinxURL)console.log(e);else{var _t142=config.sphinxURL;if(void 0!==_t142.includes&&_t142.includes("https://"))return _t142;console.log(e);}}();return _this170;}_createClass(Rc,[{key:"sendRequest",value:function sendRequest(e,t){console.log("sending an audio file  to ".concat(this.url)),console.log("the audio file being sent: ".concat(e));var n=new XMLHttpRequest();n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE&&200===n.status)t(n.responseText);else if(n.readyState===XMLHttpRequest.DONE)throw new Error("unable to accept response from sphinx server. status: ".concat(n.status));},n.open("POST",this.url),n.setRequestHeader("Content-Type",bc.determineCorrectFileType()),n.send(e),console.log("send ".concat(e));}},{key:"formatResponse",value:function formatResponse(e){var t=JSON.parse(e).objects;t.shift();var n=[];return t.forEach(function(e){return e.filler||n.push(new Tc(e.word,e.start,e.end));}),n;}},{key:"verify",value:function verify(e){if(console.log("response from server:".concat(e.toString())),"string"!=typeof e)return!1;var t;try{t=JSON.parse(e);}catch(e){return console.log(e),!1;}if(void 0===t.objects)return!1;var n=t.objects;return!(!n[0]||!n[0]["session-id"]);}}]);return Rc;}(/*#__PURE__*/function(){function _class11(){_classCallCheck(this,_class11);throw new Error("TranscriptionService is abstract and cannot be created");}_createClass(_class11,[{key:"send",value:function send(e,t){var _this171=this;this.sendRequest(e.blob,function(n){_this171.verify(n)?e.wordArray=_this171.formatResponse(n):(console.log("the retrieved response from the server is not valid!"),e.wordArray=[]),t(e);});}},{key:"sendRequest",value:function sendRequest(e,t){throw new Error("TranscriptionService.sendRequest is abstract");}},{key:"formatResponse",value:function formatResponse(e){throw new Error("TranscriptionService.format is abstract");}},{key:"verify",value:function verify(e){throw new Error("TranscriptionService.verify is abstract");}}]);return _class11;}());var Ac="before",wc="recording",Ic="transcribing",Pc="finished";function Mc(){this.audioRecorder=new bc(),this.transcriptionService=new Rc(),this.counter=null,this.startTime=null,this.transcription=null,this.callback=null,this.results=[],this.state=Ac,this.lineLength=0;}function Dc(e,t){if(console.log("retrieved an answer from the transcription service. The answer has an array of length: ".concat(t.wordArray.length)),t.wordArray.length>0){var _n99=t.startTime.getUTCMilliseconds()-e.startTime.getUTCMilliseconds();_n99<0&&(_n99=0);var _i94="[";t.wordArray.forEach(function(e){e.begin+=_n99,e.end+=_n99,_i94+="".concat(e.word,",");}),_i94+="]",console.log(_i94),t.wordArray.name=t.name;}e.results.push(t.wordArray),e.counter--,console.log("current counter: ".concat(e.counter)),e.maybeMerge();}function Nc(e){for(var _t143=0;_t143<e.length;_t143++)0===e[_t143].length&&e.splice(_t143,1);return e.length>0;}Mc.prototype.start=function(){if(this.state!==Ac)throw new Error("The transcription can only start when it\'s in the \\"before\\" state. It\'s currently in the \\"".concat(this.state,"\\" state"));this.state=wc,this.audioRecorder.start(),this.startTime=new Date();},Mc.prototype.stop=function(e){var _this172=this;if(this.state!==wc)throw new Error("The transcription can only stop when it\'s in the \\"recording\\" state. It\'s currently in the \\"".concat(this.state,"\\" state"));console.log("stopping recording and sending audio files"),this.audioRecorder.stop();var t=Dc.bind(null,this);this.audioRecorder.getRecordingResults().forEach(function(e){_this172.transcriptionService.send(e,t),_this172.counter++;}),this.state=Ic,this.callback=e;},Mc.prototype.maybeMerge=function(){this.state===Ic&&0===this.counter&&this.merge();},Mc.prototype.merge=function(){var _this173=this;console.log("starting merge process!\\n The length of the array: ".concat(this.results.length)),this.transcription="";var e=this.results,t=[];var _loop13=function _loop13(){var t=e[0];e.forEach(function(e){e[0].begin<t[0].begin&&(t=e);});var n=t.shift();var _loop14=function _loop14(){var i=!1;var s=t[0].begin;if(e.forEach(function(e){e[0].begin<s&&(i=!0);}),i)return"break";n=t.shift(),_this173.updateTranscription(n,null);};for(_this173.updateTranscription(n,t.name);t.length>0;){var _ret4=_loop14();if(_ret4==="break")break;}};for(Nc(e),e.forEach(function(e){return function(e,t){if(0===e.length)e.push(t);else{if(e[e.length-1].begin<=t.begin)return void e.push(t);for(var _n100=0;_n100<e.length;_n100++)if(t.begin<e[_n100].begin)return void e.splice(_n100,0,t);e.push(t);}}(t,e);});Nc(e);){_loop13();}this.state=Pc,this.callback&&this.callback(this.transcription);},Mc.prototype.updateTranscription=function(e,t){null!=t&&(this.transcription+="\\n".concat(t,":"),this.lineLength=t.length+1),this.lineLength+e.word.length>80&&(this.transcription+="\\n    ",this.lineLength=4),this.transcription+=" ".concat(e.word),this.lineLength+=e.word.length+1;},Mc.prototype.addTrack=function(e){this.audioRecorder.addTrack(e);},Mc.prototype.removeTrack=function(e){this.audioRecorder.removeTrack(e);},Mc.prototype.getTranscription=function(){if(this.state!==Pc)throw new Error("The transcription can only be retrieved when it\'s in the \\"finished\\" state. It\'s currently in the \\"".concat(this.state,"\\" state"));return this.transcription;},Mc.prototype.getState=function(){return this.state;},Mc.prototype.reset=function(){this.state=Ac,this.counter=null,this.transcription=null,this.startTime=null,this.callback=null,this.results=[],this.lineLength=0;};var kc=Mc,Oc=n(9077).getLogger("modules/version/ComponentsVersions.js");function Lc(e){this.versions={},this.conference=e,this.conference.addCommandListener("versions",this.processVersions.bind(this));}Lc.prototype.processVersions=function(e,t,n){var _this174=this;if(!this.conference.isFocus(n))return void Oc.warn("Received versions not from the focus user: ".concat(e),n);var i=[];e.children.forEach(function(e){var t=e.attributes.name,n=e.value;_this174.versions[t]!==n&&(_this174.versions[t]=n,Oc.info("Got ".concat(t," version: ").concat(n)),i.push({id:"component_version",component:t,version:n}));}),i.length>0&&jn.sendLog(JSON.stringify(i));},Lc.prototype.getComponentVersion=function(e){return this.versions[e];};var xc="available",Fc="undefined",jc="busy",$c="on",Uc="off",Bc="pending",Vc="retrying",Jc="failed",Hc="error_no_connection",Gc="error_session_already_exists",qc=(0,g.getLogger)("modules/videosipgw/JitsiVideoSIPGWSession.js"),Kc="STATE_CHANGED";var zc=/*#__PURE__*/function(_vi12){_inherits(zc,_vi12);var _super33=_createSuper(zc);function zc(e,t,n){var _this175;_classCallCheck(this,zc);_this175=_super33.call(this),_this175.sipAddress=e,_this175.displayName=t,_this175.chatRoom=n,_this175.state=void 0;return _this175;}_createClass(zc,[{key:"stop",value:function stop(){this.state!==Uc&&this.state!==Jc?this._sendJibriIQ("stop"):qc.warn("Video SIP GW session already stopped or failed!");}},{key:"start",value:function start(){this.state!==$c&&this.state!==Uc&&this.state!==Bc&&this.state!==Vc?this._sendJibriIQ("start"):qc.warn("Video SIP GW session already started!");}},{key:"setState",value:function setState(e,t){if(e===this.state)return;var n=this.state;this.state=e,this.eventEmitter.emit(Kc,{address:this.sipAddress,failureReason:t,oldState:n,newState:this.state,displayName:this.displayName});}},{key:"addStateListener",value:function addStateListener(e){this.addListener(Kc,e);}},{key:"removeStateListener",value:function removeStateListener(e){this.removeListener(Kc,e);}},{key:"_sendJibriIQ",value:function _sendJibriIQ(e){var _this176=this;var t={xmlns:"http://jitsi.org/protocol/jibri",action:e,sipaddress:this.sipAddress};t.displayname=this.displayName;var n=(0,rt.$iq)({to:this.chatRoom.focusMucJid,type:"set"}).c("jibri",t).up();qc.debug("".concat(e," video SIP GW session"),n.nodeTree),this.chatRoom.connection.sendIQ(n,function(){},function(t){qc.error("Failed to ".concat(e," video SIP GW session, error: "),t),_this176.setState(Jc);});}}]);return zc;}(vi);var Wc=(0,g.getLogger)("modules/videosipgw/VideoSIPGW.js");var Qc=/*#__PURE__*/function(){function Qc(e){_classCallCheck(this,Qc);this.chatRoom=e,this.eventEmitter=e.eventEmitter,Wc.debug("creating VideoSIPGW"),this.sessions={},this.sessionStateChangeListener=this.sessionStateChanged.bind(this),e.addPresenceListener("jibri-sip-call-state",this.handleJibriSIPState.bind(this));}_createClass(Qc,[{key:"handleJibriSIPState",value:function handleJibriSIPState(e){var t=e.attributes;if(!t)return;Wc.debug("Handle video sip gw state : ",t);var n=t.state;if(n!==this.state)switch(n){case $c:case Uc:case Bc:case Vc:case Jc:{var _e186=t.sipaddress;if(!_e186)return;var _i95=this.sessions[_e186];_i95?_i95.setState(n,t.failure_reason):Wc.warn("Video SIP GW session not found:",_e186);}}}},{key:"createVideoSIPGWSession",value:function createVideoSIPGWSession(e,t){if(this.sessions[e])return Wc.warn("There was already a Video SIP GW session for address",e),new Error(Gc);var n=new zc(e,t,this.chatRoom);return n.addStateListener(this.sessionStateChangeListener),this.sessions[e]=n,n;}},{key:"sessionStateChanged",value:function sessionStateChanged(e){var t=e.address;if(e.newState===Uc||e.newState===Jc){var _e187=this.sessions[t];if(!_e187)return void Wc.error("Missing Video SIP GW session with address:",t);_e187.removeStateListener(this.sessionStateChangeListener),delete this.sessions[t];}this.eventEmitter.emit(zn().VIDEO_SIP_GW_SESSION_STATE_CHANGED,e);}}]);return Qc;}();var Xc=(0,g.getLogger)("modules/xmpp/SignalingLayerImpl.js"),Yc="SourceInfo";var Zc=/*#__PURE__*/function(_Bo){_inherits(Zc,_Bo);var _super34=_createSuper(Zc);function Zc(){var _this177;_classCallCheck(this,Zc);_this177=_super34.call(this),_this177.ssrcOwners=new Map(),_this177.chatRoom=null,_this177._localSourceState={},_this177._remoteSourceState={},_this177._sourceNames=new Map();return _this177;}_createClass(Zc,[{key:"_addLocalSourceInfoToPresence",value:function _addLocalSourceInfoToPresence(){this.chatRoom&&this.chatRoom.addOrReplaceInPresence(Yc,{value:JSON.stringify(this._localSourceState)});}},{key:"_doesEndpointSendNewSourceInfo",value:function _doesEndpointSendNewSourceInfo(e){var t;var n=null===(t=this.chatRoom)||void 0===t?void 0:t.getLastPresence(e);return Boolean(n&&n.find(function(e){return e.tagName===Yc;}));}},{key:"setChatRoom",value:function setChatRoom(e){var _this178=this;var t=this.chatRoom;this.chatRoom=e,t&&(t.removePresenceListener("audiomuted",this._audioMuteHandler),t.removePresenceListener("videomuted",this._videoMuteHandler),t.removePresenceListener("videoType",this._videoTypeHandler),Hs.isSourceNameSignalingEnabled()&&(this._sourceInfoHandler&&t.removePresenceListener(Yc,this._sourceInfoHandler),this._memberLeftHandler&&t.removeEventListener(zn().MUC_MEMBER_LEFT,this._memberLeftHandler))),e&&(Hs.isSourceNameSignalingEnabled()?(this._bindChatRoomEventHandlers(e),this._addLocalSourceInfoToPresence()):(this._audioMuteHandler=function(e,t){_this178.eventEmitter.emit(Fo,t,Rn,"true"===e.value);},e.addPresenceListener("audiomuted",this._audioMuteHandler),this._videoMuteHandler=function(e,t){_this178.eventEmitter.emit(Fo,t,wn,"true"===e.value);},e.addPresenceListener("videomuted",this._videoMuteHandler),this._videoTypeHandler=function(e,t){_this178.eventEmitter.emit(jo,t,e.value);},e.addPresenceListener("videoType",this._videoTypeHandler)));}},{key:"_bindChatRoomEventHandlers",value:function _bindChatRoomEventHandlers(e){var _this179=this;var t=function t(e,_t144){_this179.eventEmitter.emit(Fo,e,Rn,_t144);},n=function n(e,t){_this179.eventEmitter.emit(Fo,e,wn,t);};this._audioMuteHandler=function(e,n){_this179._doesEndpointSendNewSourceInfo(n)||t(n,"true"===e.value);},e.addPresenceListener("audiomuted",this._audioMuteHandler),this._videoMuteHandler=function(e,t){_this179._doesEndpointSendNewSourceInfo(t)||n(t,"true"===e.value);},e.addPresenceListener("videomuted",this._videoMuteHandler);var i=function i(e,t){_this179.eventEmitter.emit(jo,e,t);};this._videoTypeHandler=function(e,t){_this179._doesEndpointSendNewSourceInfo(t)||i(t,e.value);},e.addPresenceListener("videoType",this._videoTypeHandler),this._sourceInfoHandler=function(e,s){var r=s,o=e.value,a=JSON.parse(o),c=_this179._doesEndpointSendNewSourceInfo(r),d=_this179._remoteSourceState[r]||(_this179._remoteSourceState[r]={});for(var _i96=0,_Object$keys4=Object.keys(a);_i96<_Object$keys4.length;_i96++){var _e188=_Object$keys4[_i96];var _s43=Uo(_e188),_o20=Boolean(a[_e188].muted),_l4=d[_e188]||(d[_e188]={sourceName:_e188});_l4.muted!==_o20&&(_l4.muted=_o20,c&&_s43===Rn?t(r,_o20):n(r,_o20));var _h4=a[_e188].videoType;_l4.videoType!==_h4&&(_l4.videoType=_h4,c&&i(r,_h4));}var l=Object.keys(a);for(var _i97=0,_Object$keys5=Object.keys(d);_i97<_Object$keys5.length;_i97++){var _e189=_Object$keys5[_i97];-1===l.indexOf(_e189)&&delete d[_e189];}},e.addPresenceListener("SourceInfo",this._sourceInfoHandler),this._memberLeftHandler=function(e){var t=rt.Strophe.getResourceFromJid(e);if(delete _this179._remoteSourceState[t],Hs.isSourceNameSignalingEnabled()){var _iterator79=_createForOfIteratorHelper(_this179.ssrcOwners.entries()),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _step79$value=_slicedToArray(_step79.value,2),_e190=_step79$value[0],_n101=_step79$value[1];_n101===t&&delete _this179._sourceNames[_e190];}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}}},e.addEventListener(zn().MUC_MEMBER_LEFT,this._memberLeftHandler);}},{key:"_findEndpointSourceInfoForMediaType",value:function _findEndpointSourceInfoForMediaType(e,t){var n=this._remoteSourceState[e];if(!n)return null;for(var _i98=0,_Object$values3=Object.values(n);_i98<_Object$values3.length;_i98++){var _e191=_Object$values3[_i98];if(Uo(_e191.sourceName)===t)return _e191;}return null;}},{key:"getPeerMediaInfo",value:function getPeerMediaInfo(e,t){var _this180=this;var n=function n(){if(_this180.chatRoom)return _this180.chatRoom.getMediaPresenceInfo(e,t);Xc.error("Requested peer media info, before room was set");};if(Hs.isSourceNameSignalingEnabled()){var _i99=this.chatRoom.getLastPresence(e);if(!_i99)throw new Error("getPeerMediaInfo - no presence stored for: ".concat(e));if(!this._doesEndpointSendNewSourceInfo(e))return n();var _s44={},_r24=this._findEndpointSourceInfoForMediaType(e,t);if(t===Rn)_s44.muted=!_r24||_r24.muted;else{if(t!==wn)throw new Error("Unsupported media type: ".concat(t));{_s44.muted=!_r24||_r24.muted,_s44.videoType=_r24?_r24.videoType:void 0;var _e192=js(_i99,"jitsi_participant_codecType");_e192.length>0&&(_s44.codecType=_e192[0].value);}}return _s44;}return n();}},{key:"getPeerSourceInfo",value:function getPeerSourceInfo(e,t){return this._remoteSourceState[e]?this._remoteSourceState[e][t]:void 0;}},{key:"getSSRCOwner",value:function getSSRCOwner(e){return this.ssrcOwners.get(e);}},{key:"setSSRCOwner",value:function setSSRCOwner(e,t){if("number"!=typeof e)throw new TypeError("SSRC(".concat(e,") must be a number"));var n=this.ssrcOwners.get(e);n&&n!==t&&Xc.error("SSRC owner re-assigned from ".concat(n," to ").concat(t)),this.ssrcOwners.set(e,t);}},{key:"setTrackMuteStatus",value:function setTrackMuteStatus(e,t){this._localSourceState[e]||(this._localSourceState[e]={}),this._localSourceState[e].muted=t,this.chatRoom&&this._addLocalSourceInfoToPresence();}},{key:"setTrackVideoType",value:function setTrackVideoType(e,t){this._localSourceState[e]||(this._localSourceState[e]={}),this._localSourceState[e].videoType!==t&&(this._localSourceState[e].videoType=t===Hn().CAMERA?void 0:t,this._addLocalSourceInfoToPresence());}},{key:"getTrackSourceName",value:function getTrackSourceName(e){return this._sourceNames.get(e);}},{key:"setTrackSourceName",value:function setTrackSourceName(e,t){if("number"!=typeof e)throw new TypeError("SSRC(".concat(e,") must be a number"));var n=this._sourceNames.get(e);n&&n!==t&&Xc.error("SSRC(".concat(e,") sourceName re-assigned from ").concat(n," to ").concat(t)),this._sourceNames.set(e,t);}}]);return Zc;}(Bo);var ed=(0,g.getLogger)("JitsiConference.js");function td(e){var t;if(!e.name||e.name.toLowerCase()!==e.name.toString()){var _e193="Invalid conference name (no conference name passed or it contains invalid characters like capital letters)!";throw ed.error(_e193),new Error(_e193);}if(this.connection=e.connection,this.xmpp=null===(t=this.connection)||void 0===t?void 0:t.xmpp,this.xmpp.isRoomCreated(e.name,e.customDomain)){var _e194="A coference with the same name has already been created!";throw delete this.connection,delete this.xmpp,ed.error(_e194),new Error(_e194);}this.eventEmitter=new(nt())(),this.options=e,this.eventManager=new Qn(this),this.participants={},this._signalingLayer=new Zc(),this._init(e),this.componentsVersions=new Lc(this),this.jvbJingleSession=null,this.lastDominantSpeaker=null,this.dtmfManager=null,this.somebodySupportsDTMF=!1,this.authEnabled=!1,this.startAudioMuted=!1,this.startVideoMuted=!1,this.startMutedPolicy={audio:!1,video:!1},this.isMutedByFocus=!1,this.mutedByFocusActor=null,this.isVideoMutedByFocus=!1,this.mutedVideoByFocusActor=null,this.wasStopped=!1,this.properties={},this.connectionQuality=new wa(this,this.eventEmitter,e),this.avgRtpStatsReporter=new hc(this,e.config.avgRtpStatsN||15),e.config.disableAudioLevels||(this._audioOutputProblemDetector=new ac(this)),this.isJvbConnectionInterrupted=!1,this.speakerStatsCollector=new mc(this),this.deferredStartP2PTask=null;var n=parseInt(e.config.p2p&&e.config.p2p.backToP2PDelay,10);this.backToP2PDelay=isNaN(n)?5:n,ed.info("backToP2PDelay: ".concat(this.backToP2PDelay)),this.isP2PConnectionInterrupted=!1,this.p2p=!1,this.p2pJingleSession=null,this.videoSIPGWHandler=new Qc(this.room),this.recordingManager=new(/*#__PURE__*/function(){function _class12(e){_classCallCheck(this,_class12);this._sessions={},this._chatRoom=e,this.onPresence=this.onPresence.bind(this),this._chatRoom.eventEmitter.addListener(zn().PRESENCE_RECEIVED,this.onPresence);}_createClass(_class12,[{key:"getSession",value:function getSession(e){return this._sessions[e];}},{key:"onPresence",value:function onPresence(e){var t=e.fromHiddenDomain,n=e.presence;ic.isFromFocus(n)?this._handleFocusPresence(n):t&&this._handleJibriPresence(n);}},{key:"startRecording",value:function startRecording(e){var _this181=this;var t=new sc(_objectSpread(_objectSpread({},e),{},{connection:this._chatRoom.connection}));return t.start({appData:e.appData,broadcastId:e.broadcastId,focusMucJid:this._chatRoom.focusMucJid,streamId:e.streamId}).then(function(){return _this181.getSession(t.getID())||(_this181._addSession(t),_this181._emitSessionUpdate(t)),t;}).catch(function(e){return _this181._emitSessionUpdate(t),Promise.reject(e);});}},{key:"stopRecording",value:function stopRecording(e){var t=this.getSession(e);return t?t.stop({focusMucJid:this._chatRoom.focusMucJid}):Promise.reject(new Error("Could not find session"));}},{key:"_addSession",value:function _addSession(e){this._sessions[e.getID()]=e;}},{key:"_createSession",value:function _createSession(e,t,n){var i=new sc({connection:this._chatRoom.connection,focusMucJid:this._chatRoom.focusMucJid,mode:n,sessionID:e,status:t});return this._addSession(i),i;}},{key:"_emitSessionUpdate",value:function _emitSessionUpdate(e,t){this._chatRoom.eventEmitter.emit(zn().RECORDER_STATE_CHANGED,e,t);}},{key:"_handleFocusPresence",value:function _handleFocusPresence(e){var t=ic.getFocusRecordingUpdate(e);if(!t)return;var n=t.error,i=t.initiator,s=t.recordingMode,r=t.sessionID,o=t.status;var a=this.getSession(r);a||"off"!==o?a&&a.getStatus()===o&&a.getError()===n?rc.warn("Ignoring duplicate presence update: ",JSON.stringify(t)):(a||(a=this._createSession(r,o,s)),a.setStatus(o),n&&a.setError(n),this._emitSessionUpdate(a,i)):rc.warn("Ignoring recording presence update","Received a new session with status off.");}},{key:"_handleJibriPresence",value:function _handleJibriPresence(e){var _ic$getHiddenDomainUp=ic.getHiddenDomainUpdate(e),t=_ic$getHiddenDomainUp.liveStreamViewURL,n=_ic$getHiddenDomainUp.mode,i=_ic$getHiddenDomainUp.sessionID;if(!i)return void rc.warn("Ignoring potential jibri presence due to no session id.");var s=this.getSession(i);s||(s=this._createSession(i,"",n)),s.setLiveStreamViewURL(t),this._emitSessionUpdate(s);}}]);return _class12;}())(this.room),this._conferenceJoinAnalyticsEventSent=void 0,this.isE2EESupported()&&(ed.info("End-to-End Encryption is supported"),this._e2eEncryption=new Ji(this)),this._audioSenderLimitReached=void 0,this._videoSenderLimitReached=void 0;}function nd(e,t,n){this.appID=e,this.token=t,this.options=n,this.xmpp=new Ur(n,t),this.addEventListener(li,function(e,t,n,i){jn.sendAnalyticsAndLog(function(e,t,n){return{type:Ct,action:"connection.failed",attributes:_objectSpread({error_type:e,error_message:t},n)};}(e,t,i));}),this.addEventListener(ci,function(e){e&&jn.sendAnalytics(Rt,{message:e}),jn.sendLog(JSON.stringify({id:Rt,msg:e}));});}td.prototype.constructor=td,td.resourceCreator=function(e,t){var n;if(t)n=Gi().randomHexString(8).toLowerCase();else{var i;n=null===(i=rt.Strophe.getNodeFromJid(e))||void 0===i?void 0:i.substr(0,8).toLowerCase();var _t145=/[0-9a-f]{8}/g;n&&_t145.test(n)||(n=Gi().randomHexString(8).toLowerCase());}return n;},td.prototype._init=function(){var _this182=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.eventManager.setupXMPPListeners();var t=this.options.config,n={disabledCodec:t.videoQuality?t.videoQuality.disabledCodec:t.p2p&&t.p2p.disableH264&&Xs().H264,enforcePreferredCodec:t.videoQuality&&t.videoQuality.enforcePreferredCodec,jvbCodec:t.videoQuality&&t.videoQuality.preferredCodec||t.preferH264&&Xs().H264,p2pCodec:t.p2p?t.p2p.preferredCodec||t.p2p.preferH264&&Xs().H264:Xs().VP8};this.codecSelection=new Jr(this,n),this._statsCurrentId=t.statisticsId?t.statisticsId:Is.callStatsUserName,this.room=this.xmpp.createRoom(this.options.name,_objectSpread(_objectSpread({},t),{},{statsId:this._statsCurrentId}),td.resourceCreator),this._signalingLayer.setChatRoom(this.room),this._onIceConnectionInterrupted=this._onIceConnectionInterrupted.bind(this),this.room.addListener(Kn.CONNECTION_INTERRUPTED,this._onIceConnectionInterrupted),this._onIceConnectionRestored=this._onIceConnectionRestored.bind(this),this.room.addListener(Kn.CONNECTION_RESTORED,this._onIceConnectionRestored),this._onIceConnectionEstablished=this._onIceConnectionEstablished.bind(this),this.room.addListener(Kn.CONNECTION_ESTABLISHED,this._onIceConnectionEstablished),this._updateProperties=this._updateProperties.bind(this),this.room.addListener(Kn.CONFERENCE_PROPERTIES_CHANGED,this._updateProperties),this._sendConferenceJoinAnalyticsEvent=this._sendConferenceJoinAnalyticsEvent.bind(this),this.room.addListener(Kn.MEETING_ID_SET,this._sendConferenceJoinAnalyticsEvent),this._removeLocalSourceOnReject=this._removeLocalSourceOnReject.bind(this),this._updateRoomPresence=this._updateRoomPresence.bind(this),this.room.addListener(Kn.SESSION_ACCEPT,this._updateRoomPresence),this.room.addListener(Kn.SOURCE_ADD,this._updateRoomPresence),this.room.addListener(Kn.SOURCE_ADD_ERROR,this._removeLocalSourceOnReject),this.room.addListener(Kn.SOURCE_REMOVE,this._updateRoomPresence),this.e2eping=new Qa(this,t,function(e,t){try{_this182.sendMessage(e,t,!0);}catch(e){ed.warn("Failed to send E2E ping request or response.",e&&e.msg);}}),this.rtc||(this.rtc=new va(this,e),this.eventManager.setupRTCListeners(),Hs.isSourceNameSignalingEnabled()&&this._registerRtcListeners(this.rtc)),this.receiveVideoController=new tc(this,this.rtc),this.sendVideoController=new nc(this,this.rtc),this.participantConnectionStatus=new oi(this.rtc,this,{p2pRtcMuteTimeout:t._p2pConnStatusRtcMuteTimeout,rtcMuteTimeout:t._peerConnStatusRtcMuteTimeout,outOfLastNTimeout:t._peerConnStatusOutOfLastNTimeout}),this.participantConnectionStatus.init();var i=!0;if(t.testing&&t.testing.callStatsThreshold&&(i=100*Math.random()<=t.testing.callStatsThreshold),this.statistics||(this.statistics=new jn(this.xmpp,{aliasName:this._statsCurrentId,userName:t.statisticsDisplayName?t.statisticsDisplayName:this.myUserId(),confID:t.confID||"".concat(this.connection.options.hosts.domain,"/").concat(this.options.name),siteID:t.siteID,customScriptUrl:t.callStatsCustomScriptUrl,callStatsID:t.callStatsID,callStatsSecret:t.callStatsSecret,callStatsApplicationLogsDisabled:t.callStatsApplicationLogsDisabled,enableCallStats:i,roomName:this.options.name,applicationName:t.applicationName,getWiFiStatsMethod:t.getWiFiStatsMethod,configParams:t.callStatsConfigParams}),jn.analytics.addPermanentProperties({callstats_name:this._statsCurrentId}),t.longTasksStatsInterval&&this.statistics.attachLongTasksStats(this)),this.eventManager.setupChatRoomListeners(),this.eventManager.setupStatisticsListeners(),t.enableTalkWhileMuted&&nn.supportsVADDetection())if(t.createVADProcessor){ed.info("Using VAD detection for generating talk while muted events"),this._audioAnalyser||(this._audioAnalyser=new Va(this,t.createVADProcessor));var _e195=new Ha();_e195.on(xa,function(){return _this182.eventEmitter.emit(De);}),this._audioAnalyser.addVADDetectionService(_e195);}else ed.warn("No VAD Processor was provided. Talk while muted detection service was not initialized!");if(t.enableNoisyMicDetection&&nn.supportsVADDetection())if(t.createVADProcessor){this._audioAnalyser||(this._audioAnalyser=new Va(this,t.createVADProcessor));var _e196=new Ja();_e196.on(ka,function(){return _this182.eventEmitter.emit(fe);}),this._audioAnalyser.addVADDetectionService(_e196);}else ed.warn("No VAD Processor was provided. Noisy microphone detection service was not initialized!");t.enableNoAudioDetection&&(this._noAudioSignalDetection=new Fa(this),this._noAudioSignalDetection.on(Na,function(){_this182.eventEmitter.emit(me);}),this._noAudioSignalDetection.on(Da,function(e){_this182.eventEmitter.emit(j,e);})),"channelLastN"in t&&this.setLastN(t.channelLastN),this.jvb121Status=new Ya(this),this.p2pDominantSpeakerDetection=new ja(this),t&&t.deploymentInfo&&t.deploymentInfo.userRegion&&this.setLocalParticipantProperty("region",t.deploymentInfo.userRegion),this.setLocalParticipantProperty("codecType",this.codecSelection.getPreferredCodec()),t&&t.transcriptionLanguage&&"en-US"!==t.transcriptionLanguage&&this.setLocalParticipantProperty("transcription_language",t.transcriptionLanguage);},td.prototype.join=function(e){var _this183=this;var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.room&&this.room.join(e,t).then(function(){return _this183._maybeSetSITimeout();});},td.prototype.authenticateAndUpgradeRole=function(e){return Br.call(this,_objectSpread(_objectSpread({},e),{},{onCreateResource:td.resourceCreator}));},td.prototype.isJoined=function(){return this.room&&this.room.joined;},td.prototype.isP2PEnabled=function(){return Boolean(this.options.config.p2p&&this.options.config.p2p.enabled)||void 0===this.options.config.p2p;},td.prototype.isP2PTestModeEnabled=function(){return Boolean(this.options.config.testing&&this.options.config.testing.p2pTestMode);},td.prototype.leave=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var _this184=this;var e,t;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:if(!(this.participantConnectionStatus&&(this.participantConnectionStatus.dispose(),this.participantConnectionStatus=null),this.avgRtpStatsReporter&&(this.avgRtpStatsReporter.dispose(),this.avgRtpStatsReporter=null),this._audioOutputProblemDetector&&(this._audioOutputProblemDetector.dispose(),this._audioOutputProblemDetector=null),this.e2eping&&(this.e2eping.stop(),this.e2eping=null),this.getLocalTracks().forEach(function(e){return _this184.onLocalTrackRemoved(e);}),this.rtc.closeBridgeChannel(),this._sendConferenceLeftAnalyticsEvent(),this.statistics&&this.statistics.dispose(),this._delayedIceFailed&&this._delayedIceFailed.cancel(),this._maybeClearSITimeout(),this.jvbJingleSession&&(this.jvbJingleSession.close(),this.jvbJingleSession=null),this.p2pJingleSession&&(this.p2pJingleSession.close(),this.p2pJingleSession=null),!this.room)){_context16.next=2;break;}throw new Error("The conference is has been already left");case 2:e=this.room;e.removeListener(Kn.CONNECTION_INTERRUPTED,this._onIceConnectionInterrupted),e.removeListener(Kn.CONNECTION_RESTORED,this._onIceConnectionRestored),e.removeListener(Kn.CONNECTION_ESTABLISHED,this._onIceConnectionEstablished),e.removeListener(Kn.CONFERENCE_PROPERTIES_CHANGED,this._updateProperties),e.removeListener(Kn.MEETING_ID_SET,this._sendConferenceJoinAnalyticsEvent),e.removeListener(Kn.SESSION_ACCEPT,this._updateRoomPresence),e.removeListener(Kn.SOURCE_ADD,this._updateRoomPresence),e.removeListener(Kn.SOURCE_ADD_ERROR,this._removeLocalSourceOnReject),e.removeListener(Kn.SOURCE_REMOVE,this._updateRoomPresence),this.eventManager.removeXMPPListeners(),this._signalingLayer.setChatRoom(null),this.room=null;_context16.prev=4;_context16.next=7;return e.leave();case 7:_context16.next=12;break;case 9:_context16.prev=9;_context16.t0=_context16["catch"](4);t=_context16.t0,this.getParticipants().forEach(function(e){return _this184.onMemberLeft(e.getJid());});case 12:if(!(this.rtc&&this.rtc.destroy(),t)){_context16.next=14;break;}throw t;case 14:case"end":return _context16.stop();}},_callee15,this,[[4,9]]);})),td.prototype._getActiveMediaSession=function(){return this.isP2PActive()?this.p2pJingleSession:this.jvbJingleSession;},td.prototype._getMediaSessions=function(){var e=[];return this.jvbJingleSession&&e.push(this.jvbJingleSession),this.p2pJingleSession&&e.push(this.p2pJingleSession),e;},td.prototype._registerRtcListeners=function(e){var _this185=this;e.addListener(Vn().DATA_CHANNEL_OPEN,function(){var _iterator80=_createForOfIteratorHelper(_this185.rtc.localTracks),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var _e197=_step80.value;_e197.isVideoTrack()&&_this185._sendBridgeVideoTypeMessage(_e197);}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}});},td.prototype._sendBridgeVideoTypeMessage=function(e){var t=!e||e.isMuted()?Gr().NONE:e.getVideoType();t===Gr().DESKTOP&&this._desktopSharingFrameRate>5&&(t=Gr().DESKTOP_HIGH_FPS),Hs.isSourceNameSignalingEnabled()?this.rtc.sendSourceVideoType($o(this.myUserId(),wn,0),t):this.rtc.setVideoType(t);},td.prototype.getName=function(){return this.options.name.toString();},td.prototype.getConnection=function(){return this.connection;},td.prototype.isAuthEnabled=function(){return this.authEnabled;},td.prototype.isLoggedIn=function(){return Boolean(this.authIdentity);},td.prototype.getAuthLogin=function(){return this.authIdentity;},td.prototype.isExternalAuthEnabled=function(){return this.room&&this.room.moderator.isExternalAuthEnabled();},td.prototype.getExternalAuthUrl=function(e){var _this186=this;return new Promise(function(t,n){_this186.isExternalAuthEnabled()?e?_this186.room.moderator.getPopupLoginUrl(t,n):_this186.room.moderator.getLoginUrl(t,n):n();});},td.prototype.getLocalTracks=function(e){var t=[];return this.rtc&&(t=this.rtc.getLocalTracks(e)),t;},td.prototype.getLocalAudioTrack=function(){return this.rtc?this.rtc.getLocalAudioTrack():null;},td.prototype.getLocalVideoTrack=function(){return this.rtc?this.rtc.getLocalVideoTrack():null;},td.prototype.getPerformanceStats=function(){return{longTasksStats:this.statistics.getLongTasksStats()};},td.prototype.on=function(e,t){this.eventEmitter&&this.eventEmitter.on(e,t);},td.prototype.off=function(e,t){this.eventEmitter&&this.eventEmitter.removeListener(e,t);},td.prototype.addEventListener=td.prototype.on,td.prototype.removeEventListener=td.prototype.off,td.prototype.addCommandListener=function(e,t){this.room&&this.room.addPresenceListener(e,t);},td.prototype.removeCommandListener=function(e,t){this.room&&this.room.removePresenceListener(e,t);},td.prototype.sendTextMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";this.room&&this.room.sendMessage(e,t);},td.prototype.sendPrivateTextMessage=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body";this.room&&this.room.sendPrivateMessage(e,t,n);},td.prototype.sendCommand=function(e,t){this.room?this.room.addOrReplaceInPresence(e,t)&&this.room.sendPresence():ed.warn("Not sending a command, room not initialized.");},td.prototype.sendCommandOnce=function(e,t){this.sendCommand(e,t),this.removeCommand(e);},td.prototype.removeCommand=function(e){this.room&&this.room.removeFromPresence(e);},td.prototype.setDisplayName=function(e){if(this.room){var t="nick";if(!e&&!this.room.getFromPresence(t))return;this.room.addOrReplaceInPresence(t,{attributes:{xmlns:"http://jabber.org/protocol/nick"},value:e})&&this.room.sendPresence();}},td.prototype.setSubject=function(e){this.room&&this.isModerator()?this.room.setSubject(e):ed.warn("Failed to set subject, ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator"));},td.prototype.getTranscriber=function(){if(void 0===this.transcriber){this.transcriber=new kc();var _e198=this.getLocalTracks(Rn);var _iterator81=_createForOfIteratorHelper(_e198),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var _t146=_step81.value;this.transcriber.addTrack(_t146);}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}var t=this.rtc.getRemoteTracks(Rn);var _iterator82=_createForOfIteratorHelper(t),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var _e199=_step82.value;this.transcriber.addTrack(_e199);}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}}return this.transcriber;},td.prototype.getTranscriptionStatus=function(){return this.room.transcriptionStatus;},td.prototype.addTrack=function(e){var t=e.getType(),n=this.rtc.getLocalTracks(t);return n.length>0?e===n[0]?Promise.resolve(e):Promise.reject(new Error("Cannot add second ".concat(t," track to the conference"))):this.replaceTrack(null,e);},td.prototype._fireAudioLevelChangeEvent=function(e,t){var n=this.getActivePeerConnection();t&&n!==t||this.eventEmitter.emit(ke,this.myUserId(),e);},td.prototype._fireMuteChangeEvent=function(e){var t;if(this.isMutedByFocus&&e.isAudioTrack()&&!e.isMuted()?(this.isMutedByFocus=!1,this.room.muteParticipant(this.room.myroomjid,!1,Rn)):this.isVideoMutedByFocus&&e.isVideoTrack()&&!e.isMuted()&&(this.isVideoMutedByFocus=!1,this.room.muteParticipant(this.room.myroomjid,!1,wn)),this.mutedByFocusActor&&e.isAudioTrack()){var _e200=rt.Strophe.getResourceFromJid(this.mutedByFocusActor);t=this.participants[_e200];}else if(this.mutedVideoByFocusActor&&e.isVideoTrack()){var _e201=rt.Strophe.getResourceFromJid(this.mutedVideoByFocusActor);t=this.participants[_e201];}e.isVideoTrack()&&!nn.doesVideoMuteByStreamRemove()&&this._sendBridgeVideoTypeMessage(e),this.eventEmitter.emit(Oe,e,t);},td.prototype._getInitialLocalTracks=function(){var _this187=this;return this.getLocalTracks().filter(function(e){var t=e.getType();return!(t!==Rn||_this187.isStartAudioMuted()&&!nn.isWebKitBased()&&!nn.isReactNative())||t===wn&&!_this187.isStartVideoMuted();});},td.prototype.onLocalTrackRemoved=function(e){e.setConference(null),this.rtc.removeLocalTrack(e),e.removeEventListener(ei,e.muteHandler),e.isAudioTrack()&&e.removeEventListener(Yn,e.audioLevelHandler),e.isVideoTrack()&&e.videoType===Hn().DESKTOP&&this.statistics.sendScreenSharingEvent(!1),this.eventEmitter.emit(Le,e);},td.prototype.removeTrack=function(e){return this.replaceTrack(e,null);},td.prototype.replaceTrack=function(e,t){var _this188=this;var n=this===(null==e?void 0:e.conference);return n&&e.disposed||null!=t&&t.disposed?Promise.reject(new Et(gt)):(e&&!n&&ed.warn("JitsiConference.replaceTrack oldTrack (".concat(e," does not belong to this conference")),this._doReplaceTrack(n?e:null,t).then(function(){return n&&_this188.onLocalTrackRemoved(e),t&&_this188._setupNewTrack(t),(n&&null!=e&&e.isVideoTrack()||null!=t&&t.isVideoTrack())&&_this188._sendBridgeVideoTypeMessage(t),n&&null!=e&&e.isVideoTrack()&&!(null!=e&&e._setEffectInProgress||null!=t&&t._setEffectInProgress)&&_this188._updateRoomPresence(_this188._getActiveMediaSession()),null!==t&&(_this188.isMutedByFocus||_this188.isVideoMutedByFocus)&&_this188._fireMuteChangeEvent(t),Promise.resolve();}).catch(function(e){return ed.error("replaceTrack failed: ".concat(null==e?void 0:e.stack)),Promise.reject(e);}));},td.prototype._doReplaceTrack=function(e,t){var n=[];return this.jvbJingleSession?n.push(this.jvbJingleSession.replaceTrack(e,t)):ed.info("_doReplaceTrack - no JVB JingleSession"),this.p2pJingleSession?n.push(this.p2pJingleSession.replaceTrack(e,t)):ed.info("_doReplaceTrack - no P2P JingleSession"),Promise.all(n);},td.prototype._removeLocalSourceOnReject=function(e,t,n){if(!e)return;ed.warn("Source-add rejected on ".concat(e,", reason=\\"").concat(null==t?void 0:t.reason,"\\", message=\\"").concat(null==t?void 0:t.msg,"\\""));var i=this.getLocalTracks(n)[0];this.eventEmitter.emit(xe,i);},td.prototype._setupNewTrack=function(e){if(e.isAudioTrack()||e.isVideoTrack()&&e.videoType!==Hn().DESKTOP){var t=va.getCurrentlyAvailableMediaDevices().find(function(t){return t.kind==="".concat(e.getTrack().kind,"input")&&t.label===e.getTrack().label;});t&&jn.sendActiveDeviceListEvent(va.getEventDataForActiveDevice(t));}this.rtc.addLocalTrack(e),e.setConference(this),e.muteHandler=this._fireMuteChangeEvent.bind(this,e),e.addEventListener(ei,e.muteHandler),e.isAudioTrack()&&(e.audioLevelHandler=this._fireAudioLevelChangeEvent.bind(this),e.addEventListener(Yn,e.audioLevelHandler)),this.eventEmitter.emit(Ne,e);},td.prototype._setNewVideoType=function(e){if(Hs.isSourceNameSignalingEnabled()&&e)return this._signalingLayer.setTrackVideoType($o(this.myUserId(),e.getType(),0),e.videoType),!0;var t="videoType",n=e?e.videoType:Hn().CAMERA;return!(n===Hn().CAMERA&&!this.room.getFromPresence(t))&&this.room.addOrReplaceInPresence(t,{value:n});},td.prototype._setTrackMuteStatus=function(e,t,n){return Hs.isSourceNameSignalingEnabled()&&this._signalingLayer.setTrackMuteStatus($o(this.myUserId(),e,0),n),!!this.room&&(e===Rn?this.room.addAudioInfoToPresence(n):this.room.addVideoInfoToPresence(n));},td.prototype._addLocalTrackAsUnmute=function(e){var _this189=this;var t=[];return this.jvbJingleSession?t.push(this.jvbJingleSession.addTrackAsUnmute(e)):ed.debug("Add local MediaStream as unmute - no JVB Jingle session started yet"),this.p2pJingleSession?t.push(this.p2pJingleSession.addTrackAsUnmute(e)):ed.debug("Add local MediaStream as unmute - no P2P Jingle session started yet"),Promise.allSettled(t).then(function(){e.isVideoTrack()&&_this189._sendBridgeVideoTypeMessage(e);});},td.prototype._removeLocalTrackAsMute=function(e){var _this190=this;var t=[];return this.jvbJingleSession?t.push(this.jvbJingleSession.removeTrackAsMute(e)):ed.debug("Remove local MediaStream - no JVB JingleSession started yet"),this.p2pJingleSession?t.push(this.p2pJingleSession.removeTrackAsMute(e)):ed.debug("Remove local MediaStream - no P2P JingleSession started yet"),Promise.allSettled(t).then(function(){e.isVideoTrack()&&_this190._sendBridgeVideoTypeMessage();});},td.prototype.getRole=function(){return this.room.role;},td.prototype.isHidden=function(){return this.connection?rt.Strophe.getDomainFromJid(this.connection.getJid())===this.options.config.hiddenDomain:null;},td.prototype.isModerator=function(){return this.room?this.room.isModerator():null;},td.prototype.lock=function(e){var _this191=this;return this.isModerator()?new Promise(function(t,n){_this191.room.lockRoom(e||"",function(){return t();},function(e){return n(e);},function(){return n(O);});}):Promise.reject(new Error("You are not moderator."));},td.prototype.unlock=function(){return this.lock();},td.prototype.selectParticipant=function(e){this.selectParticipants([e]);},td.prototype.selectParticipants=function(e){if(!Array.isArray(e))throw new Error("Invalid argument; participantIds must be an array.");this.receiveVideoController.selectEndpoints(e);},td.prototype.getLastN=function(){return this.receiveVideoController.getLastN();},td.prototype.setLastN=function(e){if(!Number.isInteger(e)&&!Number.parseInt(e,10))throw new Error("Invalid value for lastN: ".concat(e));var t=Number(e);if(t<-1)throw new RangeError("lastN cannot be smaller than -1");if(this.receiveVideoController.setLastN(t),this.p2pJingleSession){var _e202=0!==t;this.p2pJingleSession.setMediaTransferActive(!0,_e202).catch(function(t){ed.error("Failed to adjust video transfer status (".concat(_e202,")"),t);});}},td.prototype.isInLastN=function(e){return this.rtc.isInLastN(e);},td.prototype.getParticipants=function(){return Object.values(this.participants);},td.prototype.getParticipantCount=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getParticipants();return e||(t=t.filter(function(e){return!e.isHidden();})),t.length+1;},td.prototype.getParticipantById=function(e){return this.participants[e];},td.prototype.grantOwner=function(e){var t=this.getParticipantById(e);t&&this.room.setAffiliation(t.getJid(),"owner");},td.prototype.revokeOwner=function(e){var t=this.getParticipantById(e),n=this.myUserId()===e,i=this.isMembersOnly()?"member":"none";n?this.room.setAffiliation(this.room.myroomjid,i):t&&this.room.setAffiliation(t.getJid(),i);},td.prototype.kickParticipant=function(e,t){var n=this.getParticipantById(e);n&&this.room.kick(n.getJid(),t);},td.prototype._maybeClearSITimeout=function(){this._sessionInitiateTimeout&&(this.jvbJingleSession||this.getParticipantCount()<2)&&(window.clearTimeout(this._sessionInitiateTimeout),this._sessionInitiateTimeout=null);},td.prototype._maybeSetSITimeout=function(){var _this192=this;!this.jvbJingleSession&&this.getParticipantCount()>=2&&!this._sessionInitiateTimeout&&(this._sessionInitiateTimeout=window.setTimeout(function(){_this192._sessionInitiateTimeout=null,jn.sendAnalytics(Mt("session-initiate.timeout",{p2p:!1,value:5e3}));},5e3));},td.prototype.muteParticipant=function(e,t){var n=t||Rn;if(n!==Rn&&n!==wn)return void ed.error("Unsupported media type: ".concat(n));var i=this.getParticipantById(e);i&&this.room.muteParticipant(i.getJid(),!0,n);},td.prototype.onMemberJoined=function(e,t,n,i,s,r,o,a,c,d,l){var h=rt.Strophe.getResourceFromJid(e);if("focus"===h||this.myUserId()===h)return;var u=new ai(e,this,t,i,s,r,o);u.setRole(n),u.setBotType(a),u.setFeatures(d),u.setIsReplacing(l),this.participants[h]=u,this.eventEmitter.emit(je,h,u),this._updateFeatures(u),this.isJoined()&&this._maybeStartOrStopP2P(),this._maybeSetSITimeout();},td.prototype._onMucJoined=function(){this._maybeStartOrStopP2P();},td.prototype._updateFeatures=function(e){var _this193=this;e.getFeatures().then(function(t){e._supportsDTMF=t.has("urn:xmpp:jingle:dtmf:0"),_this193.updateDTMFSupport(),t.has(jr)&&e.setProperty("features_jigasi",!0),t.has($r)&&e.setProperty("features_e2ee",!0);}).catch(function(){return!1;});},td.prototype._onMemberBotTypeChanged=function(e,t){var n=this.getParticipants().find(function(t){return t.getJid()===e;});if(n){n.setBotType(t);var _i100=rt.Strophe.getResourceFromJid(e);this.eventEmitter.emit(Je,_i100,t);}n.getBotType()||this._maybeStartOrStopP2P();},td.prototype.onMemberLeft=function(e){var _this194=this;var t=rt.Strophe.getResourceFromJid(e);if("focus"===t||this.myUserId()===t)return;var n=this.participants[t],i=this._getMediaSessions();var s=[];var _iterator83=_createForOfIteratorHelper(i),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var _e203=_step83.value;var _n102=_e203.peerconnection.getRemoteTracks(t);_n102&&(s=[].concat(_toConsumableArray(s),_toConsumableArray(_n102))),_e203.removeRemoteStreamsOnLeave(t);}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}s.forEach(function(e){_this194.eventEmitter.emit(Le,e);}),n&&(delete this.participants[t],this.eventEmitter.emit($e,t,n)),null!==this.room&&(this._maybeStartOrStopP2P(!0),this._maybeClearSITimeout());},td.prototype.onMemberKicked=function(e,t,n,i,s){if(t===this.myUserId())return;var r=this.participants[t];if(e)return this.eventEmitter.emit(re,r,i,s),void this.leave();var o=this.participants[n];o.setIsReplaced(s),this.eventEmitter.emit(oe,r,o,i);},td.prototype.onLocalRoleChanged=function(e){this.eventEmitter.emit(Ue,this.myUserId(),e);},td.prototype.onUserRoleChanged=function(e,t){var n=rt.Strophe.getResourceFromJid(e),i=this.getParticipantById(n);i&&(i.setRole(t),this.eventEmitter.emit(Ue,n,t));},td.prototype.onDisplayNameChanged=function(e,t){var n=rt.Strophe.getResourceFromJid(e),i=this.getParticipantById(n);i&&i._displayName!==t&&(i._displayName=t,this.eventEmitter.emit(Y,n,t));},td.prototype.onRemoteTrackAdded=function(e){var _this195=this;if(e.isP2P&&!this.isP2PActive())return void ed.info("Trying to add remote P2P track, when not in P2P - IGNORED");if(!e.isP2P&&this.isP2PActive())return void ed.info("Trying to add remote JVB track, when in P2P - IGNORED");var t=e.getParticipantId(),n=this.getParticipantById(t);if(!n)return void ed.error("No participant found for id: ".concat(t));n._tracks.push(e),this.transcriber&&this.transcriber.addTrack(e);var i=this.eventEmitter;e.addEventListener(ei,function(){return i.emit(Oe,e);}),e.addEventListener(Yn,function(e,n){_this195.getActivePeerConnection()===n&&i.emit(ke,t,e);}),i.emit(Ne,e);},td.prototype.onCallAccepted=function(e,t){this.p2pJingleSession===e&&(ed.info("P2P setAnswer"),this.p2pJingleSession.setAnswer(t),this.eventEmitter.emit(le,this.p2pJingleSession));},td.prototype.onTransportInfo=function(e,t){this.p2pJingleSession===e&&(ed.info("P2P addIceCandidates"),this.p2pJingleSession.addIceCandidates(t));},td.prototype.onRemoteTrackRemoved=function(e){var _this196=this;this.getParticipants().forEach(function(t){var n=t.getTracks();for(var _i101=0;_i101<n.length;_i101++)if(n[_i101]===e){t._tracks.splice(_i101,1),_this196.eventEmitter.emit(Le,e),_this196.transcriber&&_this196.transcriber.removeTrack(e);break;}},this);},td.prototype._onIncomingCallP2P=function(e,t){var n;!this.isP2PEnabled()&&!this.isP2PTestModeEnabled()||nn.isFirefox()||nn.isWebKitBased()?n={reason:"decline",reasonDescription:"P2P disabled",errorMsg:"P2P mode disabled in the configuration"}:this.p2pJingleSession?n={reason:"busy",reasonDescription:"P2P already in progress",errorMsg:\'Duplicated P2P "session-initiate"\'}:this._shouldBeInP2PMode()||(n={reason:"decline",reasonDescription:"P2P requirements not met",errorMsg:\'Received P2P "session-initiate" when should not be in P2P mode\'},jn.sendAnalytics(Mt("decline"))),n?this._rejectIncomingCall(e,n):this._acceptP2PIncomingCall(e,t);},td.prototype.onIncomingCall=function(e,t,n){if(e.isP2P)this._onIncomingCallP2P(e,t);else{if(!this.isFocus(e.remoteJid)){var _t147="Rejecting session-initiate from non-focus.";return void this._rejectIncomingCall(e,{reason:"security-error",reasonDescription:_t147,errorMsg:_t147});}this._acceptJvbIncomingCall(e,t,n);}},td.prototype._acceptJvbIncomingCall=function(e,t,n){var _this197=this;this.jvbJingleSession=e,this.room.connectionTimes["session.initiate"]=n,this._sendConferenceJoinAnalyticsEvent(),this.wasStopped&&jn.sendAnalyticsAndLog(Mt("restart",{p2p:!1}));var i=$CC(t).find(\'>bridge-session[xmlns="http://jitsi.org/protocol/focus"]\').attr("region");this.eventEmitter.emit(de,i),this._maybeClearSITimeout(),jn.sendAnalytics(Mt("session-initiate.received",{p2p:!1,value:n}));try{e.initialize(this.room,this.rtc,this._signalingLayer,_objectSpread(_objectSpread({},this.options.config),{},{enableInsertableStreams:this.isE2EEEnabled()}));}catch(e){return dn().callErrorHandler(e),void ed.error(e);}this._setBridgeChannel(t,e.peerconnection);var s=this._getInitialLocalTracks();try{e.acceptOffer(t,function(){_this197.isP2PActive()&&_this197.jvbJingleSession&&_this197._suspendMediaTransferForJvbConnection(),_this197.eventEmitter.emit(le,e),_this197.isP2PActive()||_this197.eventEmitter.emit(he,e);},function(e){dn().callErrorHandler(e),ed.error("Failed to accept incoming Jingle session",e);},s),this._desktopSharingFrameRate&&e.peerconnection.setDesktopSharingFrameRate(this._desktopSharingFrameRate),ed.info("Starting CallStats for JVB connection..."),this.statistics.startCallStats(this.jvbJingleSession.peerconnection,"jitsi"),this.statistics.startRemoteStats(this.jvbJingleSession.peerconnection);}catch(e){dn().callErrorHandler(e),ed.error(e);}},td.prototype._setBridgeChannel=function(e,t){var n=null;var i=$CC(e).find(">content>transport>web-socket").first();1===i.length&&(n=i[0].getAttribute("url")),n?this.rtc.initializeBridgeChannel(null,n):this.rtc.initializeBridgeChannel(t,null);},td.prototype._rejectIncomingCall=function(e,t){t&&t.errorMsg&&dn().callErrorHandler(new Error(t.errorMsg)),e.terminate(null,function(e){ed.warn("An error occurred while trying to terminate invalid Jingle session",e);},{reason:t&&t.reason,reasonDescription:t&&t.reasonDescription,sendSessionTerminate:!0});},td.prototype.onCallEnded=function(e,t,n){if(ed.info("Call ended: ".concat(t," - ").concat(n," P2P ?").concat(e.isP2P)),e===this.jvbJingleSession)this.wasStopped=!0,jn.sendAnalytics(Mt("terminate",{p2p:!1})),this.statistics&&(this.statistics.stopRemoteStats(this.jvbJingleSession.peerconnection),ed.info("Stopping JVB CallStats"),this.statistics.stopCallStats(this.jvbJingleSession.peerconnection)),this.jvbJingleSession=null,this.rtc.onCallEnded();else if(e===this.p2pJingleSession){var _e204={};"decline"===t&&"force JVB121"===n?(ed.info("In forced JVB 121 mode..."),jn.analytics.addPermanentProperties({forceJvb121:!0})):"connectivity-error"===t&&"ICE FAILED"===n?jn.analytics.addPermanentProperties({p2pFailed:!0}):"success"===t&&"restart"===n&&(_e204.requestRestart=!0),this._stopP2PSession(_e204);}else ed.error("Received onCallEnded for invalid session",e.sid,e.remoteJid,t,n);},td.prototype.onSuspendDetected=function(e){e.isP2P||(this.leave(),this.eventEmitter.emit(Me));},td.prototype.updateDTMFSupport=function(){var e=!1;var t=this.getParticipants();for(var _n103=0;_n103<t.length;_n103+=1)if(t[_n103].supportsDTMF()){e=!0;break;}e!==this.somebodySupportsDTMF&&(this.somebodySupportsDTMF=e,this.eventEmitter.emit(te,e));},td.prototype.isDTMFSupported=function(){return this.somebodySupportsDTMF;},td.prototype.myUserId=function(){return this.room&&this.room.myroomjid?rt.Strophe.getResourceFromJid(this.room.myroomjid):null;},td.prototype.sendTones=function(e,t,n){var i=this.getActivePeerConnection();i?i.sendTones(e,t,n):ed.warn("cannot sendTones: no peer connection");},td.prototype.startRecording=function(e){return this.room?this.recordingManager.startRecording(e):Promise.reject(new Error("The conference is not created yet!"));},td.prototype.stopRecording=function(e){return this.room?this.recordingManager.stopRecording(e):Promise.reject(new Error("The conference is not created yet!"));},td.prototype.isSIPCallingSupported=function(){return!!this.room&&this.room.isSIPCallingSupported();},td.prototype.dial=function(e){return this.room?this.room.dial(e):new Promise(function(e,t){t(new Error("The conference is not created yet!"));});},td.prototype.hangup=function(){return this.room?this.room.hangup():new Promise(function(e,t){t(new Error("The conference is not created yet!"));});},td.prototype.startTranscriber=function(){return this.dial("jitsi_meet_transcribe");},td.prototype.stopTranscriber=td.prototype.hangup,td.prototype.getPhoneNumber=function(){return this.room?this.room.getPhoneNumber():null;},td.prototype.getPhonePin=function(){return this.room?this.room.getPhonePin():null;},td.prototype.getMeetingUniqueId=function(){if(this.room)return this.room.getMeetingId();},td.prototype.getActivePeerConnection=function(){var e=this.isP2PActive()?this.p2pJingleSession:this.jvbJingleSession;return e?e.peerconnection:null;},td.prototype.getConnectionState=function(){var e=this.getActivePeerConnection();return e?e.getConnectionState():null;},td.prototype.setStartMutedPolicy=function(e){this.isModerator()?(this.startMutedPolicy=e,this.room.addOrReplaceInPresence("startmuted",{attributes:{audio:e.audio,video:e.video,xmlns:"http://jitsi.org/jitmeet/start-muted"}})&&this.room.sendPresence()):ed.warn("Failed to set start muted policy, ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator"));},td.prototype.getStartMutedPolicy=function(){return this.startMutedPolicy;},td.prototype.isStartAudioMuted=function(){return this.startAudioMuted;},td.prototype.isStartVideoMuted=function(){return this.startVideoMuted;},td.prototype.getConnectionTimes=function(){return this.room.connectionTimes;},td.prototype.setLocalParticipantProperty=function(e,t){this.sendCommand("jitsi_participant_".concat(e),{value:t});},td.prototype.removeLocalParticipantProperty=function(e){this.removeCommand("jitsi_participant_".concat(e)),this.room.sendPresence();},td.prototype.getLocalParticipantProperty=function(e){var t=this.room.presMap.nodes.find(function(t){return t.tagName==="jitsi_participant_".concat(e);});return t?t.value:void 0;},td.prototype.sendFeedback=function(e,t){return this.statistics.sendFeedback(e,t);},td.prototype.isCallstatsEnabled=function(){return this.statistics.isCallstatsEnabled();},td.prototype.getSsrcByTrack=function(e){var t;return e.isLocal()?null===(t=this.getActivePeerConnection())||void 0===t?void 0:t.getLocalSSRC(e):e.getSSRC();},td.prototype._onTrackAttach=function(e,t){var n=e.isLocal();var i=null;var s=e.isP2P,r=s?e.getParticipantId():"jitsi",o=s?this.p2pJingleSession&&this.p2pJingleSession.peerconnection:this.jvbJingleSession&&this.jvbJingleSession.peerconnection;n?o&&(i=o.getLocalSSRC(e)):i=e.getSSRC(),t.id&&i&&o&&this.statistics.associateStreamWithVideoTag(o,i,n,r,e.getUsageLabel(),t.id);},td.prototype.sendApplicationLog=function(e){jn.sendLog(e);},td.prototype.isFocus=function(e){return this.room?this.room.isFocus(e):null;},td.prototype._fireIncompatibleVersionsEvent=function(){this.eventEmitter.emit(J,N);},td.prototype.sendEndpointMessage=function(e,t){this.rtc.sendChannelMessage(e,t);},td.prototype.sendEndpointStatsMessage=function(e){this.rtc.sendEndpointStatsMessage(e);},td.prototype.broadcastEndpointMessage=function(e){this.sendEndpointMessage("",e);},td.prototype.sendMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i=_typeof(e);if("object"===i||!n&&"string"===i){if(n)this.sendEndpointMessage(t,e);else{var _n104=e,_s45="body";if("object"===i){_s45="json-message",_n104.hasOwnProperty(Fr)||(_n104[Fr]="");try{_n104=JSON.stringify(_n104);}catch(e){return void ed.error("Can not send a message, stringify failed: ",e);}}t?this.sendPrivateTextMessage(t,_n104,_s45):this.sendTextMessage(_n104,_s45);}}else ed.error("Can not send a message of type ".concat(i));},td.prototype.isConnectionInterrupted=function(){return this.isP2PActive()?this.isP2PConnectionInterrupted:this.isJvbConnectionInterrupted;},td.prototype._onConferenceRestarted=function(e){!e.isP2P&&this.options.config.enableForcedReload&&this.eventEmitter.emit(J,T);},td.prototype._onIceConnectionInterrupted=function(e){e.isP2P?this.isP2PConnectionInterrupted=!0:this.isJvbConnectionInterrupted=!0,e.isP2P===this.isP2PActive()&&this.eventEmitter.emit(W);},td.prototype._onIceConnectionFailed=function(e){e.isP2P?(jn.analytics.addPermanentProperties({p2pFailed:!0}),this.p2pJingleSession&&jn.sendAnalyticsAndLog(Dt("failed",{initiator:this.p2pJingleSession.isInitiator})),this._stopP2PSession({reason:"connectivity-error",reasonDescription:"ICE FAILED"})):e&&this.jvbJingleSession===e&&(this._delayedIceFailed=new Pa(this),this._delayedIceFailed.start(e));},td.prototype._onIceConnectionRestored=function(e){e.isP2P?this.isP2PConnectionInterrupted=!1:(this.isJvbConnectionInterrupted=!1,this._delayedIceFailed&&this._delayedIceFailed.cancel()),e.isP2P===this.isP2PActive()&&this.eventEmitter.emit(Q);},td.prototype._acceptP2PIncomingCall=function(e,t){var _this198=this;this.isP2PConnectionInterrupted=!1,this.p2pJingleSession=e,this._sendConferenceJoinAnalyticsEvent(),this.p2pJingleSession.initialize(this.room,this.rtc,this._signalingLayer,_objectSpread(_objectSpread({},this.options.config),{},{enableInsertableStreams:this.isE2EEEnabled()})),ed.info("Starting CallStats for P2P connection...");var n=rt.Strophe.getResourceFromJid(this.p2pJingleSession.remoteJid);var i=this.participants[n];i&&(n=i.getStatsID()||n),this.statistics.startCallStats(this.p2pJingleSession.peerconnection,n);var s=this.getLocalTracks();this.p2pJingleSession.acceptOffer(t,function(){ed.debug(\'Got RESULT for P2P "session-accept"\'),_this198.eventEmitter.emit(le,e);},function(e){ed.error("Failed to accept incoming P2P Jingle session",e);},s);},td.prototype._addRemoteJVBTracks=function(){this._addRemoteTracks("JVB",this.jvbJingleSession.peerconnection.getRemoteTracks());},td.prototype._addRemoteP2PTracks=function(){this._addRemoteTracks("P2P",this.p2pJingleSession.peerconnection.getRemoteTracks());},td.prototype._addRemoteTracks=function(e,t){var _iterator84=_createForOfIteratorHelper(t),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var _n105=_step84.value;ed.info("Adding remote ".concat(e," track: ").concat(_n105)),this.onRemoteTrackAdded(_n105);}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}},td.prototype._onIceConnectionEstablished=function(e){null!==this.p2pJingleSession&&(this.p2pEstablishmentDuration=this.p2pJingleSession.establishmentDuration),null!==this.jvbJingleSession&&(this.jvbEstablishmentDuration=this.jvbJingleSession.establishmentDuration);var t=!1;var n=this.options.config.forceJVB121Ratio;if(e.isP2P?this.p2pJingleSession!==e?(ed.error("CONNECTION_ESTABLISHED - wrong P2P session instance ?!"),t=!0):!e.isInitiator&&"number"==typeof n&&Math.random()<n&&(ed.info("Forcing JVB 121 mode (ratio=".concat(n,")...")),jn.analytics.addPermanentProperties({forceJvb121:!0}),this._stopP2PSession({reason:"decline",reasonDescription:"force JVB121"}),t=!0):t=!0,!isNaN(this.p2pEstablishmentDuration)&&!isNaN(this.jvbEstablishmentDuration)){var _e205=this.p2pEstablishmentDuration-this.jvbEstablishmentDuration;jn.sendAnalytics("ice.establishment.duration.diff",{value:_e205});}e.isP2P===this.isP2PActive()&&this.eventEmitter.emit(z),t||(this._setP2PStatus(!0),this.jvbJingleSession?this._removeRemoteJVBTracks():ed.info("Not removing remote JVB tracks - no session yet"),this._addRemoteP2PTracks(),this.jvbJingleSession&&this._suspendMediaTransferForJvbConnection(),ed.info("Starting remote stats with p2p connection"),this.statistics.startRemoteStats(this.p2pJingleSession.peerconnection),jn.sendAnalyticsAndLog(Dt("established",{initiator:this.p2pJingleSession.isInitiator})));},td.prototype._updateProperties=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=!st()(e,this.properties);if(this.properties=e,t){this.eventEmitter.emit(be,this.properties);var _t148="true"===this.properties["audio-limit-reached"],_n106="true"===this.properties["video-limit-reached"];this._audioSenderLimitReached!==_t148&&(this._audioSenderLimitReached=_t148,this.eventEmitter.emit($,_t148),ed.info("Audio unmute permissions set by Jicofo to ".concat(_t148))),this._videoSenderLimitReached!==_n106&&(this._videoSenderLimitReached=_n106,this.eventEmitter.emit(Ve,_n106),ed.info("Video unmute permissions set by Jicofo to ".concat(_n106))),["bridge-count","created-ms"].forEach(function(t){void 0!==e[t]&&jn.analytics.addPermanentProperties(_defineProperty({},t.replace("-","_"),e[t]));});}},td.prototype.getProperty=function(e){return this.properties[e];},td.prototype._maybeClearDeferredStartP2P=function(){this.deferredStartP2PTask&&(ed.info("Cleared deferred start P2P task"),clearTimeout(this.deferredStartP2PTask),this.deferredStartP2PTask=null);},td.prototype._removeRemoteJVBTracks=function(){this._removeRemoteTracks("JVB",this.jvbJingleSession.peerconnection.getRemoteTracks());},td.prototype._removeRemoteP2PTracks=function(){this._removeRemoteTracks("P2P",this.p2pJingleSession.peerconnection.getRemoteTracks());},td.prototype._removeRemoteTracks=function(e,t){var _iterator85=_createForOfIteratorHelper(t),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var _n107=_step85.value;ed.info("Removing remote ".concat(e," track: ").concat(_n107)),this.onRemoteTrackRemoved(_n107);}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}},td.prototype._resumeMediaTransferForJvbConnection=function(){ed.info("Resuming media transfer over the JVB connection..."),this.jvbJingleSession.setMediaTransferActive(!0,!0).then(function(){ed.info("Resumed media transfer over the JVB connection!");},function(e){ed.error("Failed to resume media transfer over the JVB connection:",e);});},td.prototype._setP2PStatus=function(e){if(this.p2p!==e){if(this.p2p=e,e){ed.info("Peer to peer connection established!"),jn.analytics.addPermanentProperties({p2pFailed:!1,forceJvb121:!1});var _e206=0!==this.getLastN();this.p2pJingleSession.setMediaTransferActive(!0,_e206).catch(function(t){ed.error("Failed to sync up P2P video transfer status(".concat(_e206,")"),t);});}else ed.info("Peer to peer connection closed!");this.jvbJingleSession&&this.statistics.sendConnectionResumeOrHoldEvent(this.jvbJingleSession.peerconnection,!e),this.dtmfManager=null,this.eventEmitter.emit(Ee,this,this.p2p),this.eventEmitter.emit(he,this._getActiveMediaSession()),this.eventEmitter.emit(this.isConnectionInterrupted()?W:Q);}else ed.debug("Called _setP2PStatus with the same status: ".concat(e));},td.prototype._startP2PSession=function(e){if(this._maybeClearDeferredStartP2P(),this.p2pJingleSession)return void ed.error("P2P session already started!");this.isP2PConnectionInterrupted=!1,this.p2pJingleSession=this.xmpp.connection.jingle.newP2PJingleSession(this.room.myroomjid,e),ed.info("Created new P2P JingleSession",this.room.myroomjid,e),this._sendConferenceJoinAnalyticsEvent(),this.p2pJingleSession.initialize(this.room,this.rtc,this._signalingLayer,_objectSpread(_objectSpread({},this.options.config),{},{enableInsertableStreams:this.isE2EEEnabled()})),ed.info("Starting CallStats for P2P connection...");var t=rt.Strophe.getResourceFromJid(this.p2pJingleSession.remoteJid);var n=this.participants[t];n&&(t=n.getStatsID()||t),this.statistics.startCallStats(this.p2pJingleSession.peerconnection,t);var i=this.getLocalTracks();this.p2pJingleSession.invite(i);},td.prototype._suspendMediaTransferForJvbConnection=function(){ed.info("Suspending media transfer over the JVB connection..."),this.jvbJingleSession.setMediaTransferActive(!1,!1).then(function(){ed.info("Suspended media transfer over the JVB connection !");},function(e){ed.error("Failed to suspend media transfer over the JVB connection:",e);});},td.prototype._maybeStartOrStopP2P=function(e){if(!this.isP2PEnabled()||this.isP2PTestModeEnabled()||nn.isFirefox()||nn.isWebKitBased()||this.isE2EEEnabled())return void ed.info("Auto P2P disabled");var t=this.getParticipants(),n=t.length,i=this._shouldBeInP2PMode();if(!i&&this.deferredStartP2PTask&&this._maybeClearDeferredStartP2P(),!this.p2pJingleSession&&i){var _i102=n&&t[0],_s46=this.myUserId(),_r25=_i102.getId();if(_s46>_r25)return void ed.debug("I\'m the bigger peersId - the other peer should start P2P",_s46,_r25);if(_s46===_r25)return void ed.error("The same IDs ? ",_s46,_r25);var _o21=_i102.getJid();if(e){if(this.deferredStartP2PTask)return void ed.error("Deferred start P2P task\'s been set already!");ed.info("Will start P2P with: ".concat(_o21," after ").concat(this.backToP2PDelay," seconds...")),this.deferredStartP2PTask=setTimeout(this._startP2PSession.bind(this,_o21),1e3*this.backToP2PDelay);}else ed.info("Will start P2P with: ".concat(_o21)),this._startP2PSession(_o21);}else this.p2pJingleSession&&!i&&(ed.info("Will stop P2P with: ".concat(this.p2pJingleSession.remoteJid)),this.p2pJingleSession.isInitiator&&n>1&&jn.sendAnalyticsAndLog(Dt("switch.to.jvb")),this._stopP2PSession());},td.prototype._shouldBeInP2PMode=function(){var e=this.getParticipants(),t=e.length,n=void 0!==e.find(function(e){return"poltergeist"===e.getBotType()||e.hasFeature(jr);}),i=1===t&&!n;return ed.debug("P2P? peerCount: ".concat(t,", hasBotPeer: ").concat(n," => ").concat(i)),i;},td.prototype._stopP2PSession=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var _e$reason=e.reason,t=_e$reason===void 0?"success":_e$reason,_e$reasonDescription=e.reasonDescription,n=_e$reasonDescription===void 0?"Turning off P2P session":_e$reasonDescription,_e$requestRestart=e.requestRestart,i=_e$requestRestart===void 0?!1:_e$requestRestart;if(!this.p2pJingleSession)return void ed.error("No P2P session to be stopped!");var s=this.isP2PActive();s&&(this.jvbJingleSession&&!i&&this._resumeMediaTransferForJvbConnection(),this._removeRemoteP2PTracks()),ed.info("Stopping remote stats for P2P connection"),this.statistics.stopRemoteStats(this.p2pJingleSession.peerconnection),ed.info("Stopping CallStats for P2P connection"),this.statistics.stopCallStats(this.p2pJingleSession.peerconnection),this.p2pJingleSession.terminate(function(){ed.info("P2P session terminate RESULT");},function(e){"success"!==t&&ed.error("An error occurred while trying to terminate P2P Jingle session",e);},{reason:t,reasonDescription:n,sendSessionTerminate:this.room&&this.getParticipantById(rt.Strophe.getResourceFromJid(this.p2pJingleSession.remoteJid))}),this.p2pJingleSession=null,this._setP2PStatus(!1),s&&(this.jvbJingleSession&&!i?this._addRemoteJVBTracks():ed.info("Not adding remote JVB tracks - no session yet"));},td.prototype._updateRoomPresence=function(e,t){if(!e)return;if(t){if(t.skip)return;t.skip=!0;}var n=e.peerconnection.getLocalTracks(Rn),i=e.peerconnection.getLocalTracks(wn);var s=!1;if(n&&n.length?s=this._setTrackMuteStatus(Rn,n[0],n[0].isMuted()):this._setTrackMuteStatus(Rn,void 0,!0)&&(s=!0),i&&i.length){var _e207=this._setTrackMuteStatus(wn,i[0],i[0].isMuted()),_t149=this._setNewVideoType(i[0]);s=s||_e207||_t149;}else{var _e208=this._setTrackMuteStatus(wn,void 0,!0),_t150=this._setNewVideoType();s=s||_e208||_t150;}s&&this.room.sendPresence();},td.prototype.isP2PActive=function(){return this.p2p;},td.prototype.getP2PConnectionState=function(){return this.isP2PActive()?this.p2pJingleSession.peerconnection.getConnectionState():null;},td.prototype.setDesktopSharingFrameRate=function(e){return"number"!=typeof e||isNaN(e)?(ed.error("Invalid value ".concat(e," specified for desktop capture frame rate")),!1):(this._desktopSharingFrameRate=e,this.jvbJingleSession&&this.jvbJingleSession.peerconnection.setDesktopSharingFrameRate(e),this.rtc.setDesktopSharingFrameRate(e),!0);},td.prototype.startP2PSession=function(){var e=this.getParticipants();if(1!==e.length)throw new Error("There must be exactly 1 participant to start the P2P session !");{var t=e[0].getJid();this._startP2PSession(t);}},td.prototype.stopP2PSession=function(e){this._stopP2PSession(e);},td.prototype.getSpeakerStats=function(){return this.speakerStatsCollector.getStats();},td.prototype.sendFacialExpression=function(e){this.xmpp.sendFacialExpressionEvent(this.room.roomjid,e);},td.prototype.setReceiverConstraints=function(e){this.receiveVideoController.setReceiverConstraints(e);},td.prototype.setReceiverVideoConstraint=function(e){this.receiveVideoController.setPreferredReceiveMaxFrameHeight(e);},td.prototype.setSenderVideoConstraint=function(e){return this.sendVideoController.setPreferredSendMaxFrameHeight(e);},td.prototype.createVideoSIPGWSession=function(e,t){return this.room?this.videoSIPGWHandler.createVideoSIPGWSession(e,t):new Error(Hc);},td.prototype._sendConferenceJoinAnalyticsEvent=function(){var e=this.getMeetingUniqueId();!this._conferenceJoinAnalyticsEventSent&&e&&null!==this.getActivePeerConnection()&&(jn.sendAnalytics(wt("joined",{meetingId:e,participantId:"".concat(e,".").concat(this._statsCurrentId)})),this._conferenceJoinAnalyticsEventSent=Date.now());},td.prototype._sendConferenceLeftAnalyticsEvent=function(){var e=this.getMeetingUniqueId();e&&this._conferenceJoinAnalyticsEventSent&&jn.sendAnalytics(wt("left",{meetingId:e,participantId:"".concat(e,".").concat(this._statsCurrentId),stats:{duration:Math.floor((Date.now()-this._conferenceJoinAnalyticsEventSent)/1e3),perf:this.getPerformanceStats()}}));},td.prototype._restartMediaSessions=function(){this.p2pJingleSession&&this._stopP2PSession({reasonDescription:"restart",requestRestart:!0}),this.jvbJingleSession&&this.jvbJingleSession.terminate(null,function(e){ed.warn("An error occurred while trying to terminate the JVB session",e);},{reason:"success",reasonDescription:"restart required",requestRestart:!0,sendSessionTerminate:!0}),this._maybeStartOrStopP2P(!1);},td.prototype.isE2EEEnabled=function(){return Boolean(this._e2eEncryption&&this._e2eEncryption.isEnabled());},td.prototype.isE2EESupported=function(){return Ji.isSupported(this.options.config);},td.prototype.toggleE2EE=function(e){this.isE2EESupported()?this._e2eEncryption.setEnabled(e):ed.warn("Cannot enable / disable E2EE: platform is not supported.");},td.prototype.setMediaEncryptionKey=function(e){this._e2eEncryption.setEncryptionKey(e);},td.prototype.isLobbySupported=function(){return Boolean(this.room&&this.room.getLobby().isSupported());},td.prototype.isMembersOnly=function(){return Boolean(this.room&&this.room.membersOnlyEnabled);},td.prototype.enableLobby=function(){return this.room&&this.isModerator()?this.room.getLobby().enable():Promise.reject(new Error("The conference not started or user is not moderator"));},td.prototype.disableLobby=function(){this.room&&this.isModerator()?this.room.getLobby().disable():ed.warn("Failed to disable lobby, ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator"));},td.prototype.joinLobby=function(e,t){return this.room?this.room.getLobby().join(e,t):Promise.reject(new Error("The conference not started"));},td.prototype.lobbyDenyAccess=function(e){this.room&&this.room.getLobby().denyAccess(e);},td.prototype.lobbyApproveAccess=function(e){this.room&&this.room.getLobby().approveAccess(e);},td.prototype.isAVModerationSupported=function(){return Boolean(this.room&&this.room.getAVModeration().isSupported());},td.prototype.enableAVModeration=function(e){this.room&&this.isModerator()&&(e===Rn||e===wn)?this.room.getAVModeration().enable(!0,e):ed.warn("Failed to enable AV moderation, ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator, ").concat(this.room&&this.isModerator()?"wrong media type passed":""));},td.prototype.disableAVModeration=function(e){this.room&&this.isModerator()&&(e===Rn||e===wn)?this.room.getAVModeration().enable(!1,e):ed.warn("Failed to disable AV moderation, ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator, ").concat(this.room&&this.isModerator()?"wrong media type passed":""));},td.prototype.avModerationApprove=function(e,t){if(this.room&&this.isModerator()&&(e===Rn||e===wn)){var _n108=this.getParticipantById(t);if(!_n108)return;this.room.getAVModeration().approve(e,_n108.getJid());}else ed.warn("AV moderation approve skipped , ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator, ").concat(this.room&&this.isModerator()?"wrong media type passed":""));},td.prototype.avModerationReject=function(e,t){if(this.room&&this.isModerator()&&(e===Rn||e===wn)){var _n109=this.getParticipantById(t);if(!_n109)return;this.room.getAVModeration().reject(e,_n109.getJid());}else ed.warn("AV moderation reject skipped , ".concat(this.room?"":"not in a room, ").concat(this.isModerator()?"":"participant is not a moderator, ").concat(this.room&&this.isModerator()?"wrong media type passed":""));},td.prototype.getBreakoutRooms=function(){var e;return null===(e=this.room)||void 0===e?void 0:e.getBreakoutRooms();},nd.prototype.connect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.xmpp.connect(e.id,e.password);},nd.prototype.attach=function(e){this.xmpp.attach(e);},nd.prototype.disconnect=function(){var _this$xmpp;return(_this$xmpp=this.xmpp).disconnect.apply(_this$xmpp,arguments);},nd.prototype.getJid=function(){return this.xmpp.getJid();},nd.prototype.setToken=function(e){this.token=e;},nd.prototype.initJitsiConference=function(e,t){return new td({name:e,config:t,connection:this});},nd.prototype.addEventListener=function(e,t){this.xmpp.addListener(e,t);},nd.prototype.removeEventListener=function(e,t){this.xmpp.removeListener(e,t);},nd.prototype.getConnectionTimes=function(){return this.xmpp.connectionTimes;},nd.prototype.addFeature=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.xmpp.caps.addFeature(e,t,!0);},nd.prototype.removeFeature=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.xmpp.caps.removeFeature(e,t,!0);},nd.prototype.getLogs=function(){var e=this.xmpp.getJingleLog(),t={};t.time=new Date(),t.url=window.location.href,t.ua=navigator.userAgent;var n=this.xmpp.getXmppLog();return n&&(t.xmpp=n),e.metadata=t,e;};var id="mediaDevices.devicechange",sd="rtc.permissions_changed",rd="mediaDevices.permissionPromptIsShown",od="mediaDevices.slowGetUserMedia",ad="microphone",cd="camera",dd=new(/*#__PURE__*/function(){function _class13(){var _this199=this;_classCallCheck(this,_class13);this._eventEmitter=new(nt())(),this._permissions={},va.addListener(Vn().DEVICE_LIST_CHANGED,function(e){return _this199._eventEmitter.emit(id,e);}),va.addListener(Vn().DEVICE_LIST_AVAILABLE,function(e){return _this199._logOutputDevice(_this199.getAudioOutputDevice(),e);}),va.addListener(Vn().PERMISSIONS_CHANGED,function(e){return _this199._handlePermissionsChange(e);}),this._permissionsApiSupported=new Promise(function(e){if(!navigator.permissions)return void e(!1);var t=_this199,n=[];n.push(navigator.permissions.query({name:cd}).then(function(e){return _this199._handlePermissionsChange(_defineProperty({},wn,_this199._parsePermissionState(e))),e.onchange=function(){try{t._handlePermissionsChange(_defineProperty({},wn,t._parsePermissionState(this)));}catch(e){}},!0;}).catch(function(){return!1;})),n.push(navigator.permissions.query({name:ad}).then(function(e){return _this199._handlePermissionsChange(_defineProperty({},Rn,_this199._parsePermissionState(e))),e.onchange=function(){try{t._handlePermissionsChange(_defineProperty({},Rn,t._parsePermissionState(this)));}catch(e){}},!0;}).catch(function(){return!1;})),Promise.all(n).then(function(t){return e(t.every(function(e){return e;}));});});}_createClass(_class13,[{key:"_parsePermissionState",value:function _parsePermissionState(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=e.state||e.status;if("string"!=typeof t)throw new TypeError();return"granted"===t;}},{key:"_handlePermissionsChange",value:function _handlePermissionsChange(e){var _this200=this;[Rn,wn].some(function(t){return t in e&&e[t]!==_this200._permissions[t];})&&(this._permissions=_objectSpread(_objectSpread({},this._permissions),e),this._eventEmitter.emit(sd,this._permissions),(this._permissions[Rn]||this._permissions[wn])&&this.enumerateDevices(function(){}));}},{key:"_logOutputDevice",value:function _logOutputDevice(e,t){var n=t.find(function(t){return"audiooutput"===t.kind&&t.deviceId===e;});n&&jn.sendActiveDeviceListEvent(va.getEventDataForActiveDevice(n));}},{key:"enumerateDevices",value:function enumerateDevices(e){va.enumerateDevices(e);}},{key:"isDeviceListAvailable",value:function isDeviceListAvailable(){return va.isDeviceListAvailable();}},{key:"isDeviceChangeAvailable",value:function isDeviceChangeAvailable(e){return va.isDeviceChangeAvailable(e);}},{key:"isDevicePermissionGranted",value:function isDevicePermissionGranted(e){var _this201=this;return new Promise(function(t){e in _this201._permissions?t(_this201._permissions[e]):_this201._permissionsApiSupported.then(function(n){if(!n)return void t(!1);var i=[];switch(e){case wn:i.push(navigator.permissions.query({name:cd}));break;case Rn:i.push(navigator.permissions.query({name:ad}));break;default:i.push(navigator.permissions.query({name:cd})),i.push(navigator.permissions.query({name:ad}));}Promise.all(i).then(function(e){return t(e.every(function(e){try{return _this201._parsePermissionState(e);}catch(_unused2){return!1;}}));},function(){return t(!1);});});});}},{key:"isMultipleAudioInputSupported",value:function isMultipleAudioInputSupported(){return!(nn.isFirefox()||nn.isIosBrowser());}},{key:"getAudioOutputDevice",value:function getAudioOutputDevice(){return va.getAudioOutputDevice();}},{key:"setAudioOutputDevice",value:function setAudioOutputDevice(e){return va.getCurrentlyAvailableMediaDevices().length>0&&this._logOutputDevice(e,va.getCurrentlyAvailableMediaDevices()),va.setAudioOutputDevice(e);}},{key:"addEventListener",value:function addEventListener(e,t){this._eventEmitter.addListener(e,t);}},{key:"removeEventListener",value:function removeEventListener(e,t){this._eventEmitter.removeListener(e,t);}},{key:"emitEvent",value:function emitEvent(e){var _this$_eventEmitter;for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(_this$_eventEmitter=this._eventEmitter).emit.apply(_this$_eventEmitter,[e].concat(n));}}]);return _class13;}())(),ld=(0,g.getLogger)("modules/detection/ActiveDeviceDetector.js");function hd(e){var _iterator86=_createForOfIteratorHelper(e),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var t=_step86.value;t.stopStream();}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}}var ud="connection-error-encountered",pd="session-initiate",md="session-terminate",fd=(0,g.getLogger)("modules/proxyconnection/ProxyConnectionPC.js");var gd=/*#__PURE__*/function(){function gd(){_classCallCheck(this,gd);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._options=_objectSpread({pcConfig:{},isInitiator:!1,receiveAudio:!1,receiveVideo:!1},e),this._tracks=[],this._peerConnection=null,this._onError=this._onError.bind(this),this._onRemoteStream=this._onRemoteStream.bind(this),this._onSendMessage=this._onSendMessage.bind(this);}_createClass(gd,[{key:"getPeerJid",value:function getPeerJid(){return this._options.peerJid;}},{key:"processMessage",value:function processMessage(e){switch(e.attr("action")){case"session-accept":this._onSessionAccept(e);break;case pd:this._onSessionInitiate(e);break;case md:this._onSessionTerminate(e);break;case"transport-info":this._onTransportInfo(e);}}},{key:"start",value:function start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._peerConnection||(this._tracks=this._tracks.concat(e),this._peerConnection=this._createPeerConnection(),this._peerConnection.invite(e));}},{key:"stop",value:function stop(){this._peerConnection&&this._peerConnection.terminate(),this._onSessionTerminate();}},{key:"_createPeerConnection",value:function _createPeerConnection(){var _this202=this;var e={connected:!0,jingle:{terminate:function terminate(){}},sendIQ:this._onSendMessage,addEventListener:function addEventListener(){return function(){};}},t=_objectSpread({iceServers:xr},this._options.pcConfig),n={addPresenceListener:function addPresenceListener(){},connectionTimes:[],eventEmitter:{emit:function emit(e){switch(e){case zn().CONNECTION_ICE_FAILED:case zn().CONNECTION_FAILED:_this202._onError(ud,e);}}},getMediaPresenceInfo:function getMediaPresenceInfo(){return{};},removePresenceListener:function removePresenceListener(){},supportsRestartByTerminate:function supportsRestartByTerminate(){return!1;}};this._rtc=new va({myUserId:function myUserId(){return"";}},{}),this._rtc.addListener(Vn().REMOTE_TRACK_ADDED,this._onRemoteStream);var i=new Cr(void 0,void 0,this._options.peerJid,e,{offerToReceiveAudio:this._options.receiveAudio,offerToReceiveVideo:this._options.receiveVideo},t,!0,this._options.isInitiator),s=new Zc();return s.setChatRoom(n),i.initialize(n,this._rtc,s,{}),i;}},{key:"_onError",value:function _onError(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this._options.onError(this._options.peerJid,e,t);}},{key:"_onRemoteStream",value:function _onRemoteStream(e){this._tracks.push(e),this._options.onRemoteStream(e);}},{key:"_onSendMessage",value:function _onSendMessage(e){this._options.onSendMessage(this._options.peerJid,e);}},{key:"_onSessionAccept",value:function _onSessionAccept(e){this._peerConnection?this._peerConnection.setAnswer(e):fd.error("Received an answer when no peer connection exists.");}},{key:"_onSessionInitiate",value:function _onSessionInitiate(e){var _this203=this;this._peerConnection?fd.error("Received an offer when an offer was already sent."):(this._peerConnection=this._createPeerConnection(),this._peerConnection.acceptOffer(e,function(){},function(){return _this203._onError(_this203._options.peerJid,ud,"session initiate error");}));}},{key:"_onSessionTerminate",value:function _onSessionTerminate(){this._tracks.forEach(function(e){return e.dispose();}),this._tracks=[],this._peerConnection&&this._peerConnection.onTerminated(),this._rtc&&(this._rtc.removeListener(Vn().REMOTE_TRACK_ADDED,this._onRemoteStream),this._rtc.destroy());}},{key:"_onTransportInfo",value:function _onTransportInfo(e){this._peerConnection.addIceCandidates(e);}}]);return gd;}();var _d=(0,g.getLogger)("modules/proxyconnection/ProxyConnectionService.js"),vd="preCallTestResults",Sd=new(nt())();var yd=!1,Ed=null;var Cd={init:function(){var _init=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(e){var t,n,i;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:if(!yd){_context17.next=2;break;}throw new Error("Precall Test already initialized");case 2:t=e.callStatsID,n=e.callStatsSecret,i=e.disableThirdPartyRequests;if(!(!t||!n||i)){_context17.next=5;break;}throw new Error("Callstats is disabled");case 5:_context17.next=7;return function(e){if(!nn.isReactNative())return new Promise(function(t){rn().loadScript(e.callStatsCustomScriptUrl||ot,!0,!0,void 0,t);});}(e);case 7:Ed=new window.callstats();return _context17.abrupt("return",function(e){return new Promise(function(t,n){var i=e.callStatsID,s=e.callStatsSecret,r=e.statisticsId||e.statisticsDisplayName||Is.callStatsUserName;Ed.initialize(i,s,r,function(e,i){"success"===e?(Ed.on(vd,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Sd.emit.apply(Sd,[vd].concat(t));}),yd=!0,t()):n({status:e,message:i});},null,{disablePrecalltest:!0});});}(e));case 9:case"end":return _context17.stop();}},_callee16);}));function init(_x18){return _init.apply(this,arguments);}return init;}(),execute:function execute(){return yd?new Promise(function(e,t){Sd.on(vd,function(n,i){"success"===n?e(i):t({status:n,payload:i});}),Ed.makePrecallTest();}):Promise.reject("uninitialized");}};var bd=n(4424),Td=n.n(bd);var Rd=(0,g.getLogger)("modules/webaudio/AudioMixer.js");var Ad=/*#__PURE__*/function(){function Ad(){_classCallCheck(this,Ad);this._started=!1,this._streamsToMix=[],this._streamMSSArray=[];}_createClass(Ad,[{key:"addMediaStream",value:function addMediaStream(e){e.getAudioTracks()||Rd.warn("Added MediaStream doesn\'t contain audio tracks."),this._streamsToMix.push(e);}},{key:"start",value:function start(){if(this._started)return this._mixedMSD.stream;if(this._audioContext=$a(),!this._streamsToMix.length)return Rd.warn("No MediaStream\'s added to AudioMixer, nothing will happen."),null;this._started=!0,this._mixedMSD=this._audioContext.createMediaStreamDestination();var _iterator87=_createForOfIteratorHelper(this._streamsToMix),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var _e209=_step87.value;var t=this._audioContext.createMediaStreamSource(_e209);t.connect(this._mixedMSD),this._streamMSSArray.push(t);}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}return this._mixedMSD.stream;}},{key:"reset",value:function reset(){this._started=!1,this._streamsToMix=[];var _iterator88=_createForOfIteratorHelper(this._streamMSSArray),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var _e210=_step88.value;_e210.disconnect();}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}this._streamMSSArray=[],this._audioContext&&(this._audioContext=void 0);}}]);return Ad;}();var wd=_().getLogger("JitsiMeetJS.js");function Id(e){var t={audio_requested:e.devices.includes("audio"),video_requested:e.devices.includes("video"),screen_sharing_requested:e.devices.includes("desktop")};return t.video_requested&&(t.resolution=e.resolution),t;}var Pd=function(e){return"object"==_typeof(window.JitsiMeetJS)?Object.assign({},window.JitsiMeetJS,e):e;}({version:"ead1e266",JitsiConnection:nd,ProxyConnectionService:/*#__PURE__*/function(){function ProxyConnectionService(){_classCallCheck(this,ProxyConnectionService);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=e.jitsiConnection,n=_objectWithoutProperties(e,_excluded2);this._options=_objectSpread({pcConfig:t&&t.xmpp.connection.jingle.p2pIceConfig},n),this._peerConnection=null,this._onFatalError=this._onFatalError.bind(this),this._onSendMessage=this._onSendMessage.bind(this),this._onRemoteStream=this._onRemoteStream.bind(this);}_createClass(ProxyConnectionService,[{key:"processMessage",value:function processMessage(e){var t=e.from;if(!t)return;if(this._peerConnection&&this._peerConnection.getPeerJid()!==t)return void this._onFatalError(t,ud,"rejected");var n=this._convertStringToXML(e.data.iq),i=n&&n.find("jingle"),s=i&&i.attr("action");s===pd&&(this._peerConnection=this._createPeerConnection(t,{isInitiator:!1,receiveVideo:!0})),this._peerConnection&&this._peerConnection.processMessage(i),s!==ud&&"unavailable"!==s&&s!==md||this._selfCloseConnection();}},{key:"start",value:function start(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._peerConnection=this._createPeerConnection(e,{isInitiator:!0,receiveVideo:!1}),this._peerConnection.start(t);}},{key:"stop",value:function stop(){this._peerConnection&&this._peerConnection.stop(),this._peerConnection=null;}},{key:"_convertStringToXML",value:function _convertStringToXML(e){try{var t=new DOMParser().parseFromString(e,"text/xml");return $CC(t);}catch(e){return _d.error("Attempted to convert incorrectly formatted xml"),null;}}},{key:"_createPeerConnection",value:function _createPeerConnection(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Cannot create ProxyConnectionPC without a peer.");var n=_objectSpread({pcConfig:this._options.pcConfig,onError:this._onFatalError,onRemoteStream:this._onRemoteStream,onSendMessage:this._onSendMessage,peerJid:e},t);return new gd(n);}},{key:"_onFatalError",value:function _onFatalError(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";_d.error("Received a proxy connection error",e,t,n);var i=(0,rt.$iq)({to:e,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:t}).c("details").t(n).up();this._onSendMessage(e,i),this._peerConnection&&this._peerConnection.getPeerJid()===e&&this._selfCloseConnection();}},{key:"_onRemoteStream",value:function _onRemoteStream(e){if(!this._options.onRemoteStream)return _d.error("Remote track received without callback."),void e.dispose();var t=e.isVideoTrack();var n;t&&(n=this._options.convertVideoToDesktop?Hn().DESKTOP:Hn().CAMERA);var i=e.getOriginalStream(),s=va.createLocalTracks([{deviceId:"proxy:".concat(this._peerConnection.getPeerJid()),mediaType:t?wn:Rn,sourceType:"proxy",stream:i,track:i.getVideoTracks()[0],videoType:n}]);this._options.onRemoteStream(s[0]);}},{key:"_onSendMessage",value:function _onSendMessage(e,t){if(this._options.onSendMessage)try{var _n110=new XMLSerializer().serializeToString(t.nodeTree||t);this._options.onSendMessage(e,{iq:_n110});}catch(e){_d.error("Attempted to send an incorrectly formatted iq.");}}},{key:"_selfCloseConnection",value:function _selfCloseConnection(){this.stop(),this._options.onConnectionClosed&&this._options.onConnectionClosed();}}]);return ProxyConnectionService;}(),constants:{participantConnectionStatus:ri,recording:{error:{BUSY:"busy",ERROR:"error",RESOURCE_CONSTRAINT:"resource-constraint",UNEXPECTED_REQUEST:"unexpected-request",SERVICE_UNAVAILABLE:"service-unavailable"},mode:{FILE:"file",STREAM:"stream"},status:{OFF:"off",ON:"on",PENDING:"pending"}},sipVideoGW:m,transcriptionStatus:l},events:{conference:s,connection:c,detection:u,track:a,mediaDevices:f,connectionQuality:h,e2eping:p},errors:{conference:i,connection:d,track:r},errorTypes:{JitsiTrackError:Et},logLevels:_().levels,mediaDevices:dd,analytics:jn.analytics,init:function init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Is.init(e.externalStorage),jn.init(e),Hs.init(e.flags||{}),window.connectionTimes||(window.connectionTimes={}),!0!==e.enableAnalyticsLogging&&(wd.warn("Analytics disabled, disposing."),this.analytics.dispose()),e.enableWindowOnErrorHandler&&dn().addHandler(this.getGlobalOnErrorHandler.bind(this)),this.version){var _e211={id:"component_version",component:"lib-jitsi-meet",version:this.version};jn.sendLog(JSON.stringify(_e211));}return va.init(e);},isDesktopSharingEnabled:function isDesktopSharingEnabled(){return va.isDesktopSharingEnabled();},isWebRtcSupported:function isWebRtcSupported(){return va.isWebRtcSupported();},setLogLevel:function setLogLevel(e){_().setLogLevel(e);},setLogLevelById:function setLogLevelById(e,t){_().setLogLevelById(e,t);},addGlobalLogTransport:function addGlobalLogTransport(e){_().addGlobalTransport(e);},removeGlobalLogTransport:function removeGlobalLogTransport(e){_().removeGlobalTransport(e);},setGlobalLogOptions:function setGlobalLogOptions(e){_().setGlobalOptions(e);},createLocalTracks:function createLocalTracks(){var _this204=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=!1;var i=e.firePermissionPromptIsShownEvent,s=e.fireSlowPromiseEvent,r=_objectWithoutProperties(e,_excluded3);return!i&&!t||va.arePermissionsGrantedForAvailableDevices()?s&&window.setTimeout(function(){n||dd.emitEvent(od);},1e3):dd.emitEvent(rd,nn.getName()),window.connectionTimes||(window.connectionTimes={}),window.connectionTimes["obtainPermissions.start"]=window.performance.now(),va.obtainAudioAndVideoPermissions(r).then(function(e){if(n=!0,window.connectionTimes["obtainPermissions.end"]=window.performance.now(),jn.sendAnalytics(Pt("success",Id(r))),!va.options.disableAudioLevels){var _loop15=function _loop15(){var n=e[_t151],i=n.getOriginalStream();n.getType()===Rn&&(jn.startLocalStats(i,n.setAudioLevel.bind(n)),n.addEventListener(Xn,function(){jn.stopLocalStats(i);}));};for(var _t151=0;_t151<e.length;_t151++){_loop15();}}var t=va.getCurrentlyAvailableMediaDevices();if(t)for(var _n111=0;_n111<e.length;_n111++)e[_n111]._setRealDeviceIdFromDeviceList(t);var _iterator89=_createForOfIteratorHelper(e),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _t152=_step89.value;_t152.type===wn&&"desktop"===_t152.videoType&&_this204.setVideoTrackContentHints(_t152.track,"detail");}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}return e;}).catch(function(t){if(n=!0,t.name===mt){var _e212={id:"screensharing_user_canceled",message:t.message};jn.sendLog(JSON.stringify(_e212)),jn.sendAnalytics(Pt("warning",{reason:"extension install user canceled"}));}else if(t.name===ht){var _n112={id:"usermedia_missing_device",status:t.gum.devices};jn.sendLog(JSON.stringify(_n112));var _i103=Id(e);_i103.reason="device not found",_i103.devices=t.gum.devices.join("."),jn.sendAnalytics(Pt("error",_i103));}else{jn.sendGetUserMediaFailed(t);var _n113=Id(e);_n113.reason=t.name,jn.sendAnalytics(Pt("error",_n113));}return window.connectionTimes["obtainPermissions.end"]=window.performance.now(),Promise.reject(t);});},createTrackVADEmitter:function createTrackVADEmitter(e,t,n){return Ua.create(e,t,n);},createAudioMixer:function createAudioMixer(){return new Ad();},getActiveAudioDevice:function getActiveAudioDevice(){return new Promise(function(e){va.enumerateDevices(function(t){var n=t.filter(function(e){return"audioinput"===e.kind;}),i=[];var _iterator90=_createForOfIteratorHelper(n),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _e214=_step90.value;var _t153=va.obtainAudioAndVideoPermissions({devices:["audio"],micDeviceId:_e214.deviceId}).then(function(e){var t=e[0],n=t.getOriginalStream();return jn.startLocalStats(n,t.setAudioLevel.bind(t)),t.addEventListener(Xn,function(){jn.stopLocalStats(n);}),t;});i.push(_t153);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}Promise.allSettled(i).then(function(t){var n=t.filter(function(e){return"fulfilled"===e.status;}),i=t.filter(function(e){return"rejected"===e.status;}),s=n.map(function(e){return e.value;}),r=i.map(function(e){return e.value;});var _iterator91=_createForOfIteratorHelper(r),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _e213=_step91.value;ld.error("Failed to acquire audio device with error: ",_e213);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}var _iterator92=_createForOfIteratorHelper(s),_step92;try{var _loop16=function _loop16(){var t=_step92.value;t.on(Yn,function(n){n>.008&&(hd(s),e({deviceId:t.deviceId,deviceLabel:t.track.label}));});};for(_iterator92.s();!(_step92=_iterator92.n()).done;){_loop16();}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}setTimeout(function(){hd(s),e({deviceId:"",deviceLabel:""});},3e3);});});});},isDeviceListAvailable:function isDeviceListAvailable(){return wd.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.isDeviceListAvailable instead"),this.mediaDevices.isDeviceListAvailable();},isDeviceChangeAvailable:function isDeviceChangeAvailable(e){return wd.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead"),this.mediaDevices.isDeviceChangeAvailable(e);},isMultipleAudioInputSupported:function isMultipleAudioInputSupported(){return this.mediaDevices.isMultipleAudioInputSupported();},isCollectingLocalStats:function isCollectingLocalStats(){return jn.audioLevelsEnabled&&vn.isLocalStatsSupported();},enumerateDevices:function enumerateDevices(e){wd.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.enumerateDevices instead"),this.mediaDevices.enumerateDevices(e);},getGlobalOnErrorHandler:function getGlobalOnErrorHandler(e,t,n,i,s){wd.error("UnhandledError: ".concat(e),"Script: ".concat(t),"Line: ".concat(n),"Column: ".concat(i),"StackTrace: ",s),jn.reportGlobalError(s);},setNetworkInfo:function setNetworkInfo(e){var t=e.isOnline;Zi.updateNetworkInfo({isOnline:t});},setVideoTrackContentHints:function setVideoTrackContentHints(e,t){"contentHint"in e?(e.contentHint=t,e.contentHint!==t&&wd.debug("Invalid video track contentHint")):wd.debug("MediaStreamTrack contentHint attribute not supported");},precallTest:Cd,util:{AuthUtil:Td(),ScriptUtil:rn(),browser:nn}});},9755:function _(e,t,n){e.exports=function(){"use strict";var e=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function t(e){return t="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return _typeof(e);}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof(e);},t(e);}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n;}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e);}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}();}var s=function s(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n;},r=function r(e){if("string"!=typeof e)throw new Error("str2binl was passed a non-string");for(var t=[],n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t;},o=function o(e,t,n,i,r,_o22){return s((a=s(s(t,e),s(i,_o22)))<<(c=r)|a>>>32-c,n);var a,c;},a=function a(e,t,n,i,s,r,_a10){return o(t&n|~t&i,e,t,s,r,_a10);},c=function c(e,t,n,i,s,r,a){return o(t&i|n&~i,e,t,s,r,a);},d=function d(e,t,n,i,s,r,a){return o(t^n^i,e,t,s,r,a);},l=function l(e,t,n,i,s,r,a){return o(n^(t|~i),e,t,s,r,a);},h=function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n,i,r,o,h=1732584193,u=-271733879,p=-1732584194,m=271733878,f=0;f<e.length;f+=16)n=h,i=u,r=p,o=m,h=a(h,u,p,m,e[f+0],7,-680876936),m=a(m,h,u,p,e[f+1],12,-389564586),p=a(p,m,h,u,e[f+2],17,606105819),u=a(u,p,m,h,e[f+3],22,-1044525330),h=a(h,u,p,m,e[f+4],7,-176418897),m=a(m,h,u,p,e[f+5],12,1200080426),p=a(p,m,h,u,e[f+6],17,-1473231341),u=a(u,p,m,h,e[f+7],22,-45705983),h=a(h,u,p,m,e[f+8],7,1770035416),m=a(m,h,u,p,e[f+9],12,-1958414417),p=a(p,m,h,u,e[f+10],17,-42063),u=a(u,p,m,h,e[f+11],22,-1990404162),h=a(h,u,p,m,e[f+12],7,1804603682),m=a(m,h,u,p,e[f+13],12,-40341101),p=a(p,m,h,u,e[f+14],17,-1502002290),u=a(u,p,m,h,e[f+15],22,1236535329),h=c(h,u,p,m,e[f+1],5,-165796510),m=c(m,h,u,p,e[f+6],9,-1069501632),p=c(p,m,h,u,e[f+11],14,643717713),u=c(u,p,m,h,e[f+0],20,-373897302),h=c(h,u,p,m,e[f+5],5,-701558691),m=c(m,h,u,p,e[f+10],9,38016083),p=c(p,m,h,u,e[f+15],14,-660478335),u=c(u,p,m,h,e[f+4],20,-405537848),h=c(h,u,p,m,e[f+9],5,568446438),m=c(m,h,u,p,e[f+14],9,-1019803690),p=c(p,m,h,u,e[f+3],14,-187363961),u=c(u,p,m,h,e[f+8],20,1163531501),h=c(h,u,p,m,e[f+13],5,-1444681467),m=c(m,h,u,p,e[f+2],9,-51403784),p=c(p,m,h,u,e[f+7],14,1735328473),u=c(u,p,m,h,e[f+12],20,-1926607734),h=d(h,u,p,m,e[f+5],4,-378558),m=d(m,h,u,p,e[f+8],11,-2022574463),p=d(p,m,h,u,e[f+11],16,1839030562),u=d(u,p,m,h,e[f+14],23,-35309556),h=d(h,u,p,m,e[f+1],4,-1530992060),m=d(m,h,u,p,e[f+4],11,1272893353),p=d(p,m,h,u,e[f+7],16,-155497632),u=d(u,p,m,h,e[f+10],23,-1094730640),h=d(h,u,p,m,e[f+13],4,681279174),m=d(m,h,u,p,e[f+0],11,-358537222),p=d(p,m,h,u,e[f+3],16,-722521979),u=d(u,p,m,h,e[f+6],23,76029189),h=d(h,u,p,m,e[f+9],4,-640364487),m=d(m,h,u,p,e[f+12],11,-421815835),p=d(p,m,h,u,e[f+15],16,530742520),u=d(u,p,m,h,e[f+2],23,-995338651),h=l(h,u,p,m,e[f+0],6,-198630844),m=l(m,h,u,p,e[f+7],10,1126891415),p=l(p,m,h,u,e[f+14],15,-1416354905),u=l(u,p,m,h,e[f+5],21,-57434055),h=l(h,u,p,m,e[f+12],6,1700485571),m=l(m,h,u,p,e[f+3],10,-1894986606),p=l(p,m,h,u,e[f+10],15,-1051523),u=l(u,p,m,h,e[f+1],21,-2054922799),h=l(h,u,p,m,e[f+8],6,1873313359),m=l(m,h,u,p,e[f+15],10,-30611744),p=l(p,m,h,u,e[f+6],15,-1560198380),u=l(u,p,m,h,e[f+13],21,1309151649),h=l(h,u,p,m,e[f+4],6,-145523070),m=l(m,h,u,p,e[f+11],10,-1120210379),p=l(p,m,h,u,e[f+2],15,718787259),u=l(u,p,m,h,e[f+9],21,-343485551),h=s(h,n),u=s(u,i),p=s(p,r),m=s(m,o);return[h,u,p,m];},u={hexdigest:function hexdigest(e){return function(e){for(var t="0123456789abcdef",n="",i=0;i<4*e.length;i++)n+=t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15);return n;}(h(r(e),8*e.length));},hash:function hash(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t;}(h(r(e),8*e.length));}};function p(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;var n,i,s,r,o,a,c,d,l=new Array(80),h=1732584193,u=-271733879,p=-1732584194,g=271733878,S=-1009589776;for(n=0;n<e.length;n+=16){for(r=h,o=u,a=p,c=g,d=S,i=0;i<80;i++)l[i]=i<16?e[n+i]:v(l[i-3]^l[i-8]^l[i-14]^l[i-16],1),s=_(_(v(h,5),m(i,u,p,g)),_(_(S,l[i]),f(i))),S=g,g=p,p=v(u,30),u=h,h=s;h=_(h,r),u=_(u,o),p=_(p,a),g=_(g,c),S=_(S,d);}return[h,u,p,g,S];}function m(e,t,n,i){return e<20?t&n|~t&i:e<40?t^n^i:e<60?t&n|t&i|n&i:t^n^i;}function f(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514;}function g(e,t){var n=S(e);n.length>16&&(n=p(n,8*e.length));for(var i=new Array(16),s=new Array(16),r=0;r<16;r++)i[r]=909522486^n[r],s[r]=1549556828^n[r];var o=p(i.concat(S(t)),512+8*t.length);return p(s.concat(o),672);}function _(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n;}function v(e,t){return e<<t|e>>>32-t;}function S(e){for(var t=[],n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t;}function y(e){for(var t,n,i="",s=0;s<4*e.length;s+=3)for(t=(e[s>>2]>>8*(3-s%4)&255)<<16|(e[s+1>>2]>>8*(3-(s+1)%4)&255)<<8|e[s+2>>2]>>8*(3-(s+2)%4)&255,n=0;n<4;n++)8*s+6*n>32*e.length?i+="=":i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t>>6*(3-n)&63);return i;}function E(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t;}var C={b64_hmac_sha1:function b64_hmac_sha1(e,t){return y(g(e,t));},b64_sha1:function b64_sha1(e){return y(p(S(e),8*e.length));},binb2str:E,core_hmac_sha1:g,str_hmac_sha1:function str_hmac_sha1(e,t){return E(g(e,t));},str_sha1:function str_sha1(e){return E(p(S(e),8*e.length));}},b=function b(e){var t,n,i="",s=e.length;for(t=0;t<s;t++)(n=e.charCodeAt(t))>=0&&n<=127?i+=e.charAt(t):n>2047?(i+=String.fromCharCode(224|n>>12&15),i+=String.fromCharCode(128|n>>6&63),i+=String.fromCharCode(128|n>>0&63)):(i+=String.fromCharCode(192|n>>6&31),i+=String.fromCharCode(128|n>>0&63));return i;},T=function T(e){for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var i="",s="",r="",o=e[n],a="object"===t(o),c=escape(unescape(a?o.value:o));a&&(i=o.expires?";expires="+o.expires:"",s=o.domain?";domain="+o.domain:"",r=o.path?";path="+o.path:""),document.cookie=n+"="+c+i+s+r;}};function R(e,t){return new I.Builder(e,t);}function A(e){return new I.Builder("iq",e);}function w(e){return new I.Builder("presence",e);}var I={VERSION:"@VERSION@",NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",FRAMING:"urn:ietf:params:xml:ns:xmpp-framing",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas",XHTML_IM:"http://jabber.org/protocol/xhtml-im",XHTML:"http://www.w3.org/1999/xhtml"},XHTML:{tags:["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul","body"],attributes:{a:["href"],blockquote:["style"],br:[],cite:["style"],em:[],img:["src","alt","style","height","width"],li:["style"],ol:["style"],p:["style"],span:["style"],strong:[],ul:["style"],body:[]},css:["background-color","color","font-family","font-size","font-style","font-weight","margin-left","margin-right","text-align","text-decoration"],validTag:function validTag(e){for(var t=0;t<I.XHTML.tags.length;t++)if(e===I.XHTML.tags[t])return!0;return!1;},validAttribute:function validAttribute(e,t){if(void 0!==I.XHTML.attributes[e]&&I.XHTML.attributes[e].length>0)for(var n=0;n<I.XHTML.attributes[e].length;n++)if(t===I.XHTML.attributes[e][n])return!0;return!1;},validCSS:function validCSS(e){for(var t=0;t<I.XHTML.css.length;t++)if(e===I.XHTML.css[t])return!0;return!1;}},Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8,REDIRECT:9,CONNTIMEOUT:10,BINDREQUIRED:11},ErrorCondition:{BAD_FORMAT:"bad-format",CONFLICT:"conflict",MISSING_JID_NODE:"x-strophe-bad-non-anon-jid",NO_AUTH_MECH:"no-auth-mech",UNKNOWN_REASON:"unknown"},LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},ElementType:{NORMAL:1,TEXT:3,CDATA:4,FRAGMENT:11},TIMEOUT:1.1,SECONDARY_TIMEOUT:.1,addNamespace:function addNamespace(e,t){I.NS[e]=t;},forEachChild:function forEachChild(e,t,n){for(var i=0;i<e.childNodes.length;i++){var s=e.childNodes[i];s.nodeType!==I.ElementType.NORMAL||t&&!this.isTagEqual(s,t)||n(s);}},isTagEqual:function isTagEqual(e,t){return e.tagName===t;},_xmlGenerator:null,_makeGenerator:function _makeGenerator(){var e;return void 0===document.implementation.createDocument||document.implementation.createDocument&&document.documentMode&&document.documentMode<10?(e=this._getIEXmlDom()).appendChild(e.createElement("strophe")):e=document.implementation.createDocument("jabber:client","strophe",null),e;},xmlGenerator:function xmlGenerator(){return I._xmlGenerator||(I._xmlGenerator=I._makeGenerator()),I._xmlGenerator;},_getIEXmlDom:function _getIEXmlDom(){for(var e=null,t=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"],n=0;n<t.length&&null===e;n++)try{e=new ActiveXObject(t[n]);}catch(t){e=null;}return e;},xmlElement:function xmlElement(e){if(!e)return null;for(var n=I.xmlGenerator().createElement(e),i=1;i<arguments.length;i++){var s=arguments[i];if(s)if("string"==typeof s||"number"==typeof s)n.appendChild(I.xmlTextNode(s));else if("object"===t(s)&&"function"==typeof s.sort)for(var r=0;r<s.length;r++){var o=s[r];"object"===t(o)&&"function"==typeof o.sort&&void 0!==o[1]&&null!==o[1]&&n.setAttribute(o[0],o[1]);}else if("object"===t(s))for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&void 0!==s[a]&&null!==s[a]&&n.setAttribute(a,s[a]);}return n;},xmlescape:function xmlescape(e){return(e=(e=(e=(e=e.replace(/\\&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;")).replace(/\'/g,"&apos;")).replace(/"/g,"&quot;");},xmlunescape:function xmlunescape(e){return(e=(e=(e=(e=e.replace(/\\&amp;/g,"&")).replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&apos;/g,"\'")).replace(/&quot;/g,\'"\');},xmlTextNode:function xmlTextNode(e){return I.xmlGenerator().createTextNode(e);},xmlHtmlNode:function xmlHtmlNode(e){var t;return DOMParser?t=new DOMParser().parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)),t;},getText:function getText(e){if(!e)return null;var t="";0===e.childNodes.length&&e.nodeType===I.ElementType.TEXT&&(t+=e.nodeValue);for(var n=0;n<e.childNodes.length;n++)e.childNodes[n].nodeType===I.ElementType.TEXT&&(t+=e.childNodes[n].nodeValue);return I.xmlescape(t);},copyElement:function copyElement(e){var t;if(e.nodeType===I.ElementType.NORMAL){t=I.xmlElement(e.tagName);for(var n=0;n<e.attributes.length;n++)t.setAttribute(e.attributes[n].nodeName,e.attributes[n].value);for(var i=0;i<e.childNodes.length;i++)t.appendChild(I.copyElement(e.childNodes[i]));}else e.nodeType===I.ElementType.TEXT&&(t=I.xmlGenerator().createTextNode(e.nodeValue));return t;},createHtml:function createHtml(e){var n;if(e.nodeType===I.ElementType.NORMAL){var i=e.nodeName.toLowerCase();if(I.XHTML.validTag(i))try{n=I.xmlElement(i);for(var s=0;s<I.XHTML.attributes[i].length;s++){var r=I.XHTML.attributes[i][s],o=e.getAttribute(r);if(null!=o&&""!==o&&!1!==o&&0!==o)if("style"===r&&"object"===t(o)&&void 0!==o.cssText&&(o=o.cssText),"style"===r){for(var a=[],c=o.split(";"),d=0;d<c.length;d++){var l=c[d].split(":"),h=l[0].replace(/^\\s*/,"").replace(/\\s*$/,"").toLowerCase();if(I.XHTML.validCSS(h)){var u=l[1].replace(/^\\s*/,"").replace(/\\s*$/,"");a.push(h+": "+u);}}a.length>0&&(o=a.join("; "),n.setAttribute(r,o));}else n.setAttribute(r,o);}for(var p=0;p<e.childNodes.length;p++)n.appendChild(I.createHtml(e.childNodes[p]));}catch(e){n=I.xmlTextNode("");}else{n=I.xmlGenerator().createDocumentFragment();for(var m=0;m<e.childNodes.length;m++)n.appendChild(I.createHtml(e.childNodes[m]));}}else if(e.nodeType===I.ElementType.FRAGMENT){n=I.xmlGenerator().createDocumentFragment();for(var f=0;f<e.childNodes.length;f++)n.appendChild(I.createHtml(e.childNodes[f]));}else e.nodeType===I.ElementType.TEXT&&(n=I.xmlTextNode(e.nodeValue));return n;},escapeNode:function escapeNode(e){return"string"!=typeof e?e:e.replace(/^\\s+|\\s+$/g,"").replace(/\\\\/g,"\\\\5c").replace(/ /g,"\\\\20").replace(/\\"/g,"\\\\22").replace(/\\&/g,"\\\\26").replace(/\\\'/g,"\\\\27").replace(/\\//g,"\\\\2f").replace(/:/g,"\\\\3a").replace(/</g,"\\\\3c").replace(/>/g,"\\\\3e").replace(/@/g,"\\\\40");},unescapeNode:function unescapeNode(e){return"string"!=typeof e?e:e.replace(/\\\\20/g," ").replace(/\\\\22/g,\'"\').replace(/\\\\26/g,"&").replace(/\\\\27/g,"\'").replace(/\\\\2f/g,"/").replace(/\\\\3a/g,":").replace(/\\\\3c/g,"<").replace(/\\\\3e/g,">").replace(/\\\\40/g,"@").replace(/\\\\5c/g,"\\\\");},getNodeFromJid:function getNodeFromJid(e){return e.indexOf("@")<0?null:e.split("@")[0];},getDomainFromJid:function getDomainFromJid(e){var t=I.getBareJidFromJid(e);if(t.indexOf("@")<0)return t;var n=t.split("@");return n.splice(0,1),n.join("@");},getResourceFromJid:function getResourceFromJid(e){if(!e)return null;var t=e.split("/");return t.length<2?null:(t.splice(0,1),t.join("/"));},getBareJidFromJid:function getBareJidFromJid(e){return e?e.split("/")[0]:null;},_handleError:function _handleError(e){void 0!==e.stack&&I.fatal(e.stack),e.sourceURL?I.fatal("error: "+this.handler+" "+e.sourceURL+":"+e.line+" - "+e.name+": "+e.message):e.fileName?I.fatal("error: "+this.handler+" "+e.fileName+":"+e.lineNumber+" - "+e.name+": "+e.message):I.fatal("error: "+e.message);},log:function log(e,n){e===this.LogLevel.FATAL&&"object"===t(window.console)&&"function"==typeof window.console.error&&window.console.error(n);},debug:function debug(e){this.log(this.LogLevel.DEBUG,e);},info:function info(e){this.log(this.LogLevel.INFO,e);},warn:function warn(e){this.log(this.LogLevel.WARN,e);},error:function error(e){this.log(this.LogLevel.ERROR,e);},fatal:function fatal(e){this.log(this.LogLevel.FATAL,e);},serialize:function serialize(e){if(!e)return null;"function"==typeof e.tree&&(e=e.tree());var t=i(Array(e.attributes.length).keys()).map(function(t){return e.attributes[t].nodeName;});t.sort();var n=t.reduce(function(t,n){return"".concat(t," ").concat(n,\'="\').concat(I.xmlescape(e.attributes.getNamedItem(n).value),\'"\');},"<".concat(e.nodeName));if(e.childNodes.length>0){n+=">";for(var s=0;s<e.childNodes.length;s++){var r=e.childNodes[s];switch(r.nodeType){case I.ElementType.NORMAL:n+=I.serialize(r);break;case I.ElementType.TEXT:n+=I.xmlescape(r.nodeValue);break;case I.ElementType.CDATA:n+="<![CDATA["+r.nodeValue+"]]>";}}n+="</"+e.nodeName+">";}else n+="/>";return n;},_requestId:0,_connectionPlugins:{},addConnectionPlugin:function addConnectionPlugin(e,t){I._connectionPlugins[e]=t;},Builder:function Builder(e,t){"presence"!==e&&"message"!==e&&"iq"!==e||(t&&!t.xmlns?t.xmlns=I.NS.CLIENT:t||(t={xmlns:I.NS.CLIENT})),this.nodeTree=I.xmlElement(e,t),this.node=this.nodeTree;}};I.Builder.prototype={tree:function tree(){return this.nodeTree;},toString:function toString(){return I.serialize(this.nodeTree);},up:function up(){return this.node=this.node.parentNode,this;},root:function root(){return this.node=this.nodeTree,this;},attrs:function attrs(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(void 0===e[t]?this.node.removeAttribute(t):this.node.setAttribute(t,e[t]));return this;},c:function c(e,t,n){var i=I.xmlElement(e,t,n);return this.node.appendChild(i),"string"!=typeof n&&"number"!=typeof n&&(this.node=i),this;},cnode:function cnode(e){var t,n=I.xmlGenerator();try{t=void 0!==n.importNode;}catch(e){t=!1;}var i=t?n.importNode(e,!0):I.copyElement(e);return this.node.appendChild(i),this.node=i,this;},t:function t(e){var t=I.xmlTextNode(e);return this.node.appendChild(t),this;},h:function h(e){var t=document.createElement("body");t.innerHTML=e;for(var n=I.createHtml(t);n.childNodes.length>0;)this.node.appendChild(n.childNodes[0]);return this;}},I.Handler=function(e,t,n,i,s,r,o){this.handler=e,this.ns=t,this.name=n,this.type=i,this.id=s,this.options=o||{matchBareFromJid:!1,ignoreNamespaceFragment:!1},this.options.matchBare&&(I.warn(\'The "matchBare" option is deprecated, use "matchBareFromJid" instead.\'),this.options.matchBareFromJid=this.options.matchBare,delete this.options.matchBare),this.options.matchBareFromJid?this.from=r?I.getBareJidFromJid(r):null:this.from=r,this.user=!0;},I.Handler.prototype={getNamespace:function getNamespace(e){var t=e.getAttribute("xmlns");return t&&this.options.ignoreNamespaceFragment&&(t=t.split("#")[0]),t;},namespaceMatch:function namespaceMatch(e){var t=this,n=!1;return!this.ns||(I.forEachChild(e,null,function(e){t.getNamespace(e)===t.ns&&(n=!0);}),n||this.getNamespace(e)===this.ns);},isMatch:function isMatch(e){var t=e.getAttribute("from");this.options.matchBareFromJid&&(t=I.getBareJidFromJid(t));var n=e.getAttribute("type");return!(!this.namespaceMatch(e)||this.name&&!I.isTagEqual(e,this.name)||this.type&&(Array.isArray(this.type)?-1===this.type.indexOf(n):n!==this.type)||this.id&&e.getAttribute("id")!==this.id||this.from&&t!==this.from);},run:function run(e){var t=null;try{t=this.handler(e);}catch(e){throw I._handleError(e),e;}return t;},toString:function toString(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}";}},I.TimedHandler=function(e,t){this.period=e,this.handler=t,this.lastCalled=new Date().getTime(),this.user=!0;},I.TimedHandler.prototype={run:function run(){return this.lastCalled=new Date().getTime(),this.handler();},reset:function reset(){this.lastCalled=new Date().getTime();},toString:function toString(){return"{TimedHandler: "+this.handler+"("+this.period+")}";}},I.Connection=function(e,t){var n=this;this.service=e,this.options=t||{};var i=this.options.protocol||"";for(var s in 0===e.indexOf("ws:")||0===e.indexOf("wss:")||0===i.indexOf("ws")?this._proto=new I.Websocket(this):this._proto=new I.Bosh(this),this.jid="",this.domain=null,this.features=null,this._sasl_data={},this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this.protocolErrorHandlers={HTTP:{},websocket:{}},this._idleTimeout=null,this._disconnectTimeout=null,this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.do_authentication=!0,this.paused=!1,this.restored=!1,this._data=[],this._uniqueId=0,this._sasl_success_handler=null,this._sasl_failure_handler=null,this._sasl_challenge_handler=null,this.maxRetries=5,this._idleTimeout=setTimeout(function(){return n._onIdle();},100),T(this.options.cookies),this.registerSASLMechanisms(this.options.mechanisms),I._connectionPlugins)if(Object.prototype.hasOwnProperty.call(I._connectionPlugins,s)){var r=function r(){};r.prototype=I._connectionPlugins[s],this[s]=new r(),this[s].init(this);}},I.Connection.prototype={reset:function reset(){this._proto._reset(),this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.restored=!1,this._data=[],this._requests=[],this._uniqueId=0;},pause:function pause(){this.paused=!0;},resume:function resume(){this.paused=!1;},getUniqueId:function getUniqueId(e){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16);});return"string"==typeof e||"number"==typeof e?t+":"+e:t+"";},addProtocolErrorHandler:function addProtocolErrorHandler(e,t,n){this.protocolErrorHandlers[e][t]=n;},connect:function connect(e,t,n,i,s,r,o){this.jid=e,this.authzid=I.getBareJidFromJid(this.jid),this.authcid=o||I.getNodeFromJid(this.jid),this.pass=t,this.servtype="xmpp",this.connect_callback=n,this.disconnecting=!1,this.connected=!1,this.authenticated=!1,this.restored=!1,this.domain=I.getDomainFromJid(this.jid),this._changeConnectStatus(I.Status.CONNECTING,null),this._proto._connect(i,s,r);},attach:function attach(e,t,n,i,s,r,o){if(!(this._proto instanceof I.Bosh)){var a=new Error(\'The "attach" method can only be used with a BOSH connection.\');throw a.name="StropheSessionError",a;}this._proto._attach(e,t,n,i,s,r,o);},restore:function restore(e,t,n,i,s){if(!this._sessionCachingSupported()){var r=new Error(\'The "restore" method can only be used with a BOSH connection.\');throw r.name="StropheSessionError",r;}this._proto._restore(e,t,n,i,s);},_sessionCachingSupported:function _sessionCachingSupported(){if(this._proto instanceof I.Bosh){if(!JSON)return!1;try{sessionStorage.setItem("_strophe_","_strophe_"),sessionStorage.removeItem("_strophe_");}catch(e){return!1;}return!0;}return!1;},xmlInput:function xmlInput(e){},xmlOutput:function xmlOutput(e){},rawInput:function rawInput(e){},rawOutput:function rawOutput(e){},nextValidRid:function nextValidRid(e){},send:function send(e){if(null!==e){if("function"==typeof e.sort)for(var t=0;t<e.length;t++)this._queueData(e[t]);else"function"==typeof e.tree?this._queueData(e.tree()):this._queueData(e);this._proto._send();}},flush:function flush(){clearTimeout(this._idleTimeout),this._onIdle();},sendPresence:function sendPresence(e,t,n,i){var s=this,r=null;"function"==typeof e.tree&&(e=e.tree());var o=e.getAttribute("id");if(o||(o=this.getUniqueId("sendPresence"),e.setAttribute("id",o)),"function"==typeof t||"function"==typeof n){var a=this.addHandler(function(e){r&&s.deleteTimedHandler(r),"error"===e.getAttribute("type")?n&&n(e):t&&t(e);},null,"presence",null,o);i&&(r=this.addTimedHandler(i,function(){return s.deleteHandler(a),n&&n(null),!1;}));}return this.send(e),o;},sendIQ:function sendIQ(e,t,n,i){var s=this,r=null;"function"==typeof e.tree&&(e=e.tree());var o=e.getAttribute("id");if(o||(o=this.getUniqueId("sendIQ"),e.setAttribute("id",o)),"function"==typeof t||"function"==typeof n){var a=this.addHandler(function(e){r&&s.deleteTimedHandler(r);var i=e.getAttribute("type");if("result"===i)t&&t(e);else{if("error"!==i){var o=new Error("Got bad IQ type of ".concat(i));throw o.name="StropheError",o;}n&&n(e);}},null,"iq",["error","result"],o);i&&(r=this.addTimedHandler(i,function(){return s.deleteHandler(a),n&&n(null),!1;}));}return this.send(e),o;},_queueData:function _queueData(e){if(null===e||!e.tagName||!e.childNodes){var t=new Error("Cannot queue non-DOMElement.");throw t.name="StropheError",t;}this._data.push(e);},_sendRestart:function _sendRestart(){var e=this;this._data.push("restart"),this._proto._sendRestart(),this._idleTimeout=setTimeout(function(){return e._onIdle();},100);},addTimedHandler:function addTimedHandler(e,t){var n=new I.TimedHandler(e,t);return this.addTimeds.push(n),n;},deleteTimedHandler:function deleteTimedHandler(e){this.removeTimeds.push(e);},addHandler:function addHandler(e,t,n,i,s,r,o){var a=new I.Handler(e,t,n,i,s,r,o);return this.addHandlers.push(a),a;},deleteHandler:function deleteHandler(e){this.removeHandlers.push(e);var t=this.addHandlers.indexOf(e);t>=0&&this.addHandlers.splice(t,1);},registerSASLMechanisms:function registerSASLMechanisms(e){this.mechanisms={},(e=e||[I.SASLAnonymous,I.SASLExternal,I.SASLMD5,I.SASLOAuthBearer,I.SASLXOAuth2,I.SASLPlain,I.SASLSHA1]).forEach(this.registerSASLMechanism.bind(this));},registerSASLMechanism:function registerSASLMechanism(e){this.mechanisms[e.prototype.name]=e;},disconnect:function disconnect(e){if(this._changeConnectStatus(I.Status.DISCONNECTING,e),I.warn("Disconnect was called because: "+e),this.connected){var t=!1;this.disconnecting=!0,this.authenticated&&(t=w({xmlns:I.NS.CLIENT,type:"unavailable"})),this._disconnectTimeout=this._addSysTimedHandler(3e3,this._onDisconnectTimeout.bind(this)),this._proto._disconnect(t);}else I.warn("Disconnect was called before Strophe connected to the server"),this._proto._abortAllRequests(),this._doDisconnect();},_changeConnectStatus:function _changeConnectStatus(e,t,n){for(var i in I._connectionPlugins)if(Object.prototype.hasOwnProperty.call(I._connectionPlugins,i)){var s=this[i];if(s.statusChanged)try{s.statusChanged(e,t);}catch(e){I.error("".concat(i," plugin caused an exception changing status: ").concat(e));}}if(this.connect_callback)try{this.connect_callback(e,t,n);}catch(e){I._handleError(e),I.error("User connection callback caused an exception: ".concat(e));}},_doDisconnect:function _doDisconnect(e){"number"==typeof this._idleTimeout&&clearTimeout(this._idleTimeout),null!==this._disconnectTimeout&&(this.deleteTimedHandler(this._disconnectTimeout),this._disconnectTimeout=null),I.debug("_doDisconnect was called"),this._proto._doDisconnect(),this.authenticated=!1,this.disconnecting=!1,this.restored=!1,this.handlers=[],this.timedHandlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this._changeConnectStatus(I.Status.DISCONNECTED,e),this.connected=!1;},_dataRecv:function _dataRecv(e,t){var n=this;I.debug("_dataRecv called");var i=this._proto._reqToData(e);if(null!==i){for(this.xmlInput!==I.Connection.prototype.xmlInput&&(i.nodeName===this._proto.strip&&i.childNodes.length?this.xmlInput(i.childNodes[0]):this.xmlInput(i)),this.rawInput!==I.Connection.prototype.rawInput&&(t?this.rawInput(t):this.rawInput(I.serialize(i)));this.removeHandlers.length>0;){var s=this.removeHandlers.pop(),r=this.handlers.indexOf(s);r>=0&&this.handlers.splice(r,1);}for(;this.addHandlers.length>0;)this.handlers.push(this.addHandlers.pop());if(this.disconnecting&&this._proto._emptyQueue())this._doDisconnect();else{var o=i.getAttribute("type");if(null!==o&&"terminate"===o){if(this.disconnecting)return;var a=i.getAttribute("condition"),c=i.getElementsByTagName("conflict");return null!==a?("remote-stream-error"===a&&c.length>0&&(a="conflict"),this._changeConnectStatus(I.Status.CONNFAIL,a)):this._changeConnectStatus(I.Status.CONNFAIL,I.ErrorCondition.UNKOWN_REASON),void this._doDisconnect(a);}I.forEachChild(i,null,function(e){var t=n.handlers;n.handlers=[];for(var i=0;i<t.length;i++){var s=t[i];try{(!s.isMatch(e)||!n.authenticated&&s.user||s.run(e))&&n.handlers.push(s);}catch(e){I.warn("Removing Strophe handlers due to uncaught exception: "+e.message);}}});}}},mechanisms:{},_connect_cb:function _connect_cb(e,t,n){var i;I.debug("_connect_cb was called"),this.connected=!0;try{i=this._proto._reqToData(e);}catch(e){if(e.name!==I.ErrorCondition.BAD_FORMAT)throw e;this._changeConnectStatus(I.Status.CONNFAIL,I.ErrorCondition.BAD_FORMAT),this._doDisconnect(I.ErrorCondition.BAD_FORMAT);}if(i&&(this.xmlInput!==I.Connection.prototype.xmlInput&&(i.nodeName===this._proto.strip&&i.childNodes.length?this.xmlInput(i.childNodes[0]):this.xmlInput(i)),this.rawInput!==I.Connection.prototype.rawInput&&(n?this.rawInput(n):this.rawInput(I.serialize(i))),this._proto._connect_cb(i)!==I.Status.CONNFAIL))if(i.getElementsByTagNameNS?i.getElementsByTagNameNS(I.NS.STREAM,"features").length>0:i.getElementsByTagName("stream:features").length>0||i.getElementsByTagName("features").length>0){var s=[],r=i.getElementsByTagName("mechanism");if(r.length>0)for(var o=0;o<r.length;o++){var a=I.getText(r[o]);this.mechanisms[a]&&s.push(this.mechanisms[a]);}0!==s.length||0!==i.getElementsByTagName("auth").length?!1!==this.do_authentication&&this.authenticate(s):this._proto._no_auth_received(t);}else this._proto._no_auth_received(t);},sortMechanismsByPriority:function sortMechanismsByPriority(e){for(var t=0;t<e.length-1;++t){for(var n=t,i=t+1;i<e.length;++i)e[i].prototype.priority>e[n].prototype.priority&&(n=i);if(n!==t){var s=e[t];e[t]=e[n],e[n]=s;}}return e;},authenticate:function authenticate(e){this._attemptSASLAuth(e)||this._attemptLegacyAuth();},_attemptSASLAuth:function _attemptSASLAuth(e){e=this.sortMechanismsByPriority(e||[]);for(var t=!1,n=0;n<e.length;++n)if(e[n].prototype.test(this)){this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null),this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null),this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge_cb.bind(this),null,"challenge",null,null),this._sasl_mechanism=new e[n](),this._sasl_mechanism.onStart(this);var i=R("auth",{xmlns:I.NS.SASL,mechanism:this._sasl_mechanism.name});if(this._sasl_mechanism.isClientFirst){var s=this._sasl_mechanism.onChallenge(this,null);i.t(btoa(s));}this.send(i.tree()),t=!0;break;}return t;},_sasl_challenge_cb:function _sasl_challenge_cb(e){var t=atob(I.getText(e)),n=this._sasl_mechanism.onChallenge(this,t),i=R("response",{xmlns:I.NS.SASL});return""!==n&&i.t(btoa(n)),this.send(i.tree()),!0;},_attemptLegacyAuth:function _attemptLegacyAuth(){null===I.getNodeFromJid(this.jid)?(this._changeConnectStatus(I.Status.CONNFAIL,I.ErrorCondition.MISSING_JID_NODE),this.disconnect(I.ErrorCondition.MISSING_JID_NODE)):(this._changeConnectStatus(I.Status.AUTHENTICATING,null),this._addSysHandler(this._onLegacyAuthIQResult.bind(this),null,null,null,"_auth_1"),this.send(A({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:I.NS.AUTH}).c("username",{}).t(I.getNodeFromJid(this.jid)).tree()));},_onLegacyAuthIQResult:function _onLegacyAuthIQResult(e){var t=A({type:"set",id:"_auth_2"}).c("query",{xmlns:I.NS.AUTH}).c("username",{}).t(I.getNodeFromJid(this.jid)).up().c("password").t(this.pass);return I.getResourceFromJid(this.jid)||(this.jid=I.getBareJidFromJid(this.jid)+"/strophe"),t.up().c("resource",{}).t(I.getResourceFromJid(this.jid)),this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2"),this.send(t.tree()),!1;},_sasl_success_cb:function _sasl_success_cb(e){var t=this;if(this._sasl_data["server-signature"]){var n,i=atob(I.getText(e)).match(/([a-z]+)=([^,]+)(,|$)/);if("v"===i[1]&&(n=i[2]),n!==this._sasl_data["server-signature"])return this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_data={},this._sasl_failure_cb(null);}I.info("SASL authentication succeeded."),this._sasl_mechanism&&this._sasl_mechanism.onSuccess(),this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null);var s=[],r=function r(e,n){for(;e.length;)t.deleteHandler(e.pop());return t._onStreamFeaturesAfterSASL(n),!1;};return s.push(this._addSysHandler(function(e){return r(s,e);},null,"stream:features",null,null)),s.push(this._addSysHandler(function(e){return r(s,e);},I.NS.STREAM,"features",null,null)),this._sendRestart(),!1;},_onStreamFeaturesAfterSASL:function _onStreamFeaturesAfterSASL(e){this.features=e;for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];"bind"===n.nodeName&&(this.do_bind=!0),"session"===n.nodeName&&(this.do_session=!0);}return this.do_bind?(this.options.explicitResourceBinding?this._changeConnectStatus(I.Status.BINDREQUIRED,null):this.bind(),!1):(this._changeConnectStatus(I.Status.AUTHFAIL,null),!1);},bind:function bind(){if(this.do_bind){this._addSysHandler(this._onResourceBindResultIQ.bind(this),null,null,null,"_bind_auth_2");var e=I.getResourceFromJid(this.jid);e?this.send(A({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:I.NS.BIND}).c("resource",{}).t(e).tree()):this.send(A({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:I.NS.BIND}).tree());}else I.log(I.LogLevel.INFO,\'Strophe.Connection.prototype.bind called but "do_bind" is false\');},_onResourceBindResultIQ:function _onResourceBindResultIQ(e){var t;if("error"===e.getAttribute("type"))return I.warn("Resource binding failed."),e.getElementsByTagName("conflict").length>0&&(t=I.ErrorCondition.CONFLICT),this._changeConnectStatus(I.Status.AUTHFAIL,t,e),!1;var n=e.getElementsByTagName("bind");if(!(n.length>0))return I.warn("Resource binding failed."),this._changeConnectStatus(I.Status.AUTHFAIL,null,e),!1;var i=n[0].getElementsByTagName("jid");i.length>0&&(this.jid=I.getText(i[0]),this.do_session?this._establishSession():(this.authenticated=!0,this._changeConnectStatus(I.Status.CONNECTED,null)));},_establishSession:function _establishSession(){if(!this.do_session)throw new Error("Strophe.Connection.prototype._establishSession "+"called but apparently ".concat(I.NS.SESSION," wasn\'t advertised by the server"));this._addSysHandler(this._onSessionResultIQ.bind(this),null,null,null,"_session_auth_2"),this.send(A({type:"set",id:"_session_auth_2"}).c("session",{xmlns:I.NS.SESSION}).tree());},_onSessionResultIQ:function _onSessionResultIQ(e){if("result"===e.getAttribute("type"))this.authenticated=!0,this._changeConnectStatus(I.Status.CONNECTED,null);else if("error"===e.getAttribute("type"))return I.warn("Session creation failed."),this._changeConnectStatus(I.Status.AUTHFAIL,null,e),!1;return!1;},_sasl_failure_cb:function _sasl_failure_cb(e){return this._sasl_success_handler&&(this.deleteHandler(this._sasl_success_handler),this._sasl_success_handler=null),this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_mechanism&&this._sasl_mechanism.onFailure(),this._changeConnectStatus(I.Status.AUTHFAIL,null,e),!1;},_auth2_cb:function _auth2_cb(e){return"result"===e.getAttribute("type")?(this.authenticated=!0,this._changeConnectStatus(I.Status.CONNECTED,null)):"error"===e.getAttribute("type")&&(this._changeConnectStatus(I.Status.AUTHFAIL,null,e),this.disconnect("authentication failed")),!1;},_addSysTimedHandler:function _addSysTimedHandler(e,t){var n=new I.TimedHandler(e,t);return n.user=!1,this.addTimeds.push(n),n;},_addSysHandler:function _addSysHandler(e,t,n,i,s){var r=new I.Handler(e,t,n,i,s);return r.user=!1,this.addHandlers.push(r),r;},_onDisconnectTimeout:function _onDisconnectTimeout(){return I.debug("_onDisconnectTimeout was called"),this._changeConnectStatus(I.Status.CONNTIMEOUT,null),this._proto._onDisconnectTimeout(),this._doDisconnect(),!1;},_onIdle:function _onIdle(){for(var e=this;this.addTimeds.length>0;)this.timedHandlers.push(this.addTimeds.pop());for(;this.removeTimeds.length>0;){var t=this.removeTimeds.pop(),n=this.timedHandlers.indexOf(t);n>=0&&this.timedHandlers.splice(n,1);}for(var i=new Date().getTime(),s=[],r=0;r<this.timedHandlers.length;r++){var o=this.timedHandlers[r];!this.authenticated&&o.user||(o.lastCalled+o.period-i<=0?o.run()&&s.push(o):s.push(o));}this.timedHandlers=s,clearTimeout(this._idleTimeout),this._proto._onIdle(),this.connected&&(this._idleTimeout=setTimeout(function(){return e._onIdle();},100));}},I.SASLMechanism=function(e,t,n){this.name=e,this.isClientFirst=t,this.priority=n;},I.SASLMechanism.prototype={test:function test(e){return!0;},onStart:function onStart(e){this._connection=e;},onChallenge:function onChallenge(e,t){throw new Error("You should implement challenge handling!");},onFailure:function onFailure(){this._connection=null;},onSuccess:function onSuccess(){this._connection=null;}},I.SASLAnonymous=function(){},I.SASLAnonymous.prototype=new I.SASLMechanism("ANONYMOUS",!1,20),I.SASLAnonymous.prototype.test=function(e){return null===e.authcid;},I.SASLPlain=function(){},I.SASLPlain.prototype=new I.SASLMechanism("PLAIN",!0,50),I.SASLPlain.prototype.test=function(e){return null!==e.authcid;},I.SASLPlain.prototype.onChallenge=function(e){var t=e.authzid;return t+="\\0",t+=e.authcid,t+="\\0",t+=e.pass,b(t);},I.SASLSHA1=function(){},I.SASLSHA1.prototype=new I.SASLMechanism("SCRAM-SHA-1",!0,70),I.SASLSHA1.prototype.test=function(e){return null!==e.authcid;},I.SASLSHA1.prototype.onChallenge=function(e,t,n){var i=n||u.hexdigest(""+1234567890*Math.random()),s="n="+b(e.authcid);return s+=",r=",s+=i,e._sasl_data.cnonce=i,e._sasl_data["client-first-message-bare"]=s,s="n,,"+s,this.onChallenge=function(e,t){for(var n,i,s,r,o,a,c,d,l="c=biws,",h="".concat(e._sasl_data["client-first-message-bare"],",").concat(t,","),u=e._sasl_data.cnonce,p=/([a-z]+)=([^,]+)(,|$)/;t.match(p);){var m=t.match(p);switch(t=t.replace(m[0],""),m[1]){case"r":n=m[2];break;case"s":i=m[2];break;case"i":s=m[2];}}if(n.substr(0,u.length)!==u)return e._sasl_data={},e._sasl_failure_cb();h+=l+="r="+n,i=atob(i),i+="\\0\\0\\0";var f=b(e.pass);for(r=a=C.core_hmac_sha1(f,i),c=1;c<s;c++){for(o=C.core_hmac_sha1(f,C.binb2str(a)),d=0;d<5;d++)r[d]^=o[d];a=o;}r=C.binb2str(r);var g=C.core_hmac_sha1(r,"Client Key"),_=C.str_hmac_sha1(r,"Server Key"),v=C.core_hmac_sha1(C.str_sha1(C.binb2str(g)),h);for(e._sasl_data["server-signature"]=C.b64_hmac_sha1(_,h),d=0;d<5;d++)g[d]^=v[d];return l+",p="+btoa(C.binb2str(g));},s;},I.SASLMD5=function(){},I.SASLMD5.prototype=new I.SASLMechanism("DIGEST-MD5",!1,60),I.SASLMD5.prototype.test=function(e){return null!==e.authcid;},I.SASLMD5.prototype._quote=function(e){return\'"\'+e.replace(/\\\\/g,"\\\\\\\\").replace(/"/g,\'\\\\"\')+\'"\';},I.SASLMD5.prototype.onChallenge=function(e,t,n){for(var i=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/,s=n||u.hexdigest(""+1234567890*Math.random()),r="",o=null,a="";t.match(i);){var c=t.match(i);switch(t=t.replace(c[0],""),c[2]=c[2].replace(/^"(.+)"$/,"$1"),c[1]){case"realm":r=c[2];break;case"nonce":a=c[2];break;case"qop":c[2];break;case"host":o=c[2];}}var d=e.servtype+"/"+e.domain;null!==o&&(d=d+"/"+o);var l=b(e.authcid+":"+r+":"+this._connection.pass),h=u.hash(l)+":"+a+":"+s,p="AUTHENTICATE:"+d,m="";return m+="charset=utf-8,",m+="username="+this._quote(b(e.authcid))+",",m+="realm="+this._quote(r)+",",m+="nonce="+this._quote(a)+",",m+="nc=00000001,",m+="cnonce="+this._quote(s)+",",m+="digest-uri="+this._quote(d)+",",m+="response="+u.hexdigest(u.hexdigest(h)+":"+a+":00000001:"+s+":auth:"+u.hexdigest(p))+",",m+="qop=auth",this.onChallenge=function(){return"";},m;},I.SASLOAuthBearer=function(){},I.SASLOAuthBearer.prototype=new I.SASLMechanism("OAUTHBEARER",!0,40),I.SASLOAuthBearer.prototype.test=function(e){return null!==e.pass;},I.SASLOAuthBearer.prototype.onChallenge=function(e){var t="n,";return null!==e.authcid&&(t=t+"a="+e.authzid),t+=",",t+="",t+="auth=Bearer ",t+=e.pass,t+="",b(t+="");},I.SASLExternal=function(){},I.SASLExternal.prototype=new I.SASLMechanism("EXTERNAL",!0,10),I.SASLExternal.prototype.onChallenge=function(e){return e.authcid===e.authzid?"":e.authzid;},I.SASLXOAuth2=function(){},I.SASLXOAuth2.prototype=new I.SASLMechanism("X-OAUTH2",!0,30),I.SASLXOAuth2.prototype.test=function(e){return null!==e.pass;},I.SASLXOAuth2.prototype.onChallenge=function(e){var t="\\0";return null!==e.authcid&&(t+=e.authzid),t+="\\0",t+=e.pass,b(t);};var P={Strophe:I,$build:R,$iq:A,$msg:function $msg(e){return new I.Builder("message",e);},$pres:w,SHA1:C,MD5:u,b64_hmac_sha1:C.b64_hmac_sha1,b64_sha1:C.b64_sha1,str_hmac_sha1:C.str_hmac_sha1,str_sha1:C.str_sha1},M=P.Strophe,D=P.$build;M.Request=function(e,t,n,i){this.id=++M._requestId,this.xmlData=e,this.data=M.serialize(e),this.origFunc=t,this.func=t,this.rid=n,this.date=NaN,this.sends=i||0,this.abort=!1,this.dead=null,this.age=function(){return this.date?(new Date()-this.date)/1e3:0;},this.timeDead=function(){return this.dead?(new Date()-this.dead)/1e3:0;},this.xhr=this._newXHR();},M.Request.prototype={getResponse:function getResponse(){var e=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){if("parsererror"===(e=this.xhr.responseXML.documentElement).tagName)throw M.error("invalid response received"),M.error("responseText: "+this.xhr.responseText),M.error("responseXML: "+M.serialize(this.xhr.responseXML)),new Error("parsererror");}else if(this.xhr.responseText){if(M.debug("Got responseText but no responseXML; attempting to parse it with DOMParser..."),!(e=new DOMParser().parseFromString(this.xhr.responseText,"application/xml").documentElement))throw new Error("Parsing produced null node");if(e.querySelector("parsererror")){M.error("invalid response received: "+e.querySelector("parsererror").textContent),M.error("responseText: "+this.xhr.responseText);var t=new Error();throw t.name=M.ErrorCondition.BAD_FORMAT,t;}}return e;},_newXHR:function _newXHR(){var e=null;return window.XMLHttpRequest?(e=new XMLHttpRequest()).overrideMimeType&&e.overrideMimeType("text/xml; charset=utf-8"):window.ActiveXObject&&(e=new ActiveXObject("Microsoft.XMLHTTP")),e.onreadystatechange=this.func.bind(null,this),e;}},M.Bosh=function(e){this._conn=e,this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.hold=1,this.wait=60,this.window=5,this.errors=0,this.inactivity=null,this.lastResponseHeaders=null,this._requests=[];},M.Bosh.prototype={strip:null,_buildBody:function _buildBody(){var e=D("body",{rid:this.rid++,xmlns:M.NS.HTTPBIND});return null!==this.sid&&e.attrs({sid:this.sid}),this._conn.options.keepalive&&this._conn._sessionCachingSupported()&&this._cacheSession(),e;},_reset:function _reset(){this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.errors=0,this._conn._sessionCachingSupported()&&window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid);},_connect:function _connect(e,t,n){this.wait=e||this.wait,this.hold=t||this.hold,this.errors=0;var i=this._buildBody().attrs({to:this._conn.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":M.NS.BOSH});n&&i.attrs({route:n});var s=this._conn._connect_cb;this._requests.push(new M.Request(i.tree(),this._onRequestStateChange.bind(this,s.bind(this._conn)),i.tree().getAttribute("rid"))),this._throttledRequestHandler();},_attach:function _attach(e,t,n,i,s,r,o){this._conn.jid=e,this.sid=t,this.rid=n,this._conn.connect_callback=i,this._conn.domain=M.getDomainFromJid(this._conn.jid),this._conn.authenticated=!0,this._conn.connected=!0,this.wait=s||this.wait,this.hold=r||this.hold,this.window=o||this.window,this._conn._changeConnectStatus(M.Status.ATTACHED,null);},_restore:function _restore(e,t,n,i,s){var r=JSON.parse(window.sessionStorage.getItem("strophe-bosh-session"));if(!(null!=r&&r.rid&&r.sid&&r.jid&&(null==e||M.getBareJidFromJid(r.jid)===M.getBareJidFromJid(e)||null===M.getNodeFromJid(e)&&M.getDomainFromJid(r.jid)===e))){var o=new Error("_restore: no restoreable session.");throw o.name="StropheSessionError",o;}this._conn.restored=!0,this._attach(r.jid,r.sid,r.rid,t,n,i,s);},_cacheSession:function _cacheSession(){this._conn.authenticated?this._conn.jid&&this.rid&&this.sid&&window.sessionStorage.setItem("strophe-bosh-session",JSON.stringify({jid:this._conn.jid,rid:this.rid,sid:this.sid})):window.sessionStorage.removeItem("strophe-bosh-session");},_connect_cb:function _connect_cb(e){var t=e.getAttribute("type");if(null!==t&&"terminate"===t){var n=e.getAttribute("condition");M.error("BOSH-Connection failed: "+n);var i=e.getElementsByTagName("conflict");return null!==n?("remote-stream-error"===n&&i.length>0&&(n="conflict"),this._conn._changeConnectStatus(M.Status.CONNFAIL,n)):this._conn._changeConnectStatus(M.Status.CONNFAIL,"unknown"),this._conn._doDisconnect(n),M.Status.CONNFAIL;}this.sid||(this.sid=e.getAttribute("sid"));var s=e.getAttribute("requests");s&&(this.window=parseInt(s,10));var r=e.getAttribute("hold");r&&(this.hold=parseInt(r,10));var o=e.getAttribute("wait");o&&(this.wait=parseInt(o,10));var a=e.getAttribute("inactivity");a&&(this.inactivity=parseInt(a,10));},_disconnect:function _disconnect(e){this._sendTerminate(e);},_doDisconnect:function _doDisconnect(){this.sid=null,this.rid=Math.floor(4294967295*Math.random()),this._conn._sessionCachingSupported()&&window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid);},_emptyQueue:function _emptyQueue(){return 0===this._requests.length;},_callProtocolErrorHandlers:function _callProtocolErrorHandlers(e){var t=this._getRequestStatus(e),n=this._conn.protocolErrorHandlers.HTTP[t];n&&n.call(this,t);},_hitError:function _hitError(e){this.errors++,M.warn("request errored, status: "+e+", number of errors: "+this.errors),this.errors>4&&this._conn._onDisconnectTimeout();},_no_auth_received:function _no_auth_received(e){M.warn("Server did not yet offer a supported authentication mechanism. Sending a blank poll request."),e=e?e.bind(this._conn):this._conn._connect_cb.bind(this._conn);var t=this._buildBody();this._requests.push(new M.Request(t.tree(),this._onRequestStateChange.bind(this,e),t.tree().getAttribute("rid"))),this._throttledRequestHandler();},_onDisconnectTimeout:function _onDisconnectTimeout(){this._abortAllRequests();},_abortAllRequests:function _abortAllRequests(){for(;this._requests.length>0;){var e=this._requests.pop();e.abort=!0,e.xhr.abort(),e.xhr.onreadystatechange=function(){};}},_onIdle:function _onIdle(){var e=this._conn._data;if(this._conn.authenticated&&0===this._requests.length&&0===e.length&&!this._conn.disconnecting&&(M.debug("no requests during idle cycle, sending blank request"),e.push(null)),!this._conn.paused){if(this._requests.length<2&&e.length>0){for(var t=this._buildBody(),n=0;n<e.length;n++)null!==e[n]&&("restart"===e[n]?t.attrs({to:this._conn.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":M.NS.BOSH}):t.cnode(e[n]).up());delete this._conn._data,this._conn._data=[],this._requests.push(new M.Request(t.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),t.tree().getAttribute("rid"))),this._throttledRequestHandler();}if(this._requests.length>0){var i=this._requests[0].age();null!==this._requests[0].dead&&this._requests[0].timeDead()>Math.floor(M.SECONDARY_TIMEOUT*this.wait)&&this._throttledRequestHandler(),i>Math.floor(M.TIMEOUT*this.wait)&&(M.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(M.TIMEOUT*this.wait)+" seconds since last activity"),this._throttledRequestHandler());}}},_getRequestStatus:function _getRequestStatus(e,t){var n;if(4===e.xhr.readyState)try{n=e.xhr.status;}catch(e){M.error("Caught an error while retrieving a request\'s status, reqStatus: "+n);}return void 0===n&&(n="number"==typeof t?t:0),n;},_onRequestStateChange:function _onRequestStateChange(e,t){if(M.debug("request id "+t.id+"."+t.sends+" state changed to "+t.xhr.readyState),t.abort)t.abort=!1;else if(4===t.xhr.readyState){var n=this._getRequestStatus(t);if(this.lastResponseHeaders=t.xhr.getAllResponseHeaders(),this.disconnecting&&n>=400)return this._hitError(n),void this._callProtocolErrorHandlers(t);var i=n>0&&n<500,s=t.sends>this._conn.maxRetries;if((i||s)&&(this._removeRequest(t),M.debug("request id "+t.id+" should now be removed")),200===n){var r=this._requests[0]===t;(this._requests[1]===t||r&&this._requests.length>0&&this._requests[0].age()>Math.floor(M.SECONDARY_TIMEOUT*this.wait))&&this._restartRequest(0),this._conn.nextValidRid(Number(t.rid)+1),M.debug("request id "+t.id+"."+t.sends+" got 200"),e(t),this.errors=0;}else 0===n||n>=400&&n<600||n>=12e3?(M.error("request id "+t.id+"."+t.sends+" error "+n+" happened"),this._hitError(n),this._callProtocolErrorHandlers(t),n>=400&&n<500&&(this._conn._changeConnectStatus(M.Status.DISCONNECTING,null),this._conn._doDisconnect())):M.error("request id "+t.id+"."+t.sends+" error "+n+" happened");i||s?s&&!this._conn.connected&&this._conn._changeConnectStatus(M.Status.CONNFAIL,"giving-up"):this._throttledRequestHandler();}},_processRequest:function _processRequest(e){var t=this,n=this._requests[e],i=this._getRequestStatus(n,-1);if(n.sends>this._conn.maxRetries)this._conn._onDisconnectTimeout();else{var s=n.age(),r=!isNaN(s)&&s>Math.floor(M.TIMEOUT*this.wait),o=null!==n.dead&&n.timeDead()>Math.floor(M.SECONDARY_TIMEOUT*this.wait),a=4===n.xhr.readyState&&(i<1||i>=500);if((r||o||a)&&(o&&M.error("Request ".concat(this._requests[e].id," timed out (secondary), restarting")),n.abort=!0,n.xhr.abort(),n.xhr.onreadystatechange=function(){},this._requests[e]=new M.Request(n.xmlData,n.origFunc,n.rid,n.sends),n=this._requests[e]),0===n.xhr.readyState){M.debug("request id "+n.id+"."+n.sends+" posting");try{var c=this._conn.options.contentType||"text/xml; charset=utf-8";n.xhr.open("POST",this._conn.service,!this._conn.options.sync),void 0!==n.xhr.setRequestHeader&&n.xhr.setRequestHeader("Content-Type",c),this._conn.options.withCredentials&&(n.xhr.withCredentials=!0);}catch(e){return M.error("XHR open failed: "+e.toString()),this._conn.connected||this._conn._changeConnectStatus(M.Status.CONNFAIL,"bad-service"),void this._conn.disconnect();}var d=function d(){if(n.date=new Date(),t._conn.options.customHeaders){var e=t._conn.options.customHeaders;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.xhr.setRequestHeader(i,e[i]);}n.xhr.send(n.data);};if(n.sends>1){var l=1e3*Math.min(Math.floor(M.TIMEOUT*this.wait),Math.pow(n.sends,3));setTimeout(function(){d();},l);}else d();n.sends++,this._conn.xmlOutput!==M.Connection.prototype.xmlOutput&&(n.xmlData.nodeName===this.strip&&n.xmlData.childNodes.length?this._conn.xmlOutput(n.xmlData.childNodes[0]):this._conn.xmlOutput(n.xmlData)),this._conn.rawOutput!==M.Connection.prototype.rawOutput&&this._conn.rawOutput(n.data);}else M.debug("_processRequest: "+(0===e?"first":"second")+" request has readyState of "+n.xhr.readyState);}},_removeRequest:function _removeRequest(e){M.debug("removing request");for(var t=this._requests.length-1;t>=0;t--)e===this._requests[t]&&this._requests.splice(t,1);e.xhr.onreadystatechange=function(){},this._throttledRequestHandler();},_restartRequest:function _restartRequest(e){var t=this._requests[e];null===t.dead&&(t.dead=new Date()),this._processRequest(e);},_reqToData:function _reqToData(e){try{return e.getResponse();}catch(e){if("parsererror"!==e.message)throw e;this._conn.disconnect("strophe-parsererror");}},_sendTerminate:function _sendTerminate(e){M.debug("_sendTerminate was called");var t=this._buildBody().attrs({type:"terminate"});e&&t.cnode(e.tree());var n=new M.Request(t.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),t.tree().getAttribute("rid"));this._requests.push(n),this._throttledRequestHandler();},_send:function _send(){var e=this;clearTimeout(this._conn._idleTimeout),this._throttledRequestHandler(),this._conn._idleTimeout=setTimeout(function(){return e._conn._onIdle();},100);},_sendRestart:function _sendRestart(){this._throttledRequestHandler(),clearTimeout(this._conn._idleTimeout);},_throttledRequestHandler:function _throttledRequestHandler(){this._requests?M.debug("_throttledRequestHandler called with "+this._requests.length+" requests"):M.debug("_throttledRequestHandler called with undefined requests"),this._requests&&0!==this._requests.length&&(this._requests.length>0&&this._processRequest(0),this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window&&this._processRequest(1));}};var N=P.Strophe,k=P.$build;return N.Websocket=function(e){this._conn=e,this.strip="wrapper";var t=e.service;if(0!==t.indexOf("ws:")&&0!==t.indexOf("wss:")){var n="";"ws"===e.options.protocol&&"https:"!==window.location.protocol?n+="ws":n+="wss",n+="://"+window.location.host,0!==t.indexOf("/")?n+=window.location.pathname+t:n+=t,e.service=n;}},N.Websocket.prototype={_buildStream:function _buildStream(){return k("open",{xmlns:N.NS.FRAMING,to:this._conn.domain,version:"1.0"});},_check_streamerror:function _check_streamerror(e,t){var n;if(0===(n=e.getElementsByTagNameNS?e.getElementsByTagNameNS(N.NS.STREAM,"error"):e.getElementsByTagName("stream:error")).length)return!1;for(var i=n[0],s="",r="",o=0;o<i.childNodes.length;o++){var a=i.childNodes[o];if("urn:ietf:params:xml:ns:xmpp-streams"!==a.getAttribute("xmlns"))break;"text"===a.nodeName?r=a.textContent:s=a.nodeName;}var c="WebSocket stream error: ";return c+=s||"unknown",r&&(c+=" - "+r),N.error(c),this._conn._changeConnectStatus(t,s),this._conn._doDisconnect(),!0;},_reset:function _reset(){},_connect:function _connect(){this._closeSocket(),this.socket=new WebSocket(this._conn.service,"xmpp"),this.socket.onopen=this._onOpen.bind(this),this.socket.onerror=this._onError.bind(this),this.socket.onclose=this._onClose.bind(this),this.socket.onmessage=this._connect_cb_wrapper.bind(this);},_connect_cb:function _connect_cb(e){if(this._check_streamerror(e,N.Status.CONNFAIL))return N.Status.CONNFAIL;},_handleStreamStart:function _handleStreamStart(e){var t=!1,n=e.getAttribute("xmlns");"string"!=typeof n?t="Missing xmlns in <open />":n!==N.NS.FRAMING&&(t="Wrong xmlns in <open />: "+n);var i=e.getAttribute("version");return"string"!=typeof i?t="Missing version in <open />":"1.0"!==i&&(t="Wrong version in <open />: "+i),!t||(this._conn._changeConnectStatus(N.Status.CONNFAIL,t),this._conn._doDisconnect(),!1);},_connect_cb_wrapper:function _connect_cb_wrapper(e){if(0===e.data.indexOf("<open ")||0===e.data.indexOf("<?xml")){var t=e.data.replace(/^(<\\?.*?\\?>\\s*)*/,"");if(""===t)return;var n=new DOMParser().parseFromString(t,"text/xml").documentElement;this._conn.xmlInput(n),this._conn.rawInput(e.data),this._handleStreamStart(n)&&this._connect_cb(n);}else if(0===e.data.indexOf("<close ")){var i=new DOMParser().parseFromString(e.data,"text/xml").documentElement;this._conn.xmlInput(i),this._conn.rawInput(e.data);var s=i.getAttribute("see-other-uri");if(s){var r=this._conn.service;(r.indexOf("wss:")>=0&&s.indexOf("wss:")>=0||r.indexOf("ws:")>=0)&&(this._conn._changeConnectStatus(N.Status.REDIRECT,"Received see-other-uri, resetting connection"),this._conn.reset(),this._conn.service=s,this._connect());}else this._conn._changeConnectStatus(N.Status.CONNFAIL,"Received closing stream"),this._conn._doDisconnect();}else{var o=this._streamWrap(e.data),a=new DOMParser().parseFromString(o,"text/xml").documentElement;this.socket.onmessage=this._onMessage.bind(this),this._conn._connect_cb(a,null,e.data);}},_disconnect:function _disconnect(e){if(this.socket&&this.socket.readyState!==WebSocket.CLOSED){e&&this._conn.send(e);var t=k("close",{xmlns:N.NS.FRAMING});this._conn.xmlOutput(t.tree());var n=N.serialize(t);this._conn.rawOutput(n);try{this.socket.send(n);}catch(e){N.warn("Couldn\'t send <close /> tag.");}}this._conn._doDisconnect();},_doDisconnect:function _doDisconnect(){N.debug("WebSockets _doDisconnect was called"),this._closeSocket();},_streamWrap:function _streamWrap(e){return"<wrapper>"+e+"</wrapper>";},_closeSocket:function _closeSocket(){if(this.socket)try{this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket.close();}catch(e){N.debug(e.message);}this.socket=null;},_emptyQueue:function _emptyQueue(){return!0;},_onClose:function _onClose(e){this._conn.connected&&!this._conn.disconnecting?(N.error("Websocket closed unexpectedly"),this._conn._doDisconnect()):e&&1006===e.code&&!this._conn.connected&&this.socket?(N.error("Websocket closed unexcectedly"),this._conn._changeConnectStatus(N.Status.CONNFAIL,"The WebSocket connection could not be established or was disconnected."),this._conn._doDisconnect()):N.debug("Websocket closed");},_no_auth_received:function _no_auth_received(e){N.error("Server did not offer a supported authentication mechanism"),this._conn._changeConnectStatus(N.Status.CONNFAIL,N.ErrorCondition.NO_AUTH_MECH),e&&e.call(this._conn),this._conn._doDisconnect();},_onDisconnectTimeout:function _onDisconnectTimeout(){},_abortAllRequests:function _abortAllRequests(){},_onError:function _onError(e){N.error("Websocket error "+e),this._conn._changeConnectStatus(N.Status.CONNFAIL,"The WebSocket connection could not be established or was disconnected."),this._disconnect();},_onIdle:function _onIdle(){var e=this._conn._data;if(e.length>0&&!this._conn.paused){for(var t=0;t<e.length;t++)if(null!==e[t]){var n;n="restart"===e[t]?this._buildStream().tree():e[t];var i=N.serialize(n);this._conn.xmlOutput(n),this._conn.rawOutput(i),this.socket.send(i);}this._conn._data=[];}},_onMessage:function _onMessage(e){var t,n=\'<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />\';if(e.data===n)return this._conn.rawInput(n),this._conn.xmlInput(e),void(this._conn.disconnecting||this._conn._doDisconnect());if(0===e.data.search("<open ")){if(t=new DOMParser().parseFromString(e.data,"text/xml").documentElement,!this._handleStreamStart(t))return;}else{var i=this._streamWrap(e.data);t=new DOMParser().parseFromString(i,"text/xml").documentElement;}return this._check_streamerror(t,N.Status.ERROR)?void 0:this._conn.disconnecting&&"presence"===t.firstChild.nodeName&&"unavailable"===t.firstChild.getAttribute("type")?(this._conn.xmlInput(t),void this._conn.rawInput(N.serialize(t))):void this._conn._dataRecv(t,e.data);},_onOpen:function _onOpen(){N.debug("Websocket open");var e=this._buildStream();this._conn.xmlOutput(e.tree());var t=N.serialize(e);this._conn.rawOutput(t),this.socket.send(t);},_reqToData:function _reqToData(e){return e;},_send:function _send(){this._conn.flush();},_sendRestart:function _sendRestart(){clearTimeout(this._conn._idleTimeout),this._conn._onIdle.bind(this._conn)();}},e.Strophe=P.Strophe,e.$build=P.$build,e.$iq=P.$iq,e.$msg=P.$msg,e.$pres=P.$pres,P;}();},5808:function _(e,t,n){!function(e){"use strict";e.Strophe.addConnectionPlugin("disco",{_connection:null,_identities:[],_features:[],_items:[],init:function init(t){this._connection=t,this._identities=[],this._features=[],this._items=[],t.addHandler(this._onDiscoInfo.bind(this),e.Strophe.NS.DISCO_INFO,"iq","get",null,null),t.addHandler(this._onDiscoItems.bind(this),e.Strophe.NS.DISCO_ITEMS,"iq","get",null,null);},addIdentity:function addIdentity(e,t,n,i){for(var s=0;s<this._identities.length;s++)if(this._identities[s].category==e&&this._identities[s].type==t&&this._identities[s].name==n&&this._identities[s].lang==i)return!1;return this._identities.push({category:e,type:t,name:n,lang:i}),!0;},addFeature:function addFeature(e){for(var t=0;t<this._features.length;t++)if(this._features[t]==e)return!1;return this._features.push(e),!0;},removeFeature:function removeFeature(e){for(var t=0;t<this._features.length;t++)if(this._features[t]===e)return this._features.splice(t,1),!0;return!1;},addItem:function addItem(e,t,n,i){return!(n&&!i||(this._items.push({jid:e,name:t,node:n,call_back:i}),0));},info:function info(t,n,i,s,r){var o={xmlns:e.Strophe.NS.DISCO_INFO};n&&(o.node=n);var a=e.$iq({from:this._connection.jid,to:t,type:"get"}).c("query",o);this._connection.sendIQ(a,i,s,r);},items:function items(t,n,i,s,r){var o={xmlns:e.Strophe.NS.DISCO_ITEMS};n&&(o.node=n);var a=e.$iq({from:this._connection.jid,to:t,type:"get"}).c("query",o);this._connection.sendIQ(a,i,s,r);},_buildIQResult:function _buildIQResult(t,n){var i=t.getAttribute("id"),s=t.getAttribute("from"),r=e.$iq({type:"result",id:i});return null!==s&&r.attrs({to:s}),r.c("query",n);},_onDiscoInfo:function _onDiscoInfo(t){var n,i=t.getElementsByTagName("query")[0].getAttribute("node"),s={xmlns:e.Strophe.NS.DISCO_INFO};i&&(s.node=i);var r=this._buildIQResult(t,s);for(n=0;n<this._identities.length;n++)s={category:this._identities[n].category,type:this._identities[n].type},this._identities[n].name&&(s.name=this._identities[n].name),this._identities[n].lang&&(s["xml:lang"]=this._identities[n].lang),r.c("identity",s).up();for(n=0;n<this._features.length;n++)r.c("feature",{var:this._features[n]}).up();return this._connection.send(r.tree()),!0;},_onDiscoItems:function _onDiscoItems(t){var n,i,s={xmlns:e.Strophe.NS.DISCO_ITEMS},r=t.getElementsByTagName("query")[0].getAttribute("node");if(r){for(s.node=r,n=[],i=0;i<this._items.length;i++)if(this._items[i].node==r){n=this._items[i].call_back(t);break;}}else n=this._items;var o=this._buildIQResult(t,s);for(i=0;i<n.length;i++){var a={jid:n[i].jid};n[i].name&&(a.name=n[i].name),n[i].node&&(a.node=n[i].node),o.c("item",a).up();}return this._connection.send(o.tree()),!0;}});}(n(9755));},6552:function _(e,t,n){!function(e){"use strict";e.Strophe.addConnectionPlugin("streamManagement",{logging:!1,autoSendCountOnEveryIncomingStanza:!1,requestResponseInterval:5,_c:null,_NS:"urn:xmpp:sm:3",_isStreamManagementEnabled:!1,_serverProcesssedStanzasCounter:null,_clientProcessedStanzasCounter:null,_clientSentStanzasCounter:null,_originalXMLOutput:null,_requestHandler:null,_incomingHandler:null,_requestResponseIntervalCount:0,_isSupported:!1,_unacknowledgedStanzas:[],_acknowledgedStanzaListeners:[],addAcknowledgedStanzaListener:function addAcknowledgedStanzaListener(e){this._acknowledgedStanzaListeners.push(e);},enable:function enable(t){if(!this._isSupported)throw new Error("The server doesn\'t support urn:xmpp:sm:3 namespace");if(this._connectionStatus!==e.Strophe.Status.CONNECTED)throw new Error("enable() can only be called in the CONNECTED state");this._c.send(e.$build("enable",{xmlns:this._NS,resume:t})),this._c.flush(),this._c.pause();},getResumeToken:function getResumeToken(){return this._resumeToken;},isSupported:function isSupported(){return this._isSupported;},resume:function resume(){if(!this.getResumeToken())throw new Error("No resume token");if(this._connectionStatus!==e.Strophe.Status.DISCONNECTED)throw new Error("resume() can only be called in the DISCONNECTED state");this._c.options.explicitResourceBinding=!0,this._resuming=!0,this._originalConnect.apply(this._c,this._connectArgs);},requestAcknowledgement:function requestAcknowledgement(){if(this._connectionStatus!==e.Strophe.Status.CONNECTED)throw new Error("requestAcknowledgement() can only be called in the CONNECTED state");this._requestResponseIntervalCount=0,this._c.send(e.$build("r",{xmlns:this._NS}));},getOutgoingCounter:function getOutgoingCounter(){return this._clientSentStanzasCounter;},getIncomingCounter:function getIncomingCounter(){return this._clientProcessedStanzasCounter;},init:function init(t){this._c=t,e.Strophe.addNamespace("SM",this._NS),this._originalXMLOutput=this._c.xmlOutput,this._c.xmlOutput=this.xmlOutput.bind(this),this._originalConnect=this._c.connect,this._c.connect=this._interceptConnectArgs.bind(this),this._originalOnStreamFeaturesAfterSASL=this._c._onStreamFeaturesAfterSASL,this._c._onStreamFeaturesAfterSASL=this._onStreamFeaturesAfterSASL.bind(this),this._originalDoDisconnect=this._c._doDisconnect,this._c._doDisconnect=this._interceptDoDisconnect.bind(this),this._originalDisconnect=this._c.disconnect,this._c.disconnect=this._interceptDisconnect.bind(this);},_interceptDisconnect:function _interceptDisconnect(){this._resumeToken=void 0,this._originalDisconnect.apply(this._c,arguments);},_interceptDoDisconnect:function _interceptDoDisconnect(){this.getResumeToken()&&!this._resuming&&this._c.connected&&!this._c.disconnecting&&(this._resumeState={handlers:this._c.handlers,timedHandlers:this._c.timedHandlers,removeTimeds:this._c.removeTimeds,removeHandlers:this._c.removeHandlers,addTimeds:this._c.addTimeds,addHandlers:this._c.addHandlers},this._storedJid=this._c.jid,this.logging&&e.Strophe.debug("SM stored resume state, handler count: "+this._resumeState.handlers.length)),this._c._data=[],this._originalDoDisconnect.apply(this._c,arguments);},_interceptConnectArgs:function _interceptConnectArgs(){this._connectArgs=arguments,this._originalConnect.apply(this._c,arguments);},_onStreamFeaturesAfterSASL:function _onStreamFeaturesAfterSASL(e){return this._isSupported=e.getElementsByTagNameNS(this._NS,"sm").length>0,this._originalOnStreamFeaturesAfterSASL.apply(this._c,arguments);},statusChanged:function statusChanged(t){if(this._connectionStatus=t,this.getResumeToken()||t!==e.Strophe.Status.CONNECTED&&t!==e.Strophe.Status.DISCONNECTED){if(t===e.Strophe.Status.BINDREQUIRED){this._c.jid=this._storedJid;for(var _e215 in this._resumeState)this._c[_e215]=this._resumeState[_e215];this._c.send(e.$build("resume",{xmlns:this._NS,h:this._clientProcessedStanzasCounter,previd:this._resumeToken})),this._c.flush();}else t===e.Strophe.Status.ERROR&&(this.logging&&e.Strophe.debug("SM cleared resume token on error"),this._resumeToken=void 0);}else this.logging&&e.Strophe.debug("SM reset state"),this._serverProcesssedStanzasCounter=0,this._clientProcessedStanzasCounter=0,this._clientSentStanzasCounter=0,this._isStreamManagementEnabled=!1,this._requestResponseIntervalCount=0,this._resuming=!1,t===e.Strophe.Status.DISCONNECTED&&(this._isSupported=!1),this._unacknowledgedStanzas=[],this._requestHandler&&this._c.deleteHandler(this._requestHandler),this._incomingHandler&&this._c.deleteHandler(this._incomingHandler),this._requestHandler=this._c.addHandler(this._handleServerRequestHandler.bind(this),this._NS,"r"),this._ackHandler=this._c.addHandler(this._handleServerAck.bind(this),this._NS,"a"),this._incomingHandler=this._c.addHandler(this._incomingStanzaHandler.bind(this)),this._enabledHandler=this._c._addSysHandler(this._handleEnabled.bind(this),this._NS,"enabled"),this._resumeFailedHandler=this._c._addSysHandler(this._handleResumeFailed.bind(this),this._NS,"failed"),this._resumedHandler=this._c._addSysHandler(this._handleResumed.bind(this),this._NS,"resumed");},xmlOutput:function xmlOutput(t){return(e.Strophe.isTagEqual(t,"iq")||e.Strophe.isTagEqual(t,"presence")||e.Strophe.isTagEqual(t,"message"))&&this._increaseSentStanzasCounter(t),this._originalXMLOutput.call(this._c,t);},_handleEnabled:function _handleEnabled(e){return this._isStreamManagementEnabled=!0,this._resumeToken="true"===e.getAttribute("resume")&&e.getAttribute("id"),this._c.resume(),!0;},_handleResumeFailed:function _handleResumeFailed(t){var n=t&&t.firstElementChild&&t.firstElementChild.tagName;return this._c._changeConnectStatus(e.Strophe.Status.ERROR,n,t),this._c._doDisconnect(),!0;},_handleResumed:function _handleResumed(t){var n=parseInt(t.getAttribute("h"));if(this._handleAcknowledgedStanzas(n,this._serverProcesssedStanzasCounter),this._resuming=!1,this._c.do_bind=!1,this._c.authenticated=!0,this._c.restored=!0,this._unacknowledgedStanzas.length>0){this.logging&&e.Strophe.debug("SM Sending unacknowledged stanzas",this._unacknowledgedStanzas);var _iterator93=_createForOfIteratorHelper(this._unacknowledgedStanzas),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _e216=_step93.value;this._c.send(_e216);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}else this.logging&&e.Strophe.debug("SM No unacknowledged stanzas",this._unacknowledgedStanzas);return this._c._changeConnectStatus(e.Strophe.Status.CONNECTED,null),!0;},_incomingStanzaHandler:function _incomingStanzaHandler(t){return(e.Strophe.isTagEqual(t,"iq")||e.Strophe.isTagEqual(t,"presence")||e.Strophe.isTagEqual(t,"message"))&&(this._increaseReceivedStanzasCounter(),this.autoSendCountOnEveryIncomingStanza&&this._answerProcessedStanzas()),!0;},_handleAcknowledgedStanzas:function _handleAcknowledgedStanzas(t,n){var i=t-n;i<0&&this._throwError("New reported stanza count lower than previous. New: "+t+" - Previous: "+n),i>this._unacknowledgedStanzas.length&&this._throwError("Higher reported acknowledge count than unacknowledged stanzas. Reported Acknowledge Count: "+i+" - Unacknowledge Stanza Count: "+this._unacknowledgedStanzas.length+" - New: "+t+" - Previous: "+n);for(var s=0;s<i;s++)for(var r=this._unacknowledgedStanzas.shift(),o=0;o<this._acknowledgedStanzaListeners.length;o++)this._acknowledgedStanzaListeners[o](r);this.logging&&this._unacknowledgedStanzas.length>0&&e.Strophe.warn("SM Unacknowledged stanzas",this._unacknowledgedStanzas),this._serverProcesssedStanzasCounter=t,this.requestResponseInterval>0&&(this._requestResponseIntervalCount=0);},_handleServerRequestHandler:function _handleServerRequestHandler(){return this._answerProcessedStanzas(),!0;},_handleServerAck:function _handleServerAck(e){var t=parseInt(e.getAttribute("h"));return this._handleAcknowledgedStanzas(t,this._serverProcesssedStanzasCounter),!0;},_answerProcessedStanzas:function _answerProcessedStanzas(){this._isStreamManagementEnabled&&this._c.send(e.$build("a",{xmlns:this._NS,h:this._clientProcessedStanzasCounter}));},_increaseSentStanzasCounter:function _increaseSentStanzasCounter(t){var _this205=this;if(this._isStreamManagementEnabled){if(-1!==this._unacknowledgedStanzas.indexOf(t))return;this._unacknowledgedStanzas.push(t),this._clientSentStanzasCounter++,this.requestResponseInterval>0&&(this._requestResponseIntervalCount++,this._requestResponseIntervalCount===this.requestResponseInterval&&setTimeout(function(){_this205._connectionStatus===e.Strophe.Status.CONNECTED&&_this205.requestAcknowledgement();},1));}},_increaseReceivedStanzasCounter:function _increaseReceivedStanzasCounter(){this._isStreamManagementEnabled&&this._clientProcessedStanzasCounter++;},_throwError:function _throwError(t){throw e.Strophe.error(t),new Error(t);}});}(n(9755));},825:function _(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[];for(var _e217=0;_e217<256;++_e217)n.push((_e217+256).toString(16).substr(1));t.default=function(e,t){var i=t||0,s=n;return(s[e[i+0]]+s[e[i+1]]+s[e[i+2]]+s[e[i+3]]+"-"+s[e[i+4]]+s[e[i+5]]+"-"+s[e[i+6]]+s[e[i+7]]+"-"+s[e[i+8]]+s[e[i+9]]+"-"+s[e[i+10]]+s[e[i+11]]+s[e[i+12]]+s[e[i+13]]+s[e[i+14]]+s[e[i+15]]).toLowerCase();};},7593:function _(e,t,n){"use strict";Object.defineProperty(t,"v1",{enumerable:!0,get:function get(){return i.default;}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function get(){return s.default;}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function get(){return r.default;}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function get(){return o.default;}});var i=a(n(4922)),s=a(n(6964)),r=a(n(8509)),o=a(n(5669));function a(e){return e&&e.__esModule?e:{default:e};}},489:function _(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1;}function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n;}function s(e,t,n,s,r,o){return i((a=i(i(t,e),i(s,o)))<<(c=r)|a>>>32-c,n);var a,c;}function r(e,t,n,i,r,o,a){return s(t&n|~t&i,e,t,r,o,a);}function o(e,t,n,i,r,o,a){return s(t&i|n&~i,e,t,r,o,a);}function a(e,t,n,i,r,o,a){return s(t^n^i,e,t,r,o,a);}function c(e,t,n,i,r,o,a){return s(n^(t|~i),e,t,r,o,a);}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){var _t154=unescape(encodeURIComponent(e));e=new Uint8Array(_t154.length);for(var _n114=0;_n114<_t154.length;++_n114)e[_n114]=_t154.charCodeAt(_n114);}return function(e){var t=[],n=32*e.length,i="0123456789abcdef";for(var _s47=0;_s47<n;_s47+=8){var _n115=e[_s47>>5]>>>_s47%32&255,_r26=parseInt(i.charAt(_n115>>>4&15)+i.charAt(15&_n115),16);t.push(_r26);}return t;}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;var s=1732584193,d=-271733879,l=-1732584194,h=271733878;for(var _t155=0;_t155<e.length;_t155+=16){var _n116=s,u=d,p=l,m=h;s=r(s,d,l,h,e[_t155],7,-680876936),h=r(h,s,d,l,e[_t155+1],12,-389564586),l=r(l,h,s,d,e[_t155+2],17,606105819),d=r(d,l,h,s,e[_t155+3],22,-1044525330),s=r(s,d,l,h,e[_t155+4],7,-176418897),h=r(h,s,d,l,e[_t155+5],12,1200080426),l=r(l,h,s,d,e[_t155+6],17,-1473231341),d=r(d,l,h,s,e[_t155+7],22,-45705983),s=r(s,d,l,h,e[_t155+8],7,1770035416),h=r(h,s,d,l,e[_t155+9],12,-1958414417),l=r(l,h,s,d,e[_t155+10],17,-42063),d=r(d,l,h,s,e[_t155+11],22,-1990404162),s=r(s,d,l,h,e[_t155+12],7,1804603682),h=r(h,s,d,l,e[_t155+13],12,-40341101),l=r(l,h,s,d,e[_t155+14],17,-1502002290),d=r(d,l,h,s,e[_t155+15],22,1236535329),s=o(s,d,l,h,e[_t155+1],5,-165796510),h=o(h,s,d,l,e[_t155+6],9,-1069501632),l=o(l,h,s,d,e[_t155+11],14,643717713),d=o(d,l,h,s,e[_t155],20,-373897302),s=o(s,d,l,h,e[_t155+5],5,-701558691),h=o(h,s,d,l,e[_t155+10],9,38016083),l=o(l,h,s,d,e[_t155+15],14,-660478335),d=o(d,l,h,s,e[_t155+4],20,-405537848),s=o(s,d,l,h,e[_t155+9],5,568446438),h=o(h,s,d,l,e[_t155+14],9,-1019803690),l=o(l,h,s,d,e[_t155+3],14,-187363961),d=o(d,l,h,s,e[_t155+8],20,1163531501),s=o(s,d,l,h,e[_t155+13],5,-1444681467),h=o(h,s,d,l,e[_t155+2],9,-51403784),l=o(l,h,s,d,e[_t155+7],14,1735328473),d=o(d,l,h,s,e[_t155+12],20,-1926607734),s=a(s,d,l,h,e[_t155+5],4,-378558),h=a(h,s,d,l,e[_t155+8],11,-2022574463),l=a(l,h,s,d,e[_t155+11],16,1839030562),d=a(d,l,h,s,e[_t155+14],23,-35309556),s=a(s,d,l,h,e[_t155+1],4,-1530992060),h=a(h,s,d,l,e[_t155+4],11,1272893353),l=a(l,h,s,d,e[_t155+7],16,-155497632),d=a(d,l,h,s,e[_t155+10],23,-1094730640),s=a(s,d,l,h,e[_t155+13],4,681279174),h=a(h,s,d,l,e[_t155],11,-358537222),l=a(l,h,s,d,e[_t155+3],16,-722521979),d=a(d,l,h,s,e[_t155+6],23,76029189),s=a(s,d,l,h,e[_t155+9],4,-640364487),h=a(h,s,d,l,e[_t155+12],11,-421815835),l=a(l,h,s,d,e[_t155+15],16,530742520),d=a(d,l,h,s,e[_t155+2],23,-995338651),s=c(s,d,l,h,e[_t155],6,-198630844),h=c(h,s,d,l,e[_t155+7],10,1126891415),l=c(l,h,s,d,e[_t155+14],15,-1416354905),d=c(d,l,h,s,e[_t155+5],21,-57434055),s=c(s,d,l,h,e[_t155+12],6,1700485571),h=c(h,s,d,l,e[_t155+3],10,-1894986606),l=c(l,h,s,d,e[_t155+10],15,-1051523),d=c(d,l,h,s,e[_t155+1],21,-2054922799),s=c(s,d,l,h,e[_t155+8],6,1873313359),h=c(h,s,d,l,e[_t155+15],10,-30611744),l=c(l,h,s,d,e[_t155+6],15,-1560198380),d=c(d,l,h,s,e[_t155+13],21,1309151649),s=c(s,d,l,h,e[_t155+4],6,-145523070),h=c(h,s,d,l,e[_t155+11],10,-1120210379),l=c(l,h,s,d,e[_t155+2],15,718787259),d=c(d,l,h,s,e[_t155+9],21,-343485551),s=i(s,_n116),d=i(d,u),l=i(l,p),h=i(h,m);}return[s,d,l,h];}(function(e){if(0===e.length)return[];var t=8*e.length,i=new Uint32Array(n(t));for(var _n117=0;_n117<t;_n117+=8)i[_n117>>5]|=(255&e[_n117/8])<<_n117%32;return i;}(e),8*e.length));};},6827:function _(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i);};var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);},3558:function _(e,t){"use strict";function n(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i;}}function i(e,t){return e<<t|e>>>32-t;}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],s=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var _t156=unescape(encodeURIComponent(e));e=[];for(var _n118=0;_n118<_t156.length;++_n118)e.push(_t156.charCodeAt(_n118));}e.push(128);var r=e.length/4+2,o=Math.ceil(r/16),a=new Array(o);for(var _t157=0;_t157<o;++_t157){var _n119=new Uint32Array(16);for(var _i104=0;_i104<16;++_i104)_n119[_i104]=e[64*_t157+4*_i104]<<24|e[64*_t157+4*_i104+1]<<16|e[64*_t157+4*_i104+2]<<8|e[64*_t157+4*_i104+3];a[_t157]=_n119;}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var _e218=0;_e218<o;++_e218){var _r27=new Uint32Array(80);for(var _t158=0;_t158<16;++_t158)_r27[_t158]=a[_e218][_t158];for(var _e219=16;_e219<80;++_e219)_r27[_e219]=i(_r27[_e219-3]^_r27[_e219-8]^_r27[_e219-14]^_r27[_e219-16],1);var _o23=s[0],c=s[1],d=s[2],l=s[3],h=s[4];for(var _e220=0;_e220<80;++_e220){var _s48=Math.floor(_e220/20),_a11=i(_o23,5)+n(_s48,c,d,l)+h+t[_s48]+_r27[_e220]>>>0;h=l,l=d,d=i(c,30)>>>0,c=_o23,_o23=_a11;}s[0]=s[0]+_o23>>>0,s[1]=s[1]+c>>>0,s[2]=s[2]+d>>>0,s[3]=s[3]+l>>>0,s[4]=s[4]+h>>>0;}return[s[0]>>24&255,s[0]>>16&255,s[0]>>8&255,255&s[0],s[1]>>24&255,s[1]>>16&255,s[1]>>8&255,255&s[1],s[2]>>24&255,s[2]>>16&255,s[2]>>8&255,255&s[2],s[3]>>24&255,s[3]>>16&255,s[3]>>8&255,255&s[3],s[4]>>24&255,s[4]>>16&255,s[4]>>8&255,255&s[4]];};},4922:function _(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6827)),s=r(n(825));function r(e){return e&&e.__esModule?e:{default:e};}var o,a,c=0,d=0;t.default=function(e,t,n){var r=t&&n||0;var l=t||[];var h=(e=e||{}).node||o,u=void 0!==e.clockseq?e.clockseq:a;if(null==h||null==u){var _t159=e.random||(e.rng||i.default)();null==h&&(h=o=[1|_t159[0],_t159[1],_t159[2],_t159[3],_t159[4],_t159[5]]),null==u&&(u=a=16383&(_t159[6]<<8|_t159[7]));}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:d+1;var f=p-c+(m-d)/1e4;if(f<0&&void 0===e.clockseq&&(u=u+1&16383),(f<0||p>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can\'t create more than 10M uuids/sec");c=p,d=m,a=u,p+=122192928e5;var g=(1e4*(268435455&p)+m)%4294967296;l[r++]=g>>>24&255,l[r++]=g>>>16&255,l[r++]=g>>>8&255,l[r++]=255&g;var _=p/4294967296*1e4&268435455;l[r++]=_>>>8&255,l[r++]=255&_,l[r++]=_>>>24&15|16,l[r++]=_>>>16&255,l[r++]=u>>>8|128,l[r++]=255&u;for(var _e221=0;_e221<6;++_e221)l[r+_e221]=h[_e221];return t||(0,s.default)(l);};},6964:function _(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(9137)),s=r(n(489));function r(e){return e&&e.__esModule?e:{default:e};}var o=(0,i.default)("v3",48,s.default);t.default=o;},9137:function _(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){function i(e,i,r,o){var a=r&&o||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));var t=[];for(var _n120=0;_n120<e.length;++_n120)t.push(e.charCodeAt(_n120));return t;}(e)),"string"==typeof i&&(i=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,function(e){t.push(parseInt(e,16));}),t;}(i)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(i)||16!==i.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var c=n(i.concat(e));if(c[6]=15&c[6]|t,c[8]=63&c[8]|128,r)for(var _e222=0;_e222<16;++_e222)r[a+_e222]=c[_e222];return r||(0,s.default)(c);}try{i.name=e;}catch(e){}return i.DNS=r,i.URL=o,i;},t.URL=t.DNS=void 0;var i,s=(i=n(825))&&i.__esModule?i:{default:i};var r="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=r;var o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=o;},8509:function _(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6827)),s=r(n(825));function r(e){return e&&e.__esModule?e:{default:e};}t.default=function(e,t,n){"string"==typeof e&&(t="binary"===e?new Uint8Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||i.default)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){var _e223=n||0;for(var _n121=0;_n121<16;++_n121)t[_e223+_n121]=r[_n121];return t;}return(0,s.default)(r);};},5669:function _(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(9137)),s=r(n(3558));function r(e){return e&&e.__esModule?e:{default:e};}var o=(0,i.default)("v5",80,s.default);t.default=o;},835:function _(e,t,n){"use strict";n.r(t),n.d(t,{default:function _default(){return ae;}});var i={};n.r(i),n.d(i,{fixNegotiationNeeded:function fixNegotiationNeeded(){return M;},shimAddTrackRemoveTrack:function shimAddTrackRemoveTrack(){return I;},shimAddTrackRemoveTrackWithNative:function shimAddTrackRemoveTrackWithNative(){return w;},shimGetDisplayMedia:function shimGetDisplayMedia(){return E;},shimGetSendersWithDtmf:function shimGetSendersWithDtmf(){return T;},shimGetStats:function shimGetStats(){return R;},shimGetUserMedia:function shimGetUserMedia(){return y;},shimMediaStream:function shimMediaStream(){return C;},shimOnTrack:function shimOnTrack(){return b;},shimPeerConnection:function shimPeerConnection(){return P;},shimSenderReceiverGetStats:function shimSenderReceiverGetStats(){return A;}});var s={};n.r(s),n.d(s,{shimAddTransceiver:function shimAddTransceiver(){return $;},shimCreateAnswer:function shimCreateAnswer(){return V;},shimCreateOffer:function shimCreateOffer(){return B;},shimGetDisplayMedia:function shimGetDisplayMedia(){return N;},shimGetParameters:function shimGetParameters(){return U;},shimGetUserMedia:function shimGetUserMedia(){return D;},shimOnTrack:function shimOnTrack(){return k;},shimPeerConnection:function shimPeerConnection(){return O;},shimRTCDataChannel:function shimRTCDataChannel(){return j;},shimReceiverGetStats:function shimReceiverGetStats(){return x;},shimRemoveStream:function shimRemoveStream(){return F;},shimSenderGetStats:function shimSenderGetStats(){return L;}});var r={};n.r(r),n.d(r,{shimAudioContext:function shimAudioContext(){return X;},shimCallbacksAPI:function shimCallbacksAPI(){return G;},shimConstraints:function shimConstraints(){return K;},shimCreateOfferLegacy:function shimCreateOfferLegacy(){return Q;},shimGetUserMedia:function shimGetUserMedia(){return q;},shimLocalStreamsAPI:function shimLocalStreamsAPI(){return J;},shimRTCIceServerUrls:function shimRTCIceServerUrls(){return z;},shimRemoteStreamsAPI:function shimRemoteStreamsAPI(){return H;},shimTrackEventTransceiver:function shimTrackEventTransceiver(){return W;}});var o={};n.r(o),n.d(o,{removeExtmapAllowMixed:function removeExtmapAllowMixed(){return se;},shimAddIceCandidateNullOrEmpty:function shimAddIceCandidateNullOrEmpty(){return re;},shimConnectionState:function shimConnectionState(){return ie;},shimMaxMessageSize:function shimMaxMessageSize(){return te;},shimRTCIceCandidate:function shimRTCIceCandidate(){return ee;},shimSendThrowTypeError:function shimSendThrowTypeError(){return ne;}});var a=!0,c=!0;function d(e,t,n){var i=e.match(t);return i&&i.length>=n&&parseInt(i[n],10);}function l(e,t,n){if(!e.RTCPeerConnection)return;var i=e.RTCPeerConnection.prototype,s=i.addEventListener;i.addEventListener=function(e,i){if(e!==t)return s.apply(this,arguments);var r=function r(e){var t=n(e);t&&(i.handleEvent?i.handleEvent(t):i(t));};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map()),this._eventMap[t].set(i,r),s.apply(this,[e,r]);};var r=i.removeEventListener;i.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return r.apply(this,arguments);if(!this._eventMap[t].has(n))return r.apply(this,arguments);var i=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,r.apply(this,[e,i]);},Object.defineProperty(i,"on"+t,{get:function get(){return this["_on"+t];},set:function set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e);},enumerable:!0,configurable:!0});}function h(e){return"boolean"!=typeof e?new Error("Argument type: "+_typeof(e)+". Please use a boolean."):(a=e,e?"adapter.js logging disabled":"adapter.js logging enabled");}function u(e){return"boolean"!=typeof e?new Error("Argument type: "+_typeof(e)+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"));}function p(){if("object"==(typeof window==="undefined"?"undefined":_typeof(window))){if(a)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments);}}function m(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.");}function f(e){return"[object Object]"===Object.prototype.toString.call(e);}function g(e){return f(e)?Object.keys(e).reduce(function(t,n){var i=f(e[n]),s=i?g(e[n]):e[n],r=i&&!Object.keys(s).length;return void 0===s||r?t:Object.assign(t,_defineProperty({},n,s));},{}):e;}function _(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach(function(i){i.endsWith("Id")?_(e,e.get(t[i]),n):i.endsWith("Ids")&&t[i].forEach(function(t){_(e,e.get(t),n);});}));}function v(e,t,n){var i=n?"outbound-rtp":"inbound-rtp",s=new Map();if(null===t)return s;var r=[];return e.forEach(function(e){"track"===e.type&&e.trackIdentifier===t.id&&r.push(e);}),r.forEach(function(t){e.forEach(function(n){n.type===i&&n.trackId===t.id&&_(e,n,s);});}),s;}var S=p;function y(e,t){var n=e&&e.navigator;if(!n.mediaDevices)return;var i=function i(e){if("object"!=_typeof(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"===n||"advanced"===n||"mediaSource"===n)return;var i="object"==_typeof(e[n])?e[n]:{ideal:e[n]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);var s=function s(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t;};if(void 0!==i.ideal){t.optional=t.optional||[];var _e224={};"number"==typeof i.ideal?(_e224[s("min",n)]=i.ideal,t.optional.push(_e224),_e224={},_e224[s("max",n)]=i.ideal,t.optional.push(_e224)):(_e224[s("",n)]=i.ideal,t.optional.push(_e224));}void 0!==i.exact&&"number"!=typeof i.exact?(t.mandatory=t.mandatory||{},t.mandatory[s("",n)]=i.exact):["min","max"].forEach(function(e){void 0!==i[e]&&(t.mandatory=t.mandatory||{},t.mandatory[s(e,n)]=i[e]);});}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t;},s=function s(e,_s49){if(t.version>=61)return _s49(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==_typeof(e.audio)){var _t160=function _t160(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t]);};_t160((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),_t160(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio);}if(e&&"object"==_typeof(e.video)){var _r28=e.video.facingMode;_r28=_r28&&("object"==_typeof(_r28)?_r28:{ideal:_r28});var _o24=t.version<66;if(_r28&&("user"===_r28.exact||"environment"===_r28.exact||"user"===_r28.ideal||"environment"===_r28.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||_o24)){var _t161;if(delete e.video.facingMode,"environment"===_r28.exact||"environment"===_r28.ideal?_t161=["back","rear"]:"user"!==_r28.exact&&"user"!==_r28.ideal||(_t161=["front"]),_t161)return n.mediaDevices.enumerateDevices().then(function(n){var o=(n=n.filter(function(e){return"videoinput"===e.kind;})).find(function(e){return _t161.some(function(t){return e.label.toLowerCase().includes(t);});});return!o&&n.length&&_t161.includes("back")&&(o=n[n.length-1]),o&&(e.video.deviceId=_r28.exact?{exact:o.deviceId}:{ideal:o.deviceId}),e.video=i(e.video),S("chrome: "+JSON.stringify(e)),_s49(e);});}e.video=i(e.video);}return S("chrome: "+JSON.stringify(e)),_s49(e);},r=function r(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function toString(){return this.name+(this.message&&": ")+this.message;}};};if(n.getUserMedia=function(e,t,i){s(e,function(e){n.webkitGetUserMedia(e,t,function(e){i&&i(r(e));});});}.bind(n),n.mediaDevices.getUserMedia){var _e225=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return s(t,function(t){return _e225(t).then(function(e){if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(function(e){e.stop();}),new DOMException("","NotFoundError");return e;},function(e){return Promise.reject(r(e));});});};}}function E(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(function(t){var i=n.video&&n.video.width,s=n.video&&n.video.height,r=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:r||3}},i&&(n.video.mandatory.maxWidth=i),s&&(n.video.mandatory.maxHeight=s),e.navigator.mediaDevices.getUserMedia(n);});}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"));}function C(e){e.MediaStream=e.MediaStream||e.webkitMediaStream;}function b(e){if("object"==_typeof(e)&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function get(){return this._ontrack;},set:function set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e);},enumerable:!0,configurable:!0});var _t162=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var _this206=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",function(n){var i;i=e.RTCPeerConnection.prototype.getReceivers?_this206.getReceivers().find(function(e){return e.track&&e.track.id===n.track.id;}):{track:n.track};var s=new Event("track");s.track=n.track,s.receiver=i,s.transceiver={receiver:i},s.streams=[t.stream],_this206.dispatchEvent(s);}),t.stream.getTracks().forEach(function(n){var i;i=e.RTCPeerConnection.prototype.getReceivers?_this206.getReceivers().find(function(e){return e.track&&e.track.id===n.id;}):{track:n};var s=new Event("track");s.track=n,s.receiver=i,s.transceiver={receiver:i},s.streams=[t.stream],_this206.dispatchEvent(s);});},this.addEventListener("addstream",this._ontrackpoly)),_t162.apply(this,arguments);};}else l(e,"track",function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e;});}function T(e){if("object"==_typeof(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var _t163=function _t163(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf;},_pc:e};};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice();};var _n122=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){var s=_n122.apply(this,arguments);return s||(s=_t163(this,e),this._senders.push(s)),s;};var _i105=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){_i105.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1);};}var _n123=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var _this207=this;this._senders=this._senders||[],_n123.apply(this,[e]),e.getTracks().forEach(function(e){_this207._senders.push(_t163(_this207,e));});};var _i106=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var _this208=this;this._senders=this._senders||[],_i106.apply(this,[e]),e.getTracks().forEach(function(e){var t=_this208._senders.find(function(t){return t.track===e;});t&&_this208._senders.splice(_this208._senders.indexOf(t),1);});};}else if("object"==_typeof(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var _t164=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var _this209=this;var e=_t164.apply(this,[]);return e.forEach(function(e){return e._pc=_this209;}),e;},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf;}});}}function R(e){if(!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var _this210=this;var _arguments=Array.prototype.slice.call(arguments),e=_arguments[0],n=_arguments[1],i=_arguments[2];if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);var s=function s(e){var t={};return e.result().forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(function(t){n[t]=e.stat(t);}),t[n.id]=n;}),t;},r=function r(e){return new Map(Object.keys(e).map(function(t){return[t,e[t]];}));};if(arguments.length>=2){var _i107=function _i107(e){n(r(s(e)));};return t.apply(this,[_i107,e]);}return new Promise(function(e,n){t.apply(_this210,[function(t){e(r(s(t)));},n]);}).then(n,i);};}function A(e){if(!("object"==_typeof(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){var _t165=e.RTCPeerConnection.prototype.getSenders;_t165&&(e.RTCPeerConnection.prototype.getSenders=function(){var _this211=this;var e=_t165.apply(this,[]);return e.forEach(function(e){return e._pc=_this211;}),e;});var _n124=e.RTCPeerConnection.prototype.addTrack;_n124&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=_n124.apply(this,arguments);return e._pc=this,e;}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then(function(t){return v(t,e.track,!0);});};}if(!("getStats"in e.RTCRtpReceiver.prototype)){var _t166=e.RTCPeerConnection.prototype.getReceivers;_t166&&(e.RTCPeerConnection.prototype.getReceivers=function(){var _this212=this;var e=_t166.apply(this,[]);return e.forEach(function(e){return e._pc=_this212;}),e;}),l(e,"track",function(e){return e.receiver._pc=e.srcElement,e;}),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then(function(t){return v(t,e.track,!1);});};}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var _e226=arguments[0];var _t167,_n125,_i108;return this.getSenders().forEach(function(n){n.track===_e226&&(_t167?_i108=!0:_t167=n);}),this.getReceivers().forEach(function(t){return t.track===_e226&&(_n125?_i108=!0:_n125=t),t.track===_e226;}),_i108||_t167&&_n125?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):_t167?_t167.getStats():_n125?_n125.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"));}return t.apply(this,arguments);};}function w(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var _this213=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(function(e){return _this213._shimmedLocalStreams[e][0];});};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var i=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(i)&&this._shimmedLocalStreams[n.id].push(i):this._shimmedLocalStreams[n.id]=[n,i],i;};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var _this214=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(function(e){if(_this214.getSenders().find(function(t){return t.track===e;}))throw new DOMException("Track already exists.","InvalidAccessError");});var t=this.getSenders();n.apply(this,arguments);var i=this.getSenders().filter(function(e){return-1===t.indexOf(e);});this._shimmedLocalStreams[e.id]=[e].concat(i);};var i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],i.apply(this,arguments);};var s=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var _this215=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(function(t){var n=_this215._shimmedLocalStreams[t].indexOf(e);-1!==n&&_this215._shimmedLocalStreams[t].splice(n,1),1===_this215._shimmedLocalStreams[t].length&&delete _this215._shimmedLocalStreams[t];}),s.apply(this,arguments);};}function I(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return w(e);var n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var _this216=this;var e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(function(e){return _this216._reverseStreams[e.id];});};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var _this217=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(function(e){if(_this217.getSenders().find(function(t){return t.track===e;}))throw new DOMException("Track already exists.","InvalidAccessError");}),!this._reverseStreams[t.id]){var _n126=new e.MediaStream(t.getTracks());this._streams[t.id]=_n126,this._reverseStreams[_n126.id]=t,t=_n126;}i.apply(this,[t]);};var s=e.RTCPeerConnection.prototype.removeStream;function r(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var i=e._reverseStreams[t],s=e._streams[i.id];n=n.replace(new RegExp(s.id,"g"),i.id);}),new RTCSessionDescription({type:t.type,sdp:n});}function o(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var i=e._reverseStreams[t],s=e._streams[i.id];n=n.replace(new RegExp(i.id,"g"),s.id);}),new RTCSessionDescription({type:t.type,sdp:n});}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},s.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id];},e.RTCPeerConnection.prototype.addTrack=function(t,n){var _this218=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection\'s signalingState is \'closed\'.","InvalidStateError");var i=[].slice.call(arguments,1);if(1!==i.length||!i[0].getTracks().find(function(e){return e===t;}))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");var s=this.getSenders().find(function(e){return e.track===t;});if(s)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var r=this._streams[n.id];if(r)r.addTrack(t),Promise.resolve().then(function(){_this218.dispatchEvent(new Event("negotiationneeded"));});else{var _i109=new e.MediaStream([t]);this._streams[n.id]=_i109,this._reverseStreams[_i109.id]=n,this.addStream(_i109);}return this.getSenders().find(function(e){return e.track===t;});},["createOffer","createAnswer"].forEach(function(t){var n=e.RTCPeerConnection.prototype[t],i=_defineProperty({},t,function(){var _this219=this;var e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[function(t){var n=r(_this219,t);e[0].apply(null,[n]);},function(t){e[1]&&e[1].apply(null,t);},arguments[2]]):n.apply(this,arguments).then(function(e){return r(_this219,e);});});e.RTCPeerConnection.prototype[t]=i[t];});var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=o(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments);};var c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function get(){var e=c.get.apply(this);return""===e.type?e:r(this,e);}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var _this220=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection\'s signalingState is \'closed\'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");var t;this._streams=this._streams||{},Object.keys(this._streams).forEach(function(n){_this220._streams[n].getTracks().find(function(t){return e.track===t;})&&(t=_this220._streams[n]);}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")));};}function P(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var n=e.RTCPeerConnection.prototype[t],i=_defineProperty({},t,function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments);});e.RTCPeerConnection.prototype[t]=i[t];});}function M(e,t){l(e,"negotiationneeded",function(e){var n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e;});}function D(e,t){var n=e&&e.navigator,i=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,i){m("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,i);},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var _e227=function _e227(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t]);},_t168=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==_typeof(n)&&"object"==_typeof(n.audio)&&(n=JSON.parse(JSON.stringify(n)),_e227(n.audio,"autoGainControl","mozAutoGainControl"),_e227(n.audio,"noiseSuppression","mozNoiseSuppression")),_t168(n);},i&&i.prototype.getSettings){var _t169=i.prototype.getSettings;i.prototype.getSettings=function(){var n=_t169.apply(this,arguments);return _e227(n,"mozAutoGainControl","autoGainControl"),_e227(n,"mozNoiseSuppression","noiseSuppression"),n;};}if(i&&i.prototype.applyConstraints){var _t170=i.prototype.applyConstraints;i.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==_typeof(n)&&(n=JSON.parse(JSON.stringify(n)),_e227(n,"autoGainControl","mozAutoGainControl"),_e227(n,"noiseSuppression","mozNoiseSuppression")),_t170.apply(this,[n]);};}}}function N(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){var _e228=new DOMException("getDisplayMedia without video constraints is undefined");return _e228.name="NotFoundError",_e228.code=8,Promise.reject(_e228);}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n);});}function k(e){"object"==_typeof(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function get(){return{receiver:this.receiver};}});}function O(e,t){if("object"!=_typeof(e)||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var n=e.RTCPeerConnection.prototype[t],i=_defineProperty({},t,function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments);});e.RTCPeerConnection.prototype[t]=i[t];});var n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var _arguments2=Array.prototype.slice.call(arguments),e=_arguments2[0],s=_arguments2[1],r=_arguments2[2];return i.apply(this,[e||null]).then(function(e){if(t.version<53&&!s)try{e.forEach(function(e){e.type=n[e.type]||e.type;});}catch(t){if("TypeError"!==t.name)throw t;e.forEach(function(t,i){e.set(i,Object.assign({},t,{type:n[t.type]||t.type}));});}return e;}).then(s,r);};}function L(e){if("object"!=_typeof(e)||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var _this221=this;var e=t.apply(this,[]);return e.forEach(function(e){return e._pc=_this221;}),e;});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e;}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map());};}function x(e){if("object"!=_typeof(e)||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var _this222=this;var e=t.apply(this,[]);return e.forEach(function(e){return e._pc=_this222;}),e;}),l(e,"track",function(e){return e.receiver._pc=e.srcElement,e;}),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track);};}function F(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var _this223=this;m("removeStream","removeTrack"),this.getSenders().forEach(function(t){t.track&&e.getTracks().includes(t.track)&&_this223.removeTrack(t);});});}function j(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel);}function $(e){if("object"!=_typeof(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach(function(e){if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0");});var i=t.apply(this,arguments);if(n){var _t171=i.sender,_n127=_t171.getParameters();(!("encodings"in _n127)||1===_n127.encodings.length&&0===Object.keys(_n127.encodings[0]).length)&&(_n127.encodings=e.sendEncodings,_t171.sendEncodings=e.sendEncodings,this.setParametersPromises.push(_t171.setParameters(_n127).then(function(){delete _t171.sendEncodings;}).catch(function(){delete _t171.sendEncodings;})));}return i;});}function U(e){if("object"!=_typeof(e)||!e.RTCRtpSender)return;var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e;});}function B(e){if("object"!=_typeof(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var _arguments3=arguments,_this224=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return t.apply(_this224,_arguments3);}).finally(function(){_this224.setParametersPromises=[];}):t.apply(this,arguments);};}function V(e){if("object"!=_typeof(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var _arguments4=arguments,_this225=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return t.apply(_this225,_arguments4);}).finally(function(){_this225.setParametersPromises=[];}):t.apply(this,arguments);};}function J(e){if("object"==_typeof(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams;}),!("addStream"in e.RTCPeerConnection.prototype)){var _t172=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var _this226=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(function(n){return _t172.call(_this226,n,e);}),e.getVideoTracks().forEach(function(n){return _t172.call(_this226,n,e);});},e.RTCPeerConnection.prototype.addTrack=function(e){var _this227=this;for(var _len=arguments.length,n=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){n[_key-1]=arguments[_key];}return n&&n.forEach(function(e){_this227._localStreams?_this227._localStreams.includes(e)||_this227._localStreams.push(e):_this227._localStreams=[e];}),_t172.apply(this,arguments);};}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var _this228=this;this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);var n=e.getTracks();this.getSenders().forEach(function(e){n.includes(e.track)&&_this228.removeTrack(e);});});}}function H(e){if("object"==_typeof(e)&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[];}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function get(){return this._onaddstream;},set:function set(e){var _this229=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach(function(e){if(_this229._remoteStreams||(_this229._remoteStreams=[]),_this229._remoteStreams.includes(e))return;_this229._remoteStreams.push(e);var t=new Event("addstream");t.stream=e,_this229.dispatchEvent(t);});});}});var _t173=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(function(t){if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n);});}),_t173.apply(e,arguments);};}}function G(e){if("object"!=_typeof(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype,n=t.createOffer,i=t.createAnswer,s=t.setLocalDescription,r=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){var i=arguments.length>=2?arguments[2]:arguments[0],s=n.apply(this,[i]);return t?(s.then(e,t),Promise.resolve()):s;},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],s=i.apply(this,[n]);return t?(s.then(e,t),Promise.resolve()):s;};var a=function a(e,t,n){var i=s.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i;};t.setLocalDescription=a,a=function a(e,t,n){var i=r.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i;},t.setRemoteDescription=a,a=function a(e,t,n){var i=o.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i;},t.addIceCandidate=a;}function q(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var _e229=t.mediaDevices,_n128=_e229.getUserMedia.bind(_e229);t.mediaDevices.getUserMedia=function(e){return _n128(K(e));};}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,i){t.mediaDevices.getUserMedia(e).then(n,i);}.bind(t));}function K(e){return e&&void 0!==e.video?Object.assign({},e,{video:g(e.video)}):e;}function z(e){if(!e.RTCPeerConnection)return;var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){var _t174=[];for(var _n129=0;_n129<e.iceServers.length;_n129++){var _i113=e.iceServers[_n129];!_i113.hasOwnProperty("urls")&&_i113.hasOwnProperty("url")?(m("RTCIceServer.url","RTCIceServer.urls"),_i113=JSON.parse(JSON.stringify(_i113)),_i113.urls=_i113.url,delete _i113.url,_t174.push(_i113)):_t174.push(e.iceServers[_n129]);}e.iceServers=_t174;}return new t(e,n);},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function get(){return t.generateCertificate;}});}function W(e){"object"==_typeof(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function get(){return{receiver:this.receiver};}});}function Q(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var _t175=this.getTransceivers().find(function(e){return"audio"===e.receiver.track.kind;});!1===e.offerToReceiveAudio&&_t175?"sendrecv"===_t175.direction?_t175.setDirection?_t175.setDirection("sendonly"):_t175.direction="sendonly":"recvonly"===_t175.direction&&(_t175.setDirection?_t175.setDirection("inactive"):_t175.direction="inactive"):!0!==e.offerToReceiveAudio||_t175||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var _n130=this.getTransceivers().find(function(e){return"video"===e.receiver.track.kind;});!1===e.offerToReceiveVideo&&_n130?"sendrecv"===_n130.direction?_n130.setDirection?_n130.setDirection("sendonly"):_n130.direction="sendonly":"recvonly"===_n130.direction&&(_n130.setDirection?_n130.setDirection("inactive"):_n130.direction="inactive"):!0!==e.offerToReceiveVideo||_n130||this.addTransceiver("video");}return t.apply(this,arguments);};}function X(e){"object"!=_typeof(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext);}var Y=n(7539),Z=n.n(Y);function ee(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==_typeof(e)&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var _n131=new t(e),_i114=Z().parseCandidate(e.candidate),_s50=Object.assign(_n131,_i114);return _s50.toJSON=function(){return{candidate:_s50.candidate,sdpMid:_s50.sdpMid,sdpMLineIndex:_s50.sdpMLineIndex,usernameFragment:_s50.usernameFragment};},_s50;}return new t(e);},e.RTCIceCandidate.prototype=t.prototype,l(e,"icecandidate",function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t;});}function te(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function get(){return void 0===this._sctp?null:this._sctp;}});var n=function n(e){if(!e||!e.sdp)return!1;var t=Z().splitSections(e.sdp);return t.shift(),t.some(function(e){var t=Z().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP");});},i=function i(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\\d+)/);if(null===t||t.length<2)return-1;var n=parseInt(t[1],10);return n!=n?-1:n;},s=function s(e){var n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n;},r=function r(e,n){var i=65536;"firefox"===t.browser&&57===t.version&&(i=65535);var s=Z().matchPrefix(e.sdp,"a=max-message-size:");return s.length>0?i=parseInt(s[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(i=2147483637),i;},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){var _this$getConfiguratio=this.getConfiguration(),_e230=_this$getConfiguratio.sdpSemantics;"plan-b"===_e230&&Object.defineProperty(this,"sctp",{get:function get(){return void 0===this._sctp?null:this._sctp;},enumerable:!0,configurable:!0});}if(n(arguments[0])){var _e231=i(arguments[0]),_t176=s(_e231),_n132=r(arguments[0],_e231);var _o25;_o25=0===_t176&&0===_n132?Number.POSITIVE_INFINITY:0===_t176||0===_n132?Math.max(_t176,_n132):Math.min(_t176,_n132);var _a12={};Object.defineProperty(_a12,"maxMessageSize",{get:function get(){return _o25;}}),this._sctp=_a12;}return o.apply(this,arguments);};}function ne(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){var n=e.send;e.send=function(){var i=arguments[0],s=i.length||i.size||i.byteLength;if("open"===e.readyState&&t.sctp&&s>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments);};}var n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=n.apply(this,arguments);return t(e,this),e;},l(e,"datachannel",function(e){return t(e.channel,e.target),e;});}function ie(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState;},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function get(){return this._onconnectionstatechange||null;},set:function set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e);},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var _n133=new Event("connectionstatechange",e);t.dispatchEvent(_n133);}return e;},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments);};});}function se(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;var n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\\na=extmap-allow-mixed")){var _n134=t.sdp.split("\\n").filter(function(e){return"a=extmap-allow-mixed"!==e.trim();}).join("\\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:_n134}):t.sdp=_n134;}return n.apply(this,arguments);};}function re(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;var n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve());});}var oe=function(){var _ref7=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=_ref7.window;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0};var n=p,a=function(e){var t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=d(n.userAgent,/Firefox\\/(\\d+)\\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=d(n.userAgent,/Chrom(e|ium)\\/(\\d+)\\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\\/(\\d+)\\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=d(n.userAgent,/AppleWebKit\\/(\\d+)\\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;}return t;}(e),c={browserDetails:a,commonShim:o,extractVersion:d,disableLog:h,disableWarnings:u,sdp:Y};switch(a.browser){case"chrome":if(!i||!P||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),c;if(null===a.version)return n("Chrome shim can not determine version, not shimming."),c;n("adapter.js shimming chrome."),c.browserShim=i,re(e,a),y(e,a),C(e),P(e,a),b(e),I(e,a),T(e),R(e),A(e),M(e,a),ee(e),ie(e),te(e,a),ne(e),se(e,a);break;case"firefox":if(!s||!O||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),c;n("adapter.js shimming firefox."),c.browserShim=s,re(e,a),D(e,a),O(e,a),k(e),F(e),L(e),x(e),j(e),$(e),U(e),B(e),V(e),ee(e),ie(e),te(e,a),ne(e);break;case"safari":if(!r||!t.shimSafari)return n("Safari shim is not included in this adapter release."),c;n("adapter.js shimming safari."),c.browserShim=r,re(e,a),z(e),Q(e),G(e),J(e),H(e),W(e),q(e),X(e),ee(e),te(e,a),ne(e),se(e,a);break;default:n("Unsupported browser!");}return c;}({window:"undefined"==typeof window?void 0:window}),ae=oe;}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports;}__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return __webpack_require__.d(t,{a:t}),t;},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]});},__webpack_require__.g=function(){if("object"==(typeof globalThis==="undefined"?"undefined":_typeof(globalThis)))return globalThis;try{return this||new Function("return this")();}catch(e){if("object"==(typeof window==="undefined"?"undefined":_typeof(window)))return window;}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e;};var __webpack_exports__=__webpack_require__(4449);return __webpack_exports__;}();});'},9278:function(e){e.exports='Strophe.addConnectionPlugin("disco",{_connection:null,_identities:[],_features:[],_items:[],init:function init(conn){this._connection=conn;this._identities=[];this._features=[];this._items=[];conn.addHandler(this._onDiscoInfo.bind(this),Strophe.NS.DISCO_INFO,"iq","get",null,null);conn.addHandler(this._onDiscoItems.bind(this),Strophe.NS.DISCO_ITEMS,"iq","get",null,null);},addIdentity:function addIdentity(category,type,name,lang){for(var i=0;i<this._identities.length;i++){if(this._identities[i].category==category&&this._identities[i].type==type&&this._identities[i].name==name&&this._identities[i].lang==lang){return false;}}this._identities.push({category:category,type:type,name:name,lang:lang});return true;},addFeature:function addFeature(var_name){for(var i=0;i<this._features.length;i++){if(this._features[i]==var_name){return false;}}this._features.push(var_name);return true;},removeFeature:function removeFeature(var_name){for(var i=0;i<this._features.length;i++){if(this._features[i]===var_name){this._features.splice(i,1);return true;}}return false;},addItem:function addItem(jid,name,node,call_back){if(node&&!call_back){return false;}this._items.push({jid:jid,name:name,node:node,call_back:call_back});return true;},info:function info(jid,node,success,error,timeout){var attrs={xmlns:Strophe.NS.DISCO_INFO};if(node){attrs.node=node;}var info=$iq({from:this._connection.jid,to:jid,type:"get"}).c("query",attrs);this._connection.sendIQ(info,success,error,timeout);},items:function items(jid,node,success,error,timeout){var attrs={xmlns:Strophe.NS.DISCO_ITEMS};if(node){attrs.node=node;}var items=$iq({from:this._connection.jid,to:jid,type:"get"}).c("query",attrs);this._connection.sendIQ(items,success,error,timeout);},_buildIQResult:function _buildIQResult(stanza,query_attrs){var id=stanza.getAttribute("id");var from=stanza.getAttribute("from");var iqresult=$iq({type:"result",id:id});if(from!==null){iqresult.attrs({to:from});}return iqresult.c("query",query_attrs);},_onDiscoInfo:function _onDiscoInfo(stanza){var node=stanza.getElementsByTagName("query")[0].getAttribute("node");var attrs={xmlns:Strophe.NS.DISCO_INFO};if(node){attrs.node=node;}var iqresult=this._buildIQResult(stanza,attrs);for(var i=0;i<this._identities.length;i++){var attrs={category:this._identities[i].category,type:this._identities[i].type};if(this._identities[i].name){attrs.name=this._identities[i].name;}if(this._identities[i].lang){attrs["xml:lang"]=this._identities[i].lang;}iqresult.c("identity",attrs).up();}for(var i=0;i<this._features.length;i++){iqresult.c("feature",{var:this._features[i]}).up();}this._connection.send(iqresult.tree());return true;},_onDiscoItems:function _onDiscoItems(stanza){var query_attrs={xmlns:Strophe.NS.DISCO_ITEMS};var node=stanza.getElementsByTagName("query")[0].getAttribute("node");if(node){query_attrs.node=node;var items=[];for(var i=0;i<this._items.length;i++){if(this._items[i].node==node){items=this._items[i].call_back(stanza);break;}}}else{var items=this._items;}var iqresult=this._buildIQResult(stanza,query_attrs);for(var i=0;i<items.length;i++){var attrs={jid:items[i].jid};if(items[i].name){attrs.name=items[i].name;}if(items[i].node){attrs.node=items[i].node;}iqresult.c("item",attrs).up();}this._connection.send(iqresult.tree());return true;}});'},4637:function(e){e.exports='function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}/** File: strophe.js\r\n *  A JavaScript library for XMPP BOSH/XMPP over Websocket.\r\n *\r\n *  This is the JavaScript version of the Strophe library.  Since JavaScript\r\n *  had no facilities for persistent TCP connections, this library uses\r\n *  Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate\r\n *  a persistent, stateful, two-way connection to an XMPP server.  More\r\n *  information on BOSH can be found in XEP 124.\r\n *\r\n *  This version of Strophe also works with WebSockets.\r\n *  For more information on XMPP-over WebSocket see this RFC:\r\n *  http://tools.ietf.org/html/rfc7395\r\n */ /* All of the Strophe globals are defined in this special function below so\r\n * that references to the globals become closures.  This will ensure that\r\n * on page reload, these references will still be available to callbacks\r\n * that are still executing.\r\n */ /* jshint ignore:start */(function(callback){/* jshint ignore:end */ // This code was written by Tyler Akins and has been placed in the\n// public domain.  It would be nice if you left this header intact.\n// Base64 code from Tyler Akins -- http://rumkin.com\n(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-base64",function(){return factory();});}else{// Browser globals\nroot.Base64=factory();}})(this,function(){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var obj={/**\r\n       * Encodes a string in base64\r\n       * @param {String} input The string to encode in base64.\r\n       */encode:function encode(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=(chr1&3)<<4|chr2>>4;enc3=(chr2&15)<<2|chr3>>6;enc4=chr3&63;if(isNaN(chr2)){enc2=(chr1&3)<<4;enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i<input.length);return output;},/**\r\n       * Decodes a base64 string.\r\n       * @param {String} input The string to decode.\r\n       */decode:function decode(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;// remove all characters that are not A-Z, a-z, 0-9, +, /, or =\ninput=input.replace(/[^A-Za-z0-9\\+\\/\\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}if(enc4!=64){output=output+String.fromCharCode(chr3);}}while(i<input.length);return output;}};return obj;});/*\r\n   * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined\r\n   * in FIPS PUB 180-1\r\n   * Version 2.1a Copyright Paul Johnston 2000 - 2002.\r\n   * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\r\n   * Distributed under the BSD License\r\n   * See http://pajhome.org.uk/crypt/md5 for details.\r\n   */ /* jshint undef: true, unused: true:, noarg: true, latedef: true */ /* global define */ /* Some functions and variables have been stripped for use with Strophe */(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-sha1",function(){return factory();});}else{// Browser globals\nroot.SHA1=factory();}})(this,function(){/*\r\n     * Calculate the SHA-1 of an array of big-endian words, and a bit length\r\n     */function core_sha1(x,len){/* append padding */x[len>>5]|=0x80<<24-len%32;x[(len+64>>9<<4)+15]=len;var w=new Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;var i,j,t,olda,oldb,oldc,oldd,olde;for(i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;olde=e;for(j=0;j<80;j++){if(j<16){w[j]=x[i+j];}else{w[j]=rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);}t=safe_add(safe_add(rol(a,5),sha1_ft(j,b,c,d)),safe_add(safe_add(e,w[j]),sha1_kt(j)));e=d;d=c;c=rol(b,30);b=a;a=t;}a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd);e=safe_add(e,olde);}return[a,b,c,d,e];}/*\r\n     * Perform the appropriate triplet combination function for the current\r\n     * iteration\r\n     */function sha1_ft(t,b,c,d){if(t<20){return b&c|~b&d;}if(t<40){return b^c^d;}if(t<60){return b&c|b&d|c&d;}return b^c^d;}/*\r\n     * Determine the appropriate additive constant for the current iteration\r\n     */function sha1_kt(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514;}/*\r\n     * Calculate the HMAC-SHA1 of a key and some data\r\n     */function core_hmac_sha1(key,data){var bkey=str2binb(key);if(bkey.length>16){bkey=core_sha1(bkey,key.length*8);}var ipad=new Array(16),opad=new Array(16);for(var i=0;i<16;i++){ipad[i]=bkey[i]^0x36363636;opad[i]=bkey[i]^0x5c5c5c5c;}var hash=core_sha1(ipad.concat(str2binb(data)),512+data.length*8);return core_sha1(opad.concat(hash),512+160);}/*\r\n     * Add integers, wrapping at 2^32. This uses 16-bit operations internally\r\n     * to work around bugs in some JS interpreters.\r\n     */function safe_add(x,y){var lsw=(x&0xffff)+(y&0xffff);var msw=(x>>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&0xffff;}/*\r\n     * Bitwise rotate a 32-bit number to the left.\r\n     */function rol(num,cnt){return num<<cnt|num>>>32-cnt;}/*\r\n     * Convert an 8-bit or 16-bit string to an array of big-endian words\r\n     * In 8-bit function, characters >255 have their hi-byte silently ignored.\r\n     */function str2binb(str){var bin=[];var mask=255;for(var i=0;i<str.length*8;i+=8){bin[i>>5]|=(str.charCodeAt(i/8)&mask)<<24-i%32;}return bin;}/*\r\n     * Convert an array of big-endian words to a string\r\n     */function binb2str(bin){var str="";var mask=255;for(var i=0;i<bin.length*32;i+=8){str+=String.fromCharCode(bin[i>>5]>>>24-i%32&mask);}return str;}/*\r\n     * Convert an array of big-endian words to a base-64 string\r\n     */function binb2b64(binarray){var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";var triplet,j;for(var i=0;i<binarray.length*4;i+=3){triplet=(binarray[i>>2]>>8*(3-i%4)&0xff)<<16|(binarray[i+1>>2]>>8*(3-(i+1)%4)&0xff)<<8|binarray[i+2>>2]>>8*(3-(i+2)%4)&0xff;for(j=0;j<4;j++){if(i*8+j*6>binarray.length*32){str+="=";}else{str+=tab.charAt(triplet>>6*(3-j)&0x3f);}}}return str;}/*\r\n     * These are the functions you\'ll usually want to call\r\n     * They take string arguments and return either hex or base-64 encoded strings\r\n     */return{b64_hmac_sha1:function b64_hmac_sha1(key,data){return binb2b64(core_hmac_sha1(key,data));},b64_sha1:function b64_sha1(s){return binb2b64(core_sha1(str2binb(s),s.length*8));},binb2str:binb2str,core_hmac_sha1:core_hmac_sha1,str_hmac_sha1:function str_hmac_sha1(key,data){return binb2str(core_hmac_sha1(key,data));},str_sha1:function str_sha1(s){return binb2str(core_sha1(str2binb(s),s.length*8));}};});/*\r\n   * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\r\n   * Digest Algorithm, as defined in RFC 1321.\r\n   * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.\r\n   * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\r\n   * Distributed under the BSD License\r\n   * See http://pajhome.org.uk/crypt/md5 for more info.\r\n   */ /*\r\n   * Everything that isn\'t used by Strophe has been stripped here!\r\n   */(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-md5",function(){return factory();});}else{// Browser globals\nroot.MD5=factory();}})(this,function(b){/*\r\n     * Add integers, wrapping at 2^32. This uses 16-bit operations internally\r\n     * to work around bugs in some JS interpreters.\r\n     */var safe_add=function safe_add(x,y){var lsw=(x&0xffff)+(y&0xffff);var msw=(x>>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&0xffff;};/*\r\n     * Bitwise rotate a 32-bit number to the left.\r\n     */var bit_rol=function bit_rol(num,cnt){return num<<cnt|num>>>32-cnt;};/*\r\n     * Convert a string to an array of little-endian words\r\n     */var str2binl=function str2binl(str){var bin=[];for(var i=0;i<str.length*8;i+=8){bin[i>>5]|=(str.charCodeAt(i/8)&255)<<i%32;}return bin;};/*\r\n     * Convert an array of little-endian words to a string\r\n     */var binl2str=function binl2str(bin){var str="";for(var i=0;i<bin.length*32;i+=8){str+=String.fromCharCode(bin[i>>5]>>>i%32&255);}return str;};/*\r\n     * Convert an array of little-endian words to a hex string.\r\n     */var binl2hex=function binl2hex(binarray){var hex_tab="0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt(binarray[i>>2]>>i%4*8+4&0xf)+hex_tab.charAt(binarray[i>>2]>>i%4*8&0xf);}return str;};/*\r\n     * These functions implement the four basic operations the algorithm uses.\r\n     */var md5_cmn=function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b);};var md5_ff=function md5_ff(a,b,c,d,x,s,t){return md5_cmn(b&c|~b&d,a,b,x,s,t);};var md5_gg=function md5_gg(a,b,c,d,x,s,t){return md5_cmn(b&d|c&~d,a,b,x,s,t);};var md5_hh=function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t);};var md5_ii=function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^(b|~d),a,b,x,s,t);};/*\r\n     * Calculate the MD5 of an array of little-endian words, and a bit length\r\n     */var core_md5=function core_md5(x,len){/* append padding */x[len>>5]|=0x80<<len%32;x[(len+64>>>9<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var olda,oldb,oldc,oldd;for(var i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd);}return[a,b,c,d];};var obj={/*\r\n       * These are the functions you\'ll usually want to call.\r\n       * They take string arguments and return either hex or base-64 encoded\r\n       * strings.\r\n       */hexdigest:function hexdigest(s){return binl2hex(core_md5(str2binl(s),s.length*8));},hash:function hash(s){return binl2str(core_md5(str2binl(s),s.length*8));}};return obj;});/*\r\n    This program is distributed under the terms of the MIT license.\r\n    Please see the LICENSE file for details.\r\n\r\n    Copyright 2006-2008, OGG, LLC\r\n*/ /* jshint undef: true, unused: true:, noarg: true, latedef: true */ /** PrivateFunction: Function.prototype.bind\r\n   *  Bind a function to an instance.\r\n   *\r\n   *  This Function object extension method creates a bound method similar\r\n   *  to those in Python.  This means that the \'this\' object will point\r\n   *  to the instance you want.  See\r\n   *  <a href=\'https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind\'>MDC\'s bind() documentation</a> and\r\n   *  <a href=\'http://benjamin.smedbergs.us/blog/2007-01-03/bound-functions-and-function-imports-in-javascript/\'>Bound Functions and Function Imports in JavaScript</a>\r\n   *  for a complete explanation.\r\n   *\r\n   *  This extension already exists in some browsers (namely, Firefox 3), but\r\n   *  we provide it to support those that don\'t.\r\n   *\r\n   *  Parameters:\r\n   *    (Object) obj - The object that will become \'this\' in the bound function.\r\n   *    (Object) argN - An option argument that will be prepended to the\r\n   *      arguments given for the function call\r\n   *\r\n   *  Returns:\r\n   *    The bound function.\r\n   */if(!Function.prototype.bind){Function.prototype.bind=function(obj/*, arg1, arg2, ... */){var func=this;var _slice=Array.prototype.slice;var _concat=Array.prototype.concat;var _args=_slice.call(arguments,1);return function(){return func.apply(obj?obj:this,_concat.call(_args,_slice.call(arguments,0)));};};}/** PrivateFunction: Array.isArray\r\n   *  This is a polyfill for the ES5 Array.isArray method.\r\n   */if(!Array.isArray){Array.isArray=function(arg){return Object.prototype.toString.call(arg)==="[object Array]";};}/** PrivateFunction: Array.prototype.indexOf\r\n   *  Return the index of an object in an array.\r\n   *\r\n   *  This function is not supplied by some JavaScript implementations, so\r\n   *  we provide it if it is missing.  This code is from:\r\n   *  http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf\r\n   *\r\n   *  Parameters:\r\n   *    (Object) elt - The object to look for.\r\n   *    (Integer) from - The index from which to start looking. (optional).\r\n   *\r\n   *  Returns:\r\n   *    The index of elt in the array or -1 if not found.\r\n   */if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt/*, from*/){var len=this.length;var from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len;}for(;from<len;from++){if(from in this&&this[from]===elt){return from;}}return-1;};}/*\r\n    This program is distributed under the terms of the MIT license.\r\n    Please see the LICENSE file for details.\r\n\r\n    Copyright 2006-2008, OGG, LLC\r\n*/ /* jshint undef: true, unused: true:, noarg: true, latedef: true */ /*global define, document, window, setTimeout, clearTimeout, console, ActiveXObject, DOMParser */(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-core",["strophe-sha1","strophe-base64","strophe-md5","strophe-polyfill"],function(){return factory.apply(this,arguments);});}else{// Browser globals\nvar o=factory(root.SHA1,root.Base64,root.MD5);window.Strophe=o.Strophe;window.$build=o.$build;window.$iq=o.$iq;window.$msg=o.$msg;window.$pres=o.$pres;window.SHA1=o.SHA1;window.Base64=o.Base64;window.MD5=o.MD5;window.b64_hmac_sha1=o.SHA1.b64_hmac_sha1;window.b64_sha1=o.SHA1.b64_sha1;window.str_hmac_sha1=o.SHA1.str_hmac_sha1;window.str_sha1=o.SHA1.str_sha1;}})(this,function(SHA1,Base64,MD5){var Strophe;/** Function: $build\r\n     *  Create a Strophe.Builder.\r\n     *  This is an alias for \'new Strophe.Builder(name, attrs)\'.\r\n     *\r\n     *  Parameters:\r\n     *    (String) name - The root element name.\r\n     *    (Object) attrs - The attributes for the root element in object notation.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Builder object.\r\n     */function $build(name,attrs){return new Strophe.Builder(name,attrs);}/** Function: $msg\r\n     *  Create a Strophe.Builder with a <message/> element as the root.\r\n     *\r\n     *  Parmaeters:\r\n     *    (Object) attrs - The <message/> element attributes in object notation.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Builder object.\r\n     */function $msg(attrs){return new Strophe.Builder("message",attrs);}/** Function: $iq\r\n     *  Create a Strophe.Builder with an <iq/> element as the root.\r\n     *\r\n     *  Parameters:\r\n     *    (Object) attrs - The <iq/> element attributes in object notation.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Builder object.\r\n     */function $iq(attrs){return new Strophe.Builder("iq",attrs);}/** Function: $pres\r\n     *  Create a Strophe.Builder with a <presence/> element as the root.\r\n     *\r\n     *  Parameters:\r\n     *    (Object) attrs - The <presence/> element attributes in object notation.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Builder object.\r\n     */function $pres(attrs){return new Strophe.Builder("presence",attrs);}/** Class: Strophe\r\n     *  An object container for all Strophe library functions.\r\n     *\r\n     *  This class is just a container for all the objects and constants\r\n     *  used in the library.  It is not meant to be instantiated, but to\r\n     *  provide a namespace for library objects, constants, and functions.\r\n     */Strophe={/** Constant: VERSION\r\n       *  The version of the Strophe library. Unreleased builds will have\r\n       *  a version of head-HASH where HASH is a partial revision.\r\n       */VERSION:"1.2.2",/** Constants: XMPP Namespace Constants\r\n       *  Common namespace constants from the XMPP RFCs and XEPs.\r\n       *\r\n       *  NS.HTTPBIND - HTTP BIND namespace from XEP 124.\r\n       *  NS.BOSH - BOSH namespace from XEP 206.\r\n       *  NS.CLIENT - Main XMPP client namespace.\r\n       *  NS.AUTH - Legacy authentication namespace.\r\n       *  NS.ROSTER - Roster operations namespace.\r\n       *  NS.PROFILE - Profile namespace.\r\n       *  NS.DISCO_INFO - Service discovery info namespace from XEP 30.\r\n       *  NS.DISCO_ITEMS - Service discovery items namespace from XEP 30.\r\n       *  NS.MUC - Multi-User Chat namespace from XEP 45.\r\n       *  NS.SASL - XMPP SASL namespace from RFC 3920.\r\n       *  NS.STREAM - XMPP Streams namespace from RFC 3920.\r\n       *  NS.BIND - XMPP Binding namespace from RFC 3920.\r\n       *  NS.SESSION - XMPP Session namespace from RFC 3920.\r\n       *  NS.XHTML_IM - XHTML-IM namespace from XEP 71.\r\n       *  NS.XHTML - XHTML body namespace from XEP 71.\r\n       */NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",FRAMING:"urn:ietf:params:xml:ns:xmpp-framing",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas",XHTML_IM:"http://jabber.org/protocol/xhtml-im",XHTML:"http://www.w3.org/1999/xhtml"},/** Constants: XHTML_IM Namespace\r\n       *  contains allowed tags, tag attributes, and css properties.\r\n       *  Used in the createHtml function to filter incoming html into the allowed XHTML-IM subset.\r\n       *  See http://xmpp.org/extensions/xep-0071.html#profile-summary for the list of recommended\r\n       *  allowed tags and their attributes.\r\n       */XHTML:{tags:["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul","body"],attributes:{a:["href"],blockquote:["style"],br:[],cite:["style"],em:[],img:["src","alt","style","height","width"],li:["style"],ol:["style"],p:["style"],span:["style"],strong:[],ul:["style"],body:[]},css:["background-color","color","font-family","font-size","font-style","font-weight","margin-left","margin-right","text-align","text-decoration"],/** Function: XHTML.validTag\r\n         *\r\n         * Utility method to determine whether a tag is allowed\r\n         * in the XHTML_IM namespace.\r\n         *\r\n         * XHTML tag names are case sensitive and must be lower case.\r\n         */validTag:function validTag(tag){for(var i=0;i<Strophe.XHTML.tags.length;i++){if(tag==Strophe.XHTML.tags[i]){return true;}}return false;},/** Function: XHTML.validAttribute\r\n         *\r\n         * Utility method to determine whether an attribute is allowed\r\n         * as recommended per XEP-0071\r\n         *\r\n         * XHTML attribute names are case sensitive and must be lower case.\r\n         */validAttribute:function validAttribute(tag,attribute){if(typeof Strophe.XHTML.attributes[tag]!=="undefined"&&Strophe.XHTML.attributes[tag].length>0){for(var i=0;i<Strophe.XHTML.attributes[tag].length;i++){if(attribute==Strophe.XHTML.attributes[tag][i]){return true;}}}return false;},validCSS:function validCSS(style){for(var i=0;i<Strophe.XHTML.css.length;i++){if(style==Strophe.XHTML.css[i]){return true;}}return false;}},/** Constants: Connection Status Constants\r\n       *  Connection status constants for use by the connection handler\r\n       *  callback.\r\n       *\r\n       *  Status.ERROR - An error has occurred\r\n       *  Status.CONNECTING - The connection is currently being made\r\n       *  Status.CONNFAIL - The connection attempt failed\r\n       *  Status.AUTHENTICATING - The connection is authenticating\r\n       *  Status.AUTHFAIL - The authentication attempt failed\r\n       *  Status.CONNECTED - The connection has succeeded\r\n       *  Status.DISCONNECTED - The connection has been terminated\r\n       *  Status.DISCONNECTING - The connection is currently being terminated\r\n       *  Status.ATTACHED - The connection has been attached\r\n       */Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8,REDIRECT:9},/** Constants: Log Level Constants\r\n       *  Logging level indicators.\r\n       *\r\n       *  LogLevel.DEBUG - Debug output\r\n       *  LogLevel.INFO - Informational output\r\n       *  LogLevel.WARN - Warnings\r\n       *  LogLevel.ERROR - Errors\r\n       *  LogLevel.FATAL - Fatal errors\r\n       */LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},/** PrivateConstants: DOM Element Type Constants\r\n       *  DOM element types.\r\n       *\r\n       *  ElementType.NORMAL - Normal element.\r\n       *  ElementType.TEXT - Text data element.\r\n       *  ElementType.FRAGMENT - XHTML fragment element.\r\n       */ElementType:{NORMAL:1,TEXT:3,CDATA:4,FRAGMENT:11},/** PrivateConstants: Timeout Values\r\n       *  Timeout values for error states.  These values are in seconds.\r\n       *  These should not be changed unless you know exactly what you are\r\n       *  doing.\r\n       *\r\n       *  TIMEOUT - Timeout multiplier. A waiting request will be considered\r\n       *      failed after Math.floor(TIMEOUT * wait) seconds have elapsed.\r\n       *      This defaults to 1.1, and with default wait, 66 seconds.\r\n       *  SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where\r\n       *      Strophe can detect early failure, it will consider the request\r\n       *      failed if it doesn\'t return after\r\n       *      Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed.\r\n       *      This defaults to 0.1, and with default wait, 6 seconds.\r\n       */TIMEOUT:1.1,SECONDARY_TIMEOUT:0.1,/** Function: addNamespace\r\n       *  This function is used to extend the current namespaces in\r\n       *  Strophe.NS.  It takes a key and a value with the key being the\r\n       *  name of the new namespace, with its actual value.\r\n       *  For example:\r\n       *  Strophe.addNamespace(\'PUBSUB\', "http://jabber.org/protocol/pubsub");\r\n       *\r\n       *  Parameters:\r\n       *    (String) name - The name under which the namespace will be\r\n       *      referenced under Strophe.NS\r\n       *    (String) value - The actual namespace.\r\n       */addNamespace:function addNamespace(name,value){Strophe.NS[name]=value;},/** Function: forEachChild\r\n       *  Map a function over some or all child elements of a given element.\r\n       *\r\n       *  This is a small convenience function for mapping a function over\r\n       *  some or all of the children of an element.  If elemName is null, all\r\n       *  children will be passed to the function, otherwise only children\r\n       *  whose tag names match elemName will be passed.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The element to operate on.\r\n       *    (String) elemName - The child element tag name filter.\r\n       *    (Function) func - The function to apply to each child.  This\r\n       *      function should take a single argument, a DOM element.\r\n       */forEachChild:function forEachChild(elem,elemName,func){var i,childNode;for(i=0;i<elem.childNodes.length;i++){childNode=elem.childNodes[i];if(childNode.nodeType==Strophe.ElementType.NORMAL&&(!elemName||this.isTagEqual(childNode,elemName))){func(childNode);}}},/** Function: isTagEqual\r\n       *  Compare an element\'s tag name with a string.\r\n       *\r\n       *  This function is case sensitive.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) el - A DOM element.\r\n       *    (String) name - The element name.\r\n       *\r\n       *  Returns:\r\n       *    true if the element\'s tag name matches _el_, and false\r\n       *    otherwise.\r\n       */isTagEqual:function isTagEqual(el,name){return el.tagName==name;},/** PrivateVariable: _xmlGenerator\r\n       *  _Private_ variable that caches a DOM document to\r\n       *  generate elements.\r\n       */_xmlGenerator:null,/** PrivateFunction: _makeGenerator\r\n       *  _Private_ function that creates a dummy XML DOM document to serve as\r\n       *  an element and text node generator.\r\n       */_makeGenerator:function _makeGenerator(){var doc;// IE9 does implement createDocument(); however, using it will cause the browser to leak memory on page unload.\n// Here, we test for presence of createDocument() plus IE\'s proprietary documentMode attribute, which would be\n// less than 10 in the case of IE9 and below.\nif(document.implementation.createDocument===undefined||document.implementation.createDocument&&document.documentMode&&document.documentMode<10){doc=this._getIEXmlDom();doc.appendChild(doc.createElement("strophe"));}else{doc=document.implementation.createDocument("jabber:client","strophe",null);}return doc;},/** Function: xmlGenerator\r\n       *  Get the DOM document to generate elements.\r\n       *\r\n       *  Returns:\r\n       *    The currently used DOM document.\r\n       */xmlGenerator:function xmlGenerator(){if(!Strophe._xmlGenerator){Strophe._xmlGenerator=Strophe._makeGenerator();}return Strophe._xmlGenerator;},/** PrivateFunction: _getIEXmlDom\r\n       *  Gets IE xml doc object\r\n       *\r\n       *  Returns:\r\n       *    A Microsoft XML DOM Object\r\n       *  See Also:\r\n       *    http://msdn.microsoft.com/en-us/library/ms757837%28VS.85%29.aspx\r\n       */_getIEXmlDom:function _getIEXmlDom(){var doc=null;var docStrings=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];for(var d=0;d<docStrings.length;d++){if(doc===null){try{doc=new ActiveXObject(docStrings[d]);}catch(e){doc=null;}}else{break;}}return doc;},/** Function: xmlElement\r\n       *  Create an XML DOM element.\r\n       *\r\n       *  This function creates an XML DOM element correctly across all\r\n       *  implementations. Note that these are not HTML DOM elements, which\r\n       *  aren\'t appropriate for XMPP stanzas.\r\n       *\r\n       *  Parameters:\r\n       *    (String) name - The name for the element.\r\n       *    (Array|Object) attrs - An optional array or object containing\r\n       *      key/value pairs to use as element attributes. The object should\r\n       *      be in the format {\'key\': \'value\'} or {key: \'value\'}. The array\r\n       *      should have the format [[\'key1\', \'value1\'], [\'key2\', \'value2\']].\r\n       *    (String) text - The text child data for the element.\r\n       *\r\n       *  Returns:\r\n       *    A new XML DOM element.\r\n       */xmlElement:function xmlElement(name){if(!name){return null;}var node=Strophe.xmlGenerator().createElement(name);// FIXME: this should throw errors if args are the wrong type or\n// there are more than two optional args\nvar a,i,k;for(a=1;a<arguments.length;a++){var arg=arguments[a];if(!arg){continue;}if(typeof arg=="string"||typeof arg=="number"){node.appendChild(Strophe.xmlTextNode(arg));}else if(_typeof(arg)=="object"&&typeof arg.sort=="function"){for(i=0;i<arg.length;i++){var attr=arg[i];if(_typeof(attr)=="object"&&typeof attr.sort=="function"&&attr[1]!==undefined){node.setAttribute(attr[0],attr[1]);}}}else if(_typeof(arg)=="object"){for(k in arg){if(arg.hasOwnProperty(k)){if(arg[k]!==undefined){node.setAttribute(k,arg[k]);}}}}}return node;},/*  Function: xmlescape\r\n       *  Excapes invalid xml characters.\r\n       *\r\n       *  Parameters:\r\n       *     (String) text - text to escape.\r\n       *\r\n       *  Returns:\r\n       *      Escaped text.\r\n       */xmlescape:function xmlescape(text){text=text.replace(/\\&/g,"&amp;");text=text.replace(/</g,"&lt;");text=text.replace(/>/g,"&gt;");text=text.replace(/\'/g,"&apos;");text=text.replace(/"/g,"&quot;");return text;},/*  Function: xmlunescape\r\n       *  Unexcapes invalid xml characters.\r\n       *\r\n       *  Parameters:\r\n       *     (String) text - text to unescape.\r\n       *\r\n       *  Returns:\r\n       *      Unescaped text.\r\n       */xmlunescape:function xmlunescape(text){text=text.replace(/\\&amp;/g,"&");text=text.replace(/&lt;/g,"<");text=text.replace(/&gt;/g,">");text=text.replace(/&apos;/g,"\'");text=text.replace(/&quot;/g,\'"\');return text;},/** Function: xmlTextNode\r\n       *  Creates an XML DOM text node.\r\n       *\r\n       *  Provides a cross implementation version of document.createTextNode.\r\n       *\r\n       *  Parameters:\r\n       *    (String) text - The content of the text node.\r\n       *\r\n       *  Returns:\r\n       *    A new XML DOM text node.\r\n       */xmlTextNode:function xmlTextNode(text){return Strophe.xmlGenerator().createTextNode(text);},/** Function: xmlHtmlNode\r\n       *  Creates an XML DOM html node.\r\n       *\r\n       *  Parameters:\r\n       *    (String) html - The content of the html node.\r\n       *\r\n       *  Returns:\r\n       *    A new XML DOM text node.\r\n       */xmlHtmlNode:function xmlHtmlNode(html){var node;//ensure text is escaped\nif(window.DOMParser){var parser=new DOMParser();node=parser.parseFromString(html,"text/xml");}else{node=new ActiveXObject("Microsoft.XMLDOM");node.async="false";node.loadXML(html);}return node;},/** Function: getText\r\n       *  Get the concatenation of all text children of an element.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - A DOM element.\r\n       *\r\n       *  Returns:\r\n       *    A String with the concatenated text of all text element children.\r\n       */getText:function getText(elem){if(!elem){return null;}var str="";if(elem.childNodes.length===0&&elem.nodeType==Strophe.ElementType.TEXT){str+=elem.nodeValue;}for(var i=0;i<elem.childNodes.length;i++){if(elem.childNodes[i].nodeType==Strophe.ElementType.TEXT){str+=elem.childNodes[i].nodeValue;}}return Strophe.xmlescape(str);},/** Function: copyElement\r\n       *  Copy an XML DOM element.\r\n       *\r\n       *  This function copies a DOM element and all its descendants and returns\r\n       *  the new copy.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - A DOM element.\r\n       *\r\n       *  Returns:\r\n       *    A new, copied DOM element tree.\r\n       */copyElement:function copyElement(elem){var i,el;if(elem.nodeType==Strophe.ElementType.NORMAL){el=Strophe.xmlElement(elem.tagName);for(i=0;i<elem.attributes.length;i++){el.setAttribute(elem.attributes[i].nodeName,elem.attributes[i].value);}for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.copyElement(elem.childNodes[i]));}}else if(elem.nodeType==Strophe.ElementType.TEXT){el=Strophe.xmlGenerator().createTextNode(elem.nodeValue);}return el;},/** Function: createHtml\r\n       *  Copy an HTML DOM element into an XML DOM.\r\n       *\r\n       *  This function copies a DOM element and all its descendants and returns\r\n       *  the new copy.\r\n       *\r\n       *  Parameters:\r\n       *    (HTMLElement) elem - A DOM element.\r\n       *\r\n       *  Returns:\r\n       *    A new, copied DOM element tree.\r\n       */createHtml:function createHtml(elem){var i,el,j,tag,attribute,value,css,cssAttrs,attr,cssName,cssValue;if(elem.nodeType==Strophe.ElementType.NORMAL){tag=elem.nodeName.toLowerCase();// XHTML tags must be lower case.\nif(Strophe.XHTML.validTag(tag)){try{el=Strophe.xmlElement(tag);for(i=0;i<Strophe.XHTML.attributes[tag].length;i++){attribute=Strophe.XHTML.attributes[tag][i];value=elem.getAttribute(attribute);if(typeof value=="undefined"||value===null||value===""||value===false||value===0){continue;}if(attribute=="style"&&_typeof(value)=="object"){if(typeof value.cssText!="undefined"){value=value.cssText;// we\'re dealing with IE, need to get CSS out\n}}// filter out invalid css styles\nif(attribute=="style"){css=[];cssAttrs=value.split(";");for(j=0;j<cssAttrs.length;j++){attr=cssAttrs[j].split(":");cssName=attr[0].replace(/^\\s*/,"").replace(/\\s*$/,"").toLowerCase();if(Strophe.XHTML.validCSS(cssName)){cssValue=attr[1].replace(/^\\s*/,"").replace(/\\s*$/,"");css.push(cssName+": "+cssValue);}}if(css.length>0){value=css.join("; ");el.setAttribute(attribute,value);}}else{el.setAttribute(attribute,value);}}for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.createHtml(elem.childNodes[i]));}}catch(e){// invalid elements\nel=Strophe.xmlTextNode("");}}else{el=Strophe.xmlGenerator().createDocumentFragment();for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.createHtml(elem.childNodes[i]));}}}else if(elem.nodeType==Strophe.ElementType.FRAGMENT){el=Strophe.xmlGenerator().createDocumentFragment();for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.createHtml(elem.childNodes[i]));}}else if(elem.nodeType==Strophe.ElementType.TEXT){el=Strophe.xmlTextNode(elem.nodeValue);}return el;},/** Function: escapeNode\r\n       *  Escape the node part (also called local part) of a JID.\r\n       *\r\n       *  Parameters:\r\n       *    (String) node - A node (or local part).\r\n       *\r\n       *  Returns:\r\n       *    An escaped node (or local part).\r\n       */escapeNode:function escapeNode(node){if(typeof node!=="string"){return node;}return node.replace(/^\\s+|\\s+$/g,"").replace(/\\\\/g,"\\\\5c").replace(/ /g,"\\\\20").replace(/\\"/g,"\\\\22").replace(/\\&/g,"\\\\26").replace(/\\\'/g,"\\\\27").replace(/\\//g,"\\\\2f").replace(/:/g,"\\\\3a").replace(/</g,"\\\\3c").replace(/>/g,"\\\\3e").replace(/@/g,"\\\\40");},/** Function: unescapeNode\r\n       *  Unescape a node part (also called local part) of a JID.\r\n       *\r\n       *  Parameters:\r\n       *    (String) node - A node (or local part).\r\n       *\r\n       *  Returns:\r\n       *    An unescaped node (or local part).\r\n       */unescapeNode:function unescapeNode(node){if(typeof node!=="string"){return node;}return node.replace(/\\\\20/g," ").replace(/\\\\22/g,\'"\').replace(/\\\\26/g,"&").replace(/\\\\27/g,"\'").replace(/\\\\2f/g,"/").replace(/\\\\3a/g,":").replace(/\\\\3c/g,"<").replace(/\\\\3e/g,">").replace(/\\\\40/g,"@").replace(/\\\\5c/g,"\\\\");},/** Function: getNodeFromJid\r\n       *  Get the node portion of a JID String.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - A JID.\r\n       *\r\n       *  Returns:\r\n       *    A String containing the node.\r\n       */getNodeFromJid:function getNodeFromJid(jid){if(jid.indexOf("@")<0){return null;}return jid.split("@")[0];},/** Function: getDomainFromJid\r\n       *  Get the domain portion of a JID String.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - A JID.\r\n       *\r\n       *  Returns:\r\n       *    A String containing the domain.\r\n       */getDomainFromJid:function getDomainFromJid(jid){var bare=Strophe.getBareJidFromJid(jid);if(bare.indexOf("@")<0){return bare;}else{var parts=bare.split("@");parts.splice(0,1);return parts.join("@");}},/** Function: getResourceFromJid\r\n       *  Get the resource portion of a JID String.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - A JID.\r\n       *\r\n       *  Returns:\r\n       *    A String containing the resource.\r\n       */getResourceFromJid:function getResourceFromJid(jid){var s=jid.split("/");if(s.length<2){return null;}s.splice(0,1);return s.join("/");},/** Function: getBareJidFromJid\r\n       *  Get the bare JID from a JID String.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - A JID.\r\n       *\r\n       *  Returns:\r\n       *    A String containing the bare JID.\r\n       */getBareJidFromJid:function getBareJidFromJid(jid){return jid?jid.split("/")[0]:null;},/** Function: log\r\n       *  User overrideable logging function.\r\n       *\r\n       *  This function is called whenever the Strophe library calls any\r\n       *  of the logging functions.  The default implementation of this\r\n       *  function does nothing.  If client code wishes to handle the logging\r\n       *  messages, it should override this with\r\n       *  > Strophe.log = function (level, msg) {\r\n       *  >   (user code here)\r\n       *  > };\r\n       *\r\n       *  Please note that data sent and received over the wire is logged\r\n       *  via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().\r\n       *\r\n       *  The different levels and their meanings are\r\n       *\r\n       *    DEBUG - Messages useful for debugging purposes.\r\n       *    INFO - Informational messages.  This is mostly information like\r\n       *      \'disconnect was called\' or \'SASL auth succeeded\'.\r\n       *    WARN - Warnings about potential problems.  This is mostly used\r\n       *      to report transient connection errors like request timeouts.\r\n       *    ERROR - Some error occurred.\r\n       *    FATAL - A non-recoverable fatal error occurred.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) level - The log level of the log message.  This will\r\n       *      be one of the values in Strophe.LogLevel.\r\n       *    (String) msg - The log message.\r\n       */ /* jshint ignore:start */log:function log(level,msg){return;},/* jshint ignore:end */ /** Function: debug\r\n       *  Log a message at the Strophe.LogLevel.DEBUG level.\r\n       *\r\n       *  Parameters:\r\n       *    (String) msg - The log message.\r\n       */debug:function debug(msg){this.log(this.LogLevel.DEBUG,msg);},/** Function: info\r\n       *  Log a message at the Strophe.LogLevel.INFO level.\r\n       *\r\n       *  Parameters:\r\n       *    (String) msg - The log message.\r\n       */info:function info(msg){this.log(this.LogLevel.INFO,msg);},/** Function: warn\r\n       *  Log a message at the Strophe.LogLevel.WARN level.\r\n       *\r\n       *  Parameters:\r\n       *    (String) msg - The log message.\r\n       */warn:function warn(msg){this.log(this.LogLevel.WARN,msg);},/** Function: error\r\n       *  Log a message at the Strophe.LogLevel.ERROR level.\r\n       *\r\n       *  Parameters:\r\n       *    (String) msg - The log message.\r\n       */error:function error(msg){this.log(this.LogLevel.ERROR,msg);},/** Function: fatal\r\n       *  Log a message at the Strophe.LogLevel.FATAL level.\r\n       *\r\n       *  Parameters:\r\n       *    (String) msg - The log message.\r\n       */fatal:function fatal(msg){this.log(this.LogLevel.FATAL,msg);},/** Function: serialize\r\n       *  Render a DOM element and all descendants to a String.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - A DOM element.\r\n       *\r\n       *  Returns:\r\n       *    The serialized element tree as a String.\r\n       */serialize:function serialize(elem){var result;if(!elem){return null;}if(typeof elem.tree==="function"){elem=elem.tree();}var nodeName=elem.nodeName;var i,child;if(elem.getAttribute("_realname")){nodeName=elem.getAttribute("_realname");}result="<"+nodeName;for(i=0;i<elem.attributes.length;i++){if(elem.attributes[i].nodeName!="_realname"){result+=" "+elem.attributes[i].nodeName+"=\'"+elem.attributes[i].value.replace(/&/g,"&amp;").replace(/\\\'/g,"&apos;").replace(/>/g,"&gt;").replace(/</g,"&lt;")+"\'";}}if(elem.childNodes.length>0){result+=">";for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];switch(child.nodeType){case Strophe.ElementType.NORMAL:// normal element, so recurse\nresult+=Strophe.serialize(child);break;case Strophe.ElementType.TEXT:// text element to escape values\nresult+=Strophe.xmlescape(child.nodeValue);break;case Strophe.ElementType.CDATA:// cdata section so don\'t escape values\nresult+="<![CDATA["+child.nodeValue+"]]>";}}result+="</"+nodeName+">";}else{result+="/>";}return result;},/** PrivateVariable: _requestId\r\n       *  _Private_ variable that keeps track of the request ids for\r\n       *  connections.\r\n       */_requestId:0,/** PrivateVariable: Strophe.connectionPlugins\r\n       *  _Private_ variable Used to store plugin names that need\r\n       *  initialization on Strophe.Connection construction.\r\n       */_connectionPlugins:{},/** Function: addConnectionPlugin\r\n       *  Extends the Strophe.Connection object with the given plugin.\r\n       *\r\n       *  Parameters:\r\n       *    (String) name - The name of the extension.\r\n       *    (Object) ptype - The plugin\'s prototype.\r\n       */addConnectionPlugin:function addConnectionPlugin(name,ptype){Strophe._connectionPlugins[name]=ptype;}};/** Class: Strophe.Builder\r\n     *  XML DOM builder.\r\n     *\r\n     *  This object provides an interface similar to JQuery but for building\r\n     *  DOM element easily and rapidly.  All the functions except for toString()\r\n     *  and tree() return the object, so calls can be chained.  Here\'s an\r\n     *  example using the $iq() builder helper.\r\n     *  > $iq({to: \'you\', from: \'me\', type: \'get\', id: \'1\'})\r\n     *  >     .c(\'query\', {xmlns: \'strophe:example\'})\r\n     *  >     .c(\'example\')\r\n     *  >     .toString()\r\n     *  The above generates this XML fragment\r\n     *  > <iq to=\'you\' from=\'me\' type=\'get\' id=\'1\'>\r\n     *  >   <query xmlns=\'strophe:example\'>\r\n     *  >     <example/>\r\n     *  >   </query>\r\n     *  > </iq>\r\n     *  The corresponding DOM manipulations to get a similar fragment would be\r\n     *  a lot more tedious and probably involve several helper variables.\r\n     *\r\n     *  Since adding children makes new operations operate on the child, up()\r\n     *  is provided to traverse up the tree.  To add two children, do\r\n     *  > builder.c(\'child1\', ...).up().c(\'child2\', ...)\r\n     *  The next operation on the Builder will be relative to the second child.\r\n     */ /** Constructor: Strophe.Builder\r\n     *  Create a Strophe.Builder object.\r\n     *\r\n     *  The attributes should be passed in object notation.  For example\r\n     *  > var b = new Builder(\'message\', {to: \'you\', from: \'me\'});\r\n     *  or\r\n     *  > var b = new Builder(\'messsage\', {\'xml:lang\': \'en\'});\r\n     *\r\n     *  Parameters:\r\n     *    (String) name - The name of the root element.\r\n     *    (Object) attrs - The attributes for the root element in object notation.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Builder.\r\n     */Strophe.Builder=function(name,attrs){// Set correct namespace for jabber:client elements\nif(name=="presence"||name=="message"||name=="iq"){if(attrs&&!attrs.xmlns){attrs.xmlns=Strophe.NS.CLIENT;}else if(!attrs){attrs={xmlns:Strophe.NS.CLIENT};}}// Holds the tree being built.\nthis.nodeTree=Strophe.xmlElement(name,attrs);// Points to the current operation node.\nthis.node=this.nodeTree;};Strophe.Builder.prototype={/** Function: tree\r\n       *  Return the DOM tree.\r\n       *\r\n       *  This function returns the current DOM tree as an element object.  This\r\n       *  is suitable for passing to functions like Strophe.Connection.send().\r\n       *\r\n       *  Returns:\r\n       *    The DOM tree as a element object.\r\n       */tree:function tree(){return this.nodeTree;},/** Function: toString\r\n       *  Serialize the DOM tree to a String.\r\n       *\r\n       *  This function returns a string serialization of the current DOM\r\n       *  tree.  It is often used internally to pass data to a\r\n       *  Strophe.Request object.\r\n       *\r\n       *  Returns:\r\n       *    The serialized DOM tree in a String.\r\n       */toString:function toString(){return Strophe.serialize(this.nodeTree);},/** Function: up\r\n       *  Make the current parent element the new current element.\r\n       *\r\n       *  This function is often used after c() to traverse back up the tree.\r\n       *  For example, to add two children to the same element\r\n       *  > builder.c(\'child1\', {}).up().c(\'child2\', {});\r\n       *\r\n       *  Returns:\r\n       *    The Stophe.Builder object.\r\n       */up:function up(){this.node=this.node.parentNode;return this;},/** Function: attrs\r\n       *  Add or modify attributes of the current element.\r\n       *\r\n       *  The attributes should be passed in object notation.  This function\r\n       *  does not move the current element pointer.\r\n       *\r\n       *  Parameters:\r\n       *    (Object) moreattrs - The attributes to add/modify in object notation.\r\n       *\r\n       *  Returns:\r\n       *    The Strophe.Builder object.\r\n       */attrs:function attrs(moreattrs){for(var k in moreattrs){if(moreattrs.hasOwnProperty(k)){if(moreattrs[k]===undefined){this.node.removeAttribute(k);}else{this.node.setAttribute(k,moreattrs[k]);}}}return this;},/** Function: c\r\n       *  Add a child to the current element and make it the new current\r\n       *  element.\r\n       *\r\n       *  This function moves the current element pointer to the child,\r\n       *  unless text is provided.  If you need to add another child, it\r\n       *  is necessary to use up() to go back to the parent in the tree.\r\n       *\r\n       *  Parameters:\r\n       *    (String) name - The name of the child.\r\n       *    (Object) attrs - The attributes of the child in object notation.\r\n       *    (String) text - The text to add to the child.\r\n       *\r\n       *  Returns:\r\n       *    The Strophe.Builder object.\r\n       */c:function c(name,attrs,text){var child=Strophe.xmlElement(name,attrs,text);this.node.appendChild(child);if(typeof text!=="string"){this.node=child;}return this;},/** Function: cnode\r\n       *  Add a child to the current element and make it the new current\r\n       *  element.\r\n       *\r\n       *  This function is the same as c() except that instead of using a\r\n       *  name and an attributes object to create the child it uses an\r\n       *  existing DOM element object.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - A DOM element.\r\n       *\r\n       *  Returns:\r\n       *    The Strophe.Builder object.\r\n       */cnode:function cnode(elem){var impNode;var xmlGen=Strophe.xmlGenerator();try{impNode=xmlGen.importNode!==undefined;}catch(e){impNode=false;}var newElem=impNode?xmlGen.importNode(elem,true):Strophe.copyElement(elem);this.node.appendChild(newElem);this.node=newElem;return this;},/** Function: t\r\n       *  Add a child text element.\r\n       *\r\n       *  This *does not* make the child the new current element since there\r\n       *  are no children of text elements.\r\n       *\r\n       *  Parameters:\r\n       *    (String) text - The text data to append to the current element.\r\n       *\r\n       *  Returns:\r\n       *    The Strophe.Builder object.\r\n       */t:function t(text){var child=Strophe.xmlTextNode(text);this.node.appendChild(child);return this;},/** Function: h\r\n       *  Replace current element contents with the HTML passed in.\r\n       *\r\n       *  This *does not* make the child the new current element\r\n       *\r\n       *  Parameters:\r\n       *    (String) html - The html to insert as contents of current element.\r\n       *\r\n       *  Returns:\r\n       *    The Strophe.Builder object.\r\n       */h:function h(html){var fragment=document.createElement("body");// force the browser to try and fix any invalid HTML tags\nfragment.innerHTML=html;// copy cleaned html into an xml dom\nvar xhtml=Strophe.createHtml(fragment);while(xhtml.childNodes.length>0){this.node.appendChild(xhtml.childNodes[0]);}return this;}};/** PrivateClass: Strophe.Handler\r\n     *  _Private_ helper class for managing stanza handlers.\r\n     *\r\n     *  A Strophe.Handler encapsulates a user provided callback function to be\r\n     *  executed when matching stanzas are received by the connection.\r\n     *  Handlers can be either one-off or persistant depending on their\r\n     *  return value. Returning true will cause a Handler to remain active, and\r\n     *  returning false will remove the Handler.\r\n     *\r\n     *  Users will not use Strophe.Handler objects directly, but instead they\r\n     *  will use Strophe.Connection.addHandler() and\r\n     *  Strophe.Connection.deleteHandler().\r\n     */ /** PrivateConstructor: Strophe.Handler\r\n     *  Create and initialize a new Strophe.Handler.\r\n     *\r\n     *  Parameters:\r\n     *    (Function) handler - A function to be executed when the handler is run.\r\n     *    (String) ns - The namespace to match.\r\n     *    (String) name - The element name to match.\r\n     *    (String) type - The element type to match.\r\n     *    (String) id - The element id attribute to match.\r\n     *    (String) from - The element from attribute to match.\r\n     *    (Object) options - Handler options\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Handler object.\r\n     */Strophe.Handler=function(handler,ns,name,type,id,from,options){this.handler=handler;this.ns=ns;this.name=name;this.type=type;this.id=id;this.options=options||{matchBare:false};// default matchBare to false if undefined\nif(!this.options.matchBare){this.options.matchBare=false;}if(this.options.matchBare){this.from=from?Strophe.getBareJidFromJid(from):null;}else{this.from=from;}// whether the handler is a user handler or a system handler\nthis.user=true;};Strophe.Handler.prototype={/** PrivateFunction: isMatch\r\n       *  Tests if a stanza matches the Strophe.Handler.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The XML element to test.\r\n       *\r\n       *  Returns:\r\n       *    true if the stanza matches and false otherwise.\r\n       */isMatch:function isMatch(elem){var nsMatch;var from=null;if(this.options.matchBare){from=Strophe.getBareJidFromJid(elem.getAttribute("from"));}else{from=elem.getAttribute("from");}nsMatch=false;if(!this.ns){nsMatch=true;}else{var that=this;Strophe.forEachChild(elem,null,function(elem){if(elem.getAttribute("xmlns")==that.ns){nsMatch=true;}});nsMatch=nsMatch||elem.getAttribute("xmlns")==this.ns;}var elem_type=elem.getAttribute("type");if(nsMatch&&(!this.name||Strophe.isTagEqual(elem,this.name))&&(!this.type||(Array.isArray(this.type)?this.type.indexOf(elem_type)!=-1:elem_type==this.type))&&(!this.id||elem.getAttribute("id")==this.id)&&(!this.from||from==this.from)){return true;}return false;},/** PrivateFunction: run\r\n       *  Run the callback on a matching stanza.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The DOM element that triggered the\r\n       *      Strophe.Handler.\r\n       *\r\n       *  Returns:\r\n       *    A boolean indicating if the handler should remain active.\r\n       */run:function run(elem){var result=null;try{result=this.handler(elem);}catch(e){if(e.sourceURL){Strophe.fatal("error: "+this.handler+" "+e.sourceURL+":"+e.line+" - "+e.name+": "+e.message);}else if(e.fileName){if(typeof console!="undefined"){console.trace();console.error(this.handler," - error - ",e,e.message);}Strophe.fatal("error: "+this.handler+" "+e.fileName+":"+e.lineNumber+" - "+e.name+": "+e.message);}else{Strophe.fatal("error: "+e.message+"\\n"+e.stack);}throw e;}return result;},/** PrivateFunction: toString\r\n       *  Get a String representation of the Strophe.Handler object.\r\n       *\r\n       *  Returns:\r\n       *    A String.\r\n       */toString:function toString(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}";}};/** PrivateClass: Strophe.TimedHandler\r\n     *  _Private_ helper class for managing timed handlers.\r\n     *\r\n     *  A Strophe.TimedHandler encapsulates a user provided callback that\r\n     *  should be called after a certain period of time or at regular\r\n     *  intervals.  The return value of the callback determines whether the\r\n     *  Strophe.TimedHandler will continue to fire.\r\n     *\r\n     *  Users will not use Strophe.TimedHandler objects directly, but instead\r\n     *  they will use Strophe.Connection.addTimedHandler() and\r\n     *  Strophe.Connection.deleteTimedHandler().\r\n     */ /** PrivateConstructor: Strophe.TimedHandler\r\n     *  Create and initialize a new Strophe.TimedHandler object.\r\n     *\r\n     *  Parameters:\r\n     *    (Integer) period - The number of milliseconds to wait before the\r\n     *      handler is called.\r\n     *    (Function) handler - The callback to run when the handler fires.  This\r\n     *      function should take no arguments.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.TimedHandler object.\r\n     */Strophe.TimedHandler=function(period,handler){this.period=period;this.handler=handler;this.lastCalled=new Date().getTime();this.user=true;};Strophe.TimedHandler.prototype={/** PrivateFunction: run\r\n       *  Run the callback for the Strophe.TimedHandler.\r\n       *\r\n       *  Returns:\r\n       *    true if the Strophe.TimedHandler should be called again, and false\r\n       *      otherwise.\r\n       */run:function run(){this.lastCalled=new Date().getTime();return this.handler();},/** PrivateFunction: reset\r\n       *  Reset the last called time for the Strophe.TimedHandler.\r\n       */reset:function reset(){this.lastCalled=new Date().getTime();},/** PrivateFunction: toString\r\n       *  Get a string representation of the Strophe.TimedHandler object.\r\n       *\r\n       *  Returns:\r\n       *    The string representation.\r\n       */toString:function toString(){return"{TimedHandler: "+this.handler+"("+this.period+")}";}};/** Class: Strophe.Connection\r\n     *  XMPP Connection manager.\r\n     *\r\n     *  This class is the main part of Strophe.  It manages a BOSH or websocket\r\n     *  connection to an XMPP server and dispatches events to the user callbacks\r\n     *  as data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, SASL SCRAM-SHA1\r\n     *  and legacy authentication.\r\n     *\r\n     *  After creating a Strophe.Connection object, the user will typically\r\n     *  call connect() with a user supplied callback to handle connection level\r\n     *  events like authentication failure, disconnection, or connection\r\n     *  complete.\r\n     *\r\n     *  The user will also have several event handlers defined by using\r\n     *  addHandler() and addTimedHandler().  These will allow the user code to\r\n     *  respond to interesting stanzas or do something periodically with the\r\n     *  connection. These handlers will be active once authentication is\r\n     *  finished.\r\n     *\r\n     *  To send data to the connection, use send().\r\n     */ /** Constructor: Strophe.Connection\r\n     *  Create and initialize a Strophe.Connection object.\r\n     *\r\n     *  The transport-protocol for this connection will be chosen automatically\r\n     *  based on the given service parameter. URLs starting with "ws://" or\r\n     *  "wss://" will use WebSockets, URLs starting with "http://", "https://"\r\n     *  or without a protocol will use BOSH.\r\n     *\r\n     *  To make Strophe connect to the current host you can leave out the protocol\r\n     *  and host part and just pass the path, e.g.\r\n     *\r\n     *  > var conn = new Strophe.Connection("/http-bind/");\r\n     *\r\n     *  WebSocket options:\r\n     *\r\n     *  If you want to connect to the current host with a WebSocket connection you\r\n     *  can tell Strophe to use WebSockets through a "protocol" attribute in the\r\n     *  optional options parameter. Valid values are "ws" for WebSocket and "wss"\r\n     *  for Secure WebSocket.\r\n     *  So to connect to "wss://CURRENT_HOSTNAME/xmpp-websocket" you would call\r\n     *\r\n     *  > var conn = new Strophe.Connection("/xmpp-websocket/", {protocol: "wss"});\r\n     *\r\n     *  Note that relative URLs _NOT_ starting with a "/" will also include the path\r\n     *  of the current site.\r\n     *\r\n     *  Also because downgrading security is not permitted by browsers, when using\r\n     *  relative URLs both BOSH and WebSocket connections will use their secure\r\n     *  variants if the current connection to the site is also secure (https).\r\n     *\r\n     *  BOSH options:\r\n     *\r\n     *  By adding "sync" to the options, you can control if requests will\r\n     *  be made synchronously or not. The default behaviour is asynchronous.\r\n     *  If you want to make requests synchronous, make "sync" evaluate to true:\r\n     *  > var conn = new Strophe.Connection("/http-bind/", {sync: true});\r\n     *\r\n     *  You can also toggle this on an already established connection:\r\n     *  > conn.options.sync = true;\r\n     *\r\n     *  The "customHeaders" option can be used to provide custom HTTP headers to be\r\n     *  included in the XMLHttpRequests made.\r\n     *\r\n     *  The "keepalive" option can be used to instruct Strophe to maintain the\r\n     *  current BOSH session across interruptions such as webpage reloads.\r\n     *\r\n     *  It will do this by caching the sessions tokens in sessionStorage, and when\r\n     *  "restore" is called it will check whether there are cached tokens with\r\n     *  which it can resume an existing session.\r\n     *\r\n     *  Parameters:\r\n     *    (String) service - The BOSH or WebSocket service URL.\r\n     *    (Object) options - A hash of configuration options\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Connection object.\r\n     */Strophe.Connection=function(service,options){// The service URL\nthis.service=service;// Configuration options\nthis.options=options||{};var proto=this.options.protocol||"";// Select protocal based on service or options\nif(service.indexOf("ws:")===0||service.indexOf("wss:")===0||proto.indexOf("ws")===0){this._proto=new Strophe.Websocket(this);}else{this._proto=new Strophe.Bosh(this);}/* The connected JID. */this.jid="";/* the JIDs domain */this.domain=null;/* stream:features */this.features=null;// SASL\nthis._sasl_data={};this.do_session=false;this.do_bind=false;// handler lists\nthis.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this._authentication={};this._idleTimeout=null;this._disconnectTimeout=null;this.authenticated=false;this.connected=false;this.disconnecting=false;this.do_authentication=true;this.paused=false;this.restored=false;this._data=[];this._uniqueId=0;this._sasl_success_handler=null;this._sasl_failure_handler=null;this._sasl_challenge_handler=null;// Max retries before disconnecting\nthis.maxRetries=5;// setup onIdle callback every 1/10th of a second\nthis._idleTimeout=setTimeout(this._onIdle.bind(this),100);// initialize plugins\nfor(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var ptype=Strophe._connectionPlugins[k];// jslint complaints about the below line, but this is fine\nvar F=function F(){};// jshint ignore:line\nF.prototype=ptype;this[k]=new F();this[k].init(this);}}};Strophe.Connection.prototype={/** Function: reset\r\n       *  Reset the connection.\r\n       *\r\n       *  This function should be called after a connection is disconnected\r\n       *  before that connection is reused.\r\n       */reset:function reset(){this._proto._reset();// SASL\nthis.do_session=false;this.do_bind=false;// handler lists\nthis.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this._authentication={};this.authenticated=false;this.connected=false;this.disconnecting=false;this.restored=false;this._data=[];this._requests=[];this._uniqueId=0;},/** Function: pause\r\n       *  Pause the request manager.\r\n       *\r\n       *  This will prevent Strophe from sending any more requests to the\r\n       *  server.  This is very useful for temporarily pausing\r\n       *  BOSH-Connections while a lot of send() calls are happening quickly.\r\n       *  This causes Strophe to send the data in a single request, saving\r\n       *  many request trips.\r\n       */pause:function pause(){this.paused=true;},/** Function: resume\r\n       *  Resume the request manager.\r\n       *\r\n       *  This resumes after pause() has been called.\r\n       */resume:function resume(){this.paused=false;},/** Function: getUniqueId\r\n       *  Generate a unique ID for use in <iq/> elements.\r\n       *\r\n       *  All <iq/> stanzas are required to have unique id attributes.  This\r\n       *  function makes creating these easy.  Each connection instance has\r\n       *  a counter which starts from zero, and the value of this counter\r\n       *  plus a colon followed by the suffix becomes the unique id. If no\r\n       *  suffix is supplied, the counter is used as the unique id.\r\n       *\r\n       *  Suffixes are used to make debugging easier when reading the stream\r\n       *  data, and their use is recommended.  The counter resets to 0 for\r\n       *  every new connection for the same reason.  For connections to the\r\n       *  same server that authenticate the same way, all the ids should be\r\n       *  the same, which makes it easy to see changes.  This is useful for\r\n       *  automated testing as well.\r\n       *\r\n       *  Parameters:\r\n       *    (String) suffix - A optional suffix to append to the id.\r\n       *\r\n       *  Returns:\r\n       *    A unique string to be used for the id attribute.\r\n       */getUniqueId:function getUniqueId(suffix){if(typeof suffix=="string"||typeof suffix=="number"){return++this._uniqueId+":"+suffix;}else{return++this._uniqueId+"";}},/** Function: connect\r\n       *  Starts the connection process.\r\n       *\r\n       *  As the connection process proceeds, the user supplied callback will\r\n       *  be triggered multiple times with status updates.  The callback\r\n       *  should take two arguments - the status code and the error condition.\r\n       *\r\n       *  The status code will be one of the values in the Strophe.Status\r\n       *  constants.  The error condition will be one of the conditions\r\n       *  defined in RFC 3920 or the condition \'strophe-parsererror\'.\r\n       *\r\n       *  The Parameters _wait_, _hold_ and _route_ are optional and only relevant\r\n       *  for BOSH connections. Please see XEP 124 for a more detailed explanation\r\n       *  of the optional parameters.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - The user\'s JID.  This may be a bare JID,\r\n       *      or a full JID.  If a node is not supplied, SASL ANONYMOUS\r\n       *      authentication will be attempted.\r\n       *    (String) pass - The user\'s password.\r\n       *    (Function) callback - The connect callback function.\r\n       *    (Integer) wait - The optional HTTPBIND wait value.  This is the\r\n       *      time the server will wait before returning an empty result for\r\n       *      a request.  The default setting of 60 seconds is recommended.\r\n       *    (Integer) hold - The optional HTTPBIND hold value.  This is the\r\n       *      number of connections the server will hold at one time.  This\r\n       *      should almost always be set to 1 (the default).\r\n       *    (String) route - The optional route value.\r\n       *    (String) authcid - The optional alternative authentication identity\r\n       *      (username) if intending to impersonate another user.\r\n       */connect:function connect(jid,pass,callback,wait,hold,route,authcid){this.jid=jid;/** Variable: authzid\r\n         *  Authorization identity.\r\n         */this.authzid=Strophe.getBareJidFromJid(this.jid);/** Variable: authcid\r\n         *  Authentication identity (User name).\r\n         */this.authcid=authcid||Strophe.getNodeFromJid(this.jid);/** Variable: pass\r\n         *  Authentication identity (User password).\r\n         */this.pass=pass;/** Variable: servtype\r\n         *  Digest MD5 compatibility.\r\n         */this.servtype="xmpp";this.connect_callback=callback;this.disconnecting=false;this.connected=false;this.authenticated=false;this.restored=false;// parse jid for domain\nthis.domain=Strophe.getDomainFromJid(this.jid);this._changeConnectStatus(Strophe.Status.CONNECTING,null);this._proto._connect(wait,hold,route);},/** Function: attach\r\n       *  Attach to an already created and authenticated BOSH session.\r\n       *\r\n       *  This function is provided to allow Strophe to attach to BOSH\r\n       *  sessions which have been created externally, perhaps by a Web\r\n       *  application.  This is often used to support auto-login type features\r\n       *  without putting user credentials into the page.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - The full JID that is bound by the session.\r\n       *    (String) sid - The SID of the BOSH session.\r\n       *    (String) rid - The current RID of the BOSH session.  This RID\r\n       *      will be used by the next request.\r\n       *    (Function) callback The connect callback function.\r\n       *    (Integer) wait - The optional HTTPBIND wait value.  This is the\r\n       *      time the server will wait before returning an empty result for\r\n       *      a request.  The default setting of 60 seconds is recommended.\r\n       *      Other settings will require tweaks to the Strophe.TIMEOUT value.\r\n       *    (Integer) hold - The optional HTTPBIND hold value.  This is the\r\n       *      number of connections the server will hold at one time.  This\r\n       *      should almost always be set to 1 (the default).\r\n       *    (Integer) wind - The optional HTTBIND window value.  This is the\r\n       *      allowed range of request ids that are valid.  The default is 5.\r\n       */attach:function attach(jid,sid,rid,callback,wait,hold,wind){if(this._proto instanceof Strophe.Bosh){this._proto._attach(jid,sid,rid,callback,wait,hold,wind);}else{throw{name:"StropheSessionError",message:\'The "attach" method can only be used with a BOSH connection.\'};}},/** Function: restore\r\n       *  Attempt to restore a cached BOSH session.\r\n       *\r\n       *  This function is only useful in conjunction with providing the\r\n       *  "keepalive":true option when instantiating a new Strophe.Connection.\r\n       *\r\n       *  When "keepalive" is set to true, Strophe will cache the BOSH tokens\r\n       *  RID (Request ID) and SID (Session ID) and then when this function is\r\n       *  called, it will attempt to restore the session from those cached\r\n       *  tokens.\r\n       *\r\n       *  This function must therefore be called instead of connect or attach.\r\n       *\r\n       *  For an example on how to use it, please see examples/restore.js\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - The user\'s JID.  This may be a bare JID or a full JID.\r\n       *    (Function) callback - The connect callback function.\r\n       *    (Integer) wait - The optional HTTPBIND wait value.  This is the\r\n       *      time the server will wait before returning an empty result for\r\n       *      a request.  The default setting of 60 seconds is recommended.\r\n       *    (Integer) hold - The optional HTTPBIND hold value.  This is the\r\n       *      number of connections the server will hold at one time.  This\r\n       *      should almost always be set to 1 (the default).\r\n       *    (Integer) wind - The optional HTTBIND window value.  This is the\r\n       *      allowed range of request ids that are valid.  The default is 5.\r\n       */restore:function restore(jid,callback,wait,hold,wind){if(this._sessionCachingSupported()){this._proto._restore(jid,callback,wait,hold,wind);}else{throw{name:"StropheSessionError",message:\'The "restore" method can only be used with a BOSH connection.\'};}},/** PrivateFunction: _sessionCachingSupported\r\n       * Checks whether sessionStorage and JSON are supported and whether we\'re\r\n       * using BOSH.\r\n       */_sessionCachingSupported:function _sessionCachingSupported(){if(this._proto instanceof Strophe.Bosh){if(!JSON){return false;}try{window.sessionStorage.setItem("_strophe_","_strophe_");window.sessionStorage.removeItem("_strophe_");}catch(e){return false;}return true;}return false;},/** Function: xmlInput\r\n       *  User overrideable function that receives XML data coming into the\r\n       *  connection.\r\n       *\r\n       *  The default function does nothing.  User code can override this with\r\n       *  > Strophe.Connection.xmlInput = function (elem) {\r\n       *  >   (user code)\r\n       *  > };\r\n       *\r\n       *  Due to limitations of current Browsers\' XML-Parsers the opening and closing\r\n       *  <stream> tag for WebSocket-Connoctions will be passed as selfclosing here.\r\n       *\r\n       *  BOSH-Connections will have all stanzas wrapped in a <body> tag. See\r\n       *  <Strophe.Bosh.strip> if you want to strip this tag.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The XML data received by the connection.\r\n       */ /* jshint unused:false */xmlInput:function xmlInput(elem){return;},/* jshint unused:true */ /** Function: xmlOutput\r\n       *  User overrideable function that receives XML data sent to the\r\n       *  connection.\r\n       *\r\n       *  The default function does nothing.  User code can override this with\r\n       *  > Strophe.Connection.xmlOutput = function (elem) {\r\n       *  >   (user code)\r\n       *  > };\r\n       *\r\n       *  Due to limitations of current Browsers\' XML-Parsers the opening and closing\r\n       *  <stream> tag for WebSocket-Connoctions will be passed as selfclosing here.\r\n       *\r\n       *  BOSH-Connections will have all stanzas wrapped in a <body> tag. See\r\n       *  <Strophe.Bosh.strip> if you want to strip this tag.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The XMLdata sent by the connection.\r\n       */ /* jshint unused:false */xmlOutput:function xmlOutput(elem){return;},/* jshint unused:true */ /** Function: rawInput\r\n       *  User overrideable function that receives raw data coming into the\r\n       *  connection.\r\n       *\r\n       *  The default function does nothing.  User code can override this with\r\n       *  > Strophe.Connection.rawInput = function (data) {\r\n       *  >   (user code)\r\n       *  > };\r\n       *\r\n       *  Parameters:\r\n       *    (String) data - The data received by the connection.\r\n       */ /* jshint unused:false */rawInput:function rawInput(data){return;},/* jshint unused:true */ /** Function: rawOutput\r\n       *  User overrideable function that receives raw data sent to the\r\n       *  connection.\r\n       *\r\n       *  The default function does nothing.  User code can override this with\r\n       *  > Strophe.Connection.rawOutput = function (data) {\r\n       *  >   (user code)\r\n       *  > };\r\n       *\r\n       *  Parameters:\r\n       *    (String) data - The data sent by the connection.\r\n       */ /* jshint unused:false */rawOutput:function rawOutput(data){return;},/* jshint unused:true */ /** Function: send\r\n       *  Send a stanza.\r\n       *\r\n       *  This function is called to push data onto the send queue to\r\n       *  go out over the wire.  Whenever a request is sent to the BOSH\r\n       *  server, all pending data is sent and the queue is flushed.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement |\r\n       *     [XMLElement] |\r\n       *     Strophe.Builder) elem - The stanza to send.\r\n       */send:function send(elem){if(elem===null){return;}if(typeof elem.sort==="function"){for(var i=0;i<elem.length;i++){this._queueData(elem[i]);}}else if(typeof elem.tree==="function"){this._queueData(elem.tree());}else{this._queueData(elem);}this._proto._send();},/** Function: flush\r\n       *  Immediately send any pending outgoing data.\r\n       *\r\n       *  Normally send() queues outgoing data until the next idle period\r\n       *  (100ms), which optimizes network use in the common cases when\r\n       *  several send()s are called in succession. flush() can be used to\r\n       *  immediately send all pending data.\r\n       */flush:function flush(){// cancel the pending idle period and run the idle function\n// immediately\nclearTimeout(this._idleTimeout);this._onIdle();},/** Function: sendIQ\r\n       *  Helper function to send IQ stanzas.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The stanza to send.\r\n       *    (Function) callback - The callback function for a successful request.\r\n       *    (Function) errback - The callback function for a failed or timed\r\n       *      out request.  On timeout, the stanza will be null.\r\n       *    (Integer) timeout - The time specified in milliseconds for a\r\n       *      timeout to occur.\r\n       *\r\n       *  Returns:\r\n       *    The id used to send the IQ.\r\n       */sendIQ:function sendIQ(elem,callback,errback,timeout){var timeoutHandler=null;var that=this;if(typeof elem.tree==="function"){elem=elem.tree();}var id=elem.getAttribute("id");// inject id if not found\nif(!id){id=this.getUniqueId("sendIQ");elem.setAttribute("id",id);}var expectedFrom=elem.getAttribute("to");var fulljid=this.jid;var handler=this.addHandler(function(stanza){// remove timeout handler if there is one\nif(timeoutHandler){that.deleteTimedHandler(timeoutHandler);}var acceptable=false;var from=stanza.getAttribute("from");if(from===expectedFrom||expectedFrom===null&&(from===Strophe.getBareJidFromJid(fulljid)||from===Strophe.getDomainFromJid(fulljid)||from===fulljid)){acceptable=true;}if(!acceptable){console.error("req: ",elem,"Resp:",stanza);throw{name:"StropheError",message:"Got answer to IQ from wrong jid:"+from+"\\nExpected jid: "+expectedFrom+""+"\\n stanza to String: "+stanza.toString()};}var iqtype=stanza.getAttribute("type");if(iqtype=="result"){if(callback){callback(stanza);}}else if(iqtype=="error"){if(errback){errback(stanza);}}else{throw{name:"StropheError",message:"Got bad IQ type of "+iqtype};}},null,"iq",["error","result"],id);// if timeout specified, setup timeout handler.\nif(timeout){timeoutHandler=this.addTimedHandler(timeout,function(){// get rid of normal handler\nthat.deleteHandler(handler);// call errback on timeout with null stanza\nif(errback){errback(null);}return false;});}this.send(elem);return id;},/** PrivateFunction: _queueData\r\n       *  Queue outgoing data for later sending.  Also ensures that the data\r\n       *  is a DOMElement.\r\n       */_queueData:function _queueData(element){if(element===null||!element.tagName||!element.childNodes){throw{name:"StropheError",message:"Cannot queue non-DOMElement."};}this._data.push(element);},/** PrivateFunction: _sendRestart\r\n       *  Send an xmpp:restart stanza.\r\n       */_sendRestart:function _sendRestart(){this._data.push("restart");this._proto._sendRestart();this._idleTimeout=setTimeout(this._onIdle.bind(this),100);},/** Function: addTimedHandler\r\n       *  Add a timed handler to the connection.\r\n       *\r\n       *  This function adds a timed handler.  The provided handler will\r\n       *  be called every period milliseconds until it returns false,\r\n       *  the connection is terminated, or the handler is removed.  Handlers\r\n       *  that wish to continue being invoked should return true.\r\n       *\r\n       *  Because of method binding it is necessary to save the result of\r\n       *  this function if you wish to remove a handler with\r\n       *  deleteTimedHandler().\r\n       *\r\n       *  Note that user handlers are not active until authentication is\r\n       *  successful.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) period - The period of the handler.\r\n       *    (Function) handler - The callback function.\r\n       *\r\n       *  Returns:\r\n       *    A reference to the handler that can be used to remove it.\r\n       */addTimedHandler:function addTimedHandler(period,handler){var thand=new Strophe.TimedHandler(period,handler);this.addTimeds.push(thand);return thand;},/** Function: deleteTimedHandler\r\n       *  Delete a timed handler for a connection.\r\n       *\r\n       *  This function removes a timed handler from the connection.  The\r\n       *  handRef parameter is *not* the function passed to addTimedHandler(),\r\n       *  but is the reference returned from addTimedHandler().\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.TimedHandler) handRef - The handler reference.\r\n       */deleteTimedHandler:function deleteTimedHandler(handRef){// this must be done in the Idle loop so that we don\'t change\n// the handlers during iteration\nthis.removeTimeds.push(handRef);},/** Function: addHandler\r\n       *  Add a stanza handler for the connection.\r\n       *\r\n       *  This function adds a stanza handler to the connection.  The\r\n       *  handler callback will be called for any stanza that matches\r\n       *  the parameters.  Note that if multiple parameters are supplied,\r\n       *  they must all match for the handler to be invoked.\r\n       *\r\n       *  The handler will receive the stanza that triggered it as its argument.\r\n       *  *The handler should return true if it is to be invoked again;\r\n       *  returning false will remove the handler after it returns.*\r\n       *\r\n       *  As a convenience, the ns parameters applies to the top level element\r\n       *  and also any of its immediate children.  This is primarily to make\r\n       *  matching /iq/query elements easy.\r\n       *\r\n       *  The options argument contains handler matching flags that affect how\r\n       *  matches are determined. Currently the only flag is matchBare (a\r\n       *  boolean). When matchBare is true, the from parameter and the from\r\n       *  attribute on the stanza will be matched as bare JIDs instead of\r\n       *  full JIDs. To use this, pass {matchBare: true} as the value of\r\n       *  options. The default value for matchBare is false.\r\n       *\r\n       *  The return value should be saved if you wish to remove the handler\r\n       *  with deleteHandler().\r\n       *\r\n       *  Parameters:\r\n       *    (Function) handler - The user callback.\r\n       *    (String) ns - The namespace to match.\r\n       *    (String) name - The stanza name to match.\r\n       *    (String) type - The stanza type attribute to match.\r\n       *    (String) id - The stanza id attribute to match.\r\n       *    (String) from - The stanza from attribute to match.\r\n       *    (String) options - The handler options\r\n       *\r\n       *  Returns:\r\n       *    A reference to the handler that can be used to remove it.\r\n       */addHandler:function addHandler(handler,ns,name,type,id,from,options){var hand=new Strophe.Handler(handler,ns,name,type,id,from,options);this.addHandlers.push(hand);return hand;},/** Function: deleteHandler\r\n       *  Delete a stanza handler for a connection.\r\n       *\r\n       *  This function removes a stanza handler from the connection.  The\r\n       *  handRef parameter is *not* the function passed to addHandler(),\r\n       *  but is the reference returned from addHandler().\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Handler) handRef - The handler reference.\r\n       */deleteHandler:function deleteHandler(handRef){// this must be done in the Idle loop so that we don\'t change\n// the handlers during iteration\nthis.removeHandlers.push(handRef);// If a handler is being deleted while it is being added,\n// prevent it from getting added\nvar i=this.addHandlers.indexOf(handRef);if(i>=0){this.addHandlers.splice(i,1);}},/** Function: disconnect\r\n       *  Start the graceful disconnection process.\r\n       *\r\n       *  This function starts the disconnection process.  This process starts\r\n       *  by sending unavailable presence and sending BOSH body of type\r\n       *  terminate.  A timeout handler makes sure that disconnection happens\r\n       *  even if the BOSH server does not respond.\r\n       *  If the Connection object isn\'t connected, at least tries to abort all pending requests\r\n       *  so the connection object won\'t generate successful requests (which were already opened).\r\n       *\r\n       *  The user supplied connection callback will be notified of the\r\n       *  progress as this process happens.\r\n       *\r\n       *  Parameters:\r\n       *    (String) reason - The reason the disconnect is occuring.\r\n       */disconnect:function disconnect(reason){this._changeConnectStatus(Strophe.Status.DISCONNECTING,reason);Strophe.info("Disconnect was called because: "+reason);if(this.connected){var pres=false;this.disconnecting=true;if(this.authenticated){pres=$pres({xmlns:Strophe.NS.CLIENT,type:"unavailable"});}// setup timeout handler\nthis._disconnectTimeout=this._addSysTimedHandler(3000,this._onDisconnectTimeout.bind(this));this._proto._disconnect(pres);}else{Strophe.info("Disconnect was called before Strophe connected to the server");this._proto._abortAllRequests();}},/** PrivateFunction: _changeConnectStatus\r\n       *  _Private_ helper function that makes sure plugins and the user\'s\r\n       *  callback are notified of connection status changes.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) status - the new connection status, one of the values\r\n       *      in Strophe.Status\r\n       *    (String) condition - the error condition or null\r\n       */_changeConnectStatus:function _changeConnectStatus(status,condition){// notify all plugins listening for status changes\nfor(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var plugin=this[k];if(plugin.statusChanged){try{plugin.statusChanged(status,condition);}catch(err){Strophe.error(""+k+" plugin caused an exception "+"changing status: "+err);}}}}// notify the user\'s callback\nif(this.connect_callback){try{this.connect_callback(status,condition);}catch(e){Strophe.error("User connection callback caused an "+"exception: "+e);}}},/** PrivateFunction: _doDisconnect\r\n       *  _Private_ function to disconnect.\r\n       *\r\n       *  This is the last piece of the disconnection logic.  This resets the\r\n       *  connection and alerts the user\'s connection callback.\r\n       */_doDisconnect:function _doDisconnect(condition){if(typeof this._idleTimeout=="number"){clearTimeout(this._idleTimeout);}// Cancel Disconnect Timeout\nif(this._disconnectTimeout!==null){this.deleteTimedHandler(this._disconnectTimeout);this._disconnectTimeout=null;}Strophe.info("_doDisconnect was called");this._proto._doDisconnect();this.authenticated=false;this.disconnecting=false;this.restored=false;// delete handlers\nthis.handlers=[];this.timedHandlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];// tell the parent we disconnected\nthis._changeConnectStatus(Strophe.Status.DISCONNECTED,condition);this.connected=false;},/** PrivateFunction: _dataRecv\r\n       *  _Private_ handler to processes incoming data from the the connection.\r\n       *\r\n       *  Except for _connect_cb handling the initial connection request,\r\n       *  this function handles the incoming data for all requests.  This\r\n       *  function also fires stanza handlers that match each incoming\r\n       *  stanza.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Request) req - The request that has data ready.\r\n       *    (string) req - The stanza a raw string (optiona).\r\n       */_dataRecv:function _dataRecv(req,raw){Strophe.info("_dataRecv called");var elem=this._proto._reqToData(req);if(elem===null){return;}if(this.xmlInput!==Strophe.Connection.prototype.xmlInput){if(elem.nodeName===this._proto.strip&&elem.childNodes.length){this.xmlInput(elem.childNodes[0]);}else{this.xmlInput(elem);}}if(this.rawInput!==Strophe.Connection.prototype.rawInput){if(raw){this.rawInput(raw);}else{this.rawInput(Strophe.serialize(elem));}}// remove handlers scheduled for deletion\nvar i,hand;while(this.removeHandlers.length>0){hand=this.removeHandlers.pop();i=this.handlers.indexOf(hand);if(i>=0){this.handlers.splice(i,1);}}// add handlers scheduled for addition\nwhile(this.addHandlers.length>0){this.handlers.push(this.addHandlers.pop());}// handle graceful disconnect\nif(this.disconnecting&&this._proto._emptyQueue()){this._doDisconnect();return;}var type=elem.getAttribute("type");var cond,conflict;if(type!==null&&type=="terminate"){// Don\'t process stanzas that come in after disconnect\nif(this.disconnecting){return;}// an error occurred\ncond=elem.getAttribute("condition");conflict=elem.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict";}this._changeConnectStatus(Strophe.Status.CONNFAIL,cond);}else{this._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown");}this._doDisconnect(cond);return;}// send each incoming stanza through the handler chain\nvar that=this;Strophe.forEachChild(elem,null,function(child){var i,newList;// process handlers\nnewList=that.handlers;that.handlers=[];for(i=0;i<newList.length;i++){var hand=newList[i];// encapsulate \'handler.run\' not to lose the whole handler list if\n// one of the handlers throws an exception\ntry{if(hand.isMatch(child)&&(that.authenticated||!hand.user)){if(hand.run(child)){that.handlers.push(hand);}}else{that.handlers.push(hand);}}catch(e){// if the handler throws an exception, we consider it as false\nStrophe.warn("Removing Strophe handlers due to uncaught exception: "+e.message);}}});},/** Attribute: mechanisms\r\n       *  SASL Mechanisms available for Conncection.\r\n       */mechanisms:{},/** PrivateFunction: _connect_cb\r\n       *  _Private_ handler for initial connection request.\r\n       *\r\n       *  This handler is used to process the initial connection request\r\n       *  response from the BOSH server. It is used to set up authentication\r\n       *  handlers and start the authentication process.\r\n       *\r\n       *  SASL authentication will be attempted if available, otherwise\r\n       *  the code will fall back to legacy authentication.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Request) req - The current request.\r\n       *    (Function) _callback - low level (xmpp) connect callback function.\r\n       *      Useful for plugins with their own xmpp connect callback (when their)\r\n       *      want to do something special).\r\n       */_connect_cb:function _connect_cb(req,_callback,raw){Strophe.info("_connect_cb was called");this.connected=true;var bodyWrap=this._proto._reqToData(req);if(!bodyWrap){return;}if(this.xmlInput!==Strophe.Connection.prototype.xmlInput){if(bodyWrap.nodeName===this._proto.strip&&bodyWrap.childNodes.length){this.xmlInput(bodyWrap.childNodes[0]);}else{this.xmlInput(bodyWrap);}}if(this.rawInput!==Strophe.Connection.prototype.rawInput){if(raw){this.rawInput(raw);}else{this.rawInput(Strophe.serialize(bodyWrap));}}var conncheck=this._proto._connect_cb(bodyWrap);if(conncheck===Strophe.Status.CONNFAIL){return;}this._authentication.sasl_scram_sha1=false;this._authentication.sasl_plain=false;this._authentication.sasl_digest_md5=false;this._authentication.sasl_anonymous=false;this._authentication.legacy_auth=false;// Check for the stream:features tag\nvar hasFeatures;if(bodyWrap.getElementsByTagNameNS){hasFeatures=bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM,"features").length>0;}else{hasFeatures=bodyWrap.getElementsByTagName("stream:features").length>0||bodyWrap.getElementsByTagName("features").length>0;}var mechanisms=bodyWrap.getElementsByTagName("mechanism");var matched=[];var i,mech,found_authentication=false;if(!hasFeatures){this._proto._no_auth_received(_callback);return;}if(mechanisms.length>0){for(i=0;i<mechanisms.length;i++){mech=Strophe.getText(mechanisms[i]);if(this.mechanisms[mech])matched.push(this.mechanisms[mech]);}}this._authentication.legacy_auth=bodyWrap.getElementsByTagName("auth").length>0;found_authentication=this._authentication.legacy_auth||matched.length>0;if(!found_authentication){this._proto._no_auth_received(_callback);return;}if(this.do_authentication!==false)this.authenticate(matched);},/** Function: authenticate\r\n       * Set up authentication\r\n       *\r\n       *  Contiunues the initial connection request by setting up authentication\r\n       *  handlers and start the authentication process.\r\n       *\r\n       *  SASL authentication will be attempted if available, otherwise\r\n       *  the code will fall back to legacy authentication.\r\n       *\r\n       */authenticate:function authenticate(matched){var i;// Sorting matched mechanisms according to priority.\nfor(i=0;i<matched.length-1;++i){var higher=i;for(var j=i+1;j<matched.length;++j){if(matched[j].prototype.priority>matched[higher].prototype.priority){higher=j;}}if(higher!=i){var swap=matched[i];matched[i]=matched[higher];matched[higher]=swap;}}// run each mechanism\nvar mechanism_found=false;for(i=0;i<matched.length;++i){if(!matched[i].test(this))continue;this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge_cb.bind(this),null,"challenge",null,null);this._sasl_mechanism=new matched[i]();this._sasl_mechanism.onStart(this);var request_auth_exchange=$build("auth",{xmlns:Strophe.NS.SASL,mechanism:this._sasl_mechanism.name});if(this._sasl_mechanism.isClientFirst){var response=this._sasl_mechanism.onChallenge(this,null);request_auth_exchange.t(Base64.encode(response));}this.send(request_auth_exchange.tree());mechanism_found=true;break;}if(!mechanism_found){// if none of the mechanism worked\nif(Strophe.getNodeFromJid(this.jid)===null){// we don\'t have a node, which is required for non-anonymous\n// client connections\nthis._changeConnectStatus(Strophe.Status.CONNFAIL,"x-strophe-bad-non-anon-jid");this.disconnect("x-strophe-bad-non-anon-jid");}else{// fall back to legacy authentication\nthis._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._addSysHandler(this._auth1_cb.bind(this),null,null,null,"_auth_1");this.send($iq({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).tree());}}},_sasl_challenge_cb:function _sasl_challenge_cb(elem){var challenge=Base64.decode(Strophe.getText(elem));var response=this._sasl_mechanism.onChallenge(this,challenge);var stanza=$build("response",{xmlns:Strophe.NS.SASL});if(response!==""){stanza.t(Base64.encode(response));}this.send(stanza.tree());return true;},/** PrivateFunction: _auth1_cb\r\n       *  _Private_ handler for legacy authentication.\r\n       *\r\n       *  This handler is called in response to the initial <iq type=\'get\'/>\r\n       *  for legacy authentication.  It builds an authentication <iq/> and\r\n       *  sends it, creating a handler (calling back to _auth2_cb()) to\r\n       *  handle the result\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The stanza that triggered the callback.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */ /* jshint unused:false */_auth1_cb:function _auth1_cb(elem){// build plaintext auth iq\nvar iq=$iq({type:"set",id:"_auth_2"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).up().c("password").t(this.pass);if(!Strophe.getResourceFromJid(this.jid)){// since the user has not supplied a resource, we pick\n// a default one here.  unlike other auth methods, the server\n// cannot do this for us.\nthis.jid=Strophe.getBareJidFromJid(this.jid)+"/strophe";}iq.up().c("resource",{}).t(Strophe.getResourceFromJid(this.jid));this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2");this.send(iq.tree());return false;},/* jshint unused:true */ /** PrivateFunction: _sasl_success_cb\r\n       *  _Private_ handler for succesful SASL authentication.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The matching stanza.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_sasl_success_cb:function _sasl_success_cb(elem){if(this._sasl_data["server-signature"]){var serverSignature;var success=Base64.decode(Strophe.getText(elem));var attribMatch=/([a-z]+)=([^,]+)(,|$)/;var matches=success.match(attribMatch);if(matches[1]=="v"){serverSignature=matches[2];}if(serverSignature!=this._sasl_data["server-signature"]){// remove old handlers\nthis.deleteHandler(this._sasl_failure_handler);this._sasl_failure_handler=null;if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null;}this._sasl_data={};return this._sasl_failure_cb(null);}}Strophe.info("SASL authentication succeeded.");if(this._sasl_mechanism)this._sasl_mechanism.onSuccess();// remove old handlers\nthis.deleteHandler(this._sasl_failure_handler);this._sasl_failure_handler=null;if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null;}var streamfeature_handlers=[];var wrapper=function wrapper(handlers,elem){while(handlers.length){this.deleteHandler(handlers.pop());}this._sasl_auth1_cb.bind(this)(elem);return false;};streamfeature_handlers.push(this._addSysHandler(function(elem){wrapper.bind(this)(streamfeature_handlers,elem);}.bind(this),null,"stream:features",null,null));streamfeature_handlers.push(this._addSysHandler(function(elem){wrapper.bind(this)(streamfeature_handlers,elem);}.bind(this),Strophe.NS.STREAM,"features",null,null));// we must send an xmpp:restart now\nthis._sendRestart();return false;},/** PrivateFunction: _sasl_auth1_cb\r\n       *  _Private_ handler to start stream binding.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The matching stanza.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_sasl_auth1_cb:function _sasl_auth1_cb(elem){// save stream:features for future usage\nthis.features=elem;var i,child;for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];if(child.nodeName=="bind"){this.do_bind=true;}if(child.nodeName=="session"){this.do_session=true;}}if(!this.do_bind){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false;}else{this._addSysHandler(this._sasl_bind_cb.bind(this),null,null,null,"_bind_auth_2");var resource=Strophe.getResourceFromJid(this.jid);if(resource){this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).c("resource",{}).t(resource).tree());}else{this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).tree());}}return false;},/** PrivateFunction: _sasl_bind_cb\r\n       *  _Private_ handler for binding result and session start.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The matching stanza.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_sasl_bind_cb:function _sasl_bind_cb(elem){if(elem.getAttribute("type")=="error"){Strophe.info("SASL binding failed.");var conflict=elem.getElementsByTagName("conflict"),condition;if(conflict.length>0){condition="conflict";}this._changeConnectStatus(Strophe.Status.AUTHFAIL,condition);return false;}// TODO - need to grab errors\nvar bind=elem.getElementsByTagName("bind");var jidNode;if(bind.length>0){// Grab jid\njidNode=bind[0].getElementsByTagName("jid");if(jidNode.length>0){this.jid=Strophe.getText(jidNode[0]);if(this.do_session){this._addSysHandler(this._sasl_session_cb.bind(this),null,null,null,"_session_auth_2");this.send($iq({type:"set",id:"_session_auth_2"}).c("session",{xmlns:Strophe.NS.SESSION}).tree());}else{this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null);}}}else{Strophe.info("SASL binding failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false;}},/** PrivateFunction: _sasl_session_cb\r\n       *  _Private_ handler to finish successful SASL connection.\r\n       *\r\n       *  This sets Connection.authenticated to true on success, which\r\n       *  starts the processing of user handlers.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The matching stanza.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_sasl_session_cb:function _sasl_session_cb(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null);}else if(elem.getAttribute("type")=="error"){Strophe.info("Session creation failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false;}return false;},/** PrivateFunction: _sasl_failure_cb\r\n       *  _Private_ handler for SASL authentication failure.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The matching stanza.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */ /* jshint unused:false */_sasl_failure_cb:function _sasl_failure_cb(elem){// delete unneeded handlers\nif(this._sasl_success_handler){this.deleteHandler(this._sasl_success_handler);this._sasl_success_handler=null;}if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null;}if(this._sasl_mechanism)this._sasl_mechanism.onFailure();this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false;},/* jshint unused:true */ /** PrivateFunction: _auth2_cb\r\n       *  _Private_ handler to finish legacy authentication.\r\n       *\r\n       *  This handler is called when the result from the jabber:iq:auth\r\n       *  <iq/> stanza is returned.\r\n       *\r\n       *  Parameters:\r\n       *    (XMLElement) elem - The stanza that triggered the callback.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_auth2_cb:function _auth2_cb(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null);}else if(elem.getAttribute("type")=="error"){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);this.disconnect("authentication failed");}return false;},/** PrivateFunction: _addSysTimedHandler\r\n       *  _Private_ function to add a system level timed handler.\r\n       *\r\n       *  This function is used to add a Strophe.TimedHandler for the\r\n       *  library code.  System timed handlers are allowed to run before\r\n       *  authentication is complete.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) period - The period of the handler.\r\n       *    (Function) handler - The callback function.\r\n       */_addSysTimedHandler:function _addSysTimedHandler(period,handler){var thand=new Strophe.TimedHandler(period,handler);thand.user=false;this.addTimeds.push(thand);return thand;},/** PrivateFunction: _addSysHandler\r\n       *  _Private_ function to add a system level stanza handler.\r\n       *\r\n       *  This function is used to add a Strophe.Handler for the\r\n       *  library code.  System stanza handlers are allowed to run before\r\n       *  authentication is complete.\r\n       *\r\n       *  Parameters:\r\n       *    (Function) handler - The callback function.\r\n       *    (String) ns - The namespace to match.\r\n       *    (String) name - The stanza name to match.\r\n       *    (String) type - The stanza type attribute to match.\r\n       *    (String) id - The stanza id attribute to match.\r\n       */_addSysHandler:function _addSysHandler(handler,ns,name,type,id){var hand=new Strophe.Handler(handler,ns,name,type,id);hand.user=false;this.addHandlers.push(hand);return hand;},/** PrivateFunction: _onDisconnectTimeout\r\n       *  _Private_ timeout handler for handling non-graceful disconnection.\r\n       *\r\n       *  If the graceful disconnect process does not complete within the\r\n       *  time allotted, this handler finishes the disconnect anyway.\r\n       *\r\n       *  Returns:\r\n       *    false to remove the handler.\r\n       */_onDisconnectTimeout:function _onDisconnectTimeout(){Strophe.info("_onDisconnectTimeout was called");this._proto._onDisconnectTimeout();// actually disconnect\nthis._doDisconnect();return false;},/** PrivateFunction: _onIdle\r\n       *  _Private_ handler to process events during idle cycle.\r\n       *\r\n       *  This handler is called every 100ms to fire timed handlers that\r\n       *  are ready and keep poll requests going.\r\n       */_onIdle:function _onIdle(){var i,thand,since,newList;// add timed handlers scheduled for addition\n// NOTE: we add before remove in the case a timed handler is\n// added and then deleted before the next _onIdle() call.\nwhile(this.addTimeds.length>0){this.timedHandlers.push(this.addTimeds.pop());}// remove timed handlers that have been scheduled for deletion\nwhile(this.removeTimeds.length>0){thand=this.removeTimeds.pop();i=this.timedHandlers.indexOf(thand);if(i>=0){this.timedHandlers.splice(i,1);}}// call ready timed handlers\nvar now=new Date().getTime();newList=[];for(i=0;i<this.timedHandlers.length;i++){thand=this.timedHandlers[i];if(this.authenticated||!thand.user){since=thand.lastCalled+thand.period;if(since-now<=0){if(thand.run()){newList.push(thand);}}else{newList.push(thand);}}}this.timedHandlers=newList;clearTimeout(this._idleTimeout);this._proto._onIdle();// reactivate the timer only if connected\nif(this.connected){this._idleTimeout=setTimeout(this._onIdle.bind(this),100);}}};/** Class: Strophe.SASLMechanism\r\n     *\r\n     *  encapsulates SASL authentication mechanisms.\r\n     *\r\n     *  User code may override the priority for each mechanism or disable it completely.\r\n     *  See <priority> for information about changing priority and <test> for informatian on\r\n     *  how to disable a mechanism.\r\n     *\r\n     *  By default, all mechanisms are enabled and the priorities are\r\n     *\r\n     *  SCRAM-SHA1 - 40\r\n     *  DIGEST-MD5 - 30\r\n     *  Plain - 20\r\n     */ /**\r\n     * PrivateConstructor: Strophe.SASLMechanism\r\n     * SASL auth mechanism abstraction.\r\n     *\r\n     *  Parameters:\r\n     *    (String) name - SASL Mechanism name.\r\n     *    (Boolean) isClientFirst - If client should send response first without challenge.\r\n     *    (Number) priority - Priority.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.SASLMechanism object.\r\n     */Strophe.SASLMechanism=function(name,isClientFirst,priority){/** PrivateVariable: name\r\n       *  Mechanism name.\r\n       */this.name=name;/** PrivateVariable: isClientFirst\r\n       *  If client sends response without initial server challenge.\r\n       */this.isClientFirst=isClientFirst;/** Variable: priority\r\n       *  Determines which <SASLMechanism> is chosen for authentication (Higher is better).\r\n       *  Users may override this to prioritize mechanisms differently.\r\n       *\r\n       *  In the default configuration the priorities are\r\n       *\r\n       *  SCRAM-SHA1 - 40\r\n       *  DIGEST-MD5 - 30\r\n       *  Plain - 20\r\n       *\r\n       *  Example: (This will cause Strophe to choose the mechanism that the server sent first)\r\n       *\r\n       *  > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority;\r\n       *\r\n       *  See <SASL mechanisms> for a list of available mechanisms.\r\n       *\r\n       */this.priority=priority;};Strophe.SASLMechanism.prototype={/**\r\n       *  Function: test\r\n       *  Checks if mechanism able to run.\r\n       *  To disable a mechanism, make this return false;\r\n       *\r\n       *  To disable plain authentication run\r\n       *  > Strophe.SASLPlain.test = function() {\r\n       *  >   return false;\r\n       *  > }\r\n       *\r\n       *  See <SASL mechanisms> for a list of available mechanisms.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Connection) connection - Target Connection.\r\n       *\r\n       *  Returns:\r\n       *    (Boolean) If mechanism was able to run.\r\n       */ /* jshint unused:false */test:function test(connection){return true;},/* jshint unused:true */ /** PrivateFunction: onStart\r\n       *  Called before starting mechanism on some connection.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Connection) connection - Target Connection.\r\n       */onStart:function onStart(connection){this._connection=connection;},/** PrivateFunction: onChallenge\r\n       *  Called by protocol implementation on incoming challenge. If client is\r\n       *  first (isClientFirst == true) challenge will be null on the first call.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Connection) connection - Target Connection.\r\n       *    (String) challenge - current challenge to handle.\r\n       *\r\n       *  Returns:\r\n       *    (String) Mechanism response.\r\n       */ /* jshint unused:false */onChallenge:function onChallenge(connection,challenge){throw new Error("You should implement challenge handling!");},/* jshint unused:true */ /** PrivateFunction: onFailure\r\n       *  Protocol informs mechanism implementation about SASL failure.\r\n       */onFailure:function onFailure(){this._connection=null;},/** PrivateFunction: onSuccess\r\n       *  Protocol informs mechanism implementation about SASL success.\r\n       */onSuccess:function onSuccess(){this._connection=null;}};/** Constants: SASL mechanisms\r\n     *  Available authentication mechanisms\r\n     *\r\n     *  Strophe.SASLAnonymous - SASL Anonymous authentication.\r\n     *  Strophe.SASLPlain - SASL Plain authentication.\r\n     *  Strophe.SASLMD5 - SASL Digest-MD5 authentication\r\n     *  Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication\r\n     */ // Building SASL callbacks\n/** PrivateConstructor: SASLAnonymous\r\n     *  SASL Anonymous authentication.\r\n     */Strophe.SASLAnonymous=function(){};Strophe.SASLAnonymous.prototype=new Strophe.SASLMechanism("ANONYMOUS",false,10);Strophe.SASLAnonymous.test=function(connection){return connection.authcid===null;};Strophe.Connection.prototype.mechanisms[Strophe.SASLAnonymous.prototype.name]=Strophe.SASLAnonymous;/** PrivateConstructor: SASLPlain\r\n     *  SASL Plain authentication.\r\n     */Strophe.SASLPlain=function(){};Strophe.SASLPlain.prototype=new Strophe.SASLMechanism("PLAIN",true,20);Strophe.SASLPlain.test=function(connection){return connection.authcid!==null;};Strophe.SASLPlain.prototype.onChallenge=function(connection){var auth_str=connection.authzid;auth_str=auth_str+"\\0";auth_str=auth_str+connection.authcid;auth_str=auth_str+"\\0";auth_str=auth_str+connection.pass;return auth_str;};Strophe.Connection.prototype.mechanisms[Strophe.SASLPlain.prototype.name]=Strophe.SASLPlain;/** PrivateConstructor: SASLSHA1\r\n     *  SASL SCRAM SHA 1 authentication.\r\n     */Strophe.SASLSHA1=function(){};/* TEST:\r\n     * This is a simple example of a SCRAM-SHA-1 authentication exchange\r\n     * when the client doesn\'t support channel bindings (username \'user\' and\r\n     * password \'pencil\' are used):\r\n     *\r\n     * C: n,,n=user,r=fyko+d2lbbFgONRv9qkxdawL\r\n     * S: r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,s=QSXCR+Q6sek8bf92,\r\n     * i=4096\r\n     * C: c=biws,r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,\r\n     * p=v0X8v3Bz2T0CJGbJQyF0X+HI4Ts=\r\n     * S: v=rmF9pqV8S7suAoZWja4dJRkFsKQ=\r\n     *\r\n     */Strophe.SASLSHA1.prototype=new Strophe.SASLMechanism("SCRAM-SHA-1",true,40);Strophe.SASLSHA1.test=function(connection){return connection.authcid!==null;};Strophe.SASLSHA1.prototype.onChallenge=function(connection,challenge,test_cnonce){var cnonce=test_cnonce||MD5.hexdigest(Math.random()*1234567890);var auth_str="n="+connection.authcid;auth_str+=",r=";auth_str+=cnonce;connection._sasl_data.cnonce=cnonce;connection._sasl_data["client-first-message-bare"]=auth_str;auth_str="n,,"+auth_str;this.onChallenge=function(connection,challenge){var nonce,salt,iter,Hi,U,U_old,i,k;var clientKey,serverKey,clientSignature;var responseText="c=biws,";var authMessage=connection._sasl_data["client-first-message-bare"]+","+challenge+",";var cnonce=connection._sasl_data.cnonce;var attribMatch=/([a-z]+)=([^,]+)(,|$)/;while(challenge.match(attribMatch)){var matches=challenge.match(attribMatch);challenge=challenge.replace(matches[0],"");switch(matches[1]){case"r":nonce=matches[2];break;case"s":salt=matches[2];break;case"i":iter=matches[2];break;}}if(nonce.substr(0,cnonce.length)!==cnonce){connection._sasl_data={};return connection._sasl_failure_cb();}responseText+="r="+nonce;authMessage+=responseText;salt=Base64.decode(salt);salt+="\\x00\\x00\\x00\\x01";Hi=U_old=SHA1.core_hmac_sha1(connection.pass,salt);for(i=1;i<iter;i++){U=SHA1.core_hmac_sha1(connection.pass,SHA1.binb2str(U_old));for(k=0;k<5;k++){Hi[k]^=U[k];}U_old=U;}Hi=SHA1.binb2str(Hi);clientKey=SHA1.core_hmac_sha1(Hi,"Client Key");serverKey=SHA1.str_hmac_sha1(Hi,"Server Key");clientSignature=SHA1.core_hmac_sha1(SHA1.str_sha1(SHA1.binb2str(clientKey)),authMessage);connection._sasl_data["server-signature"]=SHA1.b64_hmac_sha1(serverKey,authMessage);for(k=0;k<5;k++){clientKey[k]^=clientSignature[k];}responseText+=",p="+Base64.encode(SHA1.binb2str(clientKey));return responseText;}.bind(this);return auth_str;};Strophe.Connection.prototype.mechanisms[Strophe.SASLSHA1.prototype.name]=Strophe.SASLSHA1;/** PrivateConstructor: SASLMD5\r\n     *  SASL DIGEST MD5 authentication.\r\n     */Strophe.SASLMD5=function(){};Strophe.SASLMD5.prototype=new Strophe.SASLMechanism("DIGEST-MD5",false,30);Strophe.SASLMD5.test=function(connection){return connection.authcid!==null;};/** PrivateFunction: _quote\r\n     *  _Private_ utility function to backslash escape and quote strings.\r\n     *\r\n     *  Parameters:\r\n     *    (String) str - The string to be quoted.\r\n     *\r\n     *  Returns:\r\n     *    quoted string\r\n     */Strophe.SASLMD5.prototype._quote=function(str){return\'"\'+str.replace(/\\\\/g,"\\\\\\\\").replace(/"/g,\'\\\\"\')+\'"\';//" end string workaround for emacs\n};Strophe.SASLMD5.prototype.onChallenge=function(connection,challenge,test_cnonce){var attribMatch=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;var cnonce=test_cnonce||MD5.hexdigest(""+Math.random()*1234567890);var realm="";var host=null;var nonce="";var qop="";var matches;while(challenge.match(attribMatch)){matches=challenge.match(attribMatch);challenge=challenge.replace(matches[0],"");matches[2]=matches[2].replace(/^"(.+)"$/,"$1");switch(matches[1]){case"realm":realm=matches[2];break;case"nonce":nonce=matches[2];break;case"qop":qop=matches[2];break;case"host":host=matches[2];break;}}var digest_uri=connection.servtype+"/"+connection.domain;if(host!==null){digest_uri=digest_uri+"/"+host;}var A1=MD5.hash(connection.authcid+":"+realm+":"+this._connection.pass)+":"+nonce+":"+cnonce;var A2="AUTHENTICATE:"+digest_uri;var responseText="";responseText+="charset=utf-8,";responseText+="username="+this._quote(connection.authcid)+",";responseText+="realm="+this._quote(realm)+",";responseText+="nonce="+this._quote(nonce)+",";responseText+="nc=00000001,";responseText+="cnonce="+this._quote(cnonce)+",";responseText+="digest-uri="+this._quote(digest_uri)+",";responseText+="response="+MD5.hexdigest(MD5.hexdigest(A1)+":"+nonce+":00000001:"+cnonce+":auth:"+MD5.hexdigest(A2))+",";responseText+="qop=auth";this.onChallenge=function(){return"";}.bind(this);return responseText;};Strophe.Connection.prototype.mechanisms[Strophe.SASLMD5.prototype.name]=Strophe.SASLMD5;return{Strophe:Strophe,$build:$build,$msg:$msg,$iq:$iq,$pres:$pres,SHA1:SHA1,Base64:Base64,MD5:MD5};});/*\r\n    This program is distributed under the terms of the MIT license.\r\n    Please see the LICENSE file for details.\r\n\r\n    Copyright 2006-2008, OGG, LLC\r\n*/ /* jshint undef: true, unused: true:, noarg: true, latedef: true */ /* global define, window, setTimeout, clearTimeout, XMLHttpRequest, ActiveXObject, Strophe, $build */(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-bosh",["strophe-core"],function(core){return factory(core.Strophe,core.$build);});}else{// Browser globals\nreturn factory(Strophe,$build);}})(this,function(Strophe,$build){/** PrivateClass: Strophe.Request\r\n     *  _Private_ helper class that provides a cross implementation abstraction\r\n     *  for a BOSH related XMLHttpRequest.\r\n     *\r\n     *  The Strophe.Request class is used internally to encapsulate BOSH request\r\n     *  information.  It is not meant to be used from user\'s code.\r\n     */ /** PrivateConstructor: Strophe.Request\r\n     *  Create and initialize a new Strophe.Request object.\r\n     *\r\n     *  Parameters:\r\n     *    (XMLElement) elem - The XML data to be sent in the request.\r\n     *    (Function) func - The function that will be called when the\r\n     *      XMLHttpRequest readyState changes.\r\n     *    (Integer) rid - The BOSH rid attribute associated with this request.\r\n     *    (Integer) sends - The number of times this same request has been\r\n     *      sent.\r\n     */Strophe.Request=function(elem,func,rid,sends){this.id=++Strophe._requestId;this.xmlData=elem;this.data=Strophe.serialize(elem);// save original function in case we need to make a new request\n// from this one.\nthis.origFunc=func;this.func=func;this.rid=rid;this.date=NaN;this.sends=sends||0;this.abort=false;this.dead=null;this.age=function(){if(!this.date){return 0;}var now=new Date();return(now-this.date)/1000;};this.timeDead=function(){if(!this.dead){return 0;}var now=new Date();return(now-this.dead)/1000;};this.xhr=this._newXHR();};Strophe.Request.prototype={/** PrivateFunction: getResponse\r\n       *  Get a response from the underlying XMLHttpRequest.\r\n       *\r\n       *  This function attempts to get a response from the request and checks\r\n       *  for errors.\r\n       *\r\n       *  Throws:\r\n       *    "parsererror" - A parser error occured.\r\n       *\r\n       *  Returns:\r\n       *    The DOM element tree of the response.\r\n       */getResponse:function getResponse(){var node=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){node=this.xhr.responseXML.documentElement;if(node.tagName=="parsererror"){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML));throw"parsererror";}}else if(this.xhr.responseText){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML));}return node;},/** PrivateFunction: _newXHR\r\n       *  _Private_ helper function to create XMLHttpRequests.\r\n       *\r\n       *  This function creates XMLHttpRequests across all implementations.\r\n       *\r\n       *  Returns:\r\n       *    A new XMLHttpRequest.\r\n       */_newXHR:function _newXHR(){var xhr=null;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();if(xhr.overrideMimeType){xhr.overrideMimeType("text/xml; charset=utf-8");}}else if(window.ActiveXObject){xhr=new ActiveXObject("Microsoft.XMLHTTP");}// use Function.bind() to prepend ourselves as an argument\nxhr.onreadystatechange=this.func.bind(null,this);return xhr;}};/** Class: Strophe.Bosh\r\n     *  _Private_ helper class that handles BOSH Connections\r\n     *\r\n     *  The Strophe.Bosh class is used internally by Strophe.Connection\r\n     *  to encapsulate BOSH sessions. It is not meant to be used from user\'s code.\r\n     */ /** File: bosh.js\r\n     *  A JavaScript library to enable BOSH in Strophejs.\r\n     *\r\n     *  this library uses Bidirectional-streams Over Synchronous HTTP (BOSH)\r\n     *  to emulate a persistent, stateful, two-way connection to an XMPP server.\r\n     *  More information on BOSH can be found in XEP 124.\r\n     */ /** PrivateConstructor: Strophe.Bosh\r\n     *  Create and initialize a Strophe.Bosh object.\r\n     *\r\n     *  Parameters:\r\n     *    (Strophe.Connection) connection - The Strophe.Connection that will use BOSH.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.Bosh object.\r\n     */Strophe.Bosh=function(connection){this._conn=connection;/* request id for body tags */this.rid=Math.floor(Math.random()*4294967295);/* The current session ID. */this.sid=null;// default BOSH values\nthis.hold=1;this.wait=60;this.window=5;this.errors=0;this._requests=[];};Strophe.Bosh.prototype={/** Variable: strip\r\n       *\r\n       *  BOSH-Connections will have all stanzas wrapped in a <body> tag when\r\n       *  passed to <Strophe.Connection.xmlInput> or <Strophe.Connection.xmlOutput>.\r\n       *  To strip this tag, User code can set <Strophe.Bosh.strip> to "body":\r\n       *\r\n       *  > Strophe.Bosh.prototype.strip = "body";\r\n       *\r\n       *  This will enable stripping of the body tag in both\r\n       *  <Strophe.Connection.xmlInput> and <Strophe.Connection.xmlOutput>.\r\n       */strip:null,/** PrivateFunction: _buildBody\r\n       *  _Private_ helper function to generate the <body/> wrapper for BOSH.\r\n       *\r\n       *  Returns:\r\n       *    A Strophe.Builder with a <body/> element.\r\n       */_buildBody:function _buildBody(){var bodyWrap=$build("body",{rid:this.rid++,xmlns:Strophe.NS.HTTPBIND});if(this.sid!==null){bodyWrap.attrs({sid:this.sid});}if(this._conn.options.keepalive){this._cacheSession();}return bodyWrap;},/** PrivateFunction: _reset\r\n       *  Reset the connection.\r\n       *\r\n       *  This function is called by the reset function of the Strophe Connection\r\n       */_reset:function _reset(){this.rid=Math.floor(Math.random()*4294967295);this.sid=null;this.errors=0;window.sessionStorage.removeItem("strophe-bosh-session");},/** PrivateFunction: _connect\r\n       *  _Private_ function that initializes the BOSH connection.\r\n       *\r\n       *  Creates and sends the Request that initializes the BOSH connection.\r\n       */_connect:function _connect(wait,hold,route){this.wait=wait||this.wait;this.hold=hold||this.hold;this.errors=0;// build the body tag\nvar body=this._buildBody().attrs({to:this._conn.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":Strophe.NS.BOSH});if(route){body.attrs({route:route});}var _connect_cb=this._conn._connect_cb;this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this,_connect_cb.bind(this._conn)),body.tree().getAttribute("rid")));this._throttledRequestHandler();},/** PrivateFunction: _attach\r\n       *  Attach to an already created and authenticated BOSH session.\r\n       *\r\n       *  This function is provided to allow Strophe to attach to BOSH\r\n       *  sessions which have been created externally, perhaps by a Web\r\n       *  application.  This is often used to support auto-login type features\r\n       *  without putting user credentials into the page.\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - The full JID that is bound by the session.\r\n       *    (String) sid - The SID of the BOSH session.\r\n       *    (String) rid - The current RID of the BOSH session.  This RID\r\n       *      will be used by the next request.\r\n       *    (Function) callback The connect callback function.\r\n       *    (Integer) wait - The optional HTTPBIND wait value.  This is the\r\n       *      time the server will wait before returning an empty result for\r\n       *      a request.  The default setting of 60 seconds is recommended.\r\n       *      Other settings will require tweaks to the Strophe.TIMEOUT value.\r\n       *    (Integer) hold - The optional HTTPBIND hold value.  This is the\r\n       *      number of connections the server will hold at one time.  This\r\n       *      should almost always be set to 1 (the default).\r\n       *    (Integer) wind - The optional HTTBIND window value.  This is the\r\n       *      allowed range of request ids that are valid.  The default is 5.\r\n       */_attach:function _attach(jid,sid,rid,callback,wait,hold,wind){this._conn.jid=jid;this.sid=sid;this.rid=rid;this._conn.connect_callback=callback;this._conn.domain=Strophe.getDomainFromJid(this._conn.jid);this._conn.authenticated=true;this._conn.connected=true;this.wait=wait||this.wait;this.hold=hold||this.hold;this.window=wind||this.window;this._conn._changeConnectStatus(Strophe.Status.ATTACHED,null);},/** PrivateFunction: _restore\r\n       *  Attempt to restore a cached BOSH session\r\n       *\r\n       *  Parameters:\r\n       *    (String) jid - The full JID that is bound by the session.\r\n       *      This parameter is optional but recommended, specifically in cases\r\n       *      where prebinded BOSH sessions are used where it\'s important to know\r\n       *      that the right session is being restored.\r\n       *    (Function) callback The connect callback function.\r\n       *    (Integer) wait - The optional HTTPBIND wait value.  This is the\r\n       *      time the server will wait before returning an empty result for\r\n       *      a request.  The default setting of 60 seconds is recommended.\r\n       *      Other settings will require tweaks to the Strophe.TIMEOUT value.\r\n       *    (Integer) hold - The optional HTTPBIND hold value.  This is the\r\n       *      number of connections the server will hold at one time.  This\r\n       *      should almost always be set to 1 (the default).\r\n       *    (Integer) wind - The optional HTTBIND window value.  This is the\r\n       *      allowed range of request ids that are valid.  The default is 5.\r\n       */_restore:function _restore(jid,callback,wait,hold,wind){var session=JSON.parse(window.sessionStorage.getItem("strophe-bosh-session"));if(typeof session!=="undefined"&&session!==null&&session.rid&&session.sid&&session.jid&&(typeof jid==="undefined"||Strophe.getBareJidFromJid(session.jid)==Strophe.getBareJidFromJid(jid))){this._conn.restored=true;this._attach(session.jid,session.sid,session.rid,callback,wait,hold,wind);}else{throw{name:"StropheSessionError",message:"_restore: no restoreable session."};}},/** PrivateFunction: _cacheSession\r\n       *  _Private_ handler for the beforeunload event.\r\n       *\r\n       *  This handler is used to process the Bosh-part of the initial request.\r\n       *  Parameters:\r\n       *    (Strophe.Request) bodyWrap - The received stanza.\r\n       */_cacheSession:function _cacheSession(){if(this._conn.authenticated){if(this._conn.jid&&this.rid&&this.sid){window.sessionStorage.setItem("strophe-bosh-session",JSON.stringify({jid:this._conn.jid,rid:this.rid,sid:this.sid}));}}else{window.sessionStorage.removeItem("strophe-bosh-session");}},/** PrivateFunction: _connect_cb\r\n       *  _Private_ handler for initial connection request.\r\n       *\r\n       *  This handler is used to process the Bosh-part of the initial request.\r\n       *  Parameters:\r\n       *    (Strophe.Request) bodyWrap - The received stanza.\r\n       */_connect_cb:function _connect_cb(bodyWrap){var typ=bodyWrap.getAttribute("type");var cond,conflict;if(typ!==null&&typ=="terminate"){// an error occurred\ncond=bodyWrap.getAttribute("condition");Strophe.error("BOSH-Connection failed: "+cond);conflict=bodyWrap.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict";}this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,cond);}else{this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown");}this._conn._doDisconnect(cond);return Strophe.Status.CONNFAIL;}// check to make sure we don\'t overwrite these if _connect_cb is\n// called multiple times in the case of missing stream:features\nif(!this.sid){this.sid=bodyWrap.getAttribute("sid");}var wind=bodyWrap.getAttribute("requests");if(wind){this.window=parseInt(wind,10);}var hold=bodyWrap.getAttribute("hold");if(hold){this.hold=parseInt(hold,10);}var wait=bodyWrap.getAttribute("wait");if(wait){this.wait=parseInt(wait,10);}},/** PrivateFunction: _disconnect\r\n       *  _Private_ part of Connection.disconnect for Bosh\r\n       *\r\n       *  Parameters:\r\n       *    (Request) pres - This stanza will be sent before disconnecting.\r\n       */_disconnect:function _disconnect(pres){this._sendTerminate(pres);},/** PrivateFunction: _doDisconnect\r\n       *  _Private_ function to disconnect.\r\n       *\r\n       *  Resets the SID and RID.\r\n       */_doDisconnect:function _doDisconnect(){this.sid=null;this.rid=Math.floor(Math.random()*4294967295);window.sessionStorage.removeItem("strophe-bosh-session");},/** PrivateFunction: _emptyQueue\r\n       * _Private_ function to check if the Request queue is empty.\r\n       *\r\n       *  Returns:\r\n       *    True, if there are no Requests queued, False otherwise.\r\n       */_emptyQueue:function _emptyQueue(){return this._requests.length===0;},/** PrivateFunction: _hitError\r\n       *  _Private_ function to handle the error count.\r\n       *\r\n       *  Requests are resent automatically until their error count reaches\r\n       *  5.  Each time an error is encountered, this function is called to\r\n       *  increment the count and disconnect if the count is too high.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) reqStatus - The request status.\r\n       */_hitError:function _hitError(reqStatus){this.errors++;Strophe.warn("request errored, status: "+reqStatus+", number of errors: "+this.errors);if(this.errors>4){this._conn._onDisconnectTimeout();}},/** PrivateFunction: _no_auth_received\r\n       *\r\n       * Called on stream start/restart when no stream:features\r\n       * has been received and sends a blank poll request.\r\n       */_no_auth_received:function _no_auth_received(_callback){if(_callback){_callback=_callback.bind(this._conn);}else{_callback=this._conn._connect_cb.bind(this._conn);}var body=this._buildBody();this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this,_callback.bind(this._conn)),body.tree().getAttribute("rid")));this._throttledRequestHandler();},/** PrivateFunction: _onDisconnectTimeout\r\n       *  _Private_ timeout handler for handling non-graceful disconnection.\r\n       *\r\n       *  Cancels all remaining Requests and clears the queue.\r\n       */_onDisconnectTimeout:function _onDisconnectTimeout(){this._abortAllRequests();},/** PrivateFunction: _abortAllRequests\r\n       *  _Private_ helper function that makes sure all pending requests are aborted.\r\n       */_abortAllRequests:function _abortAllRequests(){var req;while(this._requests.length>0){req=this._requests.pop();req.abort=true;req.xhr.abort();// jslint complains, but this is fine. setting to empty func\n// is necessary for IE6\nreq.xhr.onreadystatechange=function(){};// jshint ignore:line\n}},/** PrivateFunction: _onIdle\r\n       *  _Private_ handler called by Strophe.Connection._onIdle\r\n       *\r\n       *  Sends all queued Requests or polls with empty Request if there are none.\r\n       */_onIdle:function _onIdle(){var data=this._conn._data;// if no requests are in progress, poll\nif(this._conn.authenticated&&this._requests.length===0&&data.length===0&&!this._conn.disconnecting){Strophe.info("no requests during idle cycle, sending "+"blank request");data.push(null);}if(this._conn.paused){return;}if(this._requests.length<2&&data.length>0){var body=this._buildBody();for(var i=0;i<data.length;i++){if(data[i]!==null){if(data[i]==="restart"){body.attrs({to:this._conn.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":Strophe.NS.BOSH});}else{body.cnode(data[i]).up();}}}delete this._conn._data;this._conn._data=[];this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),body.tree().getAttribute("rid")));this._throttledRequestHandler();}if(this._requests.length>0){var time_elapsed=this._requests[0].age();if(this._requests[0].dead!==null){if(this._requests[0].timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait)){this._throttledRequestHandler();}}if(time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait)){Strophe.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(Strophe.TIMEOUT*this.wait)+" seconds since last activity");this._throttledRequestHandler();}}},/** PrivateFunction: _onRequestStateChange\r\n       *  _Private_ handler for Strophe.Request state changes.\r\n       *\r\n       *  This function is called when the XMLHttpRequest readyState changes.\r\n       *  It contains a lot of error handling logic for the many ways that\r\n       *  requests can fail, and calls the request callback when requests\r\n       *  succeed.\r\n       *\r\n       *  Parameters:\r\n       *    (Function) func - The handler for the request.\r\n       *    (Strophe.Request) req - The request that is changing readyState.\r\n       */_onRequestStateChange:function _onRequestStateChange(func,req){Strophe.debug("request id "+req.id+"."+req.sends+" state changed to "+req.xhr.readyState);if(req.abort){req.abort=false;return;}// request complete\nvar reqStatus;if(req.xhr.readyState==4){reqStatus=0;try{reqStatus=req.xhr.status;}catch(e){// ignore errors from undefined status attribute.  works\n// around a browser bug\n}if(typeof reqStatus=="undefined"){reqStatus=0;}if(this.disconnecting){if(reqStatus>=400){this._hitError(reqStatus);return;}}var reqIs0=this._requests[0]==req;var reqIs1=this._requests[1]==req;if(reqStatus>0&&reqStatus<500||req.sends>5){// remove from internal queue\nthis._removeRequest(req);Strophe.debug("request id "+req.id+" should now be removed");}// request succeeded\nif(reqStatus==200){// if request 1 finished, or request 0 finished and request\n// 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to\n// restart the other - both will be in the first spot, as the\n// completed request has been removed from the queue already\nif(reqIs1||reqIs0&&this._requests.length>0&&this._requests[0].age()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait)){this._restartRequest(0);}// call handler\nStrophe.debug("request id "+req.id+"."+req.sends+" got 200");func(req);this.errors=0;}else{Strophe.error("request id "+req.id+"."+req.sends+" error "+reqStatus+" happened");if(reqStatus===0||reqStatus>=400&&reqStatus<600||reqStatus>=12000){this._hitError(reqStatus);if(reqStatus>=400&&reqStatus<500){this._conn._changeConnectStatus(Strophe.Status.DISCONNECTING,null);this._conn._doDisconnect();}}}if(!(reqStatus>0&&reqStatus<500||req.sends>5)){this._throttledRequestHandler();}}},/** PrivateFunction: _processRequest\r\n       *  _Private_ function to process a request in the queue.\r\n       *\r\n       *  This function takes requests off the queue and sends them and\r\n       *  restarts dead requests.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) i - The index of the request in the queue.\r\n       */_processRequest:function _processRequest(i){var self=this;var req=this._requests[i];var reqStatus=-1;try{if(req.xhr.readyState==4){reqStatus=req.xhr.status;}}catch(e){Strophe.error("caught an error in _requests["+i+"], reqStatus: "+reqStatus);}if(typeof reqStatus=="undefined"){reqStatus=-1;}// make sure we limit the number of retries\nif(req.sends>this._conn.maxRetries){this._conn._onDisconnectTimeout();return;}var time_elapsed=req.age();var primaryTimeout=!isNaN(time_elapsed)&&time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait);var secondaryTimeout=req.dead!==null&&req.timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait);var requestCompletedWithServerError=req.xhr.readyState==4&&(reqStatus<1||reqStatus>=500);if(primaryTimeout||secondaryTimeout||requestCompletedWithServerError){if(secondaryTimeout){Strophe.error("Request "+this._requests[i].id+" timed out (secondary), restarting");}req.abort=true;req.xhr.abort();// setting to null fails on IE6, so set to empty function\nreq.xhr.onreadystatechange=function(){};this._requests[i]=new Strophe.Request(req.xmlData,req.origFunc,req.rid,req.sends);req=this._requests[i];}if(req.xhr.readyState===0){Strophe.debug("request id "+req.id+"."+req.sends+" posting");try{req.xhr.open("POST",this._conn.service,this._conn.options.sync?false:true);req.xhr.setRequestHeader("Content-Type","text/xml; charset=utf-8");}catch(e2){Strophe.error("XHR open failed.");if(!this._conn.connected){this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,"bad-service");}this._conn.disconnect();return;}// Fires the XHR request -- may be invoked immediately\n// or on a gradually expanding retry window for reconnects\nvar sendFunc=function sendFunc(){req.date=new Date();if(self._conn.options.customHeaders){var headers=self._conn.options.customHeaders;for(var header in headers){if(headers.hasOwnProperty(header)){req.xhr.setRequestHeader(header,headers[header]);}}}req.xhr.send(req.data);};// Implement progressive backoff for reconnects --\n// First retry (send == 1) should also be instantaneous\nif(req.sends>1){// Using a cube of the retry number creates a nicely\n// expanding retry window\nvar backoff=Math.min(Math.floor(Strophe.TIMEOUT*this.wait),Math.pow(req.sends,3))*1000;setTimeout(sendFunc,backoff);}else{sendFunc();}req.sends++;if(this._conn.xmlOutput!==Strophe.Connection.prototype.xmlOutput){if(req.xmlData.nodeName===this.strip&&req.xmlData.childNodes.length){this._conn.xmlOutput(req.xmlData.childNodes[0]);}else{this._conn.xmlOutput(req.xmlData);}}if(this._conn.rawOutput!==Strophe.Connection.prototype.rawOutput){this._conn.rawOutput(req.data);}}else{Strophe.debug("_processRequest: "+(i===0?"first":"second")+" request has readyState of "+req.xhr.readyState);}},/** PrivateFunction: _removeRequest\r\n       *  _Private_ function to remove a request from the queue.\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Request) req - The request to remove.\r\n       */_removeRequest:function _removeRequest(req){Strophe.debug("removing request");var i;for(i=this._requests.length-1;i>=0;i--){if(req==this._requests[i]){this._requests.splice(i,1);}}// IE6 fails on setting to null, so set to empty function\nreq.xhr.onreadystatechange=function(){};this._throttledRequestHandler();},/** PrivateFunction: _restartRequest\r\n       *  _Private_ function to restart a request that is presumed dead.\r\n       *\r\n       *  Parameters:\r\n       *    (Integer) i - The index of the request in the queue.\r\n       */_restartRequest:function _restartRequest(i){var req=this._requests[i];if(req.dead===null){req.dead=new Date();}this._processRequest(i);},/** PrivateFunction: _reqToData\r\n       * _Private_ function to get a stanza out of a request.\r\n       *\r\n       * Tries to extract a stanza out of a Request Object.\r\n       * When this fails the current connection will be disconnected.\r\n       *\r\n       *  Parameters:\r\n       *    (Object) req - The Request.\r\n       *\r\n       *  Returns:\r\n       *    The stanza that was passed.\r\n       */_reqToData:function _reqToData(req){try{return req.getResponse();}catch(e){if(e!="parsererror"){throw e;}this._conn.disconnect("strophe-parsererror");}},/** PrivateFunction: _sendTerminate\r\n       *  _Private_ function to send initial disconnect sequence.\r\n       *\r\n       *  This is the first step in a graceful disconnect.  It sends\r\n       *  the BOSH server a terminate body and includes an unavailable\r\n       *  presence if authentication has completed.\r\n       */_sendTerminate:function _sendTerminate(pres){Strophe.info("_sendTerminate was called");var body=this._buildBody().attrs({type:"terminate"});if(pres){body.cnode(pres.tree());}var req=new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),body.tree().getAttribute("rid"));this._requests.push(req);this._throttledRequestHandler();},/** PrivateFunction: _send\r\n       *  _Private_ part of the Connection.send function for BOSH\r\n       *\r\n       * Just triggers the RequestHandler to send the messages that are in the queue\r\n       */_send:function _send(){clearTimeout(this._conn._idleTimeout);this._throttledRequestHandler();this._conn._idleTimeout=setTimeout(this._conn._onIdle.bind(this._conn),100);},/** PrivateFunction: _sendRestart\r\n       *\r\n       *  Send an xmpp:restart stanza.\r\n       */_sendRestart:function _sendRestart(){this._throttledRequestHandler();clearTimeout(this._conn._idleTimeout);},/** PrivateFunction: _throttledRequestHandler\r\n       *  _Private_ function to throttle requests to the connection window.\r\n       *\r\n       *  This function makes sure we don\'t send requests so fast that the\r\n       *  request ids overflow the connection window in the case that one\r\n       *  request died.\r\n       */_throttledRequestHandler:function _throttledRequestHandler(){if(!this._requests){Strophe.debug("_throttledRequestHandler called with "+"undefined requests");}else{Strophe.debug("_throttledRequestHandler called with "+this._requests.length+" requests");}if(!this._requests||this._requests.length===0){return;}if(this._requests.length>0){this._processRequest(0);}if(this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window){this._processRequest(1);}}};return Strophe;});/*\r\n    This program is distributed under the terms of the MIT license.\r\n    Please see the LICENSE file for details.\r\n\r\n    Copyright 2006-2008, OGG, LLC\r\n*/ /* jshint undef: true, unused: true:, noarg: true, latedef: true */ /* global define, window, clearTimeout, WebSocket, DOMParser, Strophe, $build */(function(root,factory){if(typeof define==="function"&&define.amd){define("strophe-websocket",["strophe-core"],function(core){return factory(core.Strophe,core.$build);});}else{// Browser globals\nreturn factory(Strophe,$build);}})(this,function(Strophe,$build){/** Class: Strophe.WebSocket\r\n     *  _Private_ helper class that handles WebSocket Connections\r\n     *\r\n     *  The Strophe.WebSocket class is used internally by Strophe.Connection\r\n     *  to encapsulate WebSocket sessions. It is not meant to be used from user\'s code.\r\n     */ /** File: websocket.js\r\n     *  A JavaScript library to enable XMPP over Websocket in Strophejs.\r\n     *\r\n     *  This file implements XMPP over WebSockets for Strophejs.\r\n     *  If a Connection is established with a Websocket url (ws://...)\r\n     *  Strophe will use WebSockets.\r\n     *  For more information on XMPP-over-WebSocket see RFC 7395:\r\n     *  http://tools.ietf.org/html/rfc7395\r\n     *\r\n     *  WebSocket support implemented by Andreas Guth (andreas.guth@rwth-aachen.de)\r\n     */ /** PrivateConstructor: Strophe.Websocket\r\n     *  Create and initialize a Strophe.WebSocket object.\r\n     *  Currently only sets the connection Object.\r\n     *\r\n     *  Parameters:\r\n     *    (Strophe.Connection) connection - The Strophe.Connection that will use WebSockets.\r\n     *\r\n     *  Returns:\r\n     *    A new Strophe.WebSocket object.\r\n     */Strophe.Websocket=function(connection){this._conn=connection;this.strip="wrapper";var service=connection.service;if(service.indexOf("ws:")!==0&&service.indexOf("wss:")!==0){// If the service is not an absolute URL, assume it is a path and put the absolute\n// URL together from options, current URL and the path.\nvar new_service="";if(connection.options.protocol==="ws"&&window.location.protocol!=="https:"){new_service+="ws";}else{new_service+="wss";}new_service+="://"+window.location.host;if(service.indexOf("/")!==0){new_service+=window.location.pathname+service;}else{new_service+=service;}connection.service=new_service;}};Strophe.Websocket.prototype={/** PrivateFunction: _buildStream\r\n       *  _Private_ helper function to generate the <stream> start tag for WebSockets\r\n       *\r\n       *  Returns:\r\n       *    A Strophe.Builder with a <stream> element.\r\n       */_buildStream:function _buildStream(){return $build("open",{xmlns:Strophe.NS.FRAMING,to:this._conn.domain,version:"1.0"});},/** PrivateFunction: _check_streamerror\r\n       * _Private_ checks a message for stream:error\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Request) bodyWrap - The received stanza.\r\n       *    connectstatus - The ConnectStatus that will be set on error.\r\n       *  Returns:\r\n       *     true if there was a streamerror, false otherwise.\r\n       */_check_streamerror:function _check_streamerror(bodyWrap,connectstatus){var errors;if(bodyWrap.getElementsByTagNameNS){errors=bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM,"error");}else{errors=bodyWrap.getElementsByTagName("stream:error");}if(errors.length===0){return false;}var error=errors[0];var condition="";var text="";var ns="urn:ietf:params:xml:ns:xmpp-streams";for(var i=0;i<error.childNodes.length;i++){var e=error.childNodes[i];if(e.getAttribute("xmlns")!==ns){break;}if(e.nodeName==="text"){text=e.textContent;}else{condition=e.nodeName;}}var errorString="WebSocket stream error: ";if(condition){errorString+=condition;}else{errorString+="unknown";}if(text){errorString+=" - "+condition;}Strophe.error(errorString);// close the connection on stream_error\nthis._conn._changeConnectStatus(connectstatus,condition);this._conn._doDisconnect();return true;},/** PrivateFunction: _reset\r\n       *  Reset the connection.\r\n       *\r\n       *  This function is called by the reset function of the Strophe Connection.\r\n       *  Is not needed by WebSockets.\r\n       */_reset:function _reset(){return;},/** PrivateFunction: _connect\r\n       *  _Private_ function called by Strophe.Connection.connect\r\n       *\r\n       *  Creates a WebSocket for a connection and assigns Callbacks to it.\r\n       *  Does nothing if there already is a WebSocket.\r\n       */_connect:function _connect(){// Ensure that there is no open WebSocket from a previous Connection.\nthis._closeSocket();// Create the new WobSocket\nthis.socket=new WebSocket(this._conn.service,"xmpp");this.socket.onopen=this._onOpen.bind(this);this.socket.onerror=this._onError.bind(this);this.socket.onclose=this._onClose.bind(this);this.socket.onmessage=this._connect_cb_wrapper.bind(this);},/** PrivateFunction: _connect_cb\r\n       *  _Private_ function called by Strophe.Connection._connect_cb\r\n       *\r\n       * checks for stream:error\r\n       *\r\n       *  Parameters:\r\n       *    (Strophe.Request) bodyWrap - The received stanza.\r\n       */_connect_cb:function _connect_cb(bodyWrap){var error=this._check_streamerror(bodyWrap,Strophe.Status.CONNFAIL);if(error){return Strophe.Status.CONNFAIL;}},/** PrivateFunction: _handleStreamStart\r\n       * _Private_ function that checks the opening <open /> tag for errors.\r\n       *\r\n       * Disconnects if there is an error and returns false, true otherwise.\r\n       *\r\n       *  Parameters:\r\n       *    (Node) message - Stanza containing the <open /> tag.\r\n       */_handleStreamStart:function _handleStreamStart(message){var error=false;// Check for errors in the <open /> tag\nvar ns=message.getAttribute("xmlns");if(typeof ns!=="string"){error="Missing xmlns in <open />";}else if(ns!==Strophe.NS.FRAMING){error="Wrong xmlns in <open />: "+ns;}var ver=message.getAttribute("version");if(typeof ver!=="string"){error="Missing version in <open />";}else if(ver!=="1.0"){error="Wrong version in <open />: "+ver;}if(error){this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,error);this._conn._doDisconnect();return false;}return true;},/** PrivateFunction: _connect_cb_wrapper\r\n       * _Private_ function that handles the first connection messages.\r\n       *\r\n       * On receiving an opening stream tag this callback replaces itself with the real\r\n       * message handler. On receiving a stream error the connection is terminated.\r\n       */_connect_cb_wrapper:function _connect_cb_wrapper(message){if(message.data.indexOf("<open ")===0||message.data.indexOf("<?xml")===0){// Strip the XML Declaration, if there is one\nvar data=message.data.replace(/^(<\\?.*?\\?>\\s*)*/,"");if(data==="")return;var streamStart=new DOMParser().parseFromString(data,"text/xml").documentElement;this._conn.xmlInput(streamStart);this._conn.rawInput(message.data);//_handleStreamSteart will check for XML errors and disconnect on error\nif(this._handleStreamStart(streamStart)){//_connect_cb will check for stream:error and disconnect on error\nthis._connect_cb(streamStart);}}else if(message.data.indexOf("<close ")===0){//\'<close xmlns="urn:ietf:params:xml:ns:xmpp-framing />\') {\nthis._conn.rawInput(message.data);this._conn.xmlInput(message);var see_uri=message.getAttribute("see-other-uri");if(see_uri){this._conn._changeConnectStatus(Strophe.Status.REDIRECT,"Received see-other-uri, resetting connection");this._conn.reset();this._conn.service=see_uri;this._connect();}else{this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,"Received closing stream");this._conn._doDisconnect();}}else{var string=this._streamWrap(message.data);var elem=new DOMParser().parseFromString(string,"text/xml").documentElement;this.socket.onmessage=this._onMessage.bind(this);this._conn._connect_cb(elem,null,message.data);}},/** PrivateFunction: _disconnect\r\n       *  _Private_ function called by Strophe.Connection.disconnect\r\n       *\r\n       *  Disconnects and sends a last stanza if one is given\r\n       *\r\n       *  Parameters:\r\n       *    (Request) pres - This stanza will be sent before disconnecting.\r\n       */_disconnect:function _disconnect(pres){if(this.socket&&this.socket.readyState!==WebSocket.CLOSED){if(pres){this._conn.send(pres);}var close=$build("close",{xmlns:Strophe.NS.FRAMING});this._conn.xmlOutput(close);var closeString=Strophe.serialize(close);this._conn.rawOutput(closeString);try{this.socket.send(closeString);}catch(e){Strophe.info("Couldn\'t send <close /> tag.");}}this._conn._doDisconnect();},/** PrivateFunction: _doDisconnect\r\n       *  _Private_ function to disconnect.\r\n       *\r\n       *  Just closes the Socket for WebSockets\r\n       */_doDisconnect:function _doDisconnect(){Strophe.info("WebSockets _doDisconnect was called");this._closeSocket();},/** PrivateFunction _streamWrap\r\n       *  _Private_ helper function to wrap a stanza in a <stream> tag.\r\n       *  This is used so Strophe can process stanzas from WebSockets like BOSH\r\n       */_streamWrap:function _streamWrap(stanza){return"<wrapper>"+stanza+"</wrapper>";},/** PrivateFunction: _closeSocket\r\n       *  _Private_ function to close the WebSocket.\r\n       *\r\n       *  Closes the socket if it is still open and deletes it\r\n       */_closeSocket:function _closeSocket(){if(this.socket){try{this.socket.close();}catch(e){}}this.socket=null;},/** PrivateFunction: _emptyQueue\r\n       * _Private_ function to check if the message queue is empty.\r\n       *\r\n       *  Returns:\r\n       *    True, because WebSocket messages are send immediately after queueing.\r\n       */_emptyQueue:function _emptyQueue(){return true;},/** PrivateFunction: _onClose\r\n       * _Private_ function to handle websockets closing.\r\n       *\r\n       * Nothing to do here for WebSockets\r\n       */_onClose:function _onClose(){if(this._conn.connected&&!this._conn.disconnecting){Strophe.error("Websocket closed unexcectedly");this._conn._doDisconnect();}else{Strophe.info("Websocket closed");}},/** PrivateFunction: _no_auth_received\r\n       *\r\n       * Called on stream start/restart when no stream:features\r\n       * has been received.\r\n       */_no_auth_received:function _no_auth_received(_callback){Strophe.error("Server did not send any auth methods");this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,"Server did not send any auth methods");if(_callback){_callback=_callback.bind(this._conn);_callback();}this._conn._doDisconnect();},/** PrivateFunction: _onDisconnectTimeout\r\n       *  _Private_ timeout handler for handling non-graceful disconnection.\r\n       *\r\n       *  This does nothing for WebSockets\r\n       */_onDisconnectTimeout:function _onDisconnectTimeout(){},/** PrivateFunction: _abortAllRequests\r\n       *  _Private_ helper function that makes sure all pending requests are aborted.\r\n       */_abortAllRequests:function _abortAllRequests(){},/** PrivateFunction: _onError\r\n       * _Private_ function to handle websockets errors.\r\n       *\r\n       * Parameters:\r\n       * (Object) error - The websocket error.\r\n       */_onError:function _onError(error){Strophe.error("Websocket error "+error);this._conn._changeConnectStatus(Strophe.Status.CONNFAIL,"The WebSocket connection could not be established was disconnected.");this._disconnect();},/** PrivateFunction: _onIdle\r\n       *  _Private_ function called by Strophe.Connection._onIdle\r\n       *\r\n       *  sends all queued stanzas\r\n       */_onIdle:function _onIdle(){var data=this._conn._data;if(data.length>0&&!this._conn.paused){for(var i=0;i<data.length;i++){if(data[i]!==null){var stanza,rawStanza;if(data[i]==="restart"){stanza=this._buildStream().tree();}else{stanza=data[i];}rawStanza=Strophe.serialize(stanza);this._conn.xmlOutput(stanza);this._conn.rawOutput(rawStanza);this.socket.send(rawStanza);}}this._conn._data=[];}},/** PrivateFunction: _onMessage\r\n       * _Private_ function to handle websockets messages.\r\n       *\r\n       * This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser].\r\n       *\r\n       * Since all XMPP traffic starts with "<stream:stream version=\'1.0\' xml:lang=\'en\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\' id=\'3697395463\' from=\'SERVER\'>"\r\n       * The first stanza will always fail to be parsed...\r\n       * Addtionnaly, the seconds stanza will always be a <stream:features> with the stream NS defined in the previous stanza... so we need to \'force\' the inclusion of the NS in this stanza!\r\n       *\r\n       * Parameters:\r\n       * (string) message - The websocket message.\r\n       */_onMessage:function _onMessage(message){var elem,data;// check for closing stream\nvar close=\'<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />\';if(message.data===close){this._conn.rawInput(close);this._conn.xmlInput(message);if(!this._conn.disconnecting){this._conn._doDisconnect();}return;}else if(message.data.search("<open ")===0){// This handles stream restarts\nelem=new DOMParser().parseFromString(message.data,"text/xml").documentElement;if(!this._handleStreamStart(elem)){return;}}else{data=this._streamWrap(message.data);elem=new DOMParser().parseFromString(data,"text/xml").documentElement;}if(this._check_streamerror(elem,Strophe.Status.ERROR)){return;}//handle unavailable presence stanza before disconnecting\nif(this._conn.disconnecting&&elem.firstChild.nodeName==="presence"&&elem.firstChild.getAttribute("type")==="unavailable"){this._conn.xmlInput(elem);this._conn.rawInput(Strophe.serialize(elem));// if we are already disconnecting we will ignore the unavailable stanza and\n// wait for the </stream:stream> tag before we close the connection\nreturn;}this._conn._dataRecv(elem,message.data);},/** PrivateFunction: _onOpen\r\n       * _Private_ function to handle websockets connection setup.\r\n       *\r\n       * The opening stream tag is sent here.\r\n       */_onOpen:function _onOpen(){Strophe.info("Websocket open");var start=this._buildStream();this._conn.xmlOutput(start.tree());var startString=Strophe.serialize(start);this._conn.rawOutput(startString);this.socket.send(startString);},/** PrivateFunction: _reqToData\r\n       * _Private_ function to get a stanza out of a request.\r\n       *\r\n       * WebSockets don\'t use requests, so the passed argument is just returned.\r\n       *\r\n       *  Parameters:\r\n       *    (Object) stanza - The stanza.\r\n       *\r\n       *  Returns:\r\n       *    The stanza that was passed.\r\n       */_reqToData:function _reqToData(stanza){return stanza;},/** PrivateFunction: _send\r\n       *  _Private_ part of the Connection.send function for WebSocket\r\n       *\r\n       * Just flushes the messages that are in the queue\r\n       */_send:function _send(){this._conn.flush();},/** PrivateFunction: _sendRestart\r\n       *\r\n       *  Send an xmpp:restart stanza.\r\n       */_sendRestart:function _sendRestart(){clearTimeout(this._conn._idleTimeout);this._conn._onIdle.bind(this._conn)();}};return Strophe;});/* jshint ignore:start */if(callback){return callback(Strophe,$build,$msg,$iq,$pres);}})(function(Strophe,build,msg,iq,pres){window.Strophe=Strophe;window.$build=build;window.$msg=msg;window.$iq=iq;window.$pres=pres;});/* jshint ignore:end */'},991:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o});var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"undefined"!=typeof window&&(this.image=new Image,this.resolve=null,this.video=document.createElement("video"),this.events())}return function(e,t){t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t)}(e,[{key:"events",value:function(){var e=this;this.video.addEventListener("loadeddata",function(){return e.resolve&&e.resolve(!0)}),this.video.addEventListener("loadeddata",function(){return e.resolve&&e.resolve(!1)}),this.image.onload=function(){return e.resolve&&e.resolve(!0)},this.image.onerror=function(){return e.resolve&&e.resolve(!1)}}},{key:"load",value:function(e){var t=this;return new Promise(function(n){e||n(!0),t.resolve=n,t.loading=!0,t.ended=!1,e.match(/\.(mp4|webm)/i)&&t.video.setAttribute("src",e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&(t.image.src=e,(t.image.width>0||t.image.height>0)&&n(!0))})}},{key:"loadImage",value:function(e){var t=this,n=new Image,r=!1;n.onload=function(){r||t.pumpLoaded()},n.onerror=function(){r||t.pumpLoaded()},n.src=e,!1===r&&(n.width>0||n.height>0)&&(r=!0,this.pumpLoaded())}},{key:"loadVideo",value:function(e){var t=this,n=document.createElement("video");n.addEventListener("loadeddata",function(){t.pumpLoaded()}),n.addEventListener("error",function(){t.pumpLoaded()}),n.setAttribute("src",e)}},{key:"pumpLoaded",value:function(){this.loaded+=1,this.loaded===this.toLoad&&this.resolver(!0)}},{key:"startLoad",value:function(e){e.match(/\.(mp4|webm)/i)&&this.loadVideo(e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&this.loadImage(e)}},{key:"loadMultiple",value:function(e){var t=this;return this.loaded=0,this.toLoad=e.length,new Promise(function(n){t.resolver=n,e.forEach(function(e){t.startLoad(e)})})}}]),e}();function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t&&t[e]||e}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return h});var r=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach(function(t){e.classList.add(t)})},c=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach(function(t){e.classList.remove(t)})},l=function(e){return"string"==typeof e&&e.split(" ")[0]||""},u=function(e){var t=Array.isArray(e)?e:[e];if(1===t.length)return t[0];for(var n=o({},t[0]),r=1;r<t.length;r+=1){for(var a in n)t[r][a]&&(n[a]=[n[a],t[r][a]].join(" "));for(var i in t[r])n[i]||(n[i]=t[r][i])}return n};function d(e){var t,n=e.rootElement,a=e.cssModule,o=e.disabled,i=e.organicArrows,s=e.className,c=e.total,l=e.current,u=e.infinite,d=e.animation,p=e.fillParent,h=[n];return d&&h.push("".concat(n,"--").concat(d)),!0===i&&h.push("".concat(n,"--organic-arrows")),!0===o&&h.push("".concat(n,"--disabled")),p&&h.push("".concat(n,"--fill-parent")),!1===u&&(0===l&&h.push("".concat(n,"--first")),l===c-1&&h.push("".concat(n,"--last"))),a&&a[n]&&(h=Object(r.b)(h,a)),s&&(t=h).push.apply(t,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(s.split(" "))),h.join(" ").trim().replace(/[\s]+/gi," ")}function p(e){var t=[];return(e.constructor===Array?e:[e]).forEach(function(e){var n=o({},e.props);e.props["data-src"]&&(n.source=e.props["data-src"]),e.props["data-slug"]&&(n.slug=e.props["data-slug"]),t.push(n)}),t}function h(e,t){return{boxA:Object(r.c)("".concat(e,"__boxA"),t),boxB:Object(r.c)("".concat(e,"__boxB"),t),box:Object(r.c)("".concat(e,"__box"),t),container:Object(r.c)("".concat(e,"__container"),t),wrapper:Object(r.c)("".concat(e,"__wrapper"),t),bar:Object(r.c)("".concat(e,"__bar"),t),barActive:Object(r.c)("".concat(e,"__bar--active"),t),barEnd:Object(r.c)("".concat(e,"__bar--end"),t),content:Object(r.c)("".concat(e,"__content"),t),contentStatic:Object(r.c)("".concat(e,"__content--static"),t),contentMoveLeft:Object(r.c)("".concat(e,"__content--moveLeft"),t),contentMoveRight:Object(r.c)("".concat(e,"__content--moveRight"),t),controlsHidden:Object(r.c)("".concat(e,"__controls--hidden"),t),controlsActive:Object(r.c)("".concat(e,"__controls--active"),t),animated:Object(r.c)("".concat(e,"--animated"),t),animatedMobile:Object(r.c)("".concat(e,"--animated-mobile"),t),contentExit:Object(r.c)("".concat(e,"__content--exit"),t),exit:Object(r.c)("".concat(e,"--exit"),t),active:Object(r.c)("".concat(e,"--active"),t),moveLeft:Object(r.c)("".concat(e,"--moveLeft"),t),moveRight:Object(r.c)("".concat(e,"--moveRight"),t),startUp:Object(r.c)("".concat(e,"__startUp"),t),bulletsLoading:Object(r.c)("".concat(e,"__bullets--loading"),t)}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerance,a=void 0===r?0:r,o=n.propertyName;return new Promise(function(n){if(e){var r=null,i=t.charAt(0).toUpperCase()+t.slice(1),s=0;void 0!==e.style["Webkit"+i]&&(r="webkit"+i+"End"),void 0!==e.style.OTransition&&(r="o"+t+"End"),void 0!==e.style[t]&&(r=t+"end"),e.clearCssEndEvent&&e.clearCssEndEvent(),e.clearCssEndEvent=function(){e.removeEventListener(r,c)},e.addEventListener(r,c)}else n(!1);function c(t){if((t.srcElement||t.target)===e){if(s>=a){if(o&&o!==t.propertyName)return;e.removeEventListener(r,c),n(t)}s+=1}}})}function a(e){window&&window.requestAnimationFrame(function(){window.requestAnimationFrame(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCssEndEvent=r,t.beforeCssLayout=function(e){window&&window.requestAnimationFrame(e)},t.beforeNextCssLayout=a,t.beforeFutureCssLayout=function(e,t){!function e(t,n){window&&t&&Number.isInteger(t)&&t>0?window.requestAnimationFrame(function(){e(t-1,n)}):n()}(e+1,t)},t.onceNextCssLayout=function(){return new Promise(function(e){a(e)})},t.onceTransitionEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n){r(e,"transition",t).then(n)})},t.onceAnimationEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n){r(e,"animation",t).then(n)})}}])},function(e,t,n){e.exports=n(13)},,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r),o=n(2),i=n.n(o),s=n(4),c=n(0),l=n(1);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,d(t).call(this,e)),m(p(n),"bulletClick",function(e){var t=e.currentTarget;t.classList.add(Object(c.c)("".concat(n.rootElement,"__bullets--loading"),n.props.cssModule));var r=parseInt(t.getAttribute("data-index"),10),a=!(n.props.selected>r);n.props.onClick({index:r,direction:a})}),n.rootElement=e.rootElement,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),function(e,t){t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t)}(t,[{key:"renderBullets",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.selected,o=t.media;return(void 0===o?[]:o).map(function(t,o){var i=o===r?Object(c.c)("".concat(e.rootElement,"__bullets--active"),n):null;return a.a.createElement("button",{key:"bullet-".concat(o),"data-index":o,onClick:e.bulletClick,className:i},o)})}},{key:"render",value:function(){var e=this.props,t=e.cssModule,n=e.rootElement;return a.a.createElement("nav",{className:Object(c.c)("".concat(n,"__bullets"),t)},this.renderBullets())}}]),t}(a.a.Component);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}m(g,"propTypes",{cssModule:i.a.object,rootElement:i.a.string.isRequired,media:i.a.array,onClick:i.a.func,selected:i.a.number}),m(g,"defaultProps",{cssModule:null,selected:0,media:[],onClick:function(){}});var y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,_(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),function(e,t){t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t)}(t,[{key:"componentDidMount",value:function(){this.props.onMount({element:this.controls,next:this.next,prev:this.prev})}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootElement,r=t.cssModule,o=t.organicArrows,i=t.buttonContentLeft,s=t.buttonContentRight,l=t.onNext,u=t.onPrev;return a.a.createElement("div",{ref:function(t){e.controls=t,e.props.onMount({element:e.controls,next:e.next||null,prev:e.prev||null})},className:[Object(c.c)("".concat(n,"__controls"),r),Object(c.c)("".concat(n,"__controls--hidden"),r)].join(" ")},a.a.createElement("button",{ref:function(t){e.next=t},"aria-label":"next",className:Object(c.c)("".concat(n,"__next"),r),onClick:l},o?a.a.createElement("span",{className:Object(c.c)("".concat(n,"__controls__arrow-right"),r)}):s),a.a.createElement("button",{ref:function(t){e.prev=t},"aria-label":"previous",className:Object(c.c)("".concat(n,"__prev"),r),onClick:u},o?a.a.createElement("span",{className:Object(c.c)("".concat(n,"__controls__arrow-left"),r)}):i))}}]),t}(a.a.Component);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}v(y,"propTypes",{cssModule:i.a.object,rootElement:i.a.string.isRequired,onMount:i.a.func.isRequired,onNext:i.a.func.isRequired,onPrev:i.a.func.isRequired,buttonContentLeft:i.a.node,buttonContentRight:i.a.node,organicArrows:i.a.bool}),v(y,"defaultProps",{cssModule:null,organicArrows:!0,buttonContentLeft:null,buttonContentRight:null});var T=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=function(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?w(e):t}(this,(e=S(t)).call.apply(e,[this].concat(a))),x(w(n),"state",{}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(t,e),function(e,t){t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t)}(t,[{key:"render",value:function(){var e=this.props,t=e.media,n=e.className,r=t.source,o=t.children,i=t.style,s=(t.loader,t["data-src"],t["data-alt"],t.className),c=(t.onTransitionEnd,t.onTransitionStartOut,t.onTransitionStartIn,t.onTransitionRequestOut,t.onTransitionRequestIn,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["source","children","style","loader","data-src","data-alt","className","onTransitionEnd","onTransitionStartOut","onTransitionStartIn","onTransitionRequestOut","onTransitionRequestIn"])),l=null;return r&&(l=r.match(/\.(mp4|webm)/)?a.a.createElement("video",{title:t.title||t["data-title"],src:r,type:"video/mp4",controls:!0}):a.a.createElement("img",{alt:t.alt||t.title||t["data-alt"]||null,src:r})),a.a.createElement("div",C({className:n,style:i||null},c),l,o&&a.a.createElement("div",{className:s},t.children))}}]),t}(a.a.Component);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function I(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}x(T,"propTypes",{media:i.a.object.isRequired,className:i.a.string.isRequired});var j="awssld",U=new c.a,F=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?D(e):t}(this,M(t).call(this,e)),P(D(n),"clickNext",function(){var e=null===n.index?0:n.index+1;n.onTransitionRequest("next",e),n.goTo({index:e,direction:!0})}),P(D(n),"clickPrev",function(){var e=n.index-1;n.onTransitionRequest("prev",e),n.goTo({index:e,direction:!1})}),P(D(n),"touchStart",function(e){if(!n.animating&&null!==n.index){var t=e.nativeEvent;n.touchStartPoint=t.touches[0].clientX}}),P(D(n),"touchMove",function(e){if(!n.animating&&n.touchStartPoint){var t=e.nativeEvent,r=t.touches[0].clientX-n.touchStartPoint,a=n[n.active],o=n[n.loader],i=!(r>0),s=Math.abs(r);!1!==n.touchEnabled?s>=10&&(!1===n.loading?n.goTo({index:i?n.index+1:n.index-1,direction:i,touch:!0}):!0===n.direction?(r+=10,Math.abs(r)>a.offsetWidth?r=-a.offsetWidth:r>0&&(r=0),a.style.transform="translate3d(".concat(r,"px, 0, 0)"),o.style.transform="translate3d(calc(100% + ".concat(r,"px), 0, 0)")):(r-=10,Math.abs(r)>a.offsetWidth?r=a.offsetWidth:r<0&&(r=0),a.style.transform="translate3d(".concat(r,"px, 0, 0)"),o.style.transform="translate3d(calc(-100% + ".concat(r,"px), 0, 0)"))):s>20&&(n.touchEnabled=!0,n.touchStartPoint=t.touches[0].clientX)}}),P(D(n),"touchEnd",function(){!n.animating&&n.touchStartPoint&&n.loading&&(n.touchStartPoint=null,n.animating=!0,n.touchEnabled=!1,n.animateMobileEnd(function(){n.index=n.nextIndex,n.setState({index:n.index}),n.onTransitionEnd(),n.animating=!1,n.loading=!1,n.unchargeIndex()}))}),P(D(n),"bulletClick",function(e){var t=e.currentTarget,r=parseInt(t.getAttribute("data-index"),10);n.goTo({index:r,direction:!(n.index>r)},function(){Object(s.onceNextCssLayout)().then(function(){Object(l.a)(t,n.classNames.bulletsLoading)})})}),n.rootElement=e.rootElement||j,n.boxA=null,n.boxB=null,n.loaded=[],n.active="boxA",n.loader="boxB",n.nextIndex=null,n.loading=!1,n.media=null,n.started=!1,n.touchEnabled=!1,n.setupStartup(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(t,e),function(e,t){t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t)}(t,[{key:"componentDidMount",value:function(){var e=this;Object(l.a)(this.boxA,this.classNames.active),this.props.startupScreen&&(this.buttons&&(Object(l.a)(this.buttons.element,this.classNames.controlsHidden),Object(l.a)(this.buttons.element,this.classNames.controlsActive)),!0===this.props.startup&&this.media.length>0&&this.startup()),this.props.onFirstMount&&this.props.onFirstMount(N({},this.getInfo())),this.buttons&&Object(s.onceNextCssLayout)().then(function(){e.buttons&&e.buttons.element&&Object(l.b)(e.buttons.element,e.classNames.controlsHidden)})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.checkChildren(e),this.setupClassNames(Object(l.e)(e.cssModule)),e.name===this.props.name)if(!0!==e.startup||!1!==this.started)if(e.selected===this.props.selected)this.refreshSlider();else{var t=this.getIndex(e.selected),n=!0===e.infinite&&0===t&&this.index===this.media.length-1||!(this.index>t);this.goTo({index:t,direction:n})}else this.startup();else this.resetSlider(e.selected)}},{key:"onTransitionStart",value:function(){var e=this.media[this.index],t=this.media[this.nextIndex],n=N({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:t});this.props.onTransitionStart&&this.props.onTransitionStart(n),e&&e.onTransitionStartOut&&e.onTransitionStartOut(n),t&&t.onTransitionStartIn&&t.onTransitionStartIn(n)}},{key:"onTransitionRequest",value:function(e,t){var n=this.media[this.index],r=this.checkIndex(t),a=this.media[r],o=N({eventName:e},this.getInfo(),{nextSlide:null,nextIndex:r,nextMedia:a});this.props.onTransitionRequest&&this.props.onTransitionRequest(o),n&&n.onTransitionRequestOut&&n.onTransitionRequestOut(o),a&&a.onTransitionRequestIn&&a.onTransitionRequestIn(o)}},{key:"onTransitionEnd",value:function(){var e=this.media[this.index],t=N({},this.getInfo());this.props.onTransitionEnd&&this.props.onTransitionEnd(t),e&&e.onTransitionEnd&&e.onTransitionEnd(t)}},{key:"getRootClassName",value:function(){var e=this.props,t=e.animation,n=e.className,r=e.cssModule,a=e.disabled,o=e.fillParent,i=e.infinite,s=e.organicArrows;return Object(l.d)({animation:t,className:n,cssModule:Object(l.e)(r),current:this.state.index,disabled:a,fillParent:o,infinite:i,organicArrows:s,rootElement:this.rootElement,total:this.media.length})}},{key:"setupStartup",value:function(e){if(this.checkChildren(e),this.setupClassNames(Object(l.e)(e.cssModule)),e.startupScreen){var t=this.getIndex(this.props.selected);this.index=null,this.state={index:this.index,boxA:{className:this.classNames.startUp,children:e.startupScreen},boxB:this.media[t]||null}}else this.started=!0,this.index=this.getIndex(this.props.selected),this.state={index:this.index,boxA:this.media[this.index]||null,boxB:null}}},{key:"getInfo",value:function(){return{slides:this.media.length,currentIndex:this.index,currentSlide:this[this.active],currentMedia:this.media[this.index],element:this.slider}}},{key:"getProgressBar",value:function(){if(!document)return{};var e=document.createElement("div");return e.className=this.classNames.bar,e}},{key:"setupClassNames",value:function(e){this.classNames=Object(l.f)(this.rootElement,e)}},{key:"getIndex",value:function(e){var t=0;return"number"==typeof e?e:("string"==typeof e&&this.media.forEach(function(n,r){n.slug===e&&(t=r)}),t)}},{key:"refreshSlider",value:function(){var e;if(!0!==this.loading&&!1!==this.props.startup&&null!==this.index){var t=this.index;this.setState((P(e={index:t},this.active,this.media[this.getIndex(t)]),P(e,this.loader,null),e))}}},{key:"startup",value:function(){var e=this;this.started=!0,setTimeout(function(){e.goTo({index:e.props.selected,direction:!0,touch:!1})},this.props.startupDelay||75)}},{key:"resetSlider",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.index=n,this.setState((P(e={index:n},this.active,this.media[this.getIndex(n)]),P(e,this.loader,null),e),function(){t.props.onResetSlider&&t.props.onResetSlider(N({},t.getInfo()))})}},{key:"checkChildren",value:function(e){e.children&&(e.children!==this.props.children||this.props.children&&!this.media)?this.media=Object(l.g)(e.children):e.media&&e.media.length?this.media=e.media:this.media||(this.media=[])}},{key:"startBarAnimation",value:function(e){var t=this,n=e.active;return new Promise(function(e){t.bar=t.getProgressBar(),n.appendChild(t.bar),Object(s.onceNextCssLayout)().then(function(){Object(s.onceNextCssLayout)().then(function(){Object(l.a)(t.bar,t.classNames.barActive),e()})})})}},{key:"endBarAnimation",value:function(e){var t=this;this.bar&&Object(s.onceNextCssLayout)().then(function(){Object(s.onceTransitionEnd)(t.bar).then(function(){e()}),Object(l.a)(t.bar,t.classNames.barEnd)})}},{key:"loadContent",value:function(e,t){var n=this;return new Promise(function(r,a){if(n.props.onLoadStart||t&&t.onLoadStart){var o=n.props.onLoadStart||t&&t.onLoadStart;return n.startBarAnimation({active:e}),void o(N({next:function(){n.endBarAnimation(function(){r(n.bar)})},error:a},n.getInfo()))}if(t&&(t.source||t.preload)){var i=t.preload?t.preload:t.source&&[t.source]||[];return!0===n.checkLoadedUrls(i)?void r(null):(n.startBarAnimation({active:e}),void U.loadMultiple(i).then(function(){n.pushLoaded(i),n.endBarAnimation(function(){r(n.bar)})}))}r(null)})}},{key:"pushLoaded",value:function(e){this.loaded=[].concat(I(this.loaded),I(e))}},{key:"checkLoadedUrls",value:function(e){var t=this,n=!0;return e.forEach(function(e){t.loaded.includes(e)||(n=!1)}),n}},{key:"startAnimationMobile",value:function(){var e=this.direction,t=this[this.active],n=this[this.loader],r=e?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,a=e?this.classNames.contentMoveLeft:this.classNames.contentMoveRight;this.props.onTransitionStart&&this.props.onTransitionStart(N({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:this.media[this.nextIndex]}));var o=t.querySelector(".".concat(Object(l.c)(this.classNames.content)));Object(l.a)(o,a),Object(l.a)(o,this.classNames.contentExit);var i=n.querySelector(".".concat(Object(l.c)(this.classNames.content)));Object(l.a)(i,r),Object(l.a)(i,this.classNames.contentStatic),Object(l.a)(t,this.classNames.animated),Object(l.a)(n,this.classNames.animated)}},{key:"animateMobileEnd",value:function(e){var t=this,n=this.direction,r=this[this.active],a=this[this.loader],o=n?this.classNames.moveLeft:this.classNames.moveRight,i=n?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,c=n?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,u=a.querySelector(".".concat(Object(l.c)(this.classNames.content))),d=r.querySelector(".".concat(Object(l.c)(this.classNames.content)));Object(l.b)(u,this.classNames.contentStatic),Object(l.a)(a,this.classNames.animatedMobile),Object(l.a)(r,this.classNames.animatedMobile),Object(s.onceNextCssLayout)().then(function(){a.style.transform="translate3d(0, 0, 0)",r.style.transform="translate3d(".concat(t.direction?"-":"","100%, 0, 0)"),Object(s.onceTransitionEnd)(r).then(function(){t.loading&&(Object(l.b)(r,t.classNames.animated),Object(l.b)(a,t.classNames.animated),Object(l.a)(a,t.classNames.active),Object(l.b)(r,t.classNames.active),Object(l.b)(r,o),Object(l.b)(a,t.classNames.animatedMobile),Object(l.b)(r,t.classNames.animatedMobile),Object(l.b)(d,c),Object(l.b)(d,t.classNames.contentExit),Object(l.b)(u,i),t.buttons&&setTimeout(function(){t.buttons&&Object(l.b)(t.buttons.element,t.classNames.controlsActive)},t.props.controlsReturnDelay),t.activeArrow&&(Object(l.b)(t.activeArrow,t.activeArrowClass),t.activeArrow=null,t.activeArrowClass=null),t.active="boxA"===t.active?"boxB":"boxA",t.loader="boxA"===t.active?"boxB":"boxA",e&&e())})})}},{key:"runAnimation",value:function(e){var t=this,n=e.active,r=e.media,a=e.contentExitMoveClass,o=e.contentEnterMoveClass,i=e.activeContentElement,c=e.loaderContentElement,u=e.loader,d=e.loaderPosition,p=e.exitPosition,h=e.callback,m=e.transitionDelay;this.loadContent(n,r).then(function(e){Object(l.a)(i,a),Object(l.a)(i,t.classNames.contentExit),Object(l.a)(c,o),Object(l.a)(c,t.classNames.contentStatic),setTimeout(function(){Object(s.onceNextCssLayout)().then(function(){Object(l.a)(n,t.classNames.animated),Object(l.a)(u,t.classNames.animated),Object(l.b)(c,t.classNames.contentStatic),Object(l.a)(n,t.classNames.exit),Object(l.a)(u,d),Object(l.a)(n,p),Object(s.onceAnimationEnd)(n).then(function(){Object(l.a)(u,t.classNames.active),Object(l.b)(u,d),Object(l.b)(u,t.classNames.animated),Object(l.b)(n,t.classNames.animated),Object(l.b)(n,t.classNames.active),Object(l.b)(n,p),Object(l.b)(n,t.classNames.exit),Object(l.b)(i,a),Object(l.b)(i,t.classNames.contentExit),Object(l.b)(c,o),e&&n.removeChild(e),t.buttons&&setTimeout(function(){t.buttons&&Object(l.b)(t.buttons.element,t.classNames.controlsActive)},t.props.controlsReturnDelay),t.active="boxA"===t.active?"boxB":"boxA",t.loader="boxA"===t.active?"boxB":"boxA";var r=!t.activeArrow;t.activeArrow&&(Object(s.onceTransitionEnd)(t.activeArrow,{tolerance:null===t.index?0:2}).then(function(){t.releaseTransition()}),Object(l.b)(t.activeArrow,t.activeArrowClass),t.activeArrow=null,t.activeArrowClass=null),h({release:r})})})},m)})}},{key:"releaseTransition",value:function(){this.loading=!1}},{key:"startAnimation",value:function(e,t,n){var r=this.props.transitionDelay,a=this[this.active],o=this[this.loader],i=e?this.classNames.moveRight:this.classNames.moveLeft,s=e?this.classNames.moveLeft:this.classNames.moveRight,c=e?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,u=e?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,d=a.querySelector(".".concat(Object(l.c)(this.classNames.content))),p=o.querySelector(".".concat(Object(l.c)(this.classNames.content)));a.style.removeProperty("transform"),o.style.removeProperty("transform"),this.onTransitionStart();var h={active:a,media:t,contentExitMoveClass:u,contentEnterMoveClass:c,activeContentElement:d,loaderContentElement:p,loader:o,loaderPosition:i,exitPosition:s,callback:n,transitionDelay:r};this.runAnimation(h)}},{key:"goTo",value:function(e){var t=this,n=e.index,r=e.direction,a=e.touch,o=void 0!==a&&a,i=this.getIndex(n);!0!==this.loading&&n!==this.index?(this.loading=!0,this.direction=r,!0!==o?this.activateArrows(r,function(){t.chargeIndex(i,function(e){t.renderedLoader=!0,t.startAnimation(r,e,function(e){var n=e.release,r=void 0===n||n;t.index=t.nextIndex,t.setState({index:t.index},function(){t.onTransitionEnd(),!0===r&&t.releaseTransition()})})})}):this.chargeIndex(i,function(){t.activateArrows(r),t.startAnimationMobile()})):this.props.onTransitionReject&&this.props.onTransitionReject(N({},this.getInfo(),{forceTransition:function(){t.goTo({index:n,direction:r,touch:o})}}))}},{key:"checkIndex",value:function(e){return e>this.media.length-1?0:e<0?this.media.length-1:e}},{key:"chargeIndex",value:function(e,t){this.nextIndex=this.checkIndex(e);var n={},r=this.media[this.nextIndex];n[this.loader]=N({loader:!0},r),this.setState(n,function(){t(r)})}},{key:"unchargeIndex",value:function(){var e={};e[this.loader]=null,this.setState(e,function(){})}},{key:"activateArrows",value:function(e,t){var n=e?"right":"left",r=Object(l.e)(this.props.cssModule),a=Object(l.c)(Object(c.c)("".concat(this.rootElement,"__controls__arrow-").concat(n),r));if(this.buttons){var o=e?this.buttons.next:this.buttons.prev;this.activeArrow=o.querySelector(".".concat(a))}!this.activeArrow||this.buttons&&this.buttons.element&&this.buttons.element.classList.contains(this.classNames.controlsActive)?t&&t():(this.activeArrowClass=Object(c.c)("".concat(this.rootElement,"__controls__arrow-").concat(n,"--active"),r),Object(s.onceTransitionEnd)(this.activeArrow,{tolerance:null===this.index?0:2}).then(function(){t&&t()}),this.buttons&&this.buttons.element&&(Object(l.a)(this.buttons.element,this.classNames.controlsActive),Object(l.a)(this.activeArrow,this.activeArrowClass)))}},{key:"renderBox",value:function(e){var t=this,n={};return this.props.mobileTouch&&(n.onTouchStart=this.touchStart,n.onTouchMove=this.touchMove,n.onTouchEnd=this.touchEnd),a.a.createElement("div",R({ref:function(n){t["box".concat(e)]=n},className:this.classNames.box},n),this.state["box".concat(e)]&&a.a.createElement(T,{media:this.state["box".concat(e)],className:this.classNames.content}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.organicArrows,o=t.bullets,i=t.style,s=t.customContent,c=t.buttons,u=t.buttonContentLeft,d=t.buttonContentRight,p=this.rootElement;return a.a.createElement("div",{ref:function(t){e.slider=t},className:this.getRootClassName(),style:i},a.a.createElement("div",{ref:function(t){e.wrapper=t},className:this.classNames.wrapper},a.a.createElement("div",{ref:function(t){e.container=t},className:this.classNames.container},this.renderBox("A"),this.renderBox("B")),c&&a.a.createElement(y,{rootElement:p,cssModule:Object(l.e)(n),onMount:function(t){e.buttons=t},onNext:this.clickNext,onPrev:this.clickPrev,organicArrows:r,buttonContentLeft:u,buttonContentRight:d}),s),o&&a.a.createElement(g,{cssModule:Object(l.e)(n),rootElement:p,media:this.media,selected:this.state.index,onClick:function(t){e.onTransitionRequest("bullet",t.index),e.goTo(t)}}))}}]),t}(a.a.Component);P(F,"propTypes",{animation:i.a.string,bullets:i.a.bool,buttonContentLeft:i.a.node,buttonContentRight:i.a.node,buttons:i.a.bool,children:i.a.node,className:i.a.string,controlsReturnDelay:i.a.number,cssModule:i.a.any,customContent:i.a.node,onLoadStart:i.a.func,disabled:i.a.bool,fillParent:i.a.bool,infinite:i.a.bool,media:i.a.array,name:i.a.string,onFirstMount:i.a.func,onResetSlider:i.a.func,onStartupRelease:i.a.func,onTransitionEnd:i.a.func,onTransitionRequest:i.a.func,onTransitionStart:i.a.func,organicArrows:i.a.bool,rootElement:i.a.string,selected:i.a.any,startup:i.a.bool,startupDelay:i.a.number,startupScreen:i.a.object,style:i.a.object,transitionDelay:i.a.number,mobileTouch:i.a.bool}),P(F,"defaultProps",{animation:null,bullets:!0,buttonContentLeft:null,buttonContentRight:null,buttons:!0,children:null,className:null,controlsReturnDelay:0,cssModule:null,customContent:null,onLoadStart:null,disabled:!1,fillParent:!1,infinite:!0,media:[],name:"awesome-slider",onFirstMount:null,onResetSlider:null,onStartupRelease:null,onTransitionEnd:null,onTransitionRequest:null,onTransitionStart:null,organicArrows:!0,rootElement:j,selected:0,startup:!0,startupDelay:0,startupScreen:null,style:{},transitionDelay:0,mobileTouch:!0}),t.default=F}])},e.exports=r(n(5697),n(7294))},4448:function(e,t,n){"use strict";var r=n(7294),a=n(7418),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var s=new Set,c={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(c[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[: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]*$/,h=Object.prototype.hasOwnProperty,m={},g={};function f(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new f(e,2,!1,e,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(e){_[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=_.hasOwnProperty(t)?_[t]:null;(null!==a?0===a.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!h.call(g,e)||!h.call(m,e)&&(p.test(e)?g[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(b,v);_[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,v);_[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,v);_[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,S=60106,w=60107,k=60108,x=60114,T=60109,A=60110,R=60112,I=60113,O=60120,N=60115,M=60116,D=60121,L=60128,P=60129,j=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;C=F("react.element"),S=F("react.portal"),w=F("react.fragment"),k=F("react.strict_mode"),x=F("react.profiler"),T=F("react.provider"),A=F("react.context"),R=F("react.forward_ref"),I=F("react.suspense"),O=F("react.suspense_list"),N=F("react.memo"),M=F("react.lazy"),D=F("react.block"),F("react.scope"),L=F("react.opaque.id"),P=F("react.debug_trace_mode"),j=F("react.offscreen"),U=F("react.legacy_hidden")}var B,G="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}function H(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var z=!1;function Y(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return Y(e.type,!1);case 11:return Y(e.type.render,!1);case 22:return Y(e.type._render,!1);case 1:return Y(e.type,!0);default:return""}}function K(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case x:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return K(e.type);case D:return K(e._render);case M:t=e._payload,e=e._init;try{return K(e(t))}catch(e){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function le(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,fe=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ge(e,t)})}:ge);function _e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(be).forEach(function(e){ve.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]})});var Ce=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(Ce[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Te=null,Ae=null;function Re(e){if(e=na(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=aa(t),xe(e.stateNode,e.type,t))}}function Ie(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function Oe(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Ne(e,t){return e(t)}function Me(e,t,n,r,a){return e(t,n,r,a)}function De(){}var Le=Ne,Pe=!1,je=!1;function Ue(){null===Te&&null===Ae||(De(),Oe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=aa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Be=!1;if(d)try{var Ge={};Object.defineProperty(Ge,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ge,Ge),window.removeEventListener("test",Ge,Ge)}catch(ge){Be=!1}function Ve(e,t,n,r,a,o,i,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var He=!1,ze=null,Ye=!1,qe=null,Ke={onError:function(e){He=!0,ze=e}};function We(e,t,n,r,a,o,i,s,c){He=!1,ze=null,Ve.apply(Ke,arguments)}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function $e(e){if(Je(e)!==e)throw Error(i(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return $e(a),e;if(o===r)return $e(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Xe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,ot=[],it=null,st=null,ct=null,lt=new Map,ut=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function gt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,a,o),null!==t&&null!==(t=na(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function ft(e){var t=ta(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void rt(e.lanePriority,function(){o.unstable_runWithPriority(e.priority,function(){nt(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=na(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){_t(e)&&n.delete(t)}function vt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=na(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==it&&_t(it)&&(it=null),null!==st&&_t(st)&&(st=null),null!==ct&&_t(ct)&&(ct=null),lt.forEach(bt),ut.forEach(bt)}function yt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,vt)))}function Et(e){function t(t){return yt(t,e)}if(0<ot.length){yt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&yt(it,e),null!==st&&yt(st,e),null!==ct&&yt(ct,e),lt.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)ft(n),null===n.blockedOn&&dt.shift()}function Ct(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},wt={},kt={};function xt(e){if(wt[e])return wt[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return wt[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=xt("animationend"),At=xt("animationiteration"),Rt=xt("animationstart"),It=xt("transitionend"),Ot=new Map,Nt=new Map,Mt=["abort","abort",Tt,"animationEnd",At,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",It,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Nt.set(r,t),Ot.set(r,a),l(a,[r])}}(0,o.unstable_now)();var Lt=8;function Pt(e){if(1&e)return Lt=15,1;if(2&e)return Lt=14,2;if(4&e)return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):32&e?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):256&e?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):4096&e?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):134217728&e?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):1073741824&e?(Lt=1,1073741824):(Lt=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,a=Lt=15;else if(0!=(o=134217727&n)){var c=o&~i;0!==c?(r=Pt(c),a=Lt):0!=(s&=o)&&(r=Pt(s),a=Lt)}else 0!=(o=n&~i)?(r=Pt(o),a=Lt):0!==s&&(r=Pt(s),a=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&!(t&i)){if(Pt(t),a<=Lt)return t;Lt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&0===(e=Bt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Bt(e){return e&-e}function Gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(zt(e)/Yt|0)|0},zt=Math.log,Yt=Math.LN2,qt=o.unstable_UserBlockingPriority,Kt=o.unstable_runWithPriority,Wt=!0;function Jt(e,t,n,r){Pe||De();var a=$t,o=Pe;Pe=!0;try{Me(a,e,t,n,r)}finally{(Pe=o)||Ue()}}function Zt(e,t,n,r){Kt(qt,$t.bind(null,e,t,n,r))}function $t(e,t,n,r){var a;if(Wt)if((a=!(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Qt(e,t,n,r);if(null===o)a&&mt(e,r);else{if(a){if(-1<pt.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return it=gt(it,e,t,n,r,a),!0;case"dragenter":return st=gt(st,e,t,n,r,a),!0;case"mouseover":return ct=gt(ct,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return lt.set(o,gt(lt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ut.set(o,gt(ut.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;mt(e,r)}Dr(e,t,r,null,n)}}}function Qt(e,t,n,r){var a=ke(r);if(null!==(a=ta(a))){var o=Je(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=Ze(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Dr(e,t,r,a,n),null}var Xt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Xt?Xt.value:Xt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,ln,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),hn=a({},dn,{view:0,detail:0}),mn=sn(hn),gn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(cn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=cn=0,un=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),fn=sn(gn),_n=sn(a({},gn,{dataTransfer:0})),bn=sn(a({},hn,{relatedTarget:0})),vn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=sn(yn),Cn=sn(a({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Tn(){return xn}var An=a({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=sn(An),In=sn(a({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Nn=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=a({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=sn(Mn),Ln=[9,13,27,32],Pn=d&&"CompositionEvent"in window,jn=null;d&&"documentMode"in document&&(jn=document.documentMode);var Un=d&&"TextEvent"in window&&!jn,Fn=d&&(!Pn||jn&&8<jn&&11>=jn),Bn=String.fromCharCode(32),Gn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,Yn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ie(r),0<(t=Pr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Jn=null;function Zn(e){Ar(e,0)}function $n(e){if($(ra(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Xn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Wn&&(Wn.detachEvent("onpropertychange",ar),Jn=Wn=null)}function ar(e){if("value"===e.propertyName&&$n(Jn)){var t=[];if(Kn(t,Jn,e,ke(e)),e=Zn,Pe)e(t);else{Pe=!0;try{Ne(e,t)}finally{Pe=!1,Ue()}}}}function or(e,t,n){"focusin"===e?(rr(),Jn=n,(Wn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&rr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Jn)}function sr(e,t){if("click"===e)return $n(t)}function cr(e,t){if("input"===e||"change"===e)return $n(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var _r=d&&"documentMode"in document&&11>=document.documentMode,br=null,vr=null,yr=null,Er=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==br||br!==Q(r)||(r="selectionStart"in(r=br)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&dr(yr,r)||(yr=r,0<(r=Pr(vr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(Mt,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<Sr.length;wr++)Nt.set(Sr[wr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,c,l){if(We.apply(this,arguments),He){if(!He)throw Error(i(198));var u=ze;He=!1,ze=null,Ye||(Ye=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&a.isPropagationStopped())break e;Tr(a,s,l),o=c}else for(i=0;i<r.length;i++){if(c=(s=r[i]).instance,l=s.currentTarget,s=s.listener,c!==o&&a.isPropagationStopped())break e;Tr(a,s,l),o=c}}}if(Ye)throw e=qe,Ye=!1,qe=null,e}function Rr(e,t){var n=oa(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Ir]||(e[Ir]=!0,s.forEach(function(t){xr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)}))}function Nr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&xr.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=oa(o),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),Mr(o,e,a,t),i.add(s))}function Mr(e,t,n,r){var a=Nt.get(t);switch(void 0===a?2:a){case 0:a=Jt;break;case 1:a=Zt;break;default:a=$t}n=a.bind(null,t,n,e),a=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===a||8===c.nodeType&&c.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ta(s)))return;if(5===(c=i.tag)||6===c){r=o=i;continue e}s=s.parentNode}}r=r.return}!function(e){if(je)return e();je=!0;try{return Le(e,void 0,void 0)}finally{je=!1,Ue()}}(function(){var r=o,a=ke(n),i=[];e:{var s=Ot.get(e);if(void 0!==s){var c=pn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":c=Rn;break;case"focusin":l="focus",c=bn;break;case"focusout":l="blur",c=bn;break;case"beforeblur":case"afterblur":c=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=_n;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=On;break;case Tt:case At:case Rt:c=vn;break;case It:c=Nn;break;case"scroll":c=mn;break;case"wheel":c=Dn;break;case"copy":case"cut":case"paste":c=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=In}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,m=r;null!==m;){var g=(h=m).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==p&&null!=(g=Fe(m,p))&&u.push(Lr(m,g,h))),d)break;m=m.return}0<u.length&&(s=new c(s,l,null,n,a),i.push({event:s,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(l=n.relatedTarget||n.fromElement)||!ta(l)&&!l[Xr])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?ta(l):null)&&(l!==(d=Je(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=fn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=In,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==c?s:ra(c),h=null==l?s:ra(l),(s=new u(g,m+"leave",c,n,a)).target=d,s.relatedTarget=h,g=null,ta(a)===r&&((u=new u(p,m+"enter",l,n,a)).target=h,u.relatedTarget=d,g=u),d=g,c&&l)e:{for(p=l,m=0,h=u=c;h;h=jr(h))m++;for(h=0,g=p;g;g=jr(g))h++;for(;0<m-h;)u=jr(u),m--;for(;0<h-m;)p=jr(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=jr(u),p=jr(p)}u=null}else u=null;null!==c&&Ur(i,s,c,u,!1),null!==l&&null!==d&&Ur(i,d,l,u,!0)}if("select"===(c=(s=r?ra(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var f=Qn;else if(qn(s))if(Xn)f=cr;else{f=ir;var _=or}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(f=sr);switch(f&&(f=f(e,r))?Kn(i,f,n,a):(_&&_(e,s,r),"focusout"===e&&(_=s._wrapperState)&&_.controlled&&"number"===s.type&&ae(s,"number",s.value)),_=r?ra(r):window,e){case"focusin":(qn(_)||"true"===_.contentEditable)&&(br=_,vr=r,yr=null);break;case"focusout":yr=vr=br=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Cr(i,n,a);break;case"selectionchange":if(_r)break;case"keydown":case"keyup":Cr(i,n,a)}var b;if(Pn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zn?Vn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==v?"onCompositionEnd"===v&&zn&&(b=nn()):(en="value"in(Xt=a)?Xt.value:Xt.textContent,zn=!0)),0<(_=Pr(r,v)).length&&(v=new Cn(v,e,null,n,a),i.push({event:v,listeners:_}),(b||null!==(b=Hn(n)))&&(v.data=b))),(b=Un?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Gn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Gn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Pn&&Vn(e,t)?(e=nn(),tn=en=Xt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Pr(r,"onBeforeInput")).length&&(a=new Cn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b)}Ar(i,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Fe(e,n))&&r.unshift(Lr(e,o,a)),null!=(o=Fe(e,t))&&r.push(Lr(e,o,a))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ur(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,a?null!=(c=Fe(n,o))&&i.unshift(Lr(n,c,s)):a||null!=(c=Fe(n,o))&&i.push(Lr(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Fr(){}var Br=null,Gr=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zr="function"==typeof setTimeout?setTimeout:void 0,Yr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Jr=0,Zr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Zr,Qr="__reactProps$"+Zr,Xr="__reactContainer$"+Zr,ea="__reactEvents$"+Zr;function ta(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[$r])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function na(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ra(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function aa(e){return e[Qr]||null}function oa(e){var t=e[ea];return void 0===t&&(t=e[ea]=new Set),t}var ia=[],sa=-1;function ca(e){return{current:e}}function la(e){0>sa||(e.current=ia[sa],ia[sa]=null,sa--)}function ua(e,t){sa++,ia[sa]=e.current,e.current=t}var da={},pa=ca(da),ha=ca(!1),ma=da;function ga(e,t){var n=e.type.contextTypes;if(!n)return da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function fa(e){return null!=e.childContextTypes}function _a(){la(ha),la(pa)}function ba(e,t,n){if(pa.current!==da)throw Error(i(168));ua(pa,t),ua(ha,n)}function va(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,K(t)||"Unknown",o));return a({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,ma=pa.current,ua(pa,e),ua(ha,ha.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=va(e,t,ma),r.__reactInternalMemoizedMergedChildContext=e,la(ha),la(pa),ua(pa,e)):la(ha),ua(ha,n)}var Ca=null,Sa=null,wa=o.unstable_runWithPriority,ka=o.unstable_scheduleCallback,xa=o.unstable_cancelCallback,Ta=o.unstable_shouldYield,Aa=o.unstable_requestPaint,Ra=o.unstable_now,Ia=o.unstable_getCurrentPriorityLevel,Oa=o.unstable_ImmediatePriority,Na=o.unstable_UserBlockingPriority,Ma=o.unstable_NormalPriority,Da=o.unstable_LowPriority,La=o.unstable_IdlePriority,Pa={},ja=void 0!==Aa?Aa:function(){},Ua=null,Fa=null,Ba=!1,Ga=Ra(),Va=1e4>Ga?Ra:function(){return Ra()-Ga};function Ha(){switch(Ia()){case Oa:return 99;case Na:return 98;case Ma:return 97;case Da:return 96;case La:return 95;default:throw Error(i(332))}}function za(e){switch(e){case 99:return Oa;case 98:return Na;case 97:return Ma;case 96:return Da;case 95:return La;default:throw Error(i(332))}}function Ya(e,t){return e=za(e),wa(e,t)}function qa(e,t,n){return e=za(e),ka(e,t,n)}function Ka(){if(null!==Fa){var e=Fa;Fa=null,xa(e)}Wa()}function Wa(){if(!Ba&&null!==Ua){Ba=!0;var e=0;try{var t=Ua;Ya(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ua=null}catch(t){throw null!==Ua&&(Ua=Ua.slice(e+1)),ka(Oa,Ka),t}finally{Ba=!1}}}var Ja=E.ReactCurrentBatchConfig;function Za(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $a=ca(null),Qa=null,Xa=null,eo=null;function to(){eo=Xa=Qa=null}function no(e){var t=$a.current;la($a),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ao(e,t){Qa=e,eo=Xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Pi=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xa){if(null===Qa)throw Error(i(308));Xa=t,Qa.dependencies={lanes:0,firstContext:t,responders:null}}else Xa=Xa.next=t;return e._currentValue}var io=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(null!==c){o.shared.pending=null;var l=c,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=l)}}if(null!==i){for(p=o.baseState,s=0,d=u=l=null;;){c=i.lane;var h=i.eventTime;if((r&c)===c){null!==d&&(d=d.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,g=i;switch(c=t,h=n,g.tag){case 1:if("function"==typeof(m=g.payload)){p=m.call(h,p,c);break e}p=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(c="function"==typeof(m=g.payload)?m.call(h,p,c):m))break e;p=a({},p,c);break e;case 2:io=!0}}null!==i.callback&&(e.flags|=32,null===(c=o.effects)?o.effects=[i]:c.push(i))}else h={eventTime:h,lane:c,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(u=d=h,l=p):d=d.next=h,s|=c;if(null===(i=i.next)){if(null===(c=o.shared.pending))break;i=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}null===d&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Us|=s,e.lanes=s,e.memoizedState=p}}function mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(i(191,a));a.call(r)}}}var go=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var _o={isMounted:function(e){return!!(e=e._reactInternals)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lc(),a=uc(e),o=lo(r,a);o.payload=t,null!=n&&(o.callback=n),uo(e,o),dc(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lc(),a=uc(e),o=lo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),uo(e,o),dc(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lc(),r=uc(e),a=lo(n,r);a.tag=2,null!=t&&(a.callback=t),uo(e,a),dc(e,r,n)}};function bo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&dr(n,r)&&dr(a,o))}function vo(e,t,n){var r=!1,a=da,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(a=fa(t)?ma:pa.current,o=(r=null!=(r=t.contextTypes))?ga(e,a):da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=_o,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_o.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=oo(o):(o=fa(t)?ma:pa.current,a.context=ga(e,o)),ho(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&_o.enqueueReplaceState(a,a.state,null),ho(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var Co=Array.isArray;function So(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===go&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function wo(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ko(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Hc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Kc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=So(e,t,n),r.return=e,r):((r=zc(n.type,n.key,n.props,null,e.mode,r)).ref=So(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Yc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case S:return(t=Wc(t,e.mode,n)).return=e,t}if(Co(t)||V(t))return(t=Yc(t,e.mode,n,null)).return=e,t;wo(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===a?n.type===w?d(e,t,n.props.children,r,a):l(e,t,n,r):null;case S:return n.key===a?u(e,t,n,r):null}if(Co(n)||V(n))return null!==a?null:d(e,t,n,r,null);wo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,r.type===w?d(t,e,r.props.children,a,r.key):l(t,e,r,a);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(Co(r)||V(r))return d(t,e=e.get(n)||null,r,a,null);wo(t,r)}return null}function g(a,i,s,c){for(var l=null,u=null,d=i,g=i=0,f=null;null!==d&&g<s.length;g++){d.index>g?(f=d,d=null):f=d.sibling;var _=h(a,d,s[g],c);if(null===_){null===d&&(d=f);break}e&&d&&null===_.alternate&&t(a,d),i=o(_,i,g),null===u?l=_:u.sibling=_,u=_,d=f}if(g===s.length)return n(a,d),l;if(null===d){for(;g<s.length;g++)null!==(d=p(a,s[g],c))&&(i=o(d,i,g),null===u?l=d:u.sibling=d,u=d);return l}for(d=r(a,d);g<s.length;g++)null!==(f=m(d,a,g,s[g],c))&&(e&&null!==f.alternate&&d.delete(null===f.key?g:f.key),i=o(f,i,g),null===u?l=f:u.sibling=f,u=f);return e&&d.forEach(function(e){return t(a,e)}),l}function f(a,s,c,l){var u=V(c);if("function"!=typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,g=s,f=s=0,_=null,b=c.next();null!==g&&!b.done;f++,b=c.next()){g.index>f?(_=g,g=null):_=g.sibling;var v=h(a,g,b.value,l);if(null===v){null===g&&(g=_);break}e&&g&&null===v.alternate&&t(a,g),s=o(v,s,f),null===d?u=v:d.sibling=v,d=v,g=_}if(b.done)return n(a,g),u;if(null===g){for(;!b.done;f++,b=c.next())null!==(b=p(a,b.value,l))&&(s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return u}for(g=r(a,g);!b.done;f++,b=c.next())null!==(b=m(g,a,f,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?f:b.key),s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l="object"==typeof o&&null!==o&&o.type===w&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case C:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(o.type===w){n(e,l.sibling),(r=a(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=a(l,o.props)).ref=So(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===w?((r=Yc(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=zc(o.type,o.key,o.props,null,e.mode,c)).ref=So(e,r,o),c.return=e,e=c)}return s(e);case S:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wc(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Kc(o,e.mode,c)).return=e,e=r),s(e);if(Co(o))return g(e,r,o,c);if(V(o))return f(e,r,o,c);if(u&&wo(e,o),void 0===o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,K(e.type)||"Component"))}return n(e,r)}}var xo=ko(!0),To=ko(!1),Ao={},Ro=ca(Ao),Io=ca(Ao),Oo=ca(Ao);function No(e){if(e===Ao)throw Error(i(174));return e}function Mo(e,t){switch(ua(Oo,t),ua(Io,e),ua(Ro,Ao),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(Ro),ua(Ro,t)}function Do(){la(Ro),la(Io),la(Oo)}function Lo(e){No(Oo.current);var t=No(Ro.current),n=he(t,e.type);t!==n&&(ua(Io,e),ua(Ro,n))}function Po(e){Io.current===e&&(la(Ro),la(Io))}var jo=ca(0);function Uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fo=null,Bo=null,Go=!1;function Vo(e,t){var n=Gc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function zo(e){if(Go){var t=Bo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Kr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Go=!1,void(Fo=e);Vo(Fo,n)}Fo=e,Bo=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Go=!1,Fo=e}}function Yo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fo=e}function qo(e){if(e!==Fo)return!1;if(!Go)return Yo(e),Go=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Bo;t;)Vo(e,t),t=Kr(t.nextSibling);if(Yo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bo=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=Fo?Kr(e.stateNode.nextSibling):null;return!0}function Ko(){Bo=Fo=null,Go=!1}var Wo=[];function Jo(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var Zo=E.ReactCurrentDispatcher,$o=E.ReactCurrentBatchConfig,Qo=0,Xo=null,ei=null,ti=null,ni=!1,ri=!1;function ai(){throw Error(i(321))}function oi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,a,o){if(Qo=o,Xo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=null===e||null===e.memoizedState?Ni:Mi,e=n(r,a),ri){o=0;do{if(ri=!1,!(25>o))throw Error(i(301));o+=1,ti=ei=null,t.updateQueue=null,Zo.current=Di,e=n(r,a)}while(ri)}if(Zo.current=Oi,t=null!==ei&&null!==ei.next,Qo=0,ti=ei=Xo=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Xo.memoizedState=ti=e:ti=ti.next=e,ti}function ci(){if(null===ei){var e=Xo.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Xo.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Xo.memoizedState=ti=e:ti=ti.next=e}return ti}function li(e,t){return"function"==typeof t?t(e):t}function ui(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((Qo&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=d,o=r):c=c.next=d,Xo.lanes|=u,Us|=u}l=l.next}while(null!==l&&l!==a);null===c?o=r:c.next=s,lr(r,t.memoizedState)||(Pi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);lr(o,t.memoizedState)||(Pi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Qo&e)===e)&&(t._workInProgressVersionPrimary=r,Wo.push(t))),e)return n(t._source);throw Wo.push(t),Error(i(350))}function hi(e,t,n,r){var a=Is;if(null===a)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=Zo.current,l=c.useState(function(){return pi(a,t,n)}),u=l[1],d=l[0];l=ti;var p=e.memoizedState,h=p.refs,m=h.getSnapshot,g=p.source;p=p.subscribe;var f=Xo;return e.memoizedState={refs:h,source:t,subscribe:r},c.useEffect(function(){h.getSnapshot=n,h.setSnapshot=u;var e=o(t._source);if(!lr(s,e)){e=n(t._source),lr(d,e)||(u(e),e=uc(f),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-Ht(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=uc(f);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),lr(m,n)&&lr(g,t)&&lr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:li,lastRenderedState:d}).dispatch=u=Ii.bind(null,Xo,e),l.queue=e,l.baseQueue=null,d=pi(a,t,n),l.memoizedState=l.baseState=d),d}function mi(e,t,n){return hi(ci(),e,t,n)}function gi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:li,lastRenderedState:e}).dispatch=Ii.bind(null,Xo,e),[t.memoizedState,e]}function fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xo.updateQueue)?(t={lastEffect:null},Xo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _i(e){return e={current:e},si().memoizedState=e}function bi(){return ci().memoizedState}function vi(e,t,n,r){var a=si();Xo.flags|=e,a.memoizedState=fi(1|t,n,void 0,void 0===r?null:r)}function yi(e,t,n,r){var a=ci();r=void 0===r?null:r;var o=void 0;if(null!==ei){var i=ei.memoizedState;if(o=i.destroy,null!==r&&oi(r,i.deps))return void fi(t,n,o,r)}Xo.flags|=e,a.memoizedState=fi(1|t,n,o,r)}function Ei(e,t){return vi(516,4,e,t)}function Ci(e,t){return yi(516,4,e,t)}function Si(e,t){return yi(4,2,e,t)}function wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ki(e,t,n){return n=null!=n?n.concat([e]):null,yi(4,2,wi.bind(null,t,e),n)}function xi(){}function Ti(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ai(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ri(e,t){var n=Ha();Ya(98>n?98:n,function(){e(!0)}),Ya(97<n?97:n,function(){var n=$o.transition;$o.transition=1;try{e(!1),t()}finally{$o.transition=n}})}function Ii(e,t,n){var r=lc(),a=uc(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Xo||null!==i&&i===Xo)ri=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=i(s,n);if(o.eagerReducer=i,o.eagerState=c,lr(c,s))return}catch(e){}dc(e,a,r)}}var Oi={readContext:oo,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Ni={readContext:oo,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,vi(4,2,wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ii.bind(null,Xo,e),[r.memoizedState,e]},useRef:_i,useState:gi,useDebugValue:xi,useDeferredValue:function(e){var t=gi(e),n=t[0],r=t[1];return Ei(function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}},[e]),n},useTransition:function(){var e=gi(!1),t=e[0];return _i(e=Ri.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hi(r,e,t,n)},useOpaqueIdentifier:function(){if(Go){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Jr++).toString(36))),Error(i(355))}),n=gi(t)[1];return!(2&Xo.mode)&&(Xo.flags|=516,fi(5,function(){n("r:"+(Jr++).toString(36))},void 0,null)),t}return gi(t="r:"+(Jr++).toString(36)),t},unstable_isNewReconciler:!1},Mi={readContext:oo,useCallback:Ti,useContext:oo,useEffect:Ci,useImperativeHandle:ki,useLayoutEffect:Si,useMemo:Ai,useReducer:ui,useRef:bi,useState:function(){return ui(li)},useDebugValue:xi,useDeferredValue:function(e){var t=ui(li),n=t[0],r=t[1];return Ci(function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}},[e]),n},useTransition:function(){var e=ui(li)[0];return[bi().current,e]},useMutableSource:mi,useOpaqueIdentifier:function(){return ui(li)[0]},unstable_isNewReconciler:!1},Di={readContext:oo,useCallback:Ti,useContext:oo,useEffect:Ci,useImperativeHandle:ki,useLayoutEffect:Si,useMemo:Ai,useReducer:di,useRef:bi,useState:function(){return di(li)},useDebugValue:xi,useDeferredValue:function(e){var t=di(li),n=t[0],r=t[1];return Ci(function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}},[e]),n},useTransition:function(){var e=di(li)[0];return[bi().current,e]},useMutableSource:mi,useOpaqueIdentifier:function(){return di(li)[0]},unstable_isNewReconciler:!1},Li=E.ReactCurrentOwner,Pi=!1;function ji(e,t,n,r){t.child=null===e?To(t,null,n,r):xo(t,e.child,n,r)}function Ui(e,t,n,r,a){n=n.render;var o=t.ref;return ao(t,a),r=ii(e,t,n,r,o,a),null===e||Pi?(t.flags|=1,ji(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,rs(e,t,a))}function Fi(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||Vc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bi(e,t,i,r,a,o))}return i=e.child,a&o||(a=i.memoizedProps,!(n=null!==(n=n.compare)?n:dr)(a,r)||e.ref!==t.ref)?(t.flags|=1,(e=Hc(i,r)).ref=t.ref,e.return=t,t.child=e):rs(e,t,o)}function Bi(e,t,n,r,a,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Pi=!1,!(o&a))return t.lanes=e.lanes,rs(e,t,o);16384&e.flags&&(Pi=!0)}return Hi(e,t,n,r,o)}function Gi(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vc(0,e),null;t.memoizedState={baseLanes:0},vc(0,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},vc(0,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,vc(0,r);return ji(e,t,a,n),t.child}function Vi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,a){var o=fa(n)?ma:pa.current;return o=ga(t,o),ao(t,a),n=ii(e,t,n,r,o,a),null===e||Pi?(t.flags|=1,ji(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,rs(e,t,a))}function zi(e,t,n,r,a){if(fa(n)){var o=!0;ya(t)}else o=!1;if(ao(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vo(t,n,r),Eo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,l=n.contextType;l="object"==typeof l&&null!==l?oo(l):ga(t,l=fa(n)?ma:pa.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||c!==l)&&yo(t,i,r,l),io=!1;var p=t.memoizedState;i.state=p,ho(t,r,i,a),c=t.memoizedState,s!==r||p!==c||ha.current||io?("function"==typeof u&&(fo(t,n,u,r),c=t.memoizedState),(s=io||bo(t,n,s,r,p,c,l))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,co(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Za(t.type,s),i.props=l,d=t.pendingProps,p=i.context,c="object"==typeof(c=n.contextType)&&null!==c?oo(c):ga(t,c=fa(n)?ma:pa.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==c)&&yo(t,i,r,c),io=!1,p=t.memoizedState,i.state=p,ho(t,r,i,a);var m=t.memoizedState;s!==d||p!==m||ha.current||io?("function"==typeof h&&(fo(t,n,h,r),m=t.memoizedState),(l=io||bo(t,n,l,r,p,m,c))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=c,r=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Yi(e,t,n,r,o,a)}function Yi(e,t,n,r,a,o){Vi(e,t);var i=!!(64&t.flags);if(!r&&!i)return a&&Ea(t,n,!1),rs(e,t,o);r=t.stateNode,Li.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):ji(e,t,s,o),t.memoizedState=r.state,a&&Ea(t,n,!0),t.child}function qi(e){var t=e.stateNode;t.pendingContext?ba(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ba(0,t.context,!1),Mo(e,t.containerInfo)}var Ki,Wi,Ji,Zi,$i={dehydrated:null,retryLane:0};function Qi(e,t,n){var r,a=t.pendingProps,o=jo.current,i=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),ua(jo,1&o),null===e?(void 0!==a.fallback&&zo(t),e=a.children,o=a.fallback,i?(e=Xi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$i,e):"number"==typeof a.unstable_expectedLoadTime?(e=Xi(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$i,t.lanes=33554432,e):((n=qc({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=function(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===i?n=Hc(i,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?r=Hc(e,r):(r=Yc(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=$i,a):(n=function(e,t,n,r){var a=e.child;return e=a.sibling,n=Hc(a,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,a.children,n),t.memoizedState=null,n))}function Xi(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},2&a||null===o?o=qc(t,a,0,null):(o.childLanes=0,o.pendingProps=t),n=Yc(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function ts(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function ns(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(ji(e,t,r.children,n),2&(r=jo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ua(jo,r),2&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Uo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ts(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Uo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ts(t,!0,n,null,o,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Us|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Hc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Go)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function os(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return fa(t.type)&&_a(),null;case 3:return Do(),la(ha),la(pa),Jo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Wi(t),null;case 5:Po(t);var o=No(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ji(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=No(Ro.current),qo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[$r]=t,r[Qr]=s,n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Rr(kr[e],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":ee(r,s),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Rr("invalid",r);break;case"textarea":ce(r,s),Rr("invalid",r)}for(var l in Se(n,s),e=null,s)s.hasOwnProperty(l)&&(o=s[l],"children"===l?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):c.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Rr("scroll",r));switch(n){case"input":Z(r),re(r,s,!0);break;case"textarea":Z(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$r]=t,e[Qr]=r,Ki(e,t,!1,!1),t.stateNode=e,l=we(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),o=r;break;case"iframe":case"object":case"embed":Rr("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)Rr(kr[o],e);o=r;break;case"source":Rr("error",e),o=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),o=r;break;case"details":Rr("toggle",e),o=r;break;case"input":ee(e,r),o=X(e,r),Rr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":ce(e,r),o=se(e,r),Rr("invalid",e);break;default:o=r}Se(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Ee(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&fe(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&_e(e,d):"number"==typeof d&&_e(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(c.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Rr("scroll",e):null!=d&&y(e,s,d,l))}switch(n){case"input":Z(e),re(e,r,!1);break;case"textarea":Z(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ie(e,!!r.multiple,s,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Fr)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=No(Oo.current),No(Ro.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return la(jo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&jo.current?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Is||!(134217727&Us)&&!(134217727&Fs)||gc(Is,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Do(),Wi(t),null===e&&Or(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(la(jo),null===(r=t.memoizedState))return null;if(s=!!(64&t.flags),null===(l=r.rendering))if(s)as(r,!1);else{if(0!==Ls||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(l=Uo(e))){for(t.flags|=64,as(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ua(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&Va()>Hs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Uo(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Go)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Va()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Va(),n.sibling=null,t=jo.current,ua(jo,s?1&t|2:1&t),n):null;case 23:case 24:return yc(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function is(e){switch(e.tag){case 1:fa(e.type)&&_a();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Do(),la(ha),la(pa),Jo(),64&(t=e.flags))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Po(e),null;case 13:return la(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return la(jo),null;case 4:return Do(),null;case 10:return no(e),null;case 23:case 24:return yc(),null;default:return null}}function ss(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}Ki=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wi=function(){},Ji=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,No(Ro.current);var i,s=null;switch(n){case"input":o=X(e,o),r=X(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(d in Se(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var l=o[d];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(c.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(l=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==l&&(null!=u||null!=l))if("style"===d)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(c.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Rr("scroll",e),s||l===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Zi=function(e,t,n,r){n!==r&&(t.flags|=4)};var cs="function"==typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Ws=r)},n}function us(e,t,n){(n=lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Js?Js=new Set([this]):Js.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ds="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jc(e,t)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Za(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(i(163))}function ms(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,!!(4&(a=a.tag))&&!!(1&a)&&(Dc(n,e),Mc(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Za(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=ye("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function fs(e,t){if(Sa&&"function"==typeof Sa.onCommitFiberUnmount)try{Sa.onCommitFiberUnmount(Ca,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(4&r)Dc(t,n);else{r=t;try{a()}catch(e){jc(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){jc(t,e)}break;case 5:ps(t);break;case 4:Cs(e,t)}}function _s(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function vs(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(_e(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ys(e,n,t):Es(e,n,t)}function ys(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function Es(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Cs(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var s=e,c=a,l=c;;)if(fs(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,c=a.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(fs(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{!(3&~r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),we(e,a),t=we(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];"style"===s?Ee(n,c):"dangerouslySetInnerHTML"===s?fe(n,c):"children"===s?_e(n,c):y(n,s,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=Va(),gs(t.child,!0)),void ws(t);case 19:return void ws(t);case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(i(163))}function ws(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ds),t.forEach(function(t){var r=Fc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var xs=Math.ceil,Ts=E.ReactCurrentDispatcher,As=E.ReactCurrentOwner,Rs=0,Is=null,Os=null,Ns=0,Ms=0,Ds=ca(0),Ls=0,Ps=null,js=0,Us=0,Fs=0,Bs=0,Gs=null,Vs=0,Hs=1/0;function zs(){Hs=Va()+500}var Ys,qs=null,Ks=!1,Ws=null,Js=null,Zs=!1,$s=null,Qs=90,Xs=[],ec=[],tc=null,nc=0,rc=null,ac=-1,oc=0,ic=0,sc=null,cc=!1;function lc(){return 48&Rs?Va():-1!==ac?ac:ac=Va()}function uc(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Ha()?1:2;if(0===oc&&(oc=js),0!==Ja.transition){0!==ic&&(ic=null!==Gs?Gs.pendingLanes:0),e=oc;var t=4186112&~ic;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ha(),Ft(4&Rs&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),oc)}function dc(e,t,n){if(50<nc)throw nc=0,rc=null,Error(i(185));if(null===(e=pc(e,t)))return null;Vt(e,t,n),e===Is&&(Fs|=t,4===Ls&&gc(e,Ns));var r=Ha();1===t?8&Rs&&!(48&Rs)?fc(e):(hc(e,n),0===Rs&&(zs(),Ka())):(!(4&Rs)||98!==r&&99!==r||(null===tc?tc=new Set([e]):tc.add(e)),hc(e,n)),Gs=e}function pc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-Ht(s),l=1<<c,u=o[c];if(-1===u){if(!(l&r)||l&a){u=t,Pt(l);var d=Lt;o[c]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);s&=~l}if(r=jt(e,e===Is?Ns:0),t=Lt,0===r)null!==n&&(n!==Pa&&xa(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Pa&&xa(n)}15===t?(n=fc.bind(null,e),null===Ua?(Ua=[n],Fa=ka(Oa,Wa)):Ua.push(n),n=Pa):14===t?n=qa(99,fc.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=qa(n,mc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function mc(e){if(ac=-1,ic=oc=0,48&Rs)throw Error(i(327));var t=e.callbackNode;if(Nc()&&e.callbackNode!==t)return null;var n=jt(e,e===Is?Ns:0);if(0===n)return null;var r=n,a=Rs;Rs|=16;var o=Sc();for(Is===e&&Ns===r||(zs(),Ec(e,r));;)try{xc();break}catch(t){Cc(e,t)}if(to(),Ts.current=o,Rs=a,null!==Os?r=0:(Is=null,Ns=0,r=Ls),js&Fs)Ec(e,0);else if(0!==r){if(2===r&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ut(e))&&(r=wc(e,n))),1===r)throw t=Ps,Ec(e,0),gc(e,n),hc(e,Va()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Rc(e);break;case 3:if(gc(e,n),(62914560&n)===n&&10<(r=Vs+500-Va())){if(0!==jt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){lc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=zr(Rc.bind(null,e),r);break}Rc(e);break;case 4:if(gc(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>a&&(a=s),n&=~o}if(n=a,10<(n=(120>(n=Va()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xs(n/1960))-n)){e.timeoutHandle=zr(Rc.bind(null,e),n);break}Rc(e);break;default:throw Error(i(329))}}return hc(e,Va()),e.callbackNode===t?mc.bind(null,e):null}function gc(e,t){for(t&=~Bs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function fc(e){if(48&Rs)throw Error(i(327));if(Nc(),e===Is&&e.expiredLanes&Ns){var t=Ns,n=wc(e,t);js&Fs&&(n=wc(e,t=jt(e,t)))}else n=wc(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ut(e))&&(n=wc(e,t))),1===n)throw n=Ps,Ec(e,0),gc(e,t),hc(e,Va()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rc(e),hc(e,Va()),null}function _c(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(zs(),Ka())}}function bc(e,t){var n=Rs;Rs&=-2,Rs|=8;try{return e(t)}finally{0===(Rs=n)&&(zs(),Ka())}}function vc(e,t){ua(Ds,Ms),Ms|=t,js|=t}function yc(){Ms=Ds.current,la(Ds)}function Ec(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yr(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&_a();break;case 3:Do(),la(ha),la(pa),Jo();break;case 5:Po(r);break;case 4:Do();break;case 13:case 19:la(jo);break;case 10:no(r);break;case 23:case 24:yc()}n=n.return}Is=e,Os=Hc(e.current,null),Ns=Ms=js=t,Ls=0,Ps=null,Bs=Fs=Us=0}function Cc(e,t){for(;;){var n=Os;try{if(to(),Zo.current=Oi,ni){for(var r=Xo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ni=!1}if(Qo=0,ti=ei=Xo=null,ri=!1,As.current=null,null===n||null===n.return){Ls=1,Ps=t,Os=null;break}e:{var o=e,i=n.return,s=n,c=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var l=c;if(!(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=!!(1&jo.current),p=i;do{var h;if(h=13===p.tag){var m=p.memoizedState;if(null!==m)h=null!==m.dehydrated;else{var g=p.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(h){var f=p.updateQueue;if(null===f){var _=new Set;_.add(l),p.updateQueue=_}else f.add(l);if(!(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var b=lo(-1,1);b.tag=2,uo(s,b)}s.lanes|=1;break e}c=void 0,s=t;var v=o.pingCache;if(null===v?(v=o.pingCache=new cs,c=new Set,v.set(l,c)):void 0===(c=v.get(l))&&(c=new Set,v.set(l,c)),!c.has(s)){c.add(s);var y=Uc.bind(null,o,l,s);l.then(y,y)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);c=Error((K(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),c=ss(c,s),p=i;do{switch(p.tag){case 3:o=c,p.flags|=4096,t&=-t,p.lanes|=t,po(p,ls(0,o,t));break e;case 1:o=c;var E=p.type,C=p.stateNode;if(!(64&p.flags||"function"!=typeof E.getDerivedStateFromError&&(null===C||"function"!=typeof C.componentDidCatch||null!==Js&&Js.has(C)))){p.flags|=4096,t&=-t,p.lanes|=t,po(p,us(p,o,t));break e}}p=p.return}while(null!==p)}Ac(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function Sc(){var e=Ts.current;return Ts.current=Oi,null===e?Oi:e}function wc(e,t){var n=Rs;Rs|=16;var r=Sc();for(Is===e&&Ns===t||Ec(e,t);;)try{kc();break}catch(t){Cc(e,t)}if(to(),Rs=n,Ts.current=r,null!==Os)throw Error(i(261));return Is=null,Ns=0,Ls}function kc(){for(;null!==Os;)Tc(Os)}function xc(){for(;null!==Os&&!Ta();)Tc(Os)}function Tc(e){var t=Ys(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Ac(e):Os=t,As.current=null}function Ac(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=is(t)))return n.flags&=2047,void(Os=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=os(n,t,Ms)))return void(Os=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Ls&&(Ls=5)}function Rc(e){var t=Ha();return Ya(99,Ic.bind(null,e,t)),null}function Ic(e,t){do{Nc()}while(null!==$s);if(48&Rs)throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-Ht(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(null!==tc&&!(24&r)&&tc.has(e)&&tc.delete(e),e===Is&&(Os=Is=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Rs,Rs|=32,As.current=null,Br=Wt,fr(s=gr())){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else e:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&0!==u.rangeCount){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch(e){c=null;break e}var d=0,p=-1,h=-1,m=0,g=0,f=s,_=null;t:for(;;){for(var b;f!==c||0!==o&&3!==f.nodeType||(p=d+o),f!==l||0!==u&&3!==f.nodeType||(h=d+u),3===f.nodeType&&(d+=f.nodeValue.length),null!==(b=f.firstChild);)_=f,f=b;for(;;){if(f===s)break t;if(_===c&&++m===o&&(p=d),_===l&&++g===u&&(h=d),null!==(b=f.nextSibling))break;_=(f=_).parentNode}f=b}c=-1===p||-1===h?null:{start:p,end:h}}else c=null;c=c||{start:0,end:0}}else c=null;Gr={focusedElem:s,selectionRange:c},Wt=!1,sc=null,cc=!1,qs=r;do{try{Oc()}catch(e){if(null===qs)throw Error(i(330));jc(qs,e),qs=qs.nextEffect}}while(null!==qs);sc=null,qs=r;do{try{for(s=e;null!==qs;){var v=qs.flags;if(16&v&&_e(qs.stateNode,""),128&v){var y=qs.alternate;if(null!==y){var E=y.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&v){case 2:vs(qs),qs.flags&=-3;break;case 6:vs(qs),qs.flags&=-3,Ss(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ss(qs.alternate,qs);break;case 4:Ss(qs.alternate,qs);break;case 8:Cs(s,c=qs);var C=c.alternate;_s(c),null!==C&&_s(C)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(i(330));jc(qs,e),qs=qs.nextEffect}}while(null!==qs);if(E=Gr,y=gr(),v=E.focusedElem,s=E.selectionRange,y!==v&&v&&v.ownerDocument&&mr(v.ownerDocument.documentElement,v)){null!==s&&fr(v)&&(y=s.start,void 0===(E=s.end)&&(E=y),"selectionStart"in v?(v.selectionStart=y,v.selectionEnd=Math.min(E,v.value.length)):(E=(y=v.ownerDocument||document)&&y.defaultView||window).getSelection&&(E=E.getSelection(),c=v.textContent.length,C=Math.min(s.start,c),s=void 0===s.end?C:Math.min(s.end,c),!E.extend&&C>s&&(c=s,s=C,C=c),c=hr(v,C),o=hr(v,s),c&&o&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((y=y.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),C>s?(E.addRange(y),E.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),E.addRange(y))))),y=[];for(E=v;E=E.parentNode;)1===E.nodeType&&y.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof v.focus&&v.focus(),v=0;v<y.length;v++)(E=y[v]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Wt=!!Br,Gr=Br=null,e.current=n,qs=r;do{try{for(v=e;null!==qs;){var S=qs.flags;if(36&S&&ms(v,qs.alternate,qs),128&S){y=void 0;var w=qs.ref;if(null!==w){var k=qs.stateNode;qs.tag,y=k,"function"==typeof w?w(y):w.current=y}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(i(330));jc(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,ja(),Rs=a}else e.current=n;if(Zs)Zs=!1,$s=e,Qs=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===rc?nc++:(nc=0,rc=e):nc=0,n=n.stateNode,Sa&&"function"==typeof Sa.onCommitFiberRoot)try{Sa.onCommitFiberRoot(Ca,n,void 0,!(64&~n.current.flags))}catch(e){}if(hc(e,Va()),Ks)throw Ks=!1,e=Ws,Ws=null,e;return!!(8&Rs)||Ka(),null}function Oc(){for(;null!==qs;){var e=qs.alternate;cc||null===sc||(8&qs.flags?Xe(qs,sc)&&(cc=!0):13===qs.tag&&ks(e,qs)&&Xe(qs,sc)&&(cc=!0));var t=qs.flags;!!(256&t)&&hs(e,qs),!(512&t)||Zs||(Zs=!0,qa(97,function(){return Nc(),null})),qs=qs.nextEffect}}function Nc(){if(90!==Qs){var e=97<Qs?97:Qs;return Qs=90,Ya(e,Lc)}return!1}function Mc(e,t){Xs.push(t,e),Zs||(Zs=!0,qa(97,function(){return Nc(),null}))}function Dc(e,t){ec.push(t,e),Zs||(Zs=!0,qa(97,function(){return Nc(),null}))}function Lc(){if(null===$s)return!1;var e=$s;if($s=null,48&Rs)throw Error(i(331));var t=Rs;Rs|=32;var n=ec;ec=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(i(330));jc(o,e)}}for(n=Xs,Xs=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(null===o)throw Error(i(330));jc(o,e)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return Rs=t,Ka(),!0}function Pc(e,t,n){uo(e,t=ls(0,t=ss(n,t),1)),t=lc(),null!==(e=pc(e,1))&&(Vt(e,1,t),hc(e,t))}function jc(e,t){if(3===e.tag)Pc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Pc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var a=us(n,e=ss(t,e),1);if(uo(n,a),a=lc(),null!==(n=pc(n,1)))Vt(n,1,a),hc(n,a);else if("function"==typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Uc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lc(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ns&n)===n&&(4===Ls||3===Ls&&(62914560&Ns)===Ns&&500>Va()-Vs?Ec(e,0):Bs|=n),hc(e,t)}function Fc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===oc&&(oc=js),0===(t=Bt(62914560&~oc))&&(t=4194304)):t=99===Ha()?1:2:t=1),n=lc(),null!==(e=pc(e,t))&&(Vt(e,t,n),hc(e,n))}function Bc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gc(e,t,n,r){return new Bc(e,t,n,r)}function Vc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hc(e,t){var n=e.alternate;return null===n?((n=Gc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,r,a,o){var s=2;if(r=e,"function"==typeof e)Vc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case w:return Yc(n.children,a,o,t);case P:s=8,a|=16;break;case k:s=8,a|=1;break;case x:return(e=Gc(12,n,t,8|a)).elementType=x,e.type=x,e.lanes=o,e;case I:return(e=Gc(13,n,t,a)).type=I,e.elementType=I,e.lanes=o,e;case O:return(e=Gc(19,n,t,a)).elementType=O,e.lanes=o,e;case j:return qc(n,a,o,t);case U:return(e=Gc(24,n,t,a)).elementType=U,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case R:s=11;break e;case N:s=14;break e;case M:s=16,r=null;break e;case D:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Gc(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Yc(e,t,n,r){return(e=Gc(7,e,r,t)).lanes=n,e}function qc(e,t,n,r){return(e=Gc(23,e,r,t)).elementType=j,e.lanes=n,e}function Kc(e,t,n){return(e=Gc(6,e,null,t)).lanes=n,e}function Wc(e,t,n){return(t=Gc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jc(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gt(0),this.expirationTimes=Gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.mutableSourceEagerHydrationData=null}function Zc(e,t,n,r){var a=t.current,o=lc(),s=uc(a);e:if(n){t:{if(Je(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(fa(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(i(171))}if(1===n.tag){var l=n.type;if(fa(l)){n=va(n,l,c);break e}}n=c}else n=da;return null===t.context?t.context=n:t.pendingContext=n,(t=lo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(a,t),dc(a,s,o),s}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xc(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}function el(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jc(e,t,null!=n&&!0===n.hydrate),t=Gc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Xr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function tl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nl(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=$c(i);s.call(e)}}Zc(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new el(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var c=a;a=function(){var e=$c(i);c.call(e)}}bc(function(){Zc(t,i,e,a)})}return $c(i)}function rl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tl(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ha.current)Pi=!0;else{if(!(n&r)){switch(Pi=!1,t.tag){case 3:qi(t),Ko();break;case 5:Lo(t);break;case 1:fa(t.type)&&ya(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;ua($a,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Qi(e,t,n):(ua(jo,1&jo.current),null!==(t=rs(e,t,n))?t.sibling:null);ua(jo,1&jo.current);break;case 19:if(r=!!(n&t.childLanes),64&e.flags){if(r)return ns(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ua(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,Gi(e,t,n)}return rs(e,t,n)}Pi=!!(16384&e.flags)}else Pi=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ga(t,pa.current),ao(t,n),a=ii(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fa(r)){var o=!0;ya(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&fo(t,r,s,e),a.updater=_o,t.stateNode=a,a._reactInternals=t,Eo(t,r,e,n),t=Yi(null,t,r,!0,o,n)}else t.tag=0,ji(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Vc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===N)return 14}return 2}(a),e=Za(a,e),o){case 0:t=Hi(null,t,a,e,n);break e;case 1:t=zi(null,t,a,e,n);break e;case 11:t=Ui(null,t,a,e,n);break e;case 14:t=Fi(null,t,a,Za(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:Za(r,a),n);case 1:return r=t.type,a=t.pendingProps,zi(e,t,r,a=t.elementType===r?a:Za(r,a),n);case 3:if(qi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,co(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===a)Ko(),t=rs(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&(Bo=Kr(t.stateNode.containerInfo.firstChild),Fo=t,o=Go=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Wo.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ji(e,t,r,n),Ko();t=t.child}return t;case 5:return Lo(t),null===e&&zo(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,Hr(r,a)?s=null:null!==o&&Hr(r,o)&&(t.flags|=16),Vi(e,t),ji(e,t,s,n),t.child;case 6:return null===e&&zo(t),null;case 13:return Qi(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):ji(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ui(e,t,r,a=t.elementType===r?a:Za(r,a),n);case 7:return ji(e,t,t.pendingProps,n),t.child;case 8:case 12:return ji(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(ua($a,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0==(o=lr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===a.children&&!ha.current){t=rs(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&u.observedBits&o){1===c.tag&&((u=lo(-1,n&-n)).tag=2,uo(c,u)),c.lanes|=n,null!==(u=c.alternate)&&(u.lanes|=n),ro(c.return,n),l.lanes|=n;break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}ji(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(a=oo(a,o.unstable_observedBits)),t.flags|=1,ji(e,t,r,n),t.child;case 14:return o=Za(a=t.type,t.pendingProps),Fi(e,t,a,o=Za(a.type,o),r,n);case 15:return Bi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Za(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,fa(r)?(e=!0,ya(t)):e=!1,ao(t,n),vo(t,r,a),Eo(t,r,a,n),Yi(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Gi(e,t,n)}throw Error(i(156,t.tag))},el.prototype.render=function(e){Zc(e,this._internalRoot,null,null)},el.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zc(null,e,null,function(){t[Xr]=null})},et=function(e){13===e.tag&&(dc(e,4,lc()),Xc(e,4))},tt=function(e){13===e.tag&&(dc(e,67108864,lc()),Xc(e,67108864))},nt=function(e){if(13===e.tag){var t=lc(),n=uc(e);dc(e,n,t),Xc(e,n)}},rt=function(e,t){return t()},xe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=aa(r);if(!a)throw Error(i(90));$(r),ne(r,a)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Ne=_c,Me=function(e,t,n,r,a){var o=Rs;Rs|=4;try{return Ya(98,e.bind(null,t,n,r,a))}finally{0===(Rs=o)&&(zs(),Ka())}},De=function(){!(49&Rs)&&(function(){if(null!==tc){var e=tc;tc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,hc(e,Va())})}Ka()}(),Nc())},Le=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{0===(Rs=n)&&(zs(),Ka())}};var al={Events:[na,ra,aa,Ie,Oe,Nc,{current:!1}]},ol={findFiberByHostInstance:ta,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},il={bundleType:ol.bundleType,version:ol.version,rendererPackageName:ol.rendererPackageName,rendererConfig:ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:ol.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{Ca=sl.inject(il),Sa=sl}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=al,t.createPortal=rl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Rs;if(48&n)return e(t);Rs|=1;try{if(e)return Ya(99,e.bind(null,t))}finally{Rs=n,Ka()}},t.hydrate=function(e,t,n){if(!tl(t))throw Error(i(200));return nl(null,e,t,!0,n)},t.render=function(e,t,n){if(!tl(t))throw Error(i(200));return nl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tl(e))throw Error(i(40));return!!e._reactRootContainer&&(bc(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[Xr]=null})}),!0)},t.unstable_batchedUpdates=_c,t.unstable_createPortal=function(e,t){return rl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tl(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return nl(e,t,n,!1,r)},t.version="17.0.2"},3935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(4448)},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case f:case g:case c:return e;default:return t}}case a:return t}}}function C(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=f,t.Memo=g,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||E(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===f},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===y||e.$$typeof===_)},t.typeOf=E},9864:function(e,t,n){"use strict";e.exports=n(9921)},2408:function(e,t,n){"use strict";var r=n(7418),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,c=60112;t.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),c=d("react.forward_ref"),t.Suspense=d("react.suspense"),l=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function f(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function _(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}f.prototype.isReactComponent={},f.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=f.prototype;var v=b.prototype=new _;v.constructor=b,r(v,f.prototype),v.isPureReactComponent=!0;var y={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&!C.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:y.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var k=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case a:case o:c=!0}}if(c)return i=i(c=e),e=""===r?"."+x(c,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),T(i,t,n,"",function(e){return e})):null!=i&&(w(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(k,"$&/")+"/")+e)),t.push(i)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=r+x(s=e[l],l);c+=T(s,t,n,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=T(s=s.value,t,n,u=r+x(s,l++),i);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function A(e,t,n){if(null==e)return e;var r=[],a=0;return T(e,r,"","",function(e){return t.call(n,e,a++)}),r}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var I={current:null};function O(){var e=I.current;if(null===e)throw Error(h(321));return e}var N={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error(h(143));return e}},t.Component=f,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),i=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=y.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)E.call(t,u)&&!C.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];o.children=l}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=w,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},7294:function(e,t,n){"use strict";e.exports=n(2408)},53:function(e,t){"use strict";var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,d=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;"undefined"!=typeof console&&(window.cancelAnimationFrame,window.requestAnimationFrame);var m=!1,g=null,f=-1,_=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(_=0<e?Math.floor(1e3/e):5)};var v=new MessageChannel,y=v.port2;v.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+_;try{g(!0,e)?y.postMessage(null):(m=!1,g=null)}catch(e){throw y.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,y.postMessage(null))},r=function(e,n){f=p(function(){e(t.unstable_now())},n)},a=function(){h(f),f=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<w(a,t)))break e;e[r]=t,e[n]=a,n=r}}function C(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(void 0!==i&&0>w(i,n))void 0!==c&&0>w(c,i)?(e[r]=c,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==c&&0>w(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],x=[],T=1,A=null,R=3,I=!1,O=!1,N=!1;function M(e){for(var t=C(x);null!==t;){if(null===t.callback)S(x);else{if(!(t.startTime<=e))break;S(x),t.sortIndex=t.expirationTime,E(k,t)}t=C(x)}}function D(e){if(N=!1,M(e),!O)if(null!==C(k))O=!0,n(L);else{var t=C(x);null!==t&&r(D,t.startTime-e)}}function L(e,n){O=!1,N&&(N=!1,a()),I=!0;var o=R;try{for(M(n),A=C(k);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,R=A.priorityLevel;var s=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===C(k)&&S(k),M(n)}else S(k);A=C(k)}if(null!==A)var c=!0;else{var l=C(x);null!==l&&r(D,l.startTime-n),c=!1}return c}finally{A=null,R=o,I=!1}}var P=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||I||(O=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(k)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>s?(e.sortIndex=i,E(x,e),null===C(k)&&e===C(x)&&(N?a():N=!0,r(D,i-s))):(e.sortIndex=c,E(k,e),O||I||(O=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},9685:function(e){e.exports=function(e){function t(e){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",e)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(e):"undefined"!=typeof eval?eval.call(null,e):t("EvalError: No eval function available")}catch(e){t(e)}}},7260:function(e,t,n){n(9685)(n(4598))},6847:function(e,t,n){n(9685)(n(8275))},1515:function(e,t,n){n(9685)(n(9278))},6206:function(e,t,n){n(9685)(n(4637))},4099:function(e,t,n){var r=n(3379),a=n(3762);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},485:function(e,t,n){var r=n(3379),a=n(2058);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3494:function(e,t,n){var r=n(3379),a=n(2569);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},5335:function(e,t,n){var r=n(3379),a=n(3349);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},6923:function(e,t,n){var r=n(3379),a=n(5252);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},7275:function(e,t,n){var r=n(3379),a=n(2386);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},4363:function(e,t,n){var r=n(3379),a=n(8855);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3147:function(e,t,n){var r=n(3379),a=n(4255);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3307:function(e,t,n){var r=n(3379),a=n(7690);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},2931:function(e,t,n){var r=n(3379),a=n(5088);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3514:function(e,t,n){var r=n(3379),a=n(825);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,t,n){"use strict";var r,a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function i(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],a=0;a<e.length;a++){var s=e[a],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=i(u),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(p)):o.push({identifier:u,updater:g(p,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach(function(e){t.setAttribute(e,r[e])}),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,a=n.media,o=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,a;if(t.singleton){var o=m++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),a=d.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=i(n[r]);o[a].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=i(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}},5877:function(e,t,n){var r=n(3570),a=n(1171),o=a;o.v1=r,o.v4=a,e.exports=o},5327:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,a=t;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}},5217:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)!(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3570:function(e,t,n){var r,a,o=n(5217),i=n(5327),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==p){var h=o();null==d&&(d=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=a=16383&(h[6]<<8|h[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,f=m-s+(g-c)/1e4;if(f<0&&void 0===e.clockseq&&(p=p+1&16383),(f<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,c=g,a=p;var _=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;u[l++]=_>>>24&255,u[l++]=_>>>16&255,u[l++]=_>>>8&255,u[l++]=255&_;var b=m/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=p>>>8|128,u[l++]=255&p;for(var v=0;v<6;++v)u[l+v]=d[v];return t||i(u)}},1171:function(e,t,n){var r=n(5217),a=n(5327);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[o+s]=i[s];return t||a(i)}},7618:function(e){"use strict";function t(e,t){if(!r)return!1;const a=e.buffer;let o=d.get(a);if(null==o){if((o=n.validate(a))&&t)try{new n.Instance(new n.Module(a)).exports[0]()}catch(e){o=!1}d.set(a,o)}return o}const n=this.WebAssembly||globalThis.WebAssembly,r="object"==typeof n,a=e=>void 0!==e,o=(...e)=>Uint8Array.of(0,97,115,109,1,0,0,0,...e),i=(...e)=>Uint32Array.of(1836278016,1,...e),s=(...e)=>i(1610679297,33751040,...e,40239360,259),c=(...e)=>o(1,4,1,96,0,0,3,2,1,0,...e,11,0,10,4,110,97,109,101,2,3,1,0,0),l=(...e)=>Uint16Array.of(24832,28019,1,0,1025,24577,0,515,1,...e),u=(...e)=>l(...e,2842,4096,28164,28001,357,260,256,560,259,0),d=new WeakMap,p=i(1610679553,58589440,117440770,805372165,101318656,1107297281,268438272,1835101700,17039717,36700416,259),h=o(5,3,1,4,1,0,8,4,110,97,109,101,2,1,0),m=l(773,1,2561,269,11,65,65,65,3068,2816,2560,28164,28001,613,259,0),g=i(1610679297,33751040,134873089,100664833,185276736),f=o(2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1,0,8,4,110,97,109,101,2,1,0),_=Uint16Array.of(24832,28019,1,0,1537,24577,512,32639,515,1,2058,1537,16640,16640,2816,2560,28164,28001,613,259,0),b=u(3082,2561,17152,0,0,252),v=u(2058,1537,16640,49152),y=s(101318657,301990913,268438272,1835101700,17039717),E=c(5,4,1,3,1,1,10,7,1,5,0,254,3,0),C=s(84344833,6357249,17369600,4259847,186257917,1845758464),S=c(10,7,1,5,0,208,112,26);e.exports={support:(e=1)=>r&&t(Uint32Array.of(1836278016,e)),get supportStreaming(){return r&&a(n.instantiateStreaming)},feature:{get bigInt(){return t(p,!0)},get bulk(){return t(m)},get exceptions(){return t(g)},get memory64(){return t(h)},get mutableGlobal(){return t(f)},get multiValue(){return t(_)},get saturateConversions(){return t(b)},get signExtensions(){return t(v)},get tailCall(){return t(y)},get threads(){return t(E)},get simd(){return t(C)},get references(){return t(S)},get typeReflection(){return r&&a(n.Memory.type)},get funcReferences(){return r&&a(n.Function)}}}},8416:function(e,t,n){var r=n(4062);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5263:function(e,t,n){var r=n(8698).default;function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},215:function(e,t,n){var r=n(7071);e.exports=function(e,t){if(null==e)return{};var n,a,o=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,a=n(5036);e.exports=function(e){var t=a(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,r.Z)(a.key),a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9142);function a(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},1721:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return a}})},5987:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5245);function a(e,t){if(null==e)return{};var n,a,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},5245:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(181);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907),a=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1002);function a(e){var t=function(e){if("object"!==(0,r.Z)(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==(0,r.Z)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);function a(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},4147:function(e){"use strict";e.exports={i8:"4.2.5"}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="",n.nc=void 0;var r={};return function(){"use strict";n.r(r),n.d(r,{default:function(){return wg},getAppRef:function(){return Sg},startSession:function(){return Cg}});var e=n(7294),t=n(3935),a=n(6010),o=n(7462),i=n(5987),s=n(9437),c=n(5245),l=n(1721),u=e.createContext(null),d="unmounted",p="exited",h="entering",m="entered",g="exiting",f=function(n){function r(e,t){var r;r=n.call(this,e,t)||this;var a,o=t&&!t.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(a=p,r.appearStatus=h):a=m:a=e.unmountOnExit||e.mountOnEnter?d:p,r.state={status:a},r.nextCallback=null,r}(0,l.Z)(r,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var a=r.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n)if(this.cancelNextCallback(),n===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},a.performEnter=function(e){var n=this,r=this.props.enter,a=this.context?this.context.isMounting:e,o=this.props.nodeRef?[a]:[t.findDOMNode(this),a],i=o[0],s=o[1],c=this.getTimeouts(),l=a?c.appear:c.enter;e||r?(this.props.onEnter(i,s),this.safeSetState({status:h},function(){n.props.onEntering(i,s),n.onTransitionEnd(l,function(){n.safeSetState({status:m},function(){n.props.onEntered(i,s)})})})):this.safeSetState({status:m},function(){n.props.onEntered(i)})},a.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),a=this.props.nodeRef?void 0:t.findDOMNode(this);n?(this.props.onExit(a),this.safeSetState({status:g},function(){e.props.onExiting(a),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(a)})})})):this.safeSetState({status:p},function(){e.props.onExited(a)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(r&&!a){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===d)return null;var n=this.props,r=n.children,a=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,c.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(u.Provider,{value:null},"function"==typeof r?r(t,a):e.cloneElement(e.Children.only(r),a))},r}(e.Component);function _(){}f.contextType=u,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},f.UNMOUNTED=d,f.EXITED=p,f.ENTERING=h,f.ENTERED=m,f.EXITING=g;var b=f,v=n(3834),y=n(159),E=n(9700);function C(){return(0,y.Z)()||E.Z}var S=n(3366),w=function(e){return e.scrollTop};function k(e,t){var n=e.timeout,r=e.style,a=void 0===r?{}:r;return{duration:a.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:a.transitionDelay}}function x(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var a=window.getComputedStyle(t);n=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var o=0,i=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),i=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(i-r.top,"px)"):"translateY(-".concat(r.top+r.height-i,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var T={enter:S.x9.enteringScreen,exit:S.x9.leavingScreen},A=e.forwardRef(function(n,r){var a=n.children,c=n.direction,l=void 0===c?"down":c,u=n.in,d=n.onEnter,p=n.onEntered,h=n.onEntering,m=n.onExit,g=n.onExited,f=n.onExiting,_=n.style,y=n.timeout,E=void 0===y?T:y,S=n.TransitionComponent,A=void 0===S?b:S,R=(0,i.Z)(n,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),I=C(),O=e.useRef(null),N=e.useCallback(function(e){O.current=t.findDOMNode(e)},[]),M=(0,v.Z)(a.ref,N),D=(0,v.Z)(M,r),L=function(e){return function(t){e&&(void 0===t?e(O.current):e(O.current,t))}},P=L(function(e,t){x(l,e),w(e),d&&d(e,t)}),j=L(function(e,t){var n=k({timeout:E,style:_},{mode:"enter"});e.style.webkitTransition=I.transitions.create("-webkit-transform",(0,o.Z)({},n,{easing:I.transitions.easing.easeOut})),e.style.transition=I.transitions.create("transform",(0,o.Z)({},n,{easing:I.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)}),U=L(p),F=L(f),B=L(function(e){var t=k({timeout:E,style:_},{mode:"exit"});e.style.webkitTransition=I.transitions.create("-webkit-transform",(0,o.Z)({},t,{easing:I.transitions.easing.sharp})),e.style.transition=I.transitions.create("transform",(0,o.Z)({},t,{easing:I.transitions.easing.sharp})),x(l,e),m&&m(e)}),G=L(function(e){e.style.webkitTransition="",e.style.transition="",g&&g(e)}),V=e.useCallback(function(){O.current&&x(l,O.current)},[l]);return e.useEffect(function(){if(!u&&"down"!==l&&"right"!==l){var e=(0,s.Z)(function(){O.current&&x(l,O.current)});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[l,u]),e.useEffect(function(){u||V()},[u,V]),e.createElement(A,(0,o.Z)({nodeRef:O,onEnter:P,onEntered:U,onEntering:j,onExit:B,onExited:G,onExiting:F,appear:!0,in:u,timeout:E},R),function(t,n){return e.cloneElement(a,(0,o.Z)({ref:D,style:(0,o.Z)({visibility:"exited"!==t||u?void 0:"hidden"},_,a.props.style)},n))})}),R=A,I=n(150);function O(e){return(0,I.Z)(e)}var N=n(2543),M=n(9693),D=n(3914),L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,D.Z)(e,(0,o.Z)({defaultTheme:E.Z},t))},P=n(885),j=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.collapsedHeight,u=t.collapsedSize,d=void 0===u?"0px":u,p=t.component,h=void 0===p?"div":p,m=t.disableStrictModeCompat,g=void 0!==m&&m,f=t.in,_=t.onEnter,y=t.onEntered,E=t.onEntering,w=t.onExit,x=t.onExited,T=t.onExiting,A=t.style,R=t.timeout,I=void 0===R?S.x9.standard:R,O=t.TransitionComponent,N=void 0===O?b:O,M=(0,i.Z)(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),D=C(),L=e.useRef(),j=e.useRef(null),U=e.useRef(),F="number"==typeof(l||d)?"".concat(l||d,"px"):l||d;e.useEffect(function(){return function(){clearTimeout(L.current)}},[]);var B=D.unstable_strictMode&&!g,G=e.useRef(null),V=(0,v.Z)(n,B?G:void 0),H=function(e){return function(t,n){if(e){var r=B?[G.current,t]:[t,n],a=(0,P.Z)(r,2),o=a[0],i=a[1];void 0===i?e(o):e(o,i)}}},z=H(function(e,t){e.style.height=F,_&&_(e,t)}),Y=H(function(e,t){var n=j.current?j.current.clientHeight:0,r=k({style:A,timeout:I},{mode:"enter"}).duration;if("auto"===I){var a=D.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(a,"ms"),U.current=a}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),E&&E(e,t)}),q=H(function(e,t){e.style.height="auto",y&&y(e,t)}),K=H(function(e){var t=j.current?j.current.clientHeight:0;e.style.height="".concat(t,"px"),w&&w(e)}),W=H(x),J=H(function(e){var t=j.current?j.current.clientHeight:0,n=k({style:A,timeout:I},{mode:"exit"}).duration;if("auto"===I){var r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),U.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=F,T&&T(e)});return e.createElement(N,(0,o.Z)({in:f,onEnter:z,onEntered:q,onEntering:Y,onExit:K,onExited:W,onExiting:J,addEndListener:function(e,t){var n=B?e:t;"auto"===I&&(L.current=setTimeout(n,U.current||0))},nodeRef:B?G:void 0,timeout:"auto"===I?null:I},M),function(t,n){return e.createElement(h,(0,o.Z)({className:(0,a.Z)(s.root,s.container,c,{entered:s.entered,exited:!f&&"0px"===F&&s.hidden}[t]),style:(0,o.Z)({minHeight:F},A),ref:V},n),e.createElement("div",{className:s.wrapper,ref:j},e.createElement("div",{className:s.wrapperInner},r)))})});j.muiSupportAuto=!0;var U=(0,N.Z)(function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},{name:"MuiCollapse"})(j),F=n(2087),B=n(626),G=n(5192);function V(e){return e.substring(2).toLowerCase()}var H=function(n){var r=n.children,a=n.disableReactTree,o=void 0!==a&&a,i=n.mouseEvent,s=void 0===i?"onClick":i,c=n.onClickAway,l=n.touchEvent,u=void 0===l?"onTouchEnd":l,d=e.useRef(!1),p=e.useRef(null),h=e.useRef(!1),m=e.useRef(!1);e.useEffect(function(){return setTimeout(function(){h.current=!0},0),function(){h.current=!1}},[]);var g=e.useCallback(function(e){p.current=t.findDOMNode(e)},[]),f=(0,v.Z)(r.ref,g),_=(0,G.Z)(function(e){var t=m.current;m.current=!1,h.current&&p.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e)&&(d.current?d.current=!1:(e.composedPath?e.composedPath().indexOf(p.current)>-1:!(0,B.Z)(p.current).documentElement.contains(e.target)||p.current.contains(e.target))||!o&&t||c(e))}),b=function(e){return function(t){m.current=!0;var n=r.props[e];n&&n(t)}},y={ref:f};return!1!==u&&(y[u]=b(u)),e.useEffect(function(){if(!1!==u){var e=V(u),t=(0,B.Z)(p.current),n=function(){d.current=!0};return t.addEventListener(e,_),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,_),t.removeEventListener("touchmove",n)}}},[_,u]),!1!==s&&(y[s]=b(s)),e.useEffect(function(){if(!1!==s){var e=V(s),t=(0,B.Z)(p.current);return t.addEventListener(e,_),function(){t.removeEventListener(e,_)}}},[_,s]),e.createElement(e.Fragment,null,e.cloneElement(r,y))},z=n(8679),Y=n.n(z);function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}function K(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var W=e.createContext(),J={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},Z={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},$={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:R,transitionDuration:{enter:225,exit:195}},Q=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},X=function(e){return Object.keys(e).filter(function(e){return!Z[e]}).reduce(function(t,n){var r;return q({},t,((r={})[n]=e[n],r))},{})},ee={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},te=function(e){return"containerAnchorOrigin"+e},ne=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+Q(t)+Q(n)},re=function(e){return"variant"+Q(e)},ae=function(e){return!!e||0===e},oe=function(e){return"number"==typeof e||null===e};function ie(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),q({},n,{},t,{},e)}var se=(0,e.forwardRef)(function(t,n){var r=t.classes,o=t.className,i=K(t,["classes","className"]);return e.createElement("div",Object.assign({ref:n,className:(0,a.Z)(r.root,o)},i))}),ce=(0,N.Z)(function(e){var t;return O({root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)})})(se),le={right:"left",left:"right",bottom:"up",top:"down"},ue=function(e){return"center"!==e.horizontal?le[e.horizontal]:le[e.vertical]},de={fontSize:20,marginInlineEnd:8},pe={default:void 0,success:e.createElement(function(t){return e.createElement(F.Z,Object.assign({},t),e.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},{style:de}),warning:e.createElement(function(t){return e.createElement(F.Z,Object.assign({},t),e.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},{style:de}),error:e.createElement(function(t){return e.createElement(F.Z,Object.assign({},t),e.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},{style:de}),info:e.createElement(function(t){return e.createElement(F.Z,Object.assign({},t),e.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},{style:de})};function he(e,t){return e.reduce(function(e,n){return null==n?e:function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i=[].concat(a);t&&-1===i.indexOf(t)&&i.push(t),e.apply(this,i),n.apply(this,i)}},function(){})}var me="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function ge(t){var n=(0,e.useRef)(t);return me(function(){n.current=t}),(0,e.useCallback)(function(){return n.current.apply(void 0,arguments)},[])}var fe=(0,e.forwardRef)(function(t,n){var r=t.children,a=t.autoHideDuration,o=t.ClickAwayListenerProps,i=t.disableWindowBlurListener,s=void 0!==i&&i,c=t.onClose,l=t.onMouseEnter,u=t.onMouseLeave,d=t.open,p=t.resumeHideDuration,h=K(t,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=(0,e.useRef)(),g=ge(function(){c&&c.apply(void 0,arguments)}),f=ge(function(e){c&&null!=e&&(clearTimeout(m.current),m.current=setTimeout(function(){g(null,ee.TIMEOUT)},e))});(0,e.useEffect)(function(){return d&&f(a),function(){clearTimeout(m.current)}},[d,a,f]);var _=function(){clearTimeout(m.current)},b=(0,e.useCallback)(function(){null!=a&&f(null!=p?p:.5*a)},[a,p,f]);return(0,e.useEffect)(function(){if(!s&&d)return window.addEventListener("focus",b),window.addEventListener("blur",_),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",_)}},[s,b,d]),(0,e.createElement)(H,q({onClickAway:function(e){c&&c(e,ee.CLICKAWAY)}},o),(0,e.createElement)("div",q({onMouseEnter:function(e){l&&l(e),_()},onMouseLeave:function(e){u&&u(e),b()},ref:n},h),r))}),_e=(0,N.Z)(function(e){var t=e.palette.mode||e.palette.type,n=(0,M._4)(e.palette.background.default,"light"===t?.8:.98);return O(q({},J,{contentRoot:q({},e.typography.body2,{backgroundColor:n,color:e.palette.getContrastText(n),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}}))})(function(t){var n=t.classes,r=K(t,["classes"]),o=(0,e.useRef)(),i=(0,e.useState)(!0),s=i[0],c=i[1];(0,e.useEffect)(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var l=he([r.snack.onClose,r.onClose],r.snack.key),u=r.style,d=r.ariaAttributes,p=r.className,h=r.hideIconVariant,m=r.iconVariant,g=r.snack,f=r.action,_=r.content,b=r.TransitionComponent,v=r.TransitionProps,y=r.transitionDuration,E=K(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),C=g.key,S=g.open,w=g.className,k=g.variant,x=g.content,T=g.action,A=g.ariaAttributes,R=g.anchorOrigin,I=g.message,O=g.TransitionComponent,N=g.TransitionProps,M=g.transitionDuration,D=K(g,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),L=q({},pe,{},m)[k],P=q({"aria-describedby":"notistack-snackbar"},ie(A,d)),j=O||b||$.TransitionComponent,F=ie(M,y,$.transitionDuration),B=q({direction:ue(R)},ie(N,v)),G=T||f;"function"==typeof G&&(G=G(C));var V=x||_;"function"==typeof V&&(V=V(C,g.message));var H=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(e,t){var n;return q({},e,((n={})[t]=he([r.snack[t],r[t]],r.snack.key),n))},{});return e.createElement(U,{unmountOnExit:!0,timeout:175,in:s,onExited:H.onExited},e.createElement(fe,Object.assign({},E,D,{open:S,className:(0,a.Z)(n.root,n.wrappedRoot,n[ne(R)]),onClose:l}),e.createElement(j,Object.assign({appear:!0,in:S,timeout:F},B,{onExit:H.onExit,onExiting:H.onExiting,onExited:function(){o.current=setTimeout(function(){c(!s)},125)},onEnter:H.onEnter,onEntering:H.onEntering,onEntered:he([H.onEntered,function(){r.snack.requestClose&&l(null,ee.INSTRCUTED)}])}),V||e.createElement(ce,Object.assign({},P,{role:"alert",style:u,className:(0,a.Z)(n.contentRoot,n[re(k)],p,w,!h&&L&&n.lessPadding)}),e.createElement("div",{id:P["aria-describedby"],className:n.message},h?null:L,I),G&&e.createElement("div",{className:n.action},G)))))}),be="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",ve=L(function(e){var t,n,r,a,o;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t["& > .MuiCollapse-container, & > .MuiCollapse-root"]={pointerEvents:"all"},t[be]={padding:"6px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - 40px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(n={},n[be]={padding:"2px 0px"},n),top:{top:14,flexDirection:"column"},bottom:{bottom:14,flexDirection:"column-reverse"},left:(r={left:20},r[e.breakpoints.up("sm")]={alignItems:"flex-start"},r[e.breakpoints.down("xs")]={left:"16px"},r),right:(a={right:20},a[e.breakpoints.up("sm")]={alignItems:"flex-end"},a[e.breakpoints.down("xs")]={right:"16px"},a),center:(o={left:"50%",transform:"translateX(-50%)"},o[e.breakpoints.up("sm")]={alignItems:"center"},o)}}),ye=e.memo(function(t){var n=ve(),r=t.className,o=t.anchorOrigin,i=t.dense,s=K(t,["className","anchorOrigin","dense"]),c=(0,a.Z)(n[o.vertical],n[o.horizontal],n.root,r,i&&n.rootDense);return e.createElement("div",Object.assign({className:c},s))}),Ee=function(n){var r,o,i;function s(e){var t;return(t=n.call(this,e)||this).enqueueSnackbar=function(e,n){void 0===n&&(n={});var r=n,a=r.key,o=r.preventDuplicate,i=K(r,["key","preventDuplicate"]),s=ae(a),c=s?a:(new Date).getTime()+Math.random(),l=function(e,t,n){return function(r){return"autoHideDuration"===r?oe(e.autoHideDuration)?e.autoHideDuration:oe(t.autoHideDuration)?t.autoHideDuration:$.autoHideDuration:e[r]||t[r]||n[r]}}(i,t.props,$),u=q({key:c},i,{message:e,open:!0,entered:!1,requestClose:!1,variant:l("variant"),anchorOrigin:l("anchorOrigin"),autoHideDuration:l("autoHideDuration")});return i.persist&&(u.autoHideDuration=void 0),t.setState(function(n){if(void 0===o&&t.props.preventDuplicate||o){var r=function(t){return s?t.key===a:t.message===e},i=n.queue.findIndex(r)>-1,c=n.snacks.findIndex(r)>-1;if(i||c)return n}return t.handleDisplaySnack(q({},n,{queue:[].concat(n.queue,[u])}))}),c},t.handleDisplaySnack=function(e){return e.snacks.length>=t.maxSnack?t.handleDismissOldest(e):t.processQueue(e)},t.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?q({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},t.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var n=!1,r=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===t.maxSnack&&(r=!0);var a=e.snacks.map(function(e){return n||e.persist&&!r?q({},e):(n=!0,e.entered?(e.onClose&&e.onClose(null,ee.MAXSNACK,e.key),t.props.onClose&&t.props.onClose(null,ee.MAXSNACK,e.key),q({},e,{open:!1})):q({},e,{requestClose:!0}))});return q({},e,{snacks:a})},t.handleEnteredSnack=function(e,n,r){if(!ae(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(e){return{snacks:e.snacks.map(function(e){return e.key===r?q({},e,{entered:!0}):q({},e)})}})},t.handleCloseSnack=function(e,n,r){if(t.props.onClose&&t.props.onClose(e,n,r),n!==ee.CLICKAWAY){var a=void 0===r;t.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return a||e.key===r?e.entered?q({},e,{open:!1}):q({},e,{requestClose:!0}):q({},e)}),queue:n.filter(function(e){return e.key!==r})}})}},t.closeSnackbar=function(e){var n=t.state.snacks.find(function(t){return t.key===e});ae(e)&&n&&n.onClose&&n.onClose(null,ee.INSTRUCTED,e),t.handleCloseSnack(null,ee.INSTRUCTED,e)},t.handleExitedSnack=function(e,n,r){var a=n||r;if(!ae(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(e){var n=t.processQueue(q({},e,{snacks:e.snacks.filter(function(e){return e.key!==a})}));return 0===n.queue.length?n:t.handleDismissOldest(n)})},t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar,closeSnackbar:t.closeSnackbar}},t}return o=n,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o,s.prototype.render=function(){var n=this,r=this.state.contextValue,o=this.props,i=o.iconVariant,s=o.dense,c=void 0===s?$.dense:s,l=o.hideIconVariant,u=void 0===l?$.hideIconVariant:l,d=o.domRoot,p=o.children,h=o.classes,m=void 0===h?{}:h,g=K(o,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),f=this.state.snacks.reduce(function(e,t){var n,r,a=(r=t.anchorOrigin,""+Q(r.vertical)+Q(r.horizontal)),o=e[a]||[];return q({},e,((n={})[a]=[].concat(o,[t]),n))},{}),_=Object.keys(f).map(function(t){var r=f[t];return e.createElement(ye,{key:t,dense:c,anchorOrigin:r[0].anchorOrigin,className:(0,a.Z)(m.containerRoot,m[te(t)])},r.map(function(t){return e.createElement(_e,Object.assign({},g,{key:t.key,snack:t,dense:c,iconVariant:i,hideIconVariant:u,classes:X(m),onClose:n.handleCloseSnack,onExited:he([n.handleExitedSnack,n.props.onExited]),onEntered:he([n.handleEnteredSnack,n.props.onEntered])}))}))});return e.createElement(W.Provider,{value:r},p,d?(0,t.createPortal)(_,d):_)},(i=[{key:"maxSnack",get:function(){return this.props.maxSnack||$.maxSnack}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,i),s}(e.Component),Ce=(n(3494),n.p,n(3457)),Se=n(8225);function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function ke(e,t,n){return(t=xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){var t=function(e){if("object"!==we(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==we(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===we(t)?t:String(t)}var Te=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)});ke(Te,"theme",{palette:{primaryIconColor:{main:"#3399ff"},secondaryIconColor:{main:"#808080"},fontHeadingColor:{main:"#292A2c"},fontTitleColor:{main:"#292A2c"},fontSubTitleColor:{main:"#808080"},fontTextColor:{main:"#808080"},textColor:{main:"#fff"}},typography:{h4:{fontFamily:"Inter-Bold"},h5:{fontFamily:"Inter-Semibold"},h6:{fontFamily:"Inter-Regular"}},spacing:function(e){return"".concat(1*e,"vh")},margin:function(e){return"".concat(4*e,"px")}}),ke(Te,"setTheme",function(e){Te.theme=e});var Ae="NOISY_MIC",Re="NOISY_MIC_MUTED",Ie="SCREEN_SHARING_STARTED",Oe="SCREEN_SHARING_STOPPED",Ne="SCREEN_SHARE_STARTED",Me="SCREEN_SHARE_ENDED",De="START_SCREEN_RECORDING",Le="stopScreenRecording",Pe="participantMuted",je="tryingToStartScreenRecording",Ue="CONVERT_TO_VIDEO_REQUEST",Fe="CONVERT_TO_VIDEO_RESPONSE",Be="tryingToStopStartScreenRecording",Ge="endSessionForAll",Ve={disableAudioLevels:!1,desktopSharingChromeDisabled:!1,desktopSharingChromeExtId:"kglhbbefdnlheedjiejgomgmfplipfeb",desktopSharingSources:["screen","window"],desktopSharingFirefoxDisabled:!1,enableTalkWhileMuted:!0,enableNoisyMicDetection:!0,channelLastN:15,lastNLimits:{5:20,30:15,50:10,70:5,90:2},flags:{receiveMultipleVideoStreams:!0,sendMultipleVideoStreams:!0,sourceNameSignaling:!0,ssrcRewritingEnabled:!0},enableNoAudioDetection:!0,enableWelcomePage:!0,p2p:{enabled:!0},analytics:{},deploymentInfo:{},mouseMoveCallbackInterval:1e3,audioQuality:{stereo:!1},bridgeChannel:{preferSctp:!0},constraints:{video:{height:{ideal:720,max:720,min:180},width:{ideal:1280,max:1280,min:320}}},resolution:720},He={openBridgeChannel:"websocket",enableNoisyMicDetection:!0,channelLastN:10,websocketKeepAlive:-1,testing:{octo:{probability:1}},e2eping:{pingInterval:-1},deploymentInfo:{userRegion:"eu-west-1"},enableTalkWhileMuted:!0,p2p:{enabled:!1}},ze="onUserListChanged",Ye="onCallEndButtonPressed",qe="onDeviceChange",Ke="onRecordingToggled",We="onUserMuted",Je="onUserUnMuted",Ze="timeout-click",$e="timeout-leave",Qe="timeout-auto",Xe="video",et="audio",tt="audioinput",nt="audiooutput",rt={REQUESTING_TO_SWITCH_VIDEO_CALL:"Requesting to switch to a video call",REQUESTING_TO_SWITCH_VIDEO_CALL_REJECTED:"Requesting to switch to a video call rejected",SWITCH_TO_VIDEO_CALL:"Switch to video call",SELECT_VIDEO_SOURCE:"Select video source",SELECT_INPUT_AUDIO_SOURCE:"Select input audio source",SELECT_OUTPUT_AUDIO_SOURCE:"Select output audio source",SELECT_MODE:"Select mode",CALL_RECORDING_STARTED_MSG:"This call is being recorded",USER_JOINED_CALL_MSG:"has joined the call",CALL_RECORDING_ENDED_MSG:"Call recording has been stopped",USER_LEFT_CALL_MSG:"has left the call",USERS_LEFT_CALL_MSG:"__USERS__ and __USER__ has left the call",CAMERA_ERROR_MSG:"No camera detected. Kindly fix your camera or allow permission to use the camera",MIC_ERROR_MSG:"No microphone detected. Kindly fix your microphone or allow permission to use the microphone",CAMERA_MIC_ERROR_MSG:"No microphone & camera detected. Kindly fix your microphone & camera or allow permission to use the microphone & camera",RECORDING_TEXT:"Recording",TRYING_TO_START_RECORDING_TEXT:"Trying to start recording...",JOINING_TEXT:"Joining...",CONNECTION_ERROR_TEXT:"Couldn't connect, something went wrong!",UN_MUTE_AUDIO_TEXT:"Unmute audio",MUTE_AUDIO_TEXT:"Mute audio",END_CALL_TEXT:"End call",START_RECORDING_TEXT:"Start recording",STOP_RECORDING_TEXT:"Stop recording",START_SCREEN_SHARE_TEXT:"Start screenShare",STOP_SCREEN_SHARE_TEXT:"Stop screenShare",MUTE_VIDEO_TEXT:"Mute video",UN_MUTE_VIDEO_TEXT:"Unmute video",SELECT_LAYOUT_HEADER:"Select layout",NO_OF_USER_IN_TILE_TEXT:"Select the number of users to be shown in Tile mode",CHANGE_AUDIO_SOURCE:"Change audio source",CHANGE_AUDIO_SOURCE_DESC:"You can select the desired audio input and output",AUDIO_INPUT_DEVICE_LABEL:"Audio input device",NO_AUDIO_DEVICE_AVAILABLE:"No device available",AUDIO_OUTPUT_DEVICE_LABEL:"Audio output device",CHANGE_VIDEO_SOURCE:"Change video source",CHANGE_VIDEO_SOURCE_DESC:"You can select the desired video device",VIDEO_DEVICES_LABEL:"Video device",FULL_SCREEN:"Full screen",EXIT_FULL_SCREEN:"Exit full screen",CHANGE_LAYOUT:"Change layout",AUDIO_SETTING:"Audio setting",VIDEO_SETTING:"Video setting",USER_LIST:"User list",MORE:"More",MUTE_USER:"Mute",PIN_USER:"Pin",UNPIN_USER:"Unpin",UN_MUTE_USER:"Unmute",MUTED:"muted",IOS_BROWSER_WARNING:"We recommend to use Safari browser for a better experience with video calls",PEOPLE_TEXT:"People",SPOTLIGHT_DETAIL_TEXT1:"Video of",SPOTLIGHT_DETAIL_TEXT2:"Active Speaker",SPOTLIGHT_DETAIL_TEXT3:"will automatically be displayed on the main screen. If you wish to see a particular person, please click on the name below to",SPOTLIGHT_DETAIL_TEXT4:"Pin or Unpin",STOP_RECORDING_ERROR:"Recording can only be stopped by the recorder",VIRTUAL_BACKGROUND:"Virtual Background",SCREEN_SHARE_MSG:"You are currently sharing your screen.",RECONNECTING_TEXT:"Connection lost. Trying to reconnect...",NO_NETWORK_TEXT:"No network connection. Please check your connection.",NOISY_MIC:"You have a noisy mic.",TALK_WHILE_MUTED:"Your mic is on mute.",NO_OF_USER_IN_PAGINATED_TEXT:"Select the maximum number of user displayed on one page",SCREEN_SHARE_POSTFIX:"(Screen)",ARE_YOU_STILL_THERE:"Are you still there?",MEETING_ENDED:"Meeting Ended",SOLO_CALL_WARNING_MINUTE:"Looks like you are the only one here! This call will end in less than __MINUTES__ minute. Want to keep it going?",SOLO_CALL_WARNING_MINUTES:"Looks like you are the only one here! This call will end in less than __MINUTES__ minutes. Want to keep it going?",CALL_ENDED_MESSAGE:'The call has ended as there were no participants. Click "Leave now" to exit the meeting.',LEAVE_NOW:"Leave now?",STAY_IN_CALL:"Stay in the call?",NONE:"None",ADD:"Add",CANCEL:"Cancel",APPLY:"Apply",DOWNLOADING_REQUIRED_FILES:"Downloading required files...",CHOOSE_BACKGROUND:"Choose Background",SELECT:"Select",TILE_MODE:"Tile Mode",SPOTLIGHT_MODE:"Spotlight Mode",SIDEBAR_MODE:"Sidebar Mode",RECORDER_LABEL:"Recorder"};Object.keys(rt).length!==new Set(Object.values(rt)).size&&alert("Duplicate keys found in LocalizedString");var at={fit:"contain",fitButton:{visible:!0,position:"bottom-right"},nameLabel:{visible:!0,position:"bottom-left",background:"rgba(27, 27, 27, 0.4)"},network:{visible:!0,position:"bottom-right"}},ot="PRESENTER",it=(n(2931),n(3514),n(1296)),st=n.n(it);function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}var lt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getSVGAvatar",value:function(e,t){var n=document.createElement("canvas"),r=n.getContext("2d");return n.width=200,n.height=200,r.fillStyle=function(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",a=0;a<3;a++)r+=("00"+(t>>8*a&255).toString(16)).substr(-2);return r}(e),r.fillRect(0,0,n.width,n.height),r.font="bold 100px 'Inter', sans-serif",r.fillStyle="white",r.textAlign="center",r.textBaseline="middle",r.fillText(/^[a-z0-9]+$/i.test(t)?t.toUpperCase():"U",n.width/2,n.height/2),n.toDataURL("image/png")}},{key:"stringToColour",value:function(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",a=0;a<3;a++)r+=("00"+(t>>8*a&240).toString(16)).substr(-2);return r+""}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==ct(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ct(a)?a:String(a)),r)}var a}(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ut=function(e){return null==e?void 0:e.replace(/(\w)(\w*)/g,function(e,t,n){return t.toUpperCase()+n.toLowerCase()})};function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}var pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"log",value:function(){var e;bm&&(e=console).log.apply(e,arguments)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==dt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===dt(a)?a:String(a)),r)}var a}(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ht=function(e){return{type:"REMOVE_REMOTE_TRACK",payload:e}};function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}var gt,ft=null,_t=[],bt=!1,vt=null,yt="Conference",Et={},Ct="RTCManager.js",St={hosts:{domain:"rtc-namaste.cometchat.io",muc:"conference.rtc-namaste.cometchat.io"},bosh:"https://rtc-namaste.cometchat.io/http-bind",clientNode:"http://jitsi.org/jitsimeet"},wt={openBridgeChannel:!1},kt={disableAudioLevels:!0,desktopSharingChromeExtId:"mbocklcggfhnbahlnepmldehdhpjfcjp",desktopSharingChromeDisabled:!1,desktopSharingChromeSources:["screen","window"],desktopSharingChromeMinExtVersion:"0.1",desktopSharingFirefoxDisabled:!1};function xt(){pt.log(Ct,"RoomName = ",yt),(vt=ft.initJitsiConference(yt,wt)).on(JitsiMeetJS.events.conference.TRACK_ADDED,It),vt.on(JitsiMeetJS.events.conference.TRACK_REMOVED,Tt),vt.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED,Ot),vt.on(JitsiMeetJS.events.conference.USER_JOINED,function(e){pt.log("User Joined ...."),Et[e]=[]}),vt.on(JitsiMeetJS.events.conference.USER_LEFT,Nt),vt.on(JitsiMeetJS.events.conference.TRACK_MUTE_CHANGED,function(e){pt.log("".concat(e.getType()," - ").concat(e.isMuted()))}),vt.on(JitsiMeetJS.events.conference.DISPLAY_NAME_CHANGED,function(e,t){return pt.log("".concat(e," - ").concat(t))}),vt.on(JitsiMeetJS.events.conference.TRACK_AUDIO_LEVEL_CHANGED,function(e,t){return pt.log("".concat(e," - ").concat(t))}),vt.on(JitsiMeetJS.events.conference.PHONE_NUMBER_CHANGED,function(){return pt.log("".concat(vt.getPhoneNumber()," - ").concat(vt.getPhonePin()))}),vt.join()}function Tt(e){pt.log(Ct,"onRemoteTrackRemoved-------- : ",e),gt(ht(e.getParticipantId()))}function At(){pt.log("onConnectionFailed.....")}function Rt(){pt.log("onDisconnect called....."),ft.removeEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,xt),ft.removeEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED,At),ft.removeEventListener(JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,Rt)}function It(e){if(pt.log(Ct,"onRemoteTrack Called",e),!e.isLocal()){var t=e.getParticipantId();pt.log(Ct,"Participant id = ",t),pt.log(Ct,"remoteTracks[participant] ? :",Et[t]),Et[t]||(Et[t]=[]),gt(function(e){return{type:"ADD_REMOTE_TRACK",payload:{remoteTracks:e}}}(e)),e.addEventListener(JitsiMeetJS.events.track.TRACK_AUDIO_LEVEL_CHANGED,function(e){}),e.addEventListener(JitsiMeetJS.events.track.TRACK_MUTE_CHANGED,function(){}),e.addEventListener(JitsiMeetJS.events.track.LOCAL_TRACK_STOPPED,function(){}),e.addEventListener(JitsiMeetJS.events.track.TRACK_AUDIO_OUTPUT_CHANGED,function(e){})}}function Ot(){pt.log("onConferenceJoined called "),bt=!0;for(var e=0;e<_t.length;e++)vt.addTrack(_t[e])}function Nt(e){pt.log("onUserLeft called ",e),Et[e]&&gt(ht(e))}function Mt(e){pt.log("onLocalTrack Called......"),gt(function(e){return{type:"ADD_LOCAL_TRACK",payload:{localTracks:e}}}(_t=e));for(var t=0;t<_t.length;t++)_t[t].addEventListener(JitsiMeetJS.events.track.TRACK_AUDIO_LEVEL_CHANGED,function(e){}),_t[t].addEventListener(JitsiMeetJS.events.track.TRACK_MUTE_CHANGED,function(){}),_t[t].addEventListener(JitsiMeetJS.events.track.LOCAL_TRACK_STOPPED,function(){}),_t[t].addEventListener(JitsiMeetJS.events.track.TRACK_AUDIO_OUTPUT_CHANGED,function(e){}),bt&&vt.addTrack(_t[t])}function Dt(){if(_t.length>0)for(var e=0;e<_t.length;e++)"video"===_t[e].getType()&&_t[e].dispose()}var Lt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(e){yt=e,JitsiMeetJS.init(kt),JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR),(ft=new JitsiMeetJS.JitsiConnection(null,null,St)).connect(),ft.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,xt),ft.addEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED,At),ft.addEventListener(JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,Rt)}},{key:"createLocalTracks",value:function(e){pt.log("createLocalTracks Called....."),gt=e,am({devices:["audio","video"],facingMode:"user"}).then(Mt).catch(function(e){throw pt.log("Create Local error.."),e})}},{key:"createScreenShareTrack",value:function(){Dt(),am({devices:["desktop"]}).then(Mt).catch(function(e){throw pt.log("Create Local error.."),e})}},{key:"stopScreenShare",value:function(){Dt(),am({devices:["audio","video"],facingMode:"user"}).then(Mt).catch(function(e){throw pt.log("Create Local error.."),e})}},{key:"endCallSession",value:function(){!function(){if(_t.length>0)for(var e=0;e<_t.length;e++)_t[e].dispose();vt.leave(),ft.disconnect()}()}},{key:"pauseVideo",value:function(e){e?_t[1].mute():_t[1].unmute()}},{key:"muteAudio",value:function(e){e?_t[0].mute():_t[0].unmute()}},{key:"isMob",value:function(){return!!(/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1)||[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(function(e){return navigator.userAgent.match(e)})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==mt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===mt(a)?a:String(a)),r)}var a}(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Pt=n(3837);function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function Ut(){Ut=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==jt(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Ft(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach(function(t){Yt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vt(e,t)}function Ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Yt(e,t,n){return(t=qt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(e){var t=function(e){if("object"!==jt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jt(t)?t:String(t)}var Kt,Wt="ScreenShare",Jt=null,Zt=null,$t=null,Qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(i,e);var t,n,r,a,o=(r=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=zt(r);if(a){var n=zt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ht(e)}(this,e)});function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yt(Ht(e=o.call.apply(o,[this].concat(n))),"start",function(){pt.log(Wt,"[start]",e.props.sessionID),e.createLocalTracks()}),Yt(Ht(e),"localUser",Gt(Gt({},e.props.user),{},{videoTrack:null,audioTrack:null})),Yt(Ht(e),"init",function(t){pt.log(Wt,"[init]",Ve),Zt=t,JitsiMeetJS.init(Ve),JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR),e.makeConnection()}),Yt(Ht(e),"addEventListener",function(){pt.log(Wt,"[addEventListener]",4),Jt.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,e.onConnectionSuccess),Jt.addEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED,function(){}),Jt.addEventListener(JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,function(){})}),Yt(Ht(e),"createLocalTracks",function(){am({devices:["desktop"],desktopSharingSources:["screen","window"],facingMode:"user",resolution:1080,constraints:{video:{aspectRatio:16/9,height:{ideal:720,max:720,min:405},width:{ideal:1280,max:1280,min:720}}}}).then(function(t){if(t.length>1)for(var n=0;n<t.length;n++)"video"==t[n].track.kind?(e.localUser.videoTrack=t[n],e.localUser.isVideoMuted=!1):"audio"==t[n].track.kind&&(e.localUser.isAudioMuted=!1,e.localUser.audioTrack=t[n]);else e.localUser.videoTrack=t[0];e.localUser.videoTrack.track.onended=function(){e.stop()},e.props.onTrackCreated(e.localUser.videoTrack),e.init(e.props.sessionID)}).catch(function(t){e.props.onError(t),e.stop(!1),pt.log("ScreenShare",t)})}),Yt(Ht(e),"onConnectionSuccess",function(){try{$t=Jt.initJitsiConference(Zt,He),pt.log(Wt,"[onConnectionSuccess]","screenshare flow",6,$t.myUserId(),e.localUser.name),window.room=$t,Kt=$t.myUserId()||"",$t.setDisplayName(e.localUser.name+rt.SCREEN_SHARE_POSTFIX),$t.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED,e.onConferenceJoined),$t.join()}catch(t){e.props.onError(),pt.log(Wt,"[onConnectionSuccess]","error",t)}}),Yt(Ht(e),"onConferenceJoined",function(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){Ft(o,r,a,i,s,"next",e)}function s(e){Ft(o,r,a,i,s,"throw",e)}i(void 0)})}}(Ut().mark(function t(){return Ut().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:$t.addTrack(e.localUser.videoTrack),e.localUser.audioTrack&&$t.addTrack(e.localUser.audioTrack),$t.sendCommand(Ie,{value:JSON.stringify({userId:e.localUser.id,screenShareId:Kt})}),e.props.onSuccess($t.myUserId());case 4:case"end":return t.stop()}},t)}))),Yt(Ht(e),"stop",function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{t&&e.props.onStopped(),e.localUser.videoTrack&&e.localUser.videoTrack.dispose().then(function(){}).catch(function(){}),e.localUser.audioTrack&&e.localUser.audioTrack.dispose().then(function(){}).catch(function(){}),$t&&$t&&$t.leave().then(function(){return Jt.disconnect()}).catch(function(e){})}catch(e){}}),e}return t=i,(n=[{key:"makeConnection",value:function(){pt.log(Wt,"[makeConnection]");var e={hosts:{domain:this.props.domain,muc:this.props.MUC,focus:this.props.focus},serviceUrl:this.props.webSocket,bosh:this.props.getBosh,clientNode:"http://jitsi.org/jitsimeet"};(Jt=new JitsiMeetJS.JitsiConnection(null,null,e)).connect(),this.addEventListener()}},{key:"render",value:function(){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qt(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(e.PureComponent),Xt=n(5996);function en(e){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(e)}function tn(e,t){if(e){if("string"==typeof e)return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rn(e){var t=function(e){if("object"!==en(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===en(t)?t:String(t)}n(6923),n(4363),n(3147);var an,on=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,(r=rn(r="_destroyed"))in n?Object.defineProperty(n,r,{value:!1,enumerable:!0,configurable:!0,writable:!0}):n[r]=!1;try{if(this._wasmInterface=t,this._wasmPcmInput=this._wasmInterface._malloc(1920),!this._wasmPcmInput)throw Error("Failed to create wasm input memory buffer!");if(this._wasmPcmOutput=this._wasmInterface._malloc(1920),!this._wasmPcmOutput)throw t._free(this._wasmPcmInput),Error("Failed to create wasm output memory buffer!");this._wasmPcmInputF32Index=this._wasmPcmInput/4,this._context=this._wasmInterface._rnnoise_create()}catch(e){throw this._releaseWasmResources(),e}}var t,n;return t=e,(n=[{key:"_copyPCMSampleToWasmBuffer",value:function(e){this._wasmInterface.HEAPF32.set(e,this._wasmPcmInputF32Index)}},{key:"_convertTo16BitPCM",value:function(e){var t,n,r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=tn(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw a}}}}(e.entries());try{for(r.s();!(t=r.n()).done;){var a=function(e){if(Array.isArray(e))return e}(n=t.value)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(n)||tn(n,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],i=a[1];e[o]=32767*i}}catch(e){r.e(e)}finally{r.f()}}},{key:"_releaseWasmResources",value:function(){this._wasmPcmInput&&(this._wasmInterface._free(this._wasmPcmInput),this._wasmPcmInput=null),this._wasmPcmOutput&&(this._wasmInterface._free(this._wasmPcmOutput),this._wasmPcmOutput=null),this._context&&(this._wasmInterface._rnnoise_destroy(this._context),this._context=null)}},{key:"getSampleLength",value:function(){return 480}},{key:"getRequiredPCMFrequency",value:function(){return 44100}},{key:"destroy",value:function(){this._destroyed||(this._releaseWasmResources(),this._destroyed=!0)}},{key:"calculateAudioFrameVAD",value:function(e){if(this._destroyed)throw new Error("RnnoiseProcessor instance is destroyed, please create another one!");var t=e.length;if(480!==t)throw new Error("Rnnoise can only process PCM frames of 480 samples! Input sample was:".concat(t));return this._convertTo16BitPCM(e),this._copyPCMSampleToWasmBuffer(e),this._wasmInterface._rnnoise_process_frame(this._context,this._wasmPcmOutput,this._wasmPcmInput)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rn(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sn(){return an||(an=rnnoiseWasmInit()),an.then(function(e){return new on(e)})}var cn="\n    var timer;\n\n    onmessage = function(request) {\n        switch (request.data.id) {\n        case ".concat(1,": {\n            timer = setInterval(() => {\n                postMessage({ id: ").concat(3," });\n            }, request.data.timeMs);\n            break;\n        }\n        case ").concat(2,": {\n            if (timer) {\n                clearInterval(timer);\n            }\n            break;\n        }\n        }\n    };\n"),ln=URL.createObjectURL(new Blob([cn],{type:"application/javascript"}));function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pn=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=document.createElement("div"),a=t.getVideoTracks()[0],o=null!==(n=a.getSettings())&&void 0!==n?n:a.getConstraints(),i=o.height,s=o.width,c=o.frameRate;this._canvas=document.createElement("canvas"),this._ctx=this._canvas.getContext("2d"),this._desktopElement=document.createElement("video"),this._videoElement=document.createElement("video"),r.appendChild(this._videoElement),r.appendChild(this._desktopElement),null!==document.body&&document.body.appendChild(r),this._frameRate=parseInt(c,10),this._videoElement.width=parseInt(s,10),this._videoElement.height=parseInt(i,10),this._videoElement.autoplay=!0,this._videoElement.srcObject=t,this._videoElement.play(),r.style.display="none",this._onVideoFrameTimer=this._onVideoFrameTimer.bind(this)}var t,n;return t=e,n=[{key:"_onVideoFrameTimer",value:function(e){3===e.data.id&&this._renderVideo()}},{key:"_renderVideo",value:function(){var e,t,n=(t=this._desktopStream.getVideoTracks(),function(e){if(Array.isArray(e))return e}(t)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),1!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return dn(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?dn(e,1):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],r=null!==(e=n.getSettings())&&void 0!==e?e:n.getConstraints(),a=r.height,o=r.width;this._canvas.width=parseInt(o,10),this._canvas.height=parseInt(a,10),this._ctx.drawImage(this._desktopElement,0,0,this._canvas.width,this._canvas.height),this._ctx.drawImage(this._videoElement,this._canvas.width-this._videoElement.width,0,this._videoElement.width,this._videoElement.height),this._ctx.beginPath(),this._ctx.lineWidth=2,this._ctx.strokeStyle="#A9A9A9",this._ctx.rect(this._canvas.width-this._videoElement.width,0,this._videoElement.width,this._videoElement.height),this._ctx.stroke()}},{key:"isEnabled",value:function(e){return e.isVideoTrack()&&"desktop"===e.videoType}},{key:"startEffect",value:function(e){var t,n=e.getVideoTracks()[0],r=null!==(t=n.getSettings())&&void 0!==t?t:n.getConstraints(),a=r.height,o=r.width;return this._desktopStream=e,this._desktopElement.width=parseInt(o,10),this._desktopElement.height=parseInt(a,10),this._desktopElement.autoplay=!0,this._desktopElement.srcObject=e,this._desktopElement.play(),this._canvas.width=parseInt(o,10),this._canvas.height=parseInt(a,10),this._videoFrameTimerWorker=new Worker(ln,{name:"Presenter effect worker"}),this._videoFrameTimerWorker.onmessage=this._onVideoFrameTimer,this._videoFrameTimerWorker.postMessage({id:1,timeMs:1e3/this._frameRate}),this._canvas.captureStream(this._frameRate)}},{key:"stopEffect",value:function(){this._videoFrameTimerWorker.postMessage({id:2}),this._videoFrameTimerWorker.terminate()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==un(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===un(a)?a:String(a)),r)}var a}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hn(e){return MediaStreamTrack.prototype.getSettings||MediaStreamTrack.prototype.getConstraints?Promise.resolve(new pn(e)):Promise.reject(new Error("JitsiStreamPresenterEffect not supported!"))}var mn=n(5697),gn=n.n(mn),fn=n(3869),_n=n(157),bn=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?_n.X.indexOf(e)<_n.X.indexOf(t):_n.X.indexOf(e)<=_n.X.indexOf(t)},vn=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?_n.X.indexOf(t)<_n.X.indexOf(e):_n.X.indexOf(t)<=_n.X.indexOf(e)},yn="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function En(e){var t=e.children,n=e.only,r=e.width,a=C(),o=!0;if(n)if(Array.isArray(n)){for(var i=0;i<n.length;i+=1)if(r===n[i]){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var s=0;s<a.breakpoints.keys.length;s+=1){var c=a.breakpoints.keys[s],l=e["".concat(c,"Up")],u=e["".concat(c,"Down")];if(l&&bn(c,r)||u&&vn(c,r)){o=!1;break}}return o?t:null}En.propTypes={children:gn().node,className:gn().string,implementation:gn().oneOf(["js","css"]),initialWidth:gn().oneOf(["xs","sm","md","lg","xl"]),lgDown:gn().bool,lgUp:gn().bool,mdDown:gn().bool,mdUp:gn().bool,only:gn().oneOfType([gn().oneOf(["xs","sm","md","lg","xl"]),gn().arrayOf(gn().oneOf(["xs","sm","md","lg","xl"]))]),smDown:gn().bool,smUp:gn().bool,width:gn().string.isRequired,xlDown:gn().bool,xlUp:gn().bool,xsDown:gn().bool,xsUp:gn().bool};var Cn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.withTheme,a=void 0!==r&&r,s=t.noSSR,c=void 0!==s&&s,l=t.initialWidth;function u(t){var r=C(),s=t.theme||r,u=(0,fn.Z)({theme:s,name:"MuiWithWidth",props:(0,o.Z)({},t)}),d=u.initialWidth,p=u.width,h=(0,i.Z)(u,["initialWidth","width"]),m=e.useState(!1),g=m[0],f=m[1];yn(function(){f(!0)},[]);var _=s.breakpoints.keys.slice().reverse().reduce(function(t,n){var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,y.Z)(),a=(0,fn.Z)({theme:r,name:"MuiUseMediaQuery",props:{}}),i="function"==typeof t?t(r):t;i=i.replace(/^@media( ?)/m,"");var s="undefined"!=typeof window&&void 0!==window.matchMedia,c=(0,o.Z)({},a,n),l=c.defaultMatches,u=void 0!==l&&l,d=c.matchMedia,p=void 0===d?s?window.matchMedia:null:d,h=c.noSsr,m=void 0!==h&&h,g=c.ssrMatchMedia,f=void 0===g?null:g,_=e.useState(function(){return m&&s?p(i).matches:f?f(i).matches:u}),b=_[0],v=_[1];return e.useEffect(function(){var e=!0;if(s){var t=p(i),n=function(){e&&v(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}},[i,p,s]),b}(s.breakpoints.up(n));return!t&&r?n:t},null),b=(0,o.Z)({width:p||(g||c?_:void 0)||d||l},a?{theme:s}:{},h);return void 0===b.width?null:e.createElement(n,b)}return Y()(u,n),u}}()(En),Sn=n(4942),wn=n(3871),kn=(0,N.Z)(function(e){var t={display:"none"};return e.breakpoints.keys.reduce(function(n,r){return n["only".concat((0,wn.Z)(r))]=(0,Sn.Z)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=(0,Sn.Z)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=(0,Sn.Z)({},e.breakpoints.down(r),t),n},{})},{name:"PrivateHiddenCss"})(function(t){var n=t.children,r=t.classes,a=t.className,o=t.only,s=((0,i.Z)(t,["children","classes","className","only"]),C()),c=[];a&&c.push(a);for(var l=0;l<s.breakpoints.keys.length;l+=1){var u=s.breakpoints.keys[l],d=t["".concat(u,"Up")],p=t["".concat(u,"Down")];d&&c.push(r["".concat(u,"Up")]),p&&c.push(r["".concat(u,"Down")])}return o&&(Array.isArray(o)?o:[o]).forEach(function(e){c.push(r["only".concat((0,wn.Z)(e))])}),e.createElement("div",{className:c.join(" ")},n)}),xn=function(t){var n=t.implementation,r=void 0===n?"js":n,a=t.lgDown,s=void 0!==a&&a,c=t.lgUp,l=void 0!==c&&c,u=t.mdDown,d=void 0!==u&&u,p=t.mdUp,h=void 0!==p&&p,m=t.smDown,g=void 0!==m&&m,f=t.smUp,_=void 0!==f&&f,b=t.xlDown,v=void 0!==b&&b,y=t.xlUp,E=void 0!==y&&y,C=t.xsDown,S=void 0!==C&&C,w=t.xsUp,k=void 0!==w&&w,x=(0,i.Z)(t,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return"js"===r?e.createElement(Cn,(0,o.Z)({lgDown:s,lgUp:l,mdDown:d,mdUp:h,smDown:g,smUp:_,xlDown:v,xlUp:E,xsDown:S,xsUp:k},x)):e.createElement(kn,(0,o.Z)({lgDown:s,lgUp:l,mdDown:d,mdUp:h,smDown:g,smUp:_,xlDown:v,xlUp:E,xsDown:S,xsUp:k},x))},Tn=n(4896),An=n(2982),Rn=n(7326);function In(t,n){var r=Object.create(null);return t&&e.Children.map(t,function(e){return e}).forEach(function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)}),r}function On(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Nn(t,n,r){var a=In(t.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),o=[];for(var i in e)i in t?o.length&&(a[i]=o,o=[]):o.push(i);var s={};for(var c in t){if(a[c])for(r=0;r<a[c].length;r++){var l=a[c][r];s[a[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,a);return Object.keys(o).forEach(function(i){var s=o[i];if((0,e.isValidElement)(s)){var c=i in n,l=i in a,u=n[i],d=(0,e.isValidElement)(u)&&!u.props.in;!l||c&&!d?l||!c||d?l&&c&&(0,e.isValidElement)(u)&&(o[i]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:On(s,"exit",t),enter:On(s,"enter",t)})):o[i]=(0,e.cloneElement)(s,{in:!1}):o[i]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:On(s,"exit",t),enter:On(s,"enter",t)})}}),o}var Mn=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Dn=function(t){function n(e,n){var r,a=(r=t.call(this,e,n)||this).handleExited.bind((0,Rn.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}(0,l.Z)(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,a,o=n.children,i=n.handleExited;return{children:n.firstRender?(r=t,a=i,In(r.children,function(t){return(0,e.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:On(t,"appear",r),enter:On(t,"enter",r),exit:On(t,"exit",r)})})):Nn(t,o,i),firstRender:!1}},r.handleExited=function(e,t){var n=In(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,a=(0,c.Z)(t,["component","childFactory"]),o=this.state.contextValue,i=Mn(this.state.children).map(r);return delete a.appear,delete a.enter,delete a.exit,null===n?e.createElement(u.Provider,{value:o},i):e.createElement(u.Provider,{value:o},e.createElement(n,a,i))},n}(e.Component);Dn.propTypes={},Dn.defaultProps={component:"div",childFactory:function(e){return e}};var Ln,Pn=Dn,jn="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Un=function(t){var n=t.classes,r=t.pulsate,o=void 0!==r&&r,i=t.rippleX,s=t.rippleY,c=t.rippleSize,l=t.in,u=t.onExited,d=void 0===u?function(){}:u,p=t.timeout,h=e.useState(!1),m=h[0],g=h[1],f=(0,a.Z)(n.ripple,n.rippleVisible,o&&n.ripplePulsate),_={width:c,height:c,top:-c/2+s,left:-c/2+i},b=(0,a.Z)(n.child,m&&n.childLeaving,o&&n.childPulsate),v=(0,G.Z)(d);return jn(function(){if(!l){g(!0);var e=setTimeout(v,p);return function(){clearTimeout(e)}}},[v,l,p]),e.createElement("span",{className:f,style:_},e.createElement("span",{className:b}))},Fn=e.forwardRef(function(t,n){var r=t.center,s=void 0!==r&&r,c=t.classes,l=t.className,u=(0,i.Z)(t,["center","classes","className"]),d=e.useState([]),p=d[0],h=d[1],m=e.useRef(0),g=e.useRef(null);e.useEffect(function(){g.current&&(g.current(),g.current=null)},[p]);var f=e.useRef(!1),_=e.useRef(null),b=e.useRef(null),v=e.useRef(null);e.useEffect(function(){return function(){clearTimeout(_.current)}},[]);var y=e.useCallback(function(t){var n=t.pulsate,r=t.rippleX,a=t.rippleY,o=t.rippleSize,i=t.cb;h(function(t){return[].concat((0,An.Z)(t),[e.createElement(Un,{key:m.current,classes:c,timeout:550,pulsate:n,rippleX:r,rippleY:a,rippleSize:o})])}),m.current+=1,g.current=i},[c]),E=e.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,a=void 0!==r&&r,o=t.center,i=void 0===o?s||t.pulsate:o,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,p,h=l?null:v.current,m=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(i||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),d=Math.round(m.height/2);else{var g=e.touches?e.touches[0]:e,E=g.clientX,C=g.clientY;u=Math.round(E-m.left),d=Math.round(C-m.top)}if(i)(p=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2==0&&(p+=1);else{var S=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,w=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}e.touches?null===b.current&&(b.current=function(){y({pulsate:a,rippleX:u,rippleY:d,rippleSize:p,cb:n})},_.current=setTimeout(function(){b.current&&(b.current(),b.current=null)},80)):y({pulsate:a,rippleX:u,rippleY:d,rippleSize:p,cb:n})}},[s,y]),C=e.useCallback(function(){E({},{pulsate:!0})},[E]),S=e.useCallback(function(e,t){if(clearTimeout(_.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(_.current=setTimeout(function(){S(e,t)}));b.current=null,h(function(e){return e.length>0?e.slice(1):e}),g.current=t},[]);return e.useImperativeHandle(n,function(){return{pulsate:C,start:E,stop:S}},[C,E,S]),e.createElement("span",(0,o.Z)({className:(0,a.Z)(c.root,l),ref:v},u),e.createElement(Pn,{component:null,exit:!0},p))}),Bn=(0,N.Z)(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(e.memo(Fn)),Gn=e.forwardRef(function(n,r){var s=n.action,c=n.buttonRef,l=n.centerRipple,u=void 0!==l&&l,d=n.children,p=n.classes,h=n.className,m=n.component,g=void 0===m?"button":m,f=n.disabled,_=void 0!==f&&f,b=n.disableRipple,y=void 0!==b&&b,E=n.disableTouchRipple,C=void 0!==E&&E,S=n.focusRipple,w=void 0!==S&&S,k=n.focusVisibleClassName,x=n.onBlur,T=n.onClick,A=n.onFocus,R=n.onFocusVisible,I=n.onKeyDown,O=n.onKeyUp,N=n.onMouseDown,M=n.onMouseLeave,D=n.onMouseUp,L=n.onTouchEnd,P=n.onTouchMove,j=n.onTouchStart,U=n.onDragLeave,F=n.tabIndex,B=void 0===F?0:F,V=n.TouchRippleProps,H=n.type,z=void 0===H?"button":H,Y=(0,i.Z)(n,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=e.useRef(null),K=e.useRef(null),W=e.useState(!1),J=W[0],Z=W[1];_&&J&&Z(!1);var $=(0,Tn.Z)(),Q=$.isFocusVisible,X=$.onBlurVisible,ee=$.ref;function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;return(0,G.Z)(function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0})}e.useImperativeHandle(s,function(){return{focusVisible:function(){Z(!0),q.current.focus()}}},[]),e.useEffect(function(){J&&w&&!y&&K.current.pulsate()},[y,w,J]);var ne=te("start",N),re=te("stop",U),ae=te("stop",D),oe=te("stop",function(e){J&&e.preventDefault(),M&&M(e)}),ie=te("start",j),se=te("stop",L),ce=te("stop",P),le=te("stop",function(e){J&&(X(e),Z(!1)),x&&x(e)},!1),ue=(0,G.Z)(function(e){q.current||(q.current=e.currentTarget),Q(e)&&(Z(!0),R&&R(e)),A&&A(e)}),de=function(){var e=t.findDOMNode(q.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},pe=e.useRef(!1),he=(0,G.Z)(function(e){w&&!pe.current&&J&&K.current&&" "===e.key&&(pe.current=!0,e.persist(),K.current.stop(e,function(){K.current.start(e)})),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!_&&(e.preventDefault(),T&&T(e))}),me=(0,G.Z)(function(e){w&&" "===e.key&&K.current&&J&&!e.defaultPrevented&&(pe.current=!1,e.persist(),K.current.stop(e,function(){K.current.pulsate(e)})),O&&O(e),T&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&T(e)}),ge=g;"button"===ge&&Y.href&&(ge="a");var fe={};"button"===ge?(fe.type=z,fe.disabled=_):("a"===ge&&Y.href||(fe.role="button"),fe["aria-disabled"]=_);var _e=(0,v.Z)(c,r),be=(0,v.Z)(ee,q),ve=(0,v.Z)(_e,be),ye=e.useState(!1),Ee=ye[0],Ce=ye[1];e.useEffect(function(){Ce(!0)},[]);var Se=Ee&&!y&&!_;return e.createElement(ge,(0,o.Z)({className:(0,a.Z)(p.root,h,J&&[p.focusVisible,k],_&&p.disabled),onBlur:le,onClick:T,onFocus:ue,onKeyDown:he,onKeyUp:me,onMouseDown:ne,onMouseLeave:oe,onMouseUp:ae,onDragLeave:re,onTouchEnd:se,onTouchMove:ce,onTouchStart:ie,ref:ve,tabIndex:_?-1:B},fe,Y),d,Se?e.createElement(Bn,(0,o.Z)({ref:K,center:u},V)):null)}),Vn=(0,N.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Gn),Hn=e.forwardRef(function(t,n){var r=t.edge,s=void 0!==r&&r,c=t.children,l=t.classes,u=t.className,d=t.color,p=void 0===d?"default":d,h=t.disabled,m=void 0!==h&&h,g=t.disableFocusRipple,f=void 0!==g&&g,_=t.size,b=void 0===_?"medium":_,v=(0,i.Z)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(Vn,(0,o.Z)({className:(0,a.Z)(l.root,u,"default"!==p&&l["color".concat((0,wn.Z)(p))],m&&l.disabled,"small"===b&&l["size".concat((0,wn.Z)(b))],{start:l.edgeStart,end:l.edgeEnd}[s]),centerRipple:!0,focusRipple:!f,disabled:m,ref:n},v),e.createElement("span",{className:l.label},c))}),zn=(0,N.Z)(function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,M.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},{name:"MuiIconButton"})(Hn),Yn=e.forwardRef(function(t,n){var r=t.anchorOrigin,s=void 0===r?{vertical:"top",horizontal:"right"}:r,c=t.badgeContent,l=t.children,u=t.classes,d=t.className,p=t.color,h=void 0===p?"default":p,m=t.component,g=void 0===m?"span":m,f=t.invisible,_=t.max,b=void 0===_?99:_,v=t.overlap,y=void 0===v?"rectangle":v,E=t.showZero,C=void 0!==E&&E,S=t.variant,w=void 0===S?"standard":S,k=(0,i.Z)(t,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),x=f;null==f&&(0===c&&!C||null==c&&"dot"!==w)&&(x=!0);var T="";return"dot"!==w&&(T=c>b?"".concat(b,"+"):c),e.createElement(g,(0,o.Z)({className:(0,a.Z)(u.root,d),ref:n},k),l,e.createElement("span",{className:(0,a.Z)(u.badge,u["".concat(s.horizontal).concat((0,wn.Z)(s.vertical),"}")],u["anchorOrigin".concat((0,wn.Z)(s.vertical)).concat((0,wn.Z)(s.horizontal)).concat((0,wn.Z)(y))],"default"!==h&&u["color".concat((0,wn.Z)(h))],x&&u.invisible,"dot"===w&&u.dot)},T))}),qn=(0,N.Z)(function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}},{name:"MuiBadge"})(Yn),Kn=["title","titleId"];function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(this,arguments)}var Jn=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Kn);return e.createElement("svg",Wn({width:31,height:27,viewBox:"0 0 31 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Ln||(Ln=e.createElement("path",{d:"M25.375 26.0001H29.75V24.1251C29.75 19.1838 26.125 18.3863 22.7075 17.1251C21.5712 16.7038 21.7588 13.7376 22.2613 13.1838C23.4413 11.8851 24.4437 10.3626 24.4437 6.68381C24.4437 2.97256 22.0225 1.00006 19.125 1.00006C18.7051 0.998167 18.2862 1.04006 17.875 1.12506M22.25 26.0001V24.1251C22.25 19.1838 18.625 18.3863 15.2075 17.1251C14.0713 16.7038 14.2587 13.7376 14.7612 13.1838C15.9412 11.8851 16.9438 10.3626 16.9438 6.68381C16.9438 2.97256 14.5225 1.00006 11.625 1.00006C8.7275 1.00006 6.30625 2.97256 6.30625 6.68131C6.30625 10.3588 7.30625 11.8813 8.48875 13.1813C8.98875 13.7351 9.17875 16.7013 8.0425 17.1226C4.68625 18.3638 1 19.1463 1 24.1251V26.0001H22.25Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),Zn=(n.p,n(5953));function $n(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qn={entering:{opacity:1,transform:$n(1)},entered:{opacity:1,transform:"none"}},Xn=e.forwardRef(function(t,n){var r=t.children,a=t.disableStrictModeCompat,s=void 0!==a&&a,c=t.in,l=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,m=t.onExiting,g=t.style,f=t.timeout,_=void 0===f?"auto":f,y=t.TransitionComponent,E=void 0===y?b:y,S=(0,i.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=e.useRef(),T=e.useRef(),A=C(),R=A.unstable_strictMode&&!s,I=e.useRef(null),O=(0,v.Z)(r.ref,n),N=(0,v.Z)(R?I:void 0,O),M=function(e){return function(t,n){if(e){var r=R?[I.current,t]:[t,n],a=(0,P.Z)(r,2),o=a[0],i=a[1];void 0===i?e(o):e(o,i)}}},D=M(d),L=M(function(e,t){w(e);var n,r=k({style:g,timeout:_},{mode:"enter"}),a=r.duration,o=r.delay;"auto"===_?(n=A.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=a,e.style.transition=[A.transitions.create("opacity",{duration:n,delay:o}),A.transitions.create("transform",{duration:.666*n,delay:o})].join(","),l&&l(e,t)}),j=M(u),U=M(m),F=M(function(e){var t,n=k({style:g,timeout:_},{mode:"exit"}),r=n.duration,a=n.delay;"auto"===_?(t=A.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[A.transitions.create("opacity",{duration:t,delay:a}),A.transitions.create("transform",{duration:.666*t,delay:a||.333*t})].join(","),e.style.opacity="0",e.style.transform=$n(.75),p&&p(e)}),B=M(h);return e.useEffect(function(){return function(){clearTimeout(x.current)}},[]),e.createElement(E,(0,o.Z)({appear:!0,in:c,nodeRef:R?I:void 0,onEnter:L,onEntered:j,onEntering:D,onExit:F,onExited:B,onExiting:U,addEndListener:function(e,t){var n=R?e:t;"auto"===_&&(x.current=setTimeout(n,T.current||0))},timeout:"auto"===_?null:_},S),function(t,n){return e.cloneElement(r,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:$n(.75),visibility:"exited"!==t||c?void 0:"hidden"},Qn[t],g,r.props.style),ref:N},n))})});Xn.muiSupportAuto=!0;var er=Xn,tr="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,nr=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(tr&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),rr=tr&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},nr))}};function ar(e){return e&&"[object Function]"==={}.toString.call(e)}function or(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function ir(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function sr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=or(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:sr(ir(e))}function cr(e){return e&&e.referenceNode?e.referenceNode:e}var lr=tr&&!(!window.MSInputMethodContext||!document.documentMode),ur=tr&&/MSIE 10/.test(navigator.userAgent);function dr(e){return 11===e?lr:10===e?ur:lr||ur}function pr(e){if(!e)return document.documentElement;for(var t=dr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===or(n,"position")?pr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function hr(e){return null!==e.parentNode?hr(e.parentNode):e}function mr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var i,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(a))return"BODY"===(s=(i=c).nodeName)||"HTML"!==s&&pr(i.firstElementChild)!==i?pr(c):c;var l=hr(e);return l.host?mr(l.host,t):mr(e,hr(t).host)}function gr(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function fr(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function _r(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],dr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function br(e){var t=e.body,n=e.documentElement,r=dr(10)&&getComputedStyle(n);return{height:_r("Height",t,n,r),width:_r("Width",t,n,r)}}var vr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),yr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Cr(e){return Er({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Sr(e){var t={};try{if(dr(10)){t=e.getBoundingClientRect();var n=gr(e,"top"),r=gr(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?br(e.ownerDocument):{},i=o.width||e.clientWidth||a.width,s=o.height||e.clientHeight||a.height,c=e.offsetWidth-i,l=e.offsetHeight-s;if(c||l){var u=or(e);c-=fr(u,"x"),l-=fr(u,"y"),a.width-=c,a.height-=l}return Cr(a)}function wr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=dr(10),a="HTML"===t.nodeName,o=Sr(e),i=Sr(t),s=sr(e),c=or(t),l=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&a&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=Cr({top:o.top-i.top-l,left:o.left-i.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&a){var p=parseFloat(c.marginTop),h=parseFloat(c.marginLeft);d.top-=l-p,d.bottom-=l-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=gr(t,"top"),a=gr(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=a*o,e.right+=a*o,e}(d,t)),d}function kr(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===or(e,"position"))return!0;var n=ir(e);return!!n&&kr(n)}function xr(e){if(!e||!e.parentElement||dr())return document.documentElement;for(var t=e.parentElement;t&&"none"===or(t,"transform");)t=t.parentElement;return t||document.documentElement}function Tr(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},i=a?xr(e):mr(e,cr(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=wr(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:gr(n),s=t?0:gr(n,"left");return Cr({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:o})}(i,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=sr(ir(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var c=wr(s,i,a);if("HTML"!==s.nodeName||kr(i))o=c;else{var l=br(e.ownerDocument),u=l.height,d=l.width;o.top+=c.top-c.marginTop,o.bottom=u+c.top,o.left+=c.left-c.marginLeft,o.right=d+c.left}}var p="number"==typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function Ar(e){return e.width*e.height}function Rr(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=Tr(n,r,o,a),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},c=Object.keys(s).map(function(e){return Er({key:e},s[e],{area:Ar(s[e])})}).sort(function(e,t){return t.area-e.area}),l=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Ir(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return wr(n,r?xr(t):mr(t,cr(n)),r)}function Or(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Nr(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Mr(e,t,n){n=n.split("-")[0];var r=Or(e),a={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),i=o?"top":"left",s=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return a[i]=t[i]+t[c]/2-r[c]/2,a[s]=n===s?t[s]-r[l]:t[Nr(s)],a}function Dr(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Lr(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=Dr(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function;var n=e.function||e.fn;e.enabled&&ar(n)&&(t.offsets.popper=Cr(t.offsets.popper),t.offsets.reference=Cr(t.offsets.reference),t=n(t,e))}),t}function Pr(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ir(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Rr(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Mr(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Lr(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function jr(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function Ur(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],o=a?""+a+n:e;if(void 0!==document.body.style[o])return o}return null}function Fr(){return this.state.isDestroyed=!0,jr(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Ur("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Br(e){var t=e.ownerDocument;return t?t.defaultView:window}function Gr(e,t,n,r){var a="BODY"===e.nodeName,o=a?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),a||Gr(sr(o.parentNode),t,n,r),r.push(o)}function Vr(e,t,n,r){n.updateBound=r,Br(e).addEventListener("resize",n.updateBound,{passive:!0});var a=sr(e);return Gr(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function Hr(){this.state.eventsEnabled||(this.state=Vr(this.reference,this.options,this.state,this.scheduleUpdate))}function zr(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Br(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Yr(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function qr(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Yr(t[n])&&(r="px"),e.style[n]=t[n]+r})}var Kr=tr&&/Firefox/i.test(navigator.userAgent);function Wr(e,t,n){var r=Dr(e,function(e){return e.name===t});return!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order})}var Jr=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Zr=Jr.slice(3);function $r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Zr.indexOf(e),r=Zr.slice(n+1).concat(Zr.slice(0,n));return t?r.reverse():r}var Qr={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,o=a.reference,i=a.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:yr({},c,o[c]),end:yr({},c,o[c]+o[l]-i[l])};e.offsets.popper=Er({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,a=e.placement,o=e.offsets,i=o.popper,s=o.reference,c=a.split("-")[0];return n=Yr(+r)?[+r,0]:function(e,t,n,r){var a=[0,0],o=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(Dr(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&i[s].indexOf(",");var c=/\s*,\s*|\s+/,l=-1!==s?[i.slice(0,s).concat([i[s].split(c)[0]]),[i[s].split(c)[1]].concat(i.slice(s+1))]:[i];return(l=l.map(function(e,r){var a=(1===r?!o:o)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],i=a[2];return o?0===i.indexOf("%")?Cr("%p"===i?n:r)[t]/100*o:"vh"===i||"vw"===i?("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,a,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Yr(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))})}),a}(r,i,s,c),"left"===c?(i.top+=n[0],i.left-=n[1]):"right"===c?(i.top+=n[0],i.left+=n[1]):"top"===c?(i.left+=n[0],i.top-=n[1]):"bottom"===c&&(i.left+=n[0],i.top+=n[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||pr(e.instance.popper);e.instance.reference===n&&(n=pr(n));var r=Ur("transform"),a=e.instance.popper.style,o=a.top,i=a.left,s=a[r];a.top="",a.left="",a[r]="";var c=Tr(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=o,a.left=i,a[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),yr({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),yr({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Er({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],o=Math.floor,i=-1!==["top","bottom"].indexOf(a),s=i?"right":"bottom",c=i?"left":"top",l=i?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Wr(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return e;var a=e.placement.split("-")[0],o=e.offsets,i=o.popper,s=o.reference,c=-1!==["left","right"].indexOf(a),l=c?"height":"width",u=c?"Top":"Left",d=u.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=Or(r)[l];s[h]-m<i[d]&&(e.offsets.popper[d]-=i[d]-(s[h]-m)),s[d]+m>i[h]&&(e.offsets.popper[d]+=s[d]+m-i[h]),e.offsets.popper=Cr(e.offsets.popper);var g=s[d]+s[l]/2-m/2,f=or(e.instance.popper),_=parseFloat(f["margin"+u]),b=parseFloat(f["border"+u+"Width"]),v=g-e.offsets.popper[d]-_-b;return v=Math.max(Math.min(i[l]-m,v),0),e.arrowElement=r,e.offsets.arrow=(yr(n={},d,Math.round(v)),yr(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(jr(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Tr(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=Nr(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case"flip":i=[r,a];break;case"clockwise":i=$r(r);break;case"counterclockwise":i=$r(r,!0);break;default:i=t.behavior}return i.forEach(function(s,c){if(r!==s||i.length===c+1)return e;r=e.placement.split("-")[0],a=Nr(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),m=d(l.right)>d(n.right),g=d(l.top)<d(n.top),f=d(l.bottom)>d(n.bottom),_="left"===r&&h||"right"===r&&m||"top"===r&&g||"bottom"===r&&f,b=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&m||!b&&"start"===o&&g||!b&&"end"===o&&f),y=!!t.flipVariationsByContent&&(b&&"start"===o&&m||b&&"end"===o&&h||!b&&"start"===o&&f||!b&&"end"===o&&g),E=v||y;(p||_||E)&&(e.flipped=!0,(p||_)&&(r=i[c+1]),E&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Er({},e.offsets.popper,Mr(e.instance.popper,e.offsets.reference,e.placement)),e=Lr(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,o=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[i?"left":"top"]=o[n]-(s?a[i?"width":"height"]:0),e.placement=Nr(t),e.offsets.popper=Cr(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Wr(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Dr(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,a=t.x,o=t.y,i=e.offsets.popper,s=Dr(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration,c=void 0!==s?s:t.gpuAcceleration,l=pr(e.instance.popper),u=Sr(l),d={position:i.position},p=function(e,t){var n=e.offsets,r=n.popper,a=n.reference,o=Math.round,i=Math.floor,s=function(e){return e},c=o(a.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||c%2==l%2?o:i:s,h=t?o:s;return{left:p(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Kr),h="bottom"===a?"top":"bottom",m="right"===o?"left":"right",g=Ur("transform");if(r="bottom"===h?"HTML"===l.nodeName?-l.clientHeight+p.bottom:-u.height+p.bottom:p.top,n="right"===m?"HTML"===l.nodeName?-l.clientWidth+p.right:-u.width+p.right:p.left,c&&g)d[g]="translate3d("+n+"px, "+r+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var f="bottom"===h?-1:1,_="right"===m?-1:1;d[h]=r*f,d[m]=n*_,d.willChange=h+", "+m}var b={"x-placement":e.placement};return e.attributes=Er({},b,e.attributes),e.styles=Er({},d,e.styles),e.arrowStyles=Er({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return qr(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&qr(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,a){var o=Ir(a,t,e,n.positionFixed),i=Rr(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),qr(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Xr={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Qr},ea=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=rr(this.update.bind(this)),this.options=Er({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Er({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=Er({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Er({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&ar(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return vr(e,[{key:"update",value:function(){return Pr.call(this)}},{key:"destroy",value:function(){return Fr.call(this)}},{key:"enableEventListeners",value:function(){return Hr.call(this)}},{key:"disableEventListeners",value:function(){return zr.call(this)}}]),e}();ea.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ea.placements=Jr,ea.Defaults=Xr;var ta=ea,na=n(4236),ra="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,aa=e.forwardRef(function(n,r){var a=n.children,o=n.container,i=n.disablePortal,s=void 0!==i&&i,c=n.onRendered,l=e.useState(null),u=l[0],d=l[1],p=(0,v.Z)(e.isValidElement(a)?a.ref:null,r);return ra(function(){s||d(function(e){return e="function"==typeof e?e():e,t.findDOMNode(e)}(o)||document.body)},[o,s]),ra(function(){if(u&&!s)return(0,na.Z)(r,u),function(){(0,na.Z)(r,null)}},[r,u,s]),ra(function(){c&&(u||s)&&c()},[c,u,s]),s?e.isValidElement(a)?e.cloneElement(a,{ref:p}):a:u?t.createPortal(a,u):u}),oa=n(2568);function ia(e){return"function"==typeof e?e():e}var sa="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ca={},la=e.forwardRef(function(t,n){var r=t.anchorEl,a=t.children,s=t.container,c=t.disablePortal,l=void 0!==c&&c,u=t.keepMounted,d=void 0!==u&&u,p=t.modifiers,h=t.open,m=t.placement,g=void 0===m?"bottom":m,f=t.popperOptions,_=void 0===f?ca:f,b=t.popperRef,E=t.style,C=t.transition,S=void 0!==C&&C,w=(0,i.Z)(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),k=e.useRef(null),x=(0,v.Z)(k,n),T=e.useRef(null),A=(0,v.Z)(T,b),R=e.useRef(A);sa(function(){R.current=A},[A]),e.useImperativeHandle(b,function(){return T.current},[]);var I=e.useState(!0),O=I[0],N=I[1],M=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,(0,y.Z)()),D=e.useState(M),L=D[0],P=D[1];e.useEffect(function(){T.current&&T.current.update()});var j=e.useCallback(function(){if(k.current&&r&&h){T.current&&(T.current.destroy(),R.current(null));var e=function(e){P(e.placement)},t=(ia(r),new ta(ia(r),k.current,(0,o.Z)({placement:M},_,{modifiers:(0,o.Z)({},l?{}:{preventOverflow:{boundariesElement:"window"}},p,_.modifiers),onCreate:(0,oa.Z)(e,_.onCreate),onUpdate:(0,oa.Z)(e,_.onUpdate)})));R.current(t)}},[r,l,p,h,M,_]),U=e.useCallback(function(e){(0,na.Z)(x,e),j()},[x,j]),F=function(){T.current&&(T.current.destroy(),R.current(null))};if(e.useEffect(function(){return function(){F()}},[]),e.useEffect(function(){h||S||F()},[h,S]),!d&&!h&&(!S||O))return null;var B={placement:L};return S&&(B.TransitionProps={in:h,onEnter:function(){N(!1)},onExited:function(){N(!0),F()}}),e.createElement(aa,{disablePortal:l,container:s},e.createElement("div",(0,o.Z)({ref:U,role:"tooltip"},w,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:h||!d||S?null:"none"},E)}),"function"==typeof a?a(B):a))}),ua=la,da=n(5001),pa=n(2775);function ha(e){return Math.round(1e5*e)/1e5}var ma,ga,fa,_a=!1,ba=null,va=e.forwardRef(function(n,r){var s=n.arrow,c=void 0!==s&&s,l=n.children,u=n.classes,d=n.disableFocusListener,p=void 0!==d&&d,h=n.disableHoverListener,m=void 0!==h&&h,g=n.disableTouchListener,f=void 0!==g&&g,_=n.enterDelay,b=void 0===_?100:_,y=n.enterNextDelay,E=void 0===y?0:y,S=n.enterTouchDelay,w=void 0===S?700:S,k=n.id,x=n.interactive,T=void 0!==x&&x,A=n.leaveDelay,R=void 0===A?0:A,I=n.leaveTouchDelay,O=void 0===I?1500:I,N=n.onClose,M=n.onOpen,D=n.open,L=n.placement,j=void 0===L?"bottom":L,U=n.PopperComponent,F=void 0===U?ua:U,B=n.PopperProps,G=n.title,V=n.TransitionComponent,H=void 0===V?er:V,z=n.TransitionProps,Y=(0,i.Z)(n,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),q=C(),K=e.useState(),W=K[0],J=K[1],Z=e.useState(null),$=Z[0],Q=Z[1],X=e.useRef(!1),ee=e.useRef(),te=e.useRef(),ne=e.useRef(),re=e.useRef(),ae=(0,pa.Z)({controlled:D,default:!1,name:"Tooltip",state:"open"}),oe=(0,P.Z)(ae,2),ie=oe[0],se=oe[1],ce=ie,le=(0,da.Z)(k);e.useEffect(function(){return function(){clearTimeout(ee.current),clearTimeout(te.current),clearTimeout(ne.current),clearTimeout(re.current)}},[]);var ue=function(e){clearTimeout(ba),_a=!0,se(!0),M&&M(e)},de=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=l.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),X.current&&"touchstart"!==t.type||(W&&W.removeAttribute("title"),clearTimeout(te.current),clearTimeout(ne.current),b||_a&&E?(t.persist(),te.current=setTimeout(function(){ue(t)},_a?E:b)):ue(t))}},pe=(0,Tn.Z)(),he=pe.isFocusVisible,me=pe.onBlurVisible,ge=pe.ref,fe=e.useState(!1),_e=fe[0],be=fe[1],ve=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){W||J(t.currentTarget),he(t)&&(be(!0),de()(t));var n=l.props;n.onFocus&&e&&n.onFocus(t)}},ye=function(e){clearTimeout(ba),ba=setTimeout(function(){_a=!1},800+R),se(!1),N&&N(e),clearTimeout(ee.current),ee.current=setTimeout(function(){X.current=!1},q.transitions.duration.shortest)},Ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=l.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),_e&&(be(!1),me())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===W&&n.onMouseLeave(t),clearTimeout(te.current),clearTimeout(ne.current),t.persist(),ne.current=setTimeout(function(){ye(t)},R)}},Ce=function(e){X.current=!0;var t=l.props;t.onTouchStart&&t.onTouchStart(e)},Se=(0,v.Z)(J,r),we=(0,v.Z)(ge,Se),ke=e.useCallback(function(e){(0,na.Z)(we,t.findDOMNode(e))},[we]),xe=(0,v.Z)(l.ref,ke);""===G&&(ce=!1);var Te=!ce&&!m,Ae=(0,o.Z)({"aria-describedby":ce?le:null,title:Te&&"string"==typeof G?G:null},Y,l.props,{className:(0,a.Z)(Y.className,l.props.className),onTouchStart:Ce,ref:xe}),Re={};f||(Ae.onTouchStart=function(e){Ce(e),clearTimeout(ne.current),clearTimeout(ee.current),clearTimeout(re.current),e.persist(),re.current=setTimeout(function(){de()(e)},w)},Ae.onTouchEnd=function(e){l.props.onTouchEnd&&l.props.onTouchEnd(e),clearTimeout(re.current),clearTimeout(ne.current),e.persist(),ne.current=setTimeout(function(){ye(e)},O)}),m||(Ae.onMouseOver=de(),Ae.onMouseLeave=Ee(),T&&(Re.onMouseOver=de(!1),Re.onMouseLeave=Ee(!1))),p||(Ae.onFocus=ve(),Ae.onBlur=Ee(),T&&(Re.onFocus=ve(!1),Re.onBlur=Ee(!1)));var Ie=e.useMemo(function(){return(0,Zn.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean($),element:$}}}},B)},[$,B]);return e.createElement(e.Fragment,null,e.cloneElement(l,Ae),e.createElement(F,(0,o.Z)({className:(0,a.Z)(u.popper,T&&u.popperInteractive,c&&u.popperArrow),placement:j,anchorEl:W,open:!!W&&ce,id:Ae["aria-describedby"],transition:!0},Re,Ie),function(t){var n=t.placement,r=t.TransitionProps;return e.createElement(H,(0,o.Z)({timeout:q.transitions.duration.shorter},r,z),e.createElement("div",{className:(0,a.Z)(u.tooltip,u["tooltipPlacement".concat((0,wn.Z)(n.split("-")[0]))],X.current&&u.touch,c&&u.tooltipArrow)},G,c?e.createElement("span",{className:u.arrow,ref:Q}):null))}))}),ya=(0,N.Z)(function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,M.Fq)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ha(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,M.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ha(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,Sn.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,Sn.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,Sn.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,Sn.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(va),Ea=["title","titleId"];function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}var Sa,wa,ka,xa,Ta=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Ea);return e.createElement("svg",Ca({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,ma||(ma=e.createElement("path",{d:"M11.6958 18.2173V22.9999",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),ga||(ga=e.createElement("path",{d:"M11.6957 1C10.681 1 9.70779 1.4031 8.99026 2.12063C8.27273 2.83817 7.86963 3.81135 7.86963 4.82609V11.5217C7.86963 12.5365 8.27273 13.5097 8.99026 14.2272C9.70779 14.9447 10.681 15.3478 11.6957 15.3478C12.7105 15.3478 13.6836 14.9447 14.4012 14.2272C15.1187 13.5097 15.5218 12.5365 15.5218 11.5217V4.82609C15.5218 3.81135 15.1187 2.83817 14.4012 2.12063C13.6836 1.4031 12.7105 1 11.6957 1V1Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),fa||(fa=e.createElement("path",{d:"M18.3913 8.6521V11.5217C18.3913 13.2975 17.6859 15.0005 16.4302 16.2562C15.1745 17.5119 13.4714 18.2173 11.6957 18.2173C9.91985 18.2173 8.21679 17.5119 6.96111 16.2562C5.70543 15.0005 5 13.2975 5 11.5217V8.6521",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),Aa=(n.p,["title","titleId"]);function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}var Ia=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Aa);return e.createElement("svg",Ra({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Sa||(Sa=e.createElement("path",{d:"M11.6958 18.2173V22.9999",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),wa||(wa=e.createElement("path",{d:"M11.6957 1C10.681 1 9.70779 1.4031 8.99026 2.12063C8.27273 2.83817 7.86963 3.81135 7.86963 4.82609V11.5217C7.86963 12.5365 8.27273 13.5097 8.99026 14.2272C9.70779 14.9447 10.681 15.3478 11.6957 15.3478C12.7105 15.3478 13.6836 14.9447 14.4012 14.2272C15.1187 13.5097 15.5218 12.5365 15.5218 11.5217V4.82609C15.5218 3.81135 15.1187 2.83817 14.4012 2.12063C13.6836 1.4031 12.7105 1 11.6957 1V1Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),ka||(ka=e.createElement("path",{d:"M18.3913 8.6521V11.5217C18.3913 13.2975 17.6859 15.0005 16.4302 16.2562C15.1745 17.5119 13.4714 18.2173 11.6957 18.2173C9.91985 18.2173 8.21679 17.5119 6.96111 16.2562C5.70543 15.0005 5 13.2975 5 11.5217V8.6521",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),xa||(xa=e.createElement("line",{x1:3.43244,y1:1.54876,x2:20.7602,y2:18.1545,stroke:"white",strokeWidth:1.25})))}),Oa=(n.p,n(1727)),Na=function(t){return t.isVisible?e.createElement(ya,{disableHoverListener:t.noTrack,title:t.isMuted?t.localizedObject.UN_MUTE_AUDIO_TEXT:t.localizedObject.MUTE_AUDIO_TEXT,arrow:!0},e.createElement(zn,{id:"audioButton","data-testid":"cc-audio","aria-label":"delete",size:"small",component:"span",className:"bottom-buttons-icon-button",onClick:st()(function(e){e.stopPropagation(),t.onPress()},500)},e.createElement("div",{"data-testid":"audioButtonIconContainer",className:"cc-bottom-buttons-icon-container ".concat(t.isMuted?"cc-audio-icon-container-muted":"cc-audio-icon-container")},t.isMuted?e.createElement(Ia,{fontSize:"medium",className:"bottom-buttons-icon-color"}):e.createElement(Ta,{className:"bottom-buttons-icon-color"})),t.noTrack?e.createElement(ya,{title:t.localizedObject.MIC_ERROR_MSG,arrow:!0},e.createElement("div",{className:"track-error-container"},e.createElement(Oa.Z,{style:{aspectRatio:1,height:16,width:16,color:"#fff"}}))):null)):null};Na.defaultProps={isMuted:!0,onPress:function(){},isVisible:!1,localizedObject:{},noTrack:!1},Na.propTypes={isMuted:gn().bool,isVisible:gn().bool,localizedObject:gn().object,onPress:gn().func,noTrack:gn().bool};var Ma,Da=Na,La=["title","titleId"];function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(this,arguments)}var ja=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,La);return e.createElement("svg",Pa({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Ma||(Ma=e.createElement("path",{d:"M21.5 8.90962C22.1905 9.06141 22.8109 9.43857 23.2635 9.98169C23.7161 10.5248 23.9752 11.2031 24 11.9096V13.4096C23.9961 13.9388 23.7841 14.4453 23.4099 14.8195C23.0357 15.1937 22.5292 15.4057 22 15.4096H19C18.4709 15.4054 17.9646 15.1934 17.5904 14.8192C17.2162 14.445 17.0042 13.9388 17 13.4096V12.4096C14.0072 12.1156 10.9928 12.1156 8 12.4096V13.4096C7.99607 13.9388 7.7841 14.4453 7.40988 14.8195C7.03565 15.1937 6.52922 15.4057 6 15.4096H3C2.47078 15.4057 1.96435 15.1937 1.59012 14.8195C1.2159 14.4453 1.00393 13.9388 1 13.4096V11.9096C1.02479 11.2031 1.28388 10.5248 1.73649 9.98169C2.18909 9.43857 2.8095 9.06141 3.5 8.90962C9.43871 7.69679 15.5613 7.69679 21.5 8.90962Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})))}),Ua=(n.p,function(t){return t.isVisible?e.createElement(ya,{title:t.localizedObject.END_CALL_TEXT,arrow:!0},e.createElement(zn,{size:"small",component:"span",className:"bottom-buttons-icon-button","data-testid":"cc-end-call",onClick:st()(function(e){e.stopPropagation(),t.onPress()},1e3)},e.createElement("div",{className:"cc-bottom-buttons-icon-container cc-end-call-icon-container"},e.createElement(ja,{className:"bottom-buttons-icon-color"})))):null});Ua.defaultProps={onPress:function(){},localizedObject:{},isVisible:!0},Ua.propTypes={onPress:gn().func,localizedObject:gn().object,isVisible:gn().bool};var Fa,Ba=Ua,Ga=["title","titleId"];function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}var Ha,za=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Ga);return e.createElement("svg",Va({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Fa||(Fa=e.createElement("path",{d:"M1 11C1 13.6522 2.05357 16.1957 3.92893 18.0711C5.8043 19.9464 8.34784 21 11 21C13.6522 21 16.1957 19.9464 18.0711 18.0711C19.9464 16.1957 21 13.6522 21 11C21 8.34784 19.9464 5.8043 18.0711 3.92893C16.1957 2.05357 13.6522 1 11 1C8.34784 1 5.8043 2.05357 3.92893 3.92893C2.05357 5.8043 1 8.34784 1 11Z",fill:"#D93438",stroke:"#D93438",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),Ya=(n.p,["title","titleId"]);function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(this,arguments)}var Ka=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Ya);return e.createElement("svg",qa({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Ha||(Ha=e.createElement("rect",{width:18,height:18,rx:2,fill:"#D93438"})))}),Wa=(n.p,function(t){return t.isVisible?e.createElement(ya,{title:t.isOn?t.localizedObject.STOP_RECORDING_TEXT:t.localizedObject.START_RECORDING_TEXT,arrow:!0},e.createElement(zn,{id:"recordingButton","data-testid":"cc-recording",size:"small",component:"span",className:"bottom-buttons-icon-button",onClick:st()(function(e){e.stopPropagation(),t.onPress()},500)},e.createElement("div",{className:"cc-bottom-buttons-icon-container ".concat(t.isOn?"cc-start-rec-icon-container":"cc-stop-rec-icon-container")},t.isOn?e.createElement(Ka,{fontSize:"medium",style:{color:"red"},"data-testid":"stopRecordingIcon"}):e.createElement(za,{fontSize:"medium",className:"bottom-buttons-icon-color","data-testid":"startRecordingIcon"})))):null});Wa.defaultProps={isOn:!1,onPress:function(){},isVisible:!1,localizedObject:{}},Wa.propTypes={isOn:gn().bool,isVisible:gn().bool,onPress:gn().func,localizedObject:gn().object};var Ja,Za,$a=Wa,Qa=["title","titleId"];function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xa.apply(this,arguments)}var eo,to,no,ro=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Qa);return e.createElement("svg",Xa({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Ja||(Ja=e.createElement("g",{clipPath:"url(#clip0)"},e.createElement("path",{d:"M21.1304 3H2.86957C2.38932 3 2 3.38932 2 3.86957V16.913C2 17.3933 2.38932 17.7826 2.86957 17.7826H21.1304C21.6107 17.7826 22 17.3933 22 16.913V3.86957C22 3.38932 21.6107 3 21.1304 3Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M13.3045 17.7827H10.6958V20.3914H13.3045V17.7827Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M7.65186 20.3914H16.3475",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("line",{x1:.410112,y1:-.471628,x2:24.5575,y2:20.5261,stroke:"#fff",strokeWidth:1.25}))),Za||(Za=e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:24,height:24,fill:"white"})))))}),ao=(n.p,["title","titleId"]);function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(this,arguments)}var io=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,ao);return e.createElement("svg",oo({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,eo||(eo=e.createElement("path",{d:"M21.1304 3H2.86957C2.38932 3 2 3.38932 2 3.86957V16.913C2 17.3933 2.38932 17.7826 2.86957 17.7826H21.1304C21.6107 17.7826 22 17.3933 22 16.913V3.86957C22 3.38932 21.6107 3 21.1304 3Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),to||(to=e.createElement("path",{d:"M13.3045 17.7827H10.6958V20.3914H13.3045V17.7827Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),no||(no=e.createElement("path",{d:"M7.65186 20.3914H16.3475",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),so=(n.p,function(t){return t.isVisible?e.createElement(ya,{title:t.isOn?t.localizedObject.STOP_SCREEN_SHARE_TEXT:t.localizedObject.START_SCREEN_SHARE_TEXT,arrow:!0},e.createElement(zn,{id:"screenShareButton","data-testid":"cc-screen-share",size:"small",component:"span",className:"bottom-buttons-icon-button",onClick:st()(function(e){e.stopPropagation(),t.onPress()},500)},e.createElement("div",{className:"cc-bottom-buttons-icon-container cc-screen-share-icon-container"},t.isOn?e.createElement(ro,{fontSize:"medium",className:"bottom-buttons-icon-color"}):e.createElement(io,{stroke:"#fff",fontSize:"medium",className:"bottom-buttons-icon-color"})))):null});so.defaultProps={isOn:!1,onPress:function(){},isVisible:!1,localizedObject:{}},so.propTypes={isOn:gn().bool,isVisible:gn().bool,onPress:gn().func,localizedObject:gn().object};var co=so,lo=n(2781),uo=n(5671),po=n(3144);function ho(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var mo=n(713);function go(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fo(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,An.Z)(r)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&go(e,a)})}function bo(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}var vo=function(){function e(){(0,uo.Z)(this,e),this.modals=[],this.containers=[]}return(0,po.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&go(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);_o(t,e.mountNode,e.modalRef,r,!0);var a=bo(this.containers,function(e){return e.container===t});return-1!==a?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=bo(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],a=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,B.Z)(e);return t.body===e?(0,mo.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var i=ho();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(fo(o)+i,"px"),n=(0,B.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){a.push(e.style.paddingRight),e.style.paddingRight="".concat(fo(e)+i,"px")})}var s=o.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){a[t]?e.style.paddingRight=a[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=bo(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&go(e.modalRef,!0),_o(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var a=r.modals[r.modals.length-1];a.modalRef&&go(a.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),yo=function(n){var r=n.children,a=n.disableAutoFocus,o=void 0!==a&&a,i=n.disableEnforceFocus,s=void 0!==i&&i,c=n.disableRestoreFocus,l=void 0!==c&&c,u=n.getDoc,d=n.isEnabled,p=n.open,h=e.useRef(),m=e.useRef(null),g=e.useRef(null),f=e.useRef(),_=e.useRef(null),b=e.useCallback(function(e){_.current=t.findDOMNode(e)},[]),y=(0,v.Z)(r.ref,b),E=e.useRef();return e.useEffect(function(){E.current=p},[p]),!E.current&&p&&"undefined"!=typeof window&&(f.current=u().activeElement),e.useEffect(function(){if(p){var e=(0,B.Z)(_.current);o||!_.current||_.current.contains(e.activeElement)||(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex",-1),_.current.focus());var t=function(){null!==_.current&&(e.hasFocus()&&!s&&d()&&!h.current?_.current&&!_.current.contains(e.activeElement)&&_.current.focus():h.current=!1)},n=function(t){!s&&d()&&9===t.keyCode&&e.activeElement===_.current&&(h.current=!0,t.shiftKey?g.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval(function(){t()},50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}},[o,s,l,d,p]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),e.cloneElement(r,{ref:y}),e.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},Eo={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Co=e.forwardRef(function(t,n){var r=t.invisible,a=void 0!==r&&r,s=t.open,c=(0,i.Z)(t,["invisible","open"]);return s?e.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:n},c,{style:(0,o.Z)({},Eo.root,a?Eo.invisible:{},c.style)})):null}),So=new vo,wo=e.forwardRef(function(n,r){var a=(0,y.Z)(),s=(0,fn.Z)({name:"MuiModal",props:(0,o.Z)({},n),theme:a}),c=s.BackdropComponent,l=void 0===c?Co:c,u=s.BackdropProps,d=s.children,p=s.closeAfterTransition,h=void 0!==p&&p,m=s.container,g=s.disableAutoFocus,f=void 0!==g&&g,_=s.disableBackdropClick,b=void 0!==_&&_,E=s.disableEnforceFocus,C=void 0!==E&&E,S=s.disableEscapeKeyDown,w=void 0!==S&&S,k=s.disablePortal,x=void 0!==k&&k,T=s.disableRestoreFocus,A=void 0!==T&&T,R=s.disableScrollLock,I=void 0!==R&&R,O=s.hideBackdrop,N=void 0!==O&&O,M=s.keepMounted,D=void 0!==M&&M,L=s.manager,P=void 0===L?So:L,j=s.onBackdropClick,U=s.onClose,F=s.onEscapeKeyDown,V=s.onRendered,H=s.open,z=(0,i.Z)(s,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Y=e.useState(!0),q=Y[0],K=Y[1],W=e.useRef({}),J=e.useRef(null),Z=e.useRef(null),$=(0,v.Z)(Z,r),Q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(s),X=function(){return(0,B.Z)(J.current)},ee=function(){return W.current.modalRef=Z.current,W.current.mountNode=J.current,W.current},te=function(){P.mount(ee(),{disableScrollLock:I}),Z.current.scrollTop=0},ne=(0,G.Z)(function(){var e=function(e){return e="function"==typeof e?e():e,t.findDOMNode(e)}(m)||X().body;P.add(ee(),e),Z.current&&te()}),re=e.useCallback(function(){return P.isTopModal(ee())},[P]),ae=(0,G.Z)(function(e){J.current=e,e&&(V&&V(),H&&re()?te():go(Z.current,!0))}),oe=e.useCallback(function(){P.remove(ee())},[P]);if(e.useEffect(function(){return function(){oe()}},[oe]),e.useEffect(function(){H?ne():Q&&h||oe()},[H,oe,Q,h,ne]),!D&&!H&&(!Q||q))return null;var ie=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(a||{zIndex:lo.Z}),se={};return void 0===d.props.tabIndex&&(se.tabIndex=d.props.tabIndex||"-1"),Q&&(se.onEnter=(0,oa.Z)(function(){K(!1)},d.props.onEnter),se.onExited=(0,oa.Z)(function(){K(!0),h&&oe()},d.props.onExited)),e.createElement(aa,{ref:ae,container:m,disablePortal:x},e.createElement("div",(0,o.Z)({ref:$,onKeyDown:function(e){"Escape"===e.key&&re()&&(F&&F(e),w||(e.stopPropagation(),U&&U(e,"escapeKeyDown")))},role:"presentation"},z,{style:(0,o.Z)({},ie.root,!H&&q?ie.hidden:{},z.style)}),N?null:e.createElement(l,(0,o.Z)({open:H,onClick:function(e){e.target===e.currentTarget&&(j&&j(e),!b&&U&&U(e,"backdropClick"))}},u)),e.createElement(yo,{disableEnforceFocus:C,disableAutoFocus:f,disableRestoreFocus:A,getDoc:X,isEnabled:re,open:H},e.cloneElement(d,se))))}),ko={entering:{opacity:1},entered:{opacity:1}},xo={enter:S.x9.enteringScreen,exit:S.x9.leavingScreen},To=e.forwardRef(function(t,n){var r=t.children,a=t.disableStrictModeCompat,s=void 0!==a&&a,c=t.in,l=t.onEnter,u=t.onEntered,d=t.onEntering,p=t.onExit,h=t.onExited,m=t.onExiting,g=t.style,f=t.TransitionComponent,_=void 0===f?b:f,y=t.timeout,E=void 0===y?xo:y,S=(0,i.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=C(),T=x.unstable_strictMode&&!s,A=e.useRef(null),R=(0,v.Z)(r.ref,n),I=(0,v.Z)(T?A:void 0,R),O=function(e){return function(t,n){if(e){var r=T?[A.current,t]:[t,n],a=(0,P.Z)(r,2),o=a[0],i=a[1];void 0===i?e(o):e(o,i)}}},N=O(d),M=O(function(e,t){w(e);var n=k({style:g,timeout:E},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),l&&l(e,t)}),D=O(u),L=O(m),j=O(function(e){var t=k({style:g,timeout:E},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),p&&p(e)}),U=O(h);return e.createElement(_,(0,o.Z)({appear:!0,in:c,nodeRef:T?A:void 0,onEnter:M,onEntered:D,onEntering:N,onExit:j,onExited:U,onExiting:L,timeout:E},S),function(t,n){return e.cloneElement(r,(0,o.Z)({style:(0,o.Z)({opacity:0,visibility:"exited"!==t||c?void 0:"hidden"},ko[t],g,r.props.style),ref:I},n))})}),Ao=To,Ro=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.invisible,u=void 0!==l&&l,d=t.open,p=t.transitionDuration,h=t.TransitionComponent,m=void 0===h?Ao:h,g=(0,i.Z)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return e.createElement(m,(0,o.Z)({in:d,timeout:p},g),e.createElement("div",{className:(0,a.Z)(s.root,c,u&&s.invisible),"aria-hidden":!0,ref:n},r))}),Io=(0,N.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ro),Oo=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.component,l=void 0===c?"div":c,u=t.square,d=void 0!==u&&u,p=t.elevation,h=void 0===p?1:p,m=t.variant,g=void 0===m?"elevation":m,f=(0,i.Z)(t,["classes","className","component","square","elevation","variant"]);return e.createElement(l,(0,o.Z)({className:(0,a.Z)(r.root,s,"outlined"===g?r.outlined:r["elevation".concat(h)],!d&&r.rounded),ref:n},f))}),No=(0,N.Z)(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(Oo),Mo={enter:S.x9.enteringScreen,exit:S.x9.leavingScreen},Do=e.forwardRef(function(t,n){var r=t.BackdropProps,s=t.children,c=t.classes,l=t.className,u=t.disableBackdropClick,d=void 0!==u&&u,p=t.disableEscapeKeyDown,h=void 0!==p&&p,m=t.fullScreen,g=void 0!==m&&m,f=t.fullWidth,_=void 0!==f&&f,b=t.maxWidth,v=void 0===b?"sm":b,y=t.onBackdropClick,E=t.onClose,C=t.onEnter,S=t.onEntered,w=t.onEntering,k=t.onEscapeKeyDown,x=t.onExit,T=t.onExited,A=t.onExiting,R=t.open,I=t.PaperComponent,O=void 0===I?No:I,N=t.PaperProps,M=void 0===N?{}:N,D=t.scroll,L=void 0===D?"paper":D,P=t.TransitionComponent,j=void 0===P?Ao:P,U=t.transitionDuration,F=void 0===U?Mo:U,B=t.TransitionProps,G=t["aria-describedby"],V=t["aria-labelledby"],H=(0,i.Z)(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),z=e.useRef();return e.createElement(wo,(0,o.Z)({className:(0,a.Z)(c.root,l),BackdropComponent:Io,BackdropProps:(0,o.Z)({transitionDuration:F},r),closeAfterTransition:!0},d?{disableBackdropClick:d}:{},{disableEscapeKeyDown:h,onEscapeKeyDown:k,onClose:E,open:R,ref:n},H),e.createElement(j,(0,o.Z)({appear:!0,in:R,timeout:F,onEnter:C,onEntering:w,onEntered:S,onExit:x,onExiting:A,onExited:T,role:"none presentation"},B),e.createElement("div",{className:(0,a.Z)(c.container,c["scroll".concat((0,wn.Z)(L))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===z.current&&(z.current=null,y&&y(e),!d&&E&&E(e,"backdropClick"))},onMouseDown:function(e){z.current=e.target}},e.createElement(O,(0,o.Z)({elevation:24,role:"dialog","aria-describedby":G,"aria-labelledby":V},M,{className:(0,a.Z)(c.paper,c["paperScroll".concat((0,wn.Z)(L))],c["paperWidth".concat((0,wn.Z)(String(v)))],M.className,g&&c.paperFullScreen,_&&c.paperFullWidth)}),s))))}),Lo=(0,N.Z)(function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,Sn.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,Sn.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,Sn.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,Sn.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,Sn.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},{name:"MuiDialog"})(Do),Po={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},jo=e.forwardRef(function(t,n){var r=t.align,s=void 0===r?"inherit":r,c=t.classes,l=t.className,u=t.color,d=void 0===u?"initial":u,p=t.component,h=t.display,m=void 0===h?"initial":h,g=t.gutterBottom,f=void 0!==g&&g,_=t.noWrap,b=void 0!==_&&_,v=t.paragraph,y=void 0!==v&&v,E=t.variant,C=void 0===E?"body1":E,S=t.variantMapping,w=void 0===S?Po:S,k=(0,i.Z)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),x=p||(y?"p":w[C]||Po[C])||"span";return e.createElement(x,(0,o.Z)({className:(0,a.Z)(c.root,l,"inherit"!==C&&c[C],"initial"!==d&&c["color".concat((0,wn.Z)(d))],b&&c.noWrap,f&&c.gutterBottom,y&&c.paragraph,"inherit"!==s&&c["align".concat((0,wn.Z)(s))],"initial"!==m&&c["display".concat((0,wn.Z)(m))]),ref:n},k))}),Uo=(0,N.Z)(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(jo);function Fo(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Fo(e.value)&&""!==e.value||t&&Fo(e.defaultValue)&&""!==e.defaultValue)}var Go=n(3711),Vo=e.createContext(),Ho=Vo,zo=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.color,u=void 0===l?"primary":l,d=t.component,p=void 0===d?"div":d,h=t.disabled,m=void 0!==h&&h,g=t.error,f=void 0!==g&&g,_=t.fullWidth,b=void 0!==_&&_,v=t.focused,y=t.hiddenLabel,E=void 0!==y&&y,C=t.margin,S=void 0===C?"none":C,w=t.required,k=void 0!==w&&w,x=t.size,T=t.variant,A=void 0===T?"standard":T,R=(0,i.Z)(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=e.useState(function(){var t=!1;return r&&e.Children.forEach(r,function(e){if((0,Go.Z)(e,["Input","Select"])){var n=(0,Go.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}}),t}),O=I[0],N=I[1],M=e.useState(function(){var t=!1;return r&&e.Children.forEach(r,function(e){(0,Go.Z)(e,["Input","Select"])&&Bo(e.props,!0)&&(t=!0)}),t}),D=M[0],L=M[1],P=e.useState(!1),j=P[0],U=P[1],F=void 0!==v?v:j;m&&F&&U(!1);var B=e.useCallback(function(){L(!0)},[]),G={adornedStart:O,setAdornedStart:N,color:u,disabled:m,error:f,filled:D,focused:F,fullWidth:b,hiddenLabel:E,margin:("small"===x?"dense":void 0)||S,onBlur:function(){U(!1)},onEmpty:e.useCallback(function(){L(!1)},[]),onFilled:B,onFocus:function(){U(!0)},registerEffect:void 0,required:k,variant:A};return e.createElement(Ho.Provider,{value:G},e.createElement(p,(0,o.Z)({className:(0,a.Z)(s.root,c,"none"!==S&&s["margin".concat((0,wn.Z)(S))],b&&s.fullWidth),ref:n},R),r))}),Yo=(0,N.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(zo),qo=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.row,l=void 0!==c&&c,u=(0,i.Z)(t,["classes","className","row"]);return e.createElement("div",(0,o.Z)({className:(0,a.Z)(r.root,s,l&&r.row),ref:n},u))}),Ko=(0,N.Z)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(qo),Wo=e.createContext(),Jo=e.forwardRef(function(t,n){var r=t.actions,a=t.children,s=t.name,c=t.value,l=t.onChange,u=(0,i.Z)(t,["actions","children","name","value","onChange"]),d=e.useRef(null),p=(0,pa.Z)({controlled:c,default:t.defaultValue,name:"RadioGroup"}),h=(0,P.Z)(p,2),m=h[0],g=h[1];e.useImperativeHandle(r,function(){return{focus:function(){var e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}}},[]);var f=(0,v.Z)(n,d),_=(0,da.Z)(s);return e.createElement(Wo.Provider,{value:{name:_,onChange:function(e){g(e.target.value),l&&l(e,e.target.value)},value:m}},e.createElement(Ko,(0,o.Z)({role:"radiogroup",ref:f},u),a))}),Zo=Jo;function $o(){return e.useContext(Ho)}var Qo=e.forwardRef(function(t,n){t.checked;var r=t.classes,s=t.className,c=t.control,l=t.disabled,u=(t.inputRef,t.label),d=t.labelPlacement,p=void 0===d?"end":d,h=(t.name,t.onChange,t.value,(0,i.Z)(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),m=$o(),g=l;void 0===g&&void 0!==c.props.disabled&&(g=c.props.disabled),void 0===g&&m&&(g=m.disabled);var f={disabled:g};return["checked","name","onChange","value","inputRef"].forEach(function(e){void 0===c.props[e]&&void 0!==t[e]&&(f[e]=t[e])}),e.createElement("label",(0,o.Z)({className:(0,a.Z)(r.root,s,"end"!==p&&r["labelPlacement".concat((0,wn.Z)(p))],g&&r.disabled),ref:n},h),e.cloneElement(c,f),e.createElement(Uo,{component:"span",className:(0,a.Z)(r.label,g&&r.disabled)},u))}),Xo=(0,N.Z)(function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}},{name:"MuiFormControlLabel"})(Qo),ei=e.forwardRef(function(t,n){var r=t.autoFocus,s=t.checked,c=t.checkedIcon,l=t.classes,u=t.className,d=t.defaultChecked,p=t.disabled,h=t.icon,m=t.id,g=t.inputProps,f=t.inputRef,_=t.name,b=t.onBlur,v=t.onChange,y=t.onFocus,E=t.readOnly,C=t.required,S=t.tabIndex,w=t.type,k=t.value,x=(0,i.Z)(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),T=(0,pa.Z)({controlled:s,default:Boolean(d),name:"SwitchBase",state:"checked"}),A=(0,P.Z)(T,2),R=A[0],I=A[1],O=$o(),N=p;O&&void 0===N&&(N=O.disabled);var M="checkbox"===w||"radio"===w;return e.createElement(zn,(0,o.Z)({component:"span",className:(0,a.Z)(l.root,u,R&&l.checked,N&&l.disabled),disabled:N,tabIndex:null,role:void 0,onFocus:function(e){y&&y(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){b&&b(e),O&&O.onBlur&&O.onBlur(e)},ref:n},x),e.createElement("input",(0,o.Z)({autoFocus:r,checked:s,defaultChecked:d,className:l.input,disabled:N,id:M&&m,name:_,onChange:function(e){var t=e.target.checked;I(t),v&&v(e,t)},readOnly:E,ref:f,required:C,tabIndex:S,type:w,value:k},g)),R?c:h)}),ti=(0,N.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(ei),ni=n(3786),ri=(0,ni.Z)(e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ai=(0,ni.Z)(e.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),oi=(0,N.Z)(function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}},{name:"PrivateRadioButtonIcon"})(function(t){var n=t.checked,r=t.classes,o=t.fontSize;return e.createElement("div",{className:(0,a.Z)(r.root,n&&r.checked)},e.createElement(ri,{fontSize:o}),e.createElement(ai,{fontSize:o,className:r.layer}))}),ii=e.createElement(oi,{checked:!0}),si=e.createElement(oi,null),ci=e.forwardRef(function(t,n){var r=t.checked,s=t.classes,c=t.color,l=void 0===c?"secondary":c,u=t.name,d=t.onChange,p=t.size,h=void 0===p?"medium":p,m=(0,i.Z)(t,["checked","classes","color","name","onChange","size"]),g=e.useContext(Wo),f=r,_=(0,oa.Z)(d,g&&g.onChange),b=u;return g&&(void 0===f&&(f=g.value===t.value),void 0===b&&(b=g.name)),e.createElement(ti,(0,o.Z)({color:l,type:"radio",icon:e.cloneElement(si,{fontSize:"small"===h?"small":"medium"}),checkedIcon:e.cloneElement(ii,{fontSize:"small"===h?"small":"medium"}),classes:{root:(0,a.Z)(s.root,s["color".concat((0,wn.Z)(l))]),checked:s.checked,disabled:s.disabled},name:b,checked:f,onChange:_,ref:n},m))}),li=(0,N.Z)(function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}},{name:"MuiRadio"})(ci),ui=(0,N.Z)(function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:(0,o.Z)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}},{name:"PrivateValueLabel"})(function(t){var n=t.children,r=t.classes,o=t.className,i=t.open,s=t.value,c=t.valueLabelDisplay;return"off"===c?n:e.cloneElement(n,{className:(0,a.Z)(n.props.className,(i||"on"===c)&&r.open,r.thumb)},e.createElement("span",{className:(0,a.Z)(r.offset,o)},e.createElement("span",{className:r.circle},e.createElement("span",{className:r.label},s))))});function di(e,t){return e-t}function pi(e,t,n){return Math.min(Math.max(t,e),n)}function hi(e,t){return e.reduce(function(e,n,r){var a=Math.abs(t-n);return null===e||a<e.distance||a===e.distance?{distance:a,index:r}:e},null).index}function mi(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function gi(e,t,n){return 100*(e-t)/(n-t)}function fi(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function _i(e){var t=e.values,n=e.source,r=e.newValue,a=e.index;if(t[a]===r)return n;var o=t.slice();return o[a]=r,o}function bi(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var vi={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},yi=function(e){return e},Ei=e.forwardRef(function(t,n){var r=t["aria-label"],s=t["aria-labelledby"],c=t["aria-valuetext"],l=t.classes,u=t.className,d=t.color,p=void 0===d?"primary":d,h=t.component,m=void 0===h?"span":h,g=t.defaultValue,f=t.disabled,_=void 0!==f&&f,b=t.getAriaLabel,y=t.getAriaValueText,E=t.marks,S=void 0!==E&&E,w=t.max,k=void 0===w?100:w,x=t.min,T=void 0===x?0:x,A=t.name,R=t.onChange,I=t.onChangeCommitted,O=t.onMouseDown,N=t.orientation,M=void 0===N?"horizontal":N,D=t.scale,L=void 0===D?yi:D,j=t.step,U=void 0===j?1:j,F=t.ThumbComponent,V=void 0===F?"span":F,H=t.track,z=void 0===H?"normal":H,Y=t.value,q=t.ValueLabelComponent,K=void 0===q?ui:q,W=t.valueLabelDisplay,J=void 0===W?"off":W,Z=t.valueLabelFormat,$=void 0===Z?yi:Z,Q=(0,i.Z)(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),X=C(),ee=e.useRef(),te=e.useState(-1),ne=te[0],re=te[1],ae=e.useState(-1),oe=ae[0],ie=ae[1],se=(0,pa.Z)({controlled:Y,default:g,name:"Slider"}),ce=(0,P.Z)(se,2),le=ce[0],ue=ce[1],de=Array.isArray(le),pe=de?le.slice().sort(di):[le];pe=pe.map(function(e){return pi(e,T,k)});var he=!0===S&&null!==U?(0,An.Z)(Array(Math.floor((k-T)/U)+1)).map(function(e,t){return{value:T+U*t}}):S||[],me=(0,Tn.Z)(),ge=me.isFocusVisible,fe=me.onBlurVisible,_e=me.ref,be=e.useState(-1),ve=be[0],ye=be[1],Ee=e.useRef(),Ce=(0,v.Z)(_e,Ee),Se=(0,v.Z)(n,Ce),we=(0,G.Z)(function(e){var t=Number(e.currentTarget.getAttribute("data-index"));ge(e)&&ye(t),ie(t)}),ke=(0,G.Z)(function(){-1!==ve&&(ye(-1),fe()),ie(-1)}),xe=(0,G.Z)(function(e){var t=Number(e.currentTarget.getAttribute("data-index"));ie(t)}),Te=(0,G.Z)(function(){ie(-1)}),Ae="rtl"===X.direction,Re=(0,G.Z)(function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=pe[n],a=(k-T)/10,o=he.map(function(e){return e.value}),i=o.indexOf(r),s=Ae?"ArrowLeft":"ArrowRight",c=Ae?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=T;break;case"End":t=k;break;case"PageUp":U&&(t=r+a);break;case"PageDown":U&&(t=r-a);break;case s:case"ArrowUp":t=U?r+U:o[i+1]||o[o.length-1];break;case c:case"ArrowDown":t=U?r-U:o[i-1]||o[0];break;default:return}if(e.preventDefault(),U&&(t=fi(t,U,T)),t=pi(t,T,k),de){var l=t;t=_i({values:pe,source:le,newValue:t,index:n}).sort(di),bi({sliderRef:Ee,activeIndex:t.indexOf(l)})}ue(t),ye(n),R&&R(e,t),I&&I(e,t)}),Ie=e.useRef(),Oe=M;Ae&&"vertical"!==M&&(Oe+="-reverse");var Ne=function(e){var t,n,r=e.finger,a=e.move,o=void 0!==a&&a,i=e.values,s=e.source,c=Ee.current.getBoundingClientRect(),l=c.width,u=c.height,d=c.bottom,p=c.left;if(t=0===Oe.indexOf("vertical")?(d-r.y)/u:(r.x-p)/l,-1!==Oe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,T,k),U)n=fi(n,U,T);else{var h=he.map(function(e){return e.value});n=h[hi(h,n)]}n=pi(n,T,k);var m=0;if(de){var g=n;m=(n=_i({values:i,source:s,newValue:n,index:m=o?Ie.current:hi(i,n)}).sort(di)).indexOf(g),Ie.current=m}return{newValue:n,activeIndex:m}},Me=(0,G.Z)(function(e){var t=mi(e,ee);if(t){var n=Ne({finger:t,move:!0,values:pe,source:le}),r=n.newValue,a=n.activeIndex;bi({sliderRef:Ee,activeIndex:a,setActive:re}),ue(r),R&&R(e,r)}}),De=(0,G.Z)(function(e){var t=mi(e,ee);if(t){var n=Ne({finger:t,values:pe,source:le}).newValue;re(-1),"touchend"===e.type&&ie(-1),I&&I(e,n),ee.current=void 0;var r=(0,B.Z)(Ee.current);r.removeEventListener("mousemove",Me),r.removeEventListener("mouseup",De),r.removeEventListener("touchmove",Me),r.removeEventListener("touchend",De)}}),Le=(0,G.Z)(function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(ee.current=t.identifier);var n=mi(e,ee),r=Ne({finger:n,values:pe,source:le}),a=r.newValue,o=r.activeIndex;bi({sliderRef:Ee,activeIndex:o,setActive:re}),ue(a),R&&R(e,a);var i=(0,B.Z)(Ee.current);i.addEventListener("touchmove",Me),i.addEventListener("touchend",De)});e.useEffect(function(){var e=Ee.current;e.addEventListener("touchstart",Le);var t=(0,B.Z)(e);return function(){e.removeEventListener("touchstart",Le),t.removeEventListener("mousemove",Me),t.removeEventListener("mouseup",De),t.removeEventListener("touchmove",Me),t.removeEventListener("touchend",De)}},[De,Me,Le]);var Pe=(0,G.Z)(function(e){O&&O(e),e.preventDefault();var t=mi(e,ee),n=Ne({finger:t,values:pe,source:le}),r=n.newValue,a=n.activeIndex;bi({sliderRef:Ee,activeIndex:a,setActive:re}),ue(r),R&&R(e,r);var o=(0,B.Z)(Ee.current);o.addEventListener("mousemove",Me),o.addEventListener("mouseup",De)}),je=gi(de?pe[0]:T,T,k),Ue=gi(pe[pe.length-1],T,k)-je,Fe=(0,o.Z)({},vi[Oe].offset(je),vi[Oe].leap(Ue));return e.createElement(m,(0,o.Z)({ref:Se,className:(0,a.Z)(l.root,l["color".concat((0,wn.Z)(p))],u,_&&l.disabled,he.length>0&&he.some(function(e){return e.label})&&l.marked,!1===z&&l.trackFalse,"vertical"===M&&l.vertical,"inverted"===z&&l.trackInverted),onMouseDown:Pe},Q),e.createElement("span",{className:l.rail}),e.createElement("span",{className:l.track,style:Fe}),e.createElement("input",{value:pe.join(","),name:A,type:"hidden"}),he.map(function(t,n){var r,o=gi(t.value,T,k),i=vi[Oe].offset(o);return r=!1===z?-1!==pe.indexOf(t.value):"normal"===z&&(de?t.value>=pe[0]&&t.value<=pe[pe.length-1]:t.value<=pe[0])||"inverted"===z&&(de?t.value<=pe[0]||t.value>=pe[pe.length-1]:t.value>=pe[0]),e.createElement(e.Fragment,{key:t.value},e.createElement("span",{style:i,"data-index":n,className:(0,a.Z)(l.mark,r&&l.markActive)}),null!=t.label?e.createElement("span",{"aria-hidden":!0,"data-index":n,style:i,className:(0,a.Z)(l.markLabel,r&&l.markLabelActive)},t.label):null)}),pe.map(function(t,n){var o=gi(t,T,k),i=vi[Oe].offset(o);return e.createElement(K,{key:n,valueLabelFormat:$,valueLabelDisplay:J,className:l.valueLabel,value:"function"==typeof $?$(L(t),n):$,index:n,open:oe===n||ne===n||"on"===J,disabled:_},e.createElement(V,{className:(0,a.Z)(l.thumb,l["thumbColor".concat((0,wn.Z)(p))],ne===n&&l.active,_&&l.disabled,ve===n&&l.focusVisible),tabIndex:_?null:0,role:"slider",style:i,"data-index":n,"aria-label":b?b(n):r,"aria-labelledby":s,"aria-orientation":M,"aria-valuemax":L(k),"aria-valuemin":L(T),"aria-valuenow":L(t),"aria-valuetext":y?y(L(t),n):c,onKeyDown:Re,onFocus:we,onBlur:ke,onMouseOver:xe,onMouseLeave:Te}))}))}),Ci=(0,N.Z)(function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?(0,M.$n)(e.palette.primary.main,.62):(0,M._j)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,M.Fq)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,M.Fq)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,M.Fq)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,M.Fq)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:(0,o.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}},{name:"MuiSlider"})(Ei),Si=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.dividers,l=void 0!==c&&c,u=(0,i.Z)(t,["classes","className","dividers"]);return e.createElement("div",(0,o.Z)({className:(0,a.Z)(r.root,s,l&&r.dividers),ref:n},u))}),wi=(0,N.Z)(function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},{name:"MuiDialogContent"})(Si),ki=e.forwardRef(function(t,n){return e.createElement(Uo,(0,o.Z)({component:"p",variant:"body1",color:"textSecondary",ref:n},t))}),xi=(0,N.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(ki);function Ti(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}var Ai=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=(t.color,t.component),u=void 0===l?"label":l,d=(t.disabled,t.error,t.filled,t.focused,t.required,(0,i.Z)(t,["children","classes","className","color","component","disabled","error","filled","focused","required"])),p=Ti({props:t,muiFormControl:$o(),states:["color","required","focused","disabled","error","filled"]});return e.createElement(u,(0,o.Z)({className:(0,a.Z)(s.root,s["color".concat((0,wn.Z)(p.color||"primary"))],c,p.disabled&&s.disabled,p.error&&s.error,p.filled&&s.filled,p.focused&&s.focused,p.required&&s.required),ref:n},d),r,p.required&&e.createElement("span",{"aria-hidden":!0,className:(0,a.Z)(s.asterisk,p.error&&s.error)}," ","*"))}),Ri=(0,N.Z)(function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}},{name:"MuiFormLabel"})(Ai),Ii=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.disableAnimation,l=void 0!==c&&c,u=(t.margin,t.shrink),d=(t.variant,(0,i.Z)(t,["classes","className","disableAnimation","margin","shrink","variant"])),p=$o(),h=u;void 0===h&&p&&(h=p.filled||p.focused||p.adornedStart);var m=Ti({props:t,muiFormControl:p,states:["margin","variant"]});return e.createElement(Ri,(0,o.Z)({"data-shrink":h,className:(0,a.Z)(r.root,s,p&&r.formControl,!l&&r.animated,h&&r.shrink,"dense"===m.margin&&r.marginDense,{filled:r.filled,outlined:r.outlined}[m.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},d))}),Oi=(0,N.Z)(function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},{name:"MuiInputLabel"})(Ii),Ni=n(5835),Mi=n(1002),Di=n(288);function Li(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Pi(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ji(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function Ui(e){return"function"==typeof e?e():e}n(9864);var Fi=e.forwardRef(function(n,r){var c=n.action,l=n.anchorEl,u=n.anchorOrigin,d=void 0===u?{vertical:"top",horizontal:"left"}:u,p=n.anchorPosition,h=n.anchorReference,m=void 0===h?"anchorEl":h,g=n.children,f=n.classes,_=n.className,b=n.container,v=n.elevation,y=void 0===v?8:v,E=n.getContentAnchorEl,C=n.marginThreshold,S=void 0===C?16:C,w=n.onEnter,k=n.onEntered,x=n.onEntering,T=n.onExit,A=n.onExited,R=n.onExiting,I=n.open,O=n.PaperProps,N=void 0===O?{}:O,M=n.transformOrigin,D=void 0===M?{vertical:"top",horizontal:"left"}:M,L=n.TransitionComponent,P=void 0===L?er:L,j=n.transitionDuration,U=void 0===j?"auto":j,F=n.TransitionProps,G=void 0===F?{}:F,V=(0,i.Z)(n,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),H=e.useRef(),z=e.useCallback(function(e){if("anchorPosition"===m)return p;var t=Ui(l),n=(t&&1===t.nodeType?t:(0,B.Z)(H.current).body).getBoundingClientRect(),r=0===e?d.vertical:"center";return{top:n.top+Li(n,r),left:n.left+Pi(n,d.horizontal)}},[l,d.horizontal,d.vertical,p,m]),Y=e.useCallback(function(e){var t=0;if(E&&"anchorEl"===m){var n=E(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t},[d.vertical,m,E]),q=e.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Li(e,D.vertical)+t,horizontal:Pi(e,D.horizontal)}},[D.horizontal,D.vertical]),K=e.useCallback(function(e){var t=Y(e),n={width:e.offsetWidth,height:e.offsetHeight},r=q(n,t);if("none"===m)return{top:null,left:null,transformOrigin:ji(r)};var a=z(t),o=a.top-r.vertical,i=a.left-r.horizontal,s=o+n.height,c=i+n.width,u=(0,mo.Z)(Ui(l)),d=u.innerHeight-S,p=u.innerWidth-S;if(o<S){var h=o-S;o-=h,r.vertical+=h}else if(s>d){var g=s-d;o-=g,r.vertical+=g}if(i<S){var f=i-S;i-=f,r.horizontal+=f}else if(c>p){var _=c-p;i-=_,r.horizontal+=_}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:ji(r)}},[l,m,z,Y,q,S]),W=e.useCallback(function(){var e=H.current;if(e){var t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[K]),J=e.useCallback(function(e){H.current=t.findDOMNode(e)},[]);e.useEffect(function(){I&&W()}),e.useImperativeHandle(c,function(){return I?{updatePosition:function(){W()}}:null},[I,W]),e.useEffect(function(){if(I){var e=(0,s.Z)(function(){W()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[I,W]);var Z=U;"auto"!==U||P.muiSupportAuto||(Z=void 0);var $=b||(l?(0,B.Z)(Ui(l)).body:void 0);return e.createElement(wo,(0,o.Z)({container:$,open:I,ref:r,BackdropProps:{invisible:!0},className:(0,a.Z)(f.root,_)},V),e.createElement(P,(0,o.Z)({appear:!0,in:I,onEnter:w,onEntered:k,onExit:T,onExited:A,onExiting:R,timeout:Z},G,{onEntering:(0,oa.Z)(function(e,t){x&&x(e,t),W()},G.onEntering)}),e.createElement(No,(0,o.Z)({elevation:y,ref:J},N,{className:(0,a.Z)(f.paper,N.className)}),g)))}),Bi=(0,N.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Fi),Gi=e.createContext({}),Vi=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.component,u=void 0===l?"ul":l,d=t.dense,p=void 0!==d&&d,h=t.disablePadding,m=void 0!==h&&h,g=t.subheader,f=(0,i.Z)(t,["children","classes","className","component","dense","disablePadding","subheader"]),_=e.useMemo(function(){return{dense:p}},[p]);return e.createElement(Gi.Provider,{value:_},e.createElement(u,(0,o.Z)({className:(0,a.Z)(s.root,c,p&&s.dense,!m&&s.padding,g&&s.subheader),ref:n},f),g,r))}),Hi=(0,N.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Vi);function zi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Yi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qi(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ki(e,t,n,r,a,o){for(var i=!1,s=a(e,t,!!t&&n);s;){if(s===e.firstChild){if(i)return;i=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&qi(s,o)&&!c)return void s.focus();s=a(e,s,n)}}var Wi="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Ji=e.forwardRef(function(n,r){var a=n.actions,s=n.autoFocus,c=void 0!==s&&s,l=n.autoFocusItem,u=void 0!==l&&l,d=n.children,p=n.className,h=n.disabledItemsFocusable,m=void 0!==h&&h,g=n.disableListWrap,f=void 0!==g&&g,_=n.onKeyDown,b=n.variant,y=void 0===b?"selectedMenu":b,E=(0,i.Z)(n,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),C=e.useRef(null),S=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wi(function(){c&&C.current.focus()},[c]),e.useImperativeHandle(a,function(){return{adjustStyleForScrollbar:function(e,t){var n=!C.current.style.width;if(e.clientHeight<C.current.clientHeight&&n){var r="".concat(ho(),"px");C.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,C.current.style.width="calc(100% + ".concat(r,")")}return C.current}}},[]);var w=e.useCallback(function(e){C.current=t.findDOMNode(e)},[]),k=(0,v.Z)(w,r),x=-1;e.Children.forEach(d,function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===x)&&(x=n))});var T=e.Children.map(d,function(t,n){if(n===x){var r={};return u&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===y&&(r.tabIndex=0),e.cloneElement(t,r)}return t});return e.createElement(Hi,(0,o.Z)({role:"menu",ref:k,className:p,onKeyDown:function(e){var t=C.current,n=e.key,r=(0,B.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ki(t,r,f,m,zi);else if("ArrowUp"===n)e.preventDefault(),Ki(t,r,f,m,Yi);else if("Home"===n)e.preventDefault(),Ki(t,null,f,m,zi);else if("End"===n)e.preventDefault(),Ki(t,null,f,m,Yi);else if(1===n.length){var a=S.current,o=n.toLowerCase(),i=performance.now();a.keys.length>0&&(i-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&o!==a.keys[0]&&(a.repeating=!1)),a.lastTime=i,a.keys.push(o);var s=r&&!a.repeating&&qi(r,a);a.previousKeyMatched&&(s||Ki(t,r,!1,m,zi,a))?e.preventDefault():a.previousKeyMatched=!1}_&&_(e)},tabIndex:c?0:-1},E),T)}),Zi=Ji,$i={vertical:"top",horizontal:"right"},Qi={vertical:"top",horizontal:"left"},Xi=e.forwardRef(function(n,r){var s=n.autoFocus,c=void 0===s||s,l=n.children,u=n.classes,d=n.disableAutoFocusItem,p=void 0!==d&&d,h=n.MenuListProps,m=void 0===h?{}:h,g=n.onClose,f=n.onEntering,_=n.open,b=n.PaperProps,v=void 0===b?{}:b,y=n.PopoverClasses,E=n.transitionDuration,S=void 0===E?"auto":E,w=n.TransitionProps,k=(w=void 0===w?{}:w).onEntering,x=(0,i.Z)(w,["onEntering"]),T=n.variant,A=void 0===T?"selectedMenu":T,R=(0,i.Z)(n,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),I=C(),O=c&&!p&&_,N=e.useRef(null),M=e.useRef(null),D=-1;e.Children.map(l,function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==A&&t.props.selected||-1===D)&&(D=n))});var L=e.Children.map(l,function(n,r){return r===D?e.cloneElement(n,{ref:function(e){M.current=t.findDOMNode(e),(0,na.Z)(n.ref,e)}}):n});return e.createElement(Bi,(0,o.Z)({getContentAnchorEl:function(){return M.current},classes:y,onClose:g,TransitionProps:(0,o.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,I),f&&f(e,t),k&&k(e,t)}},x),anchorOrigin:"rtl"===I.direction?$i:Qi,transformOrigin:"rtl"===I.direction?$i:Qi,PaperProps:(0,o.Z)({},v,{classes:(0,o.Z)({},v.classes,{root:u.paper})}),open:_,ref:r,transitionDuration:S},R),e.createElement(Zi,(0,o.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:N,autoFocus:c&&(-1===D||p),autoFocusItem:O,variant:A},m,{className:(0,a.Z)(u.list,m.className)}),L))}),es=(0,N.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Xi);function ts(e,t){return"object"===(0,Mi.Z)(t)&&null!==t?e===t:String(e)===String(t)}var ns=e.forwardRef(function(t,n){var r=t["aria-label"],s=t.autoFocus,c=t.autoWidth,l=t.children,u=t.classes,d=t.className,p=t.defaultValue,h=t.disabled,m=t.displayEmpty,g=t.IconComponent,f=t.inputRef,_=t.labelId,b=t.MenuProps,y=void 0===b?{}:b,E=t.multiple,C=t.name,S=t.onBlur,w=t.onChange,k=t.onClose,x=t.onFocus,T=t.onOpen,A=t.open,R=t.readOnly,I=t.renderValue,O=t.SelectDisplayProps,N=void 0===O?{}:O,M=t.tabIndex,D=(t.type,t.value),L=t.variant,j=void 0===L?"standard":L,U=(0,i.Z)(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),F=(0,pa.Z)({controlled:D,default:p,name:"Select"}),G=(0,P.Z)(F,2),V=G[0],H=G[1],z=e.useRef(null),Y=e.useState(null),q=Y[0],K=Y[1],W=e.useRef(null!=A).current,J=e.useState(),Z=J[0],$=J[1],Q=e.useState(!1),X=Q[0],ee=Q[1],te=(0,v.Z)(n,f);e.useImperativeHandle(te,function(){return{focus:function(){q.focus()},node:z.current,value:V}},[q,V]),e.useEffect(function(){s&&q&&q.focus()},[s,q]),e.useEffect(function(){if(q){var e=(0,B.Z)(q).getElementById(_);if(e){var t=function(){getSelection().isCollapsed&&q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[_,q]);var ne,re,ae=function(e,t){e?T&&T(t):k&&k(t),W||($(c?null:q.clientWidth),ee(e))},oe=e.Children.toArray(l),ie=function(e){return function(t){var n;if(E||ae(!1,t),E){n=Array.isArray(V)?V.slice():[];var r=V.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),V!==n&&(H(n),w&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:C}}),w(t,e)))}},se=null!==q&&(W?A:X);delete U["aria-invalid"];var ce=[],le=!1;(Bo({value:V})||m)&&(I?ne=I(V):le=!0);var ue=oe.map(function(t){if(!e.isValidElement(t))return null;var n;if(E){if(!Array.isArray(V))throw new Error((0,Di.Z)(2));(n=V.some(function(e){return ts(e,t.props.value)}))&&le&&ce.push(t.props.children)}else(n=ts(V,t.props.value))&&le&&(re=t.props.children);return e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:ie(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})});le&&(ne=E?ce.join(", "):re);var de,pe=Z;!c&&W&&q&&(pe=q.clientWidth),de=void 0!==M?M:h?null:0;var he=N.id||(C?"mui-component-select-".concat(C):void 0);return e.createElement(e.Fragment,null,e.createElement("div",(0,o.Z)({className:(0,a.Z)(u.root,u.select,u.selectMenu,u[j],d,h&&u.disabled),ref:K,tabIndex:de,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":se?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[_,he].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){R||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ae(!0,e))},onMouseDown:h||R?null:function(e){0===e.button&&(e.preventDefault(),q.focus(),ae(!0,e))},onBlur:function(e){!se&&S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:V,name:C}}),S(e))},onFocus:x},N,{id:he}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ne)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ne),e.createElement("input",(0,o.Z)({value:Array.isArray(V)?V.join(","):V,name:C,ref:z,"aria-hidden":!0,onChange:function(e){var t=oe.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=oe[t];H(n.props.value),w&&w(e,n)}},tabIndex:-1,className:u.nativeInput,autoFocus:s},U)),e.createElement(g,{className:(0,a.Z)(u.icon,u["icon".concat((0,wn.Z)(j))],se&&u.iconOpen,h&&u.disabled)}),e.createElement(es,(0,o.Z)({id:"menu-".concat(C||""),anchorEl:q,open:se,onClose:function(e){ae(!1,e)}},y,{MenuListProps:(0,o.Z)({"aria-labelledby":_,role:"listbox",disableListWrap:!0},y.MenuListProps),PaperProps:(0,o.Z)({},y.PaperProps,{style:(0,o.Z)({minWidth:pe},null!=y.PaperProps?y.PaperProps.style:null)})}),ue))}),rs=ns,as=(0,ni.Z)(e.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function os(e,t){return parseInt(e[t],10)||0}var is="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ss={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},cs=e.forwardRef(function(t,n){var r=t.onChange,a=t.rows,c=t.rowsMax,l=t.rowsMin,u=t.maxRows,d=t.minRows,p=void 0===d?1:d,h=t.style,m=t.value,g=(0,i.Z)(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),f=u||c,_=a||l||p,b=e.useRef(null!=m).current,y=e.useRef(null),E=(0,v.Z)(n,y),C=e.useRef(null),S=e.useRef(0),w=e.useState({}),k=w[0],x=w[1],T=e.useCallback(function(){var e=y.current,n=window.getComputedStyle(e),r=C.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var a=n["box-sizing"],o=os(n,"padding-bottom")+os(n,"padding-top"),i=os(n,"border-bottom-width")+os(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var c=r.scrollHeight-o,l=s;_&&(l=Math.max(Number(_)*c,l)),f&&(l=Math.min(Number(f)*c,l));var u=(l=Math.max(l,c))+("border-box"===a?o+i:0),d=Math.abs(l-s)<=1;x(function(e){return S.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(S.current+=1,{overflow:d,outerHeightStyle:u}):e})},[f,_,t.placeholder]);return e.useEffect(function(){var e=(0,s.Z)(function(){S.current=0,T()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[T]),is(function(){T()}),e.useEffect(function(){S.current=0},[m]),e.createElement(e.Fragment,null,e.createElement("textarea",(0,o.Z)({value:m,onChange:function(e){S.current=0,b||T(),r&&r(e)},ref:E,rows:_,style:(0,o.Z)({height:k.outerHeightStyle,overflow:k.overflow?"hidden":null},h)},g)),e.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:C,tabIndex:-1,style:(0,o.Z)({},ss,h)}))}),ls="undefined"==typeof window?e.useEffect:e.useLayoutEffect,us=e.forwardRef(function(t,n){var r=t["aria-describedby"],s=t.autoComplete,c=t.autoFocus,l=t.classes,u=t.className,d=(t.color,t.defaultValue),p=t.disabled,h=t.endAdornment,m=(t.error,t.fullWidth),g=void 0!==m&&m,f=t.id,_=t.inputComponent,b=void 0===_?"input":_,y=t.inputProps,E=void 0===y?{}:y,C=t.inputRef,S=(t.margin,t.multiline),w=void 0!==S&&S,k=t.name,x=t.onBlur,T=t.onChange,A=t.onClick,R=t.onFocus,I=t.onKeyDown,O=t.onKeyUp,N=t.placeholder,M=t.readOnly,D=t.renderSuffix,L=t.rows,P=t.rowsMax,j=t.rowsMin,U=t.maxRows,F=t.minRows,B=t.startAdornment,G=t.type,V=void 0===G?"text":G,H=t.value,z=(0,i.Z)(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Y=null!=E.value?E.value:H,q=e.useRef(null!=Y).current,K=e.useRef(),W=e.useCallback(function(e){},[]),J=(0,v.Z)(E.ref,W),Z=(0,v.Z)(C,J),$=(0,v.Z)(K,Z),Q=e.useState(!1),X=Q[0],ee=Q[1],te=e.useContext(Vo),ne=Ti({props:t,muiFormControl:te,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ne.focused=te?te.focused:X,e.useEffect(function(){!te&&p&&X&&(ee(!1),x&&x())},[te,p,X,x]);var re=te&&te.onFilled,ae=te&&te.onEmpty,oe=e.useCallback(function(e){Bo(e)?re&&re():ae&&ae()},[re,ae]);ls(function(){q&&oe({value:Y})},[Y,oe,q]),e.useEffect(function(){oe(K.current)},[]);var ie=b,se=(0,o.Z)({},E,{ref:$});return"string"!=typeof ie?se=(0,o.Z)({inputRef:$,type:V},se,{ref:null}):w?!L||U||F||P||j?(se=(0,o.Z)({minRows:L||F,rowsMax:P,maxRows:U},se),ie=cs):ie="textarea":se=(0,o.Z)({type:V},se),e.useEffect(function(){te&&te.setAdornedStart(Boolean(B))},[te,B]),e.createElement("div",(0,o.Z)({className:(0,a.Z)(l.root,l["color".concat((0,wn.Z)(ne.color||"primary"))],u,ne.disabled&&l.disabled,ne.error&&l.error,g&&l.fullWidth,ne.focused&&l.focused,te&&l.formControl,w&&l.multiline,B&&l.adornedStart,h&&l.adornedEnd,"dense"===ne.margin&&l.marginDense),onClick:function(e){K.current&&e.currentTarget===e.target&&K.current.focus(),A&&A(e)},ref:n},z),B,e.createElement(Ho.Provider,{value:null},e.createElement(ie,(0,o.Z)({"aria-invalid":ne.error,"aria-describedby":r,autoComplete:s,autoFocus:c,defaultValue:d,disabled:ne.disabled,id:f,onAnimationStart:function(e){oe("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:k,placeholder:N,readOnly:M,required:ne.required,rows:L,value:Y,onKeyDown:I,onKeyUp:O},se,{className:(0,a.Z)(l.input,E.className,ne.disabled&&l.disabled,w&&l.inputMultiline,ne.hiddenLabel&&l.inputHiddenLabel,B&&l.inputAdornedStart,h&&l.inputAdornedEnd,"search"===V&&l.inputTypeSearch,"dense"===ne.margin&&l.inputMarginDense),onBlur:function(e){x&&x(e),E.onBlur&&E.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:function(e){if(!q){var t=e.target||K.current;if(null==t)throw new Error((0,Di.Z)(1));oe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];E.onChange&&E.onChange.apply(E,[e].concat(r)),T&&T.apply(void 0,[e].concat(r))},onFocus:function(e){ne.disabled?e.stopPropagation():(R&&R(e),E.onFocus&&E.onFocus(e),te&&te.onFocus?te.onFocus(e):ee(!0))}}))),h,D?D((0,o.Z)({},ne,{startAdornment:B})):null)}),ds=(0,N.Z)(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,o.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(us),ps=e.forwardRef(function(t,n){var r=t.disableUnderline,s=t.classes,c=t.fullWidth,l=void 0!==c&&c,u=t.inputComponent,d=void 0===u?"input":u,p=t.multiline,h=void 0!==p&&p,m=t.type,g=void 0===m?"text":m,f=(0,i.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(ds,(0,o.Z)({classes:(0,o.Z)({},s,{root:(0,a.Z)(s.root,!r&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:n,type:g},f))});ps.muiName="Input";var hs=(0,N.Z)(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(ps),ms=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.disabled,l=t.IconComponent,u=t.inputRef,d=t.variant,p=void 0===d?"standard":d,h=(0,i.Z)(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",(0,o.Z)({className:(0,a.Z)(r.root,r.select,r[p],s,c&&r.disabled),disabled:c,ref:u||n},h)),t.multiple?null:e.createElement(l,{className:(0,a.Z)(r.icon,r["icon".concat((0,wn.Z)(p))],c&&r.disabled)}))}),gs=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},fs=e.createElement(hs,null),_s=e.forwardRef(function(t,n){var r=t.children,a=t.classes,s=t.IconComponent,c=void 0===s?as:s,l=t.input,u=void 0===l?fs:l,d=t.inputProps,p=(t.variant,(0,i.Z)(t,["children","classes","IconComponent","input","inputProps","variant"])),h=Ti({props:t,muiFormControl:$o(),states:["variant"]});return e.cloneElement(u,(0,o.Z)({inputComponent:ms,inputProps:(0,o.Z)({children:r,classes:a,IconComponent:c,variant:h.variant,type:void 0},d,u?u.props.inputProps:{}),ref:n},p))});_s.muiName="Select",(0,N.Z)(gs,{name:"MuiNativeSelect"})(_s);var bs=e.forwardRef(function(t,n){var r=t.disableUnderline,s=t.classes,c=t.fullWidth,l=void 0!==c&&c,u=t.inputComponent,d=void 0===u?"input":u,p=t.multiline,h=void 0!==p&&p,m=t.type,g=void 0===m?"text":m,f=(0,i.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(ds,(0,o.Z)({classes:(0,o.Z)({},s,{root:(0,a.Z)(s.root,!r&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:n,type:g},f))});bs.muiName="Input";var vs=(0,N.Z)(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(bs),ys=e.forwardRef(function(t,n){t.children;var r=t.classes,s=t.className,c=t.label,l=t.labelWidth,u=t.notched,d=t.style,p=(0,i.Z)(t,["children","classes","className","label","labelWidth","notched","style"]),h="rtl"===C().direction?"right":"left";if(void 0!==c)return e.createElement("fieldset",(0,o.Z)({"aria-hidden":!0,className:(0,a.Z)(r.root,s),ref:n,style:d},p),e.createElement("legend",{className:(0,a.Z)(r.legendLabelled,u&&r.legendNotched)},c?e.createElement("span",null,c):e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var m=l>0?.75*l+8:.01;return e.createElement("fieldset",(0,o.Z)({"aria-hidden":!0,style:(0,o.Z)((0,Sn.Z)({},"padding".concat((0,wn.Z)(h)),8),d),className:(0,a.Z)(r.root,s),ref:n},p),e.createElement("legend",{className:r.legend,style:{width:u?m:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))}),Es=(0,N.Z)(function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(ys),Cs=e.forwardRef(function(t,n){var r=t.classes,s=t.fullWidth,c=void 0!==s&&s,l=t.inputComponent,u=void 0===l?"input":l,d=t.label,p=t.labelWidth,h=void 0===p?0:p,m=t.multiline,g=void 0!==m&&m,f=t.notched,_=t.type,b=void 0===_?"text":_,v=(0,i.Z)(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(ds,(0,o.Z)({renderSuffix:function(t){return e.createElement(Es,{className:r.notchedOutline,label:d,labelWidth:h,notched:void 0!==f?f:Boolean(t.startAdornment||t.filled||t.focused)})},classes:(0,o.Z)({},r,{root:(0,a.Z)(r.root,r.underline),notchedOutline:null}),fullWidth:c,inputComponent:u,multiline:g,ref:n,type:b},v))});Cs.muiName="Input";var Ss=(0,N.Z)(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(Cs),ws=gs,ks=e.createElement(hs,null),xs=e.createElement(vs,null),Ts=e.forwardRef(function t(n,r){var a=n.autoWidth,s=void 0!==a&&a,c=n.children,l=n.classes,u=n.displayEmpty,d=void 0!==u&&u,p=n.IconComponent,h=void 0===p?as:p,m=n.id,g=n.input,f=n.inputProps,_=n.label,b=n.labelId,v=n.labelWidth,y=void 0===v?0:v,E=n.MenuProps,C=n.multiple,S=void 0!==C&&C,w=n.native,k=void 0!==w&&w,x=n.onClose,T=n.onOpen,A=n.open,R=n.renderValue,I=n.SelectDisplayProps,O=n.variant,N=void 0===O?"standard":O,M=(0,i.Z)(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),D=k?ms:rs,L=Ti({props:n,muiFormControl:$o(),states:["variant"]}).variant||N,P=g||{standard:ks,outlined:e.createElement(Ss,{label:_,labelWidth:y}),filled:xs}[L];return e.cloneElement(P,(0,o.Z)({inputComponent:D,inputProps:(0,o.Z)({children:c,IconComponent:h,variant:L,type:void 0,multiple:S},k?{id:m}:{autoWidth:s,displayEmpty:d,labelId:b,MenuProps:E,onClose:x,onOpen:T,open:A,renderValue:R,SelectDisplayProps:(0,o.Z)({id:m},I)},f,{classes:f?(0,Ni.Z)({baseClasses:l,newClasses:f.classes,Component:t}):l},g?g.props.inputProps:{}),ref:r},M))});Ts.muiName="Select";var As=(0,N.Z)(ws,{name:"MuiSelect"})(Ts),Rs="undefined"==typeof window?e.useEffect:e.useLayoutEffect,Is=e.forwardRef(function(n,r){var s=n.alignItems,c=void 0===s?"center":s,l=n.autoFocus,u=void 0!==l&&l,d=n.button,p=void 0!==d&&d,h=n.children,m=n.classes,g=n.className,f=n.component,_=n.ContainerComponent,b=void 0===_?"li":_,y=n.ContainerProps,E=(y=void 0===y?{}:y).className,C=(0,i.Z)(y,["className"]),S=n.dense,w=void 0!==S&&S,k=n.disabled,x=void 0!==k&&k,T=n.disableGutters,A=void 0!==T&&T,R=n.divider,I=void 0!==R&&R,O=n.focusVisibleClassName,N=n.selected,M=void 0!==N&&N,D=(0,i.Z)(n,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),L=e.useContext(Gi),P={dense:w||L.dense||!1,alignItems:c},j=e.useRef(null);Rs(function(){u&&j.current&&j.current.focus()},[u]);var U=e.Children.toArray(h),F=U.length&&(0,Go.Z)(U[U.length-1],["ListItemSecondaryAction"]),B=e.useCallback(function(e){j.current=t.findDOMNode(e)},[]),G=(0,v.Z)(B,r),V=(0,o.Z)({className:(0,a.Z)(m.root,g,P.dense&&m.dense,!A&&m.gutters,I&&m.divider,x&&m.disabled,p&&m.button,"center"!==c&&m.alignItemsFlexStart,F&&m.secondaryAction,M&&m.selected),disabled:x},D),H=f||"li";return p&&(V.component=f||"div",V.focusVisibleClassName=(0,a.Z)(m.focusVisible,O),H=Vn),F?(H=V.component||f?H:"div","li"===b&&("li"===H?H="div":"li"===V.component&&(V.component="div")),e.createElement(Gi.Provider,{value:P},e.createElement(b,(0,o.Z)({className:(0,a.Z)(m.container,E),ref:G},C),e.createElement(H,V,U),U.pop()))):e.createElement(Gi.Provider,{value:P},e.createElement(H,(0,o.Z)({ref:G},V),U))}),Os=(0,N.Z)(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(Is),Ns=e.forwardRef(function(t,n){var r,s=t.classes,c=t.className,l=t.component,u=void 0===l?"li":l,d=t.disableGutters,p=void 0!==d&&d,h=t.ListItemClasses,m=t.role,g=void 0===m?"menuitem":m,f=t.selected,_=t.tabIndex,b=(0,i.Z)(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==_?_:-1),e.createElement(Os,(0,o.Z)({button:!0,role:g,tabIndex:r,component:u,selected:f,disableGutters:p,classes:(0,o.Z)({dense:s.dense},h),className:(0,a.Z)(s.root,c,f&&s.selected,!p&&s.gutters),ref:n},b))}),Ms=(0,N.Z)(function(e){return{root:(0,o.Z)({},e.typography.body1,(0,Sn.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,o.Z)({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(Ns),Ds=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.component,u=void 0===l?"p":l,d=(t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant,(0,i.Z)(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),p=Ti({props:t,muiFormControl:$o(),states:["variant","margin","disabled","error","filled","focused","required"]});return e.createElement(u,(0,o.Z)({className:(0,a.Z)(s.root,("filled"===p.variant||"outlined"===p.variant)&&s.contained,c,p.disabled&&s.disabled,p.error&&s.error,p.filled&&s.filled,p.focused&&s.focused,p.required&&s.required,"dense"===p.margin&&s.marginDense),ref:n},d)," "===r?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)}),Ls=(0,N.Z)(function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},{name:"MuiFormHelperText"})(Ds),Ps=[0,1,2,3,4,5,6,7,8,9,10],js=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Us(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Fs,Bs,Gs=e.forwardRef(function(t,n){var r=t.alignContent,s=void 0===r?"stretch":r,c=t.alignItems,l=void 0===c?"stretch":c,u=t.classes,d=t.className,p=t.component,h=void 0===p?"div":p,m=t.container,g=void 0!==m&&m,f=t.direction,_=void 0===f?"row":f,b=t.item,v=void 0!==b&&b,y=t.justify,E=t.justifyContent,C=void 0===E?"flex-start":E,S=t.lg,w=void 0!==S&&S,k=t.md,x=void 0!==k&&k,T=t.sm,A=void 0!==T&&T,R=t.spacing,I=void 0===R?0:R,O=t.wrap,N=void 0===O?"wrap":O,M=t.xl,D=void 0!==M&&M,L=t.xs,P=void 0!==L&&L,j=t.zeroMinWidth,U=void 0!==j&&j,F=(0,i.Z)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=(0,a.Z)(u.root,d,g&&[u.container,0!==I&&u["spacing-xs-".concat(String(I))]],v&&u.item,U&&u.zeroMinWidth,"row"!==_&&u["direction-xs-".concat(String(_))],"wrap"!==N&&u["wrap-xs-".concat(String(N))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(y||C)&&u["justify-content-xs-".concat(String(y||C))],!1!==P&&u["grid-xs-".concat(String(P))],!1!==A&&u["grid-sm-".concat(String(A))],!1!==x&&u["grid-md-".concat(String(x))],!1!==w&&u["grid-lg-".concat(String(w))],!1!==D&&u["grid-xl-".concat(String(D))]);return e.createElement(h,(0,o.Z)({className:B,ref:n},F))}),Vs=(0,N.Z)(function(e){return(0,o.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e){var t={};return Ps.forEach(function(n){var r=e.spacing(n);0!==r&&(t["spacing-".concat("xs","-").concat(n)]={margin:"-".concat(Us(r,2)),width:"calc(100% + ".concat(Us(r),")"),"& > $item":{padding:Us(r,2)}})}),t}(e),e.breakpoints.keys.reduce(function(t,n){return function(e,t,n){var r={};js.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var a="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:a,flexGrow:0,maxWidth:a}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?(0,o.Z)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))},{name:"MuiGrid"})(Gs),Hs=e.forwardRef(function(t,n){var r=t.disableSpacing,s=void 0!==r&&r,c=t.classes,l=t.className,u=(0,i.Z)(t,["disableSpacing","classes","className"]);return e.createElement("div",(0,o.Z)({className:(0,a.Z)(c.root,l,!s&&c.spacing),ref:n},u))}),zs=(0,N.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Hs),Ys=e.forwardRef(function(t,n){var r=t.children,s=t.classes,c=t.className,l=t.color,u=void 0===l?"default":l,d=t.component,p=void 0===d?"button":d,h=t.disabled,m=void 0!==h&&h,g=t.disableElevation,f=void 0!==g&&g,_=t.disableFocusRipple,b=void 0!==_&&_,v=t.endIcon,y=t.focusVisibleClassName,E=t.fullWidth,C=void 0!==E&&E,S=t.size,w=void 0===S?"medium":S,k=t.startIcon,x=t.type,T=void 0===x?"button":x,A=t.variant,R=void 0===A?"text":A,I=(0,i.Z)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=k&&e.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,wn.Z)(w))])},k),N=v&&e.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,wn.Z)(w))])},v);return e.createElement(Vn,(0,o.Z)({className:(0,a.Z)(s.root,s[R],c,"inherit"===u?s.colorInherit:"default"!==u&&s["".concat(R).concat((0,wn.Z)(u))],"medium"!==w&&[s["".concat(R,"Size").concat((0,wn.Z)(w))],s["size".concat((0,wn.Z)(w))]],f&&s.disableElevation,m&&s.disabled,C&&s.fullWidth),component:p,disabled:m,focusRipple:!b,focusVisibleClassName:(0,a.Z)(s.focusVisible,y),ref:n,type:T},I),e.createElement("span",{className:s.label},O,r,N))}),qs=(0,N.Z)(function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,M.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,M.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,M.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,M.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,M.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,M.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},{name:"MuiButton"})(Ys),Ks=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.raised,l=void 0!==c&&c,u=(0,i.Z)(t,["classes","className","raised"]);return e.createElement(No,(0,o.Z)({className:(0,a.Z)(r.root,s),elevation:l?8:1,ref:n},u))}),Ws=(0,N.Z)({root:{overflow:"hidden"}},{name:"MuiCard"})(Ks),Js=n(9002),Zs=n(6220),$s=["title","titleId"];function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(this,arguments)}var Xs,ec,tc=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,$s);return e.createElement("svg",Qs({width:31,height:31,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Fs||(Fs=e.createElement("path",{d:"M25.2798 9.38928C25.1389 9.68537 25.0618 10.0077 25.0534 10.3355C25.045 10.6633 25.1054 10.9892 25.2309 11.2921C25.3564 11.5951 25.5441 11.8683 25.7818 12.0941C26.0196 12.3199 26.3021 12.4933 26.611 12.603L28.1923 13.1655C28.6486 13.3275 29.0435 13.6268 29.3228 14.0223C29.6021 14.4178 29.7521 14.8901 29.7521 15.3743C29.7521 15.8585 29.6021 16.3308 29.3228 16.7263C29.0435 17.1218 28.6486 17.4211 28.1923 17.583L26.611 18.1455C26.3021 18.2553 26.0196 18.4287 25.7818 18.6545C25.5441 18.8803 25.3564 19.1535 25.2309 19.4564C25.1054 19.7594 25.045 20.0853 25.0534 20.4131C25.0618 20.7408 25.1389 21.0632 25.2798 21.3593L26.0023 22.873C26.2112 23.3104 26.2793 23.8017 26.1974 24.2794C26.1154 24.7571 25.8874 25.1977 25.5446 25.5404C25.2019 25.8831 24.7614 26.1111 24.2837 26.1931C23.806 26.2751 23.3146 26.2069 22.8773 25.998L21.361 25.278C21.065 25.1372 20.7426 25.06 20.4148 25.0516C20.087 25.0432 19.7611 25.1037 19.4582 25.2292C19.1553 25.3547 18.8821 25.5423 18.6562 25.7801C18.4304 26.0178 18.257 26.3003 18.1473 26.6093L17.5848 28.1905C17.4226 28.6464 17.1233 29.0409 16.7279 29.3198C16.3325 29.5988 15.8605 29.7486 15.3767 29.7486C14.8928 29.7486 14.4208 29.5988 14.0254 29.3198C13.6301 29.0409 13.3308 28.6464 13.1685 28.1905L12.606 26.6093C12.4962 26.3003 12.3226 26.0178 12.0967 25.78C11.8708 25.5423 11.5974 25.3546 11.2944 25.2291C10.9914 25.1036 10.6654 25.0432 10.3375 25.0516C10.0097 25.06 9.68722 25.1372 9.39104 25.278L7.87729 25.998C7.43994 26.2077 6.94829 26.2765 6.47019 26.1948C5.99209 26.1132 5.55113 25.8851 5.20817 25.5422C4.8652 25.1992 4.63716 24.7582 4.5555 24.2801C4.47384 23.802 4.54261 23.3104 4.75229 22.873L5.47229 21.3568C5.61316 21.0607 5.69029 20.7383 5.69871 20.4106C5.70713 20.0828 5.64664 19.7569 5.52115 19.4539C5.39567 19.151 5.20799 18.8778 4.97025 18.652C4.73252 18.4262 4.45002 18.2528 4.14104 18.143L2.55979 17.5805C2.1035 17.4186 1.70856 17.1193 1.42926 16.7238C1.14996 16.3283 1 15.856 1 15.3718C1 14.8876 1.14996 14.4153 1.42926 14.0198C1.70856 13.6243 2.1035 13.325 2.55979 13.163L4.14104 12.6005C4.4497 12.4907 4.73189 12.3174 4.96939 12.0918C5.2069 11.8662 5.39444 11.5932 5.51989 11.2906C5.64535 10.988 5.70593 10.6624 5.69773 10.3349C5.68953 10.0074 5.61273 9.68525 5.47229 9.38928L4.75229 7.87303C4.54261 7.43568 4.47384 6.94403 4.5555 6.46593C4.63716 5.98783 4.8652 5.54687 5.20817 5.20391C5.55113 4.86095 5.99209 4.6329 6.47019 4.55124C6.94829 4.46958 7.43994 4.53835 7.87729 4.74803L9.39354 5.46804C9.68944 5.60854 10.0115 5.68546 10.339 5.69384C10.6664 5.70221 10.992 5.64185 11.2947 5.51665C11.5974 5.39145 11.8705 5.20419 12.0964 4.96695C12.3222 4.72971 12.4959 4.44776 12.606 4.13928L13.1685 2.55804C13.3308 2.10217 13.6301 1.70768 14.0254 1.42872C14.4208 1.14976 14.8928 1 15.3767 1C15.8605 1 16.3325 1.14976 16.7279 1.42872C17.1233 1.70768 17.4226 2.10217 17.5848 2.55804L18.1473 4.13928C18.257 4.44826 18.4304 4.73076 18.6562 4.96849C18.8821 5.20623 19.1553 5.39391 19.4582 5.5194C19.7611 5.64488 20.087 5.70537 20.4148 5.69695C20.7426 5.68854 21.065 5.6114 21.361 5.47053L22.8773 4.74803C23.3146 4.53916 23.806 4.47101 24.2837 4.55297C24.7614 4.63492 25.2019 4.86296 25.5446 5.20568C25.8874 5.5484 26.1154 5.98893 26.1974 6.46663C26.2793 6.94432 26.2112 7.43568 26.0023 7.87303L25.2798 9.38928Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Bs||(Bs=e.createElement("path",{d:"M9.75098 15.3743C9.75098 16.8661 10.3436 18.2969 11.3985 19.3517C12.4534 20.4066 13.8841 20.9993 15.376 20.9993C16.8678 20.9993 18.2986 20.4066 19.3535 19.3517C20.4083 18.2969 21.001 16.8661 21.001 15.3743C21.001 13.8824 20.4083 12.4517 19.3535 11.3968C18.2986 10.3419 16.8678 9.74927 15.376 9.74927C13.8841 9.74927 12.4534 10.3419 11.3985 11.3968C10.3436 12.4517 9.75098 13.8824 9.75098 15.3743V15.3743Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),nc=(n.p,["title","titleId"]);function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rc.apply(this,arguments)}var ac,oc,ic,sc,cc,lc=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,nc);return e.createElement("svg",rc({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Xs||(Xs=e.createElement("g",{clipPath:"url(#clip0)"},e.createElement("path",{d:"M8.32609 14.4131H1.36957C0.889318 14.4131 0.5 14.8024 0.5 15.2827V19.6305C0.5 20.1107 0.889318 20.5 1.36957 20.5H8.32609C8.80633 20.5 9.19565 20.1107 9.19565 19.6305V15.2827C9.19565 14.8024 8.80633 14.4131 8.32609 14.4131Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M12.6739 20.5H19.6304C20.1107 20.5 20.5 20.1107 20.5 19.6304V10.0652C20.5 9.58497 20.1107 9.19565 19.6304 9.19565L12.6739 9.19565C12.1937 9.19565 11.8043 9.58497 11.8043 10.0652L11.8043 19.6304C11.8043 20.1107 12.1937 20.5 12.6739 20.5Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M12.6739 6.58691L19.6304 6.58691C20.1107 6.58691 20.5 6.1976 20.5 5.71735V1.36952C20.5 0.889276 20.1107 0.499958 19.6304 0.499958L12.6739 0.499958C12.1937 0.499958 11.8043 0.889276 11.8043 1.36952V5.71735C11.8043 6.1976 12.1937 6.58691 12.6739 6.58691Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M8.32609 0.5H1.36957C0.889318 0.5 0.5 0.889318 0.5 1.36957V10.9348C0.5 11.415 0.889318 11.8043 1.36957 11.8043H8.32609C8.80633 11.8043 9.19565 11.415 9.19565 10.9348V1.36957C9.19565 0.889318 8.80633 0.5 8.32609 0.5Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}))),ec||(ec=e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:24,height:24,fill:"white"})))))}),uc=(n.p,["title","titleId"]);function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(this,arguments)}var pc,hc,mc=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,uc);return e.createElement("svg",dc({width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,ac||(ac=e.createElement("path",{d:"M22.5625 1H2.4375C1.64359 1 1 1.44772 1 2V23C1 23.5523 1.64359 24 2.4375 24H22.5625C23.3564 24 24 23.5523 24 23V2C24 1.44772 23.3564 1 22.5625 1Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),oc||(oc=e.createElement("path",{d:"M12 21.5C14.7614 21.5 17 19.2614 17 16.5C17 13.7386 14.7614 11.5 12 11.5C9.23858 11.5 7 13.7386 7 16.5C7 19.2614 9.23858 21.5 12 21.5Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),ic||(ic=e.createElement("path",{d:"M12 9C13.3807 9 14.5 7.88071 14.5 6.5C14.5 5.11929 13.3807 4 12 4C10.6193 4 9.5 5.11929 9.5 6.5C9.5 7.88071 10.6193 9 12 9Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),sc||(sc=e.createElement("path",{d:"M12 18C12.8284 18 13.5 17.3284 13.5 16.5C13.5 15.6716 12.8284 15 12 15C11.1716 15 10.5 15.6716 10.5 16.5C10.5 17.3284 11.1716 18 12 18Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),cc||(cc=e.createElement("path",{d:"M12 6.25C12.0494 6.25 12.0978 6.26466 12.1389 6.29213C12.18 6.3196 12.212 6.35865 12.231 6.40433C12.2499 6.45001 12.2548 6.50028 12.2452 6.54877C12.2356 6.59727 12.2117 6.64181 12.1768 6.67678C12.1418 6.71174 12.0973 6.73555 12.0488 6.7452C12.0003 6.75484 11.95 6.74989 11.9043 6.73097C11.8586 6.71205 11.8196 6.68 11.7921 6.63889C11.7647 6.59778 11.75 6.54945 11.75 6.5C11.75 6.4337 11.7763 6.37011 11.8232 6.32322C11.8701 6.27634 11.9337 6.25 12 6.25Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),gc=(n.p,["title","titleId"]);function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fc.apply(this,arguments)}var _c,bc,vc=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,gc);return e.createElement("svg",fc({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,pc||(pc=e.createElement("g",{clipPath:"url(#clip0)"},e.createElement("path",{d:"M9.5 23.5H1.5C1.23478 23.5 0.98043 23.3946 0.792893 23.2071C0.605357 23.0196 0.5 22.7652 0.5 22.5V1.5C0.5 1.23478 0.605357 0.98043 0.792893 0.792893C0.98043 0.605357 1.23478 0.5 1.5 0.5H14.793C15.0582 0.500057 15.3125 0.605451 15.5 0.793L19.207 4.5C19.3946 4.68749 19.4999 4.9418 19.5 5.207V8.5",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M12.607 10.8901L7.636 8.21411C7.51966 8.14926 7.38839 8.11595 7.25521 8.11748C7.12202 8.11902 6.99155 8.15534 6.87674 8.22285C6.76192 8.29037 6.66675 8.38673 6.60067 8.50237C6.53458 8.61801 6.49988 8.74892 6.5 8.88211V14.6181C6.49988 14.7513 6.53458 14.8822 6.60067 14.9979C6.66675 15.1135 6.76192 15.2099 6.87674 15.2774C6.99155 15.3449 7.12202 15.3812 7.25521 15.3827C7.38839 15.3843 7.51966 15.351 7.636 15.2861L9.811 13.9481",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M16.313 17.031C16.313 17.4121 16.4644 17.7776 16.7339 18.0471C17.0034 18.3166 17.3689 18.468 17.75 18.468C18.1311 18.468 18.4966 18.3166 18.7661 18.0471C19.0356 17.7776 19.187 17.4121 19.187 17.031C19.187 16.6499 19.0356 16.2844 18.7661 16.0149C18.4966 15.7454 18.1311 15.594 17.75 15.594C17.3689 15.594 17.0034 15.7454 16.7339 16.0149C16.4644 16.2844 16.313 16.6499 16.313 17.031V17.031Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M18.971 11.4701L19.395 12.8621C19.4645 13.0932 19.6193 13.2893 19.828 13.4106C20.0368 13.5319 20.2838 13.5692 20.519 13.5151L21.931 13.1881C22.1984 13.1278 22.4781 13.1548 22.7291 13.265C22.9801 13.3753 23.1892 13.563 23.3257 13.8007C23.4622 14.0384 23.519 14.3136 23.4878 14.586C23.4565 14.8583 23.3388 15.1135 23.152 15.3141L22.164 16.3791C22.001 16.5563 21.9105 16.7883 21.9105 17.0291C21.9105 17.2699 22.001 17.5019 22.164 17.6791L23.152 18.7441C23.3388 18.9447 23.4565 19.1999 23.4878 19.4722C23.519 19.7445 23.4622 20.0197 23.3257 20.2574C23.1892 20.4952 22.9801 20.6829 22.7291 20.7931C22.4781 20.9034 22.1984 20.9304 21.931 20.8701L20.519 20.5421C20.2839 20.4901 20.0378 20.529 19.8302 20.6511C19.6226 20.7732 19.4689 20.9693 19.4 21.2001L18.976 22.5921C18.8971 22.8545 18.7357 23.0846 18.5158 23.2481C18.2959 23.4116 18.0291 23.4999 17.755 23.4999C17.481 23.4999 17.2142 23.4116 16.9943 23.2481C16.7743 23.0846 16.6129 22.8545 16.534 22.5921L16.105 21.2001C16.0351 20.9692 15.8802 20.7734 15.6716 20.6522C15.463 20.531 15.2162 20.4934 14.981 20.5471L13.569 20.8751C13.3016 20.9354 13.0219 20.9084 12.7709 20.7981C12.5199 20.6879 12.3109 20.5002 12.1743 20.2624C12.0378 20.0247 11.981 19.7495 12.0123 19.4772C12.0435 19.2049 12.1612 18.9497 12.348 18.7491L13.336 17.6841C13.4991 17.5069 13.5895 17.2749 13.5895 17.0341C13.5895 16.7933 13.4991 16.5613 13.336 16.3841L12.348 15.3191C12.1612 15.1185 12.0435 14.8633 12.0123 14.591C11.981 14.3186 12.0378 14.0434 12.1743 13.8057C12.3109 13.568 12.5199 13.3803 12.7709 13.27C13.0219 13.1598 13.3016 13.1328 13.569 13.1931L14.981 13.5201C15.2163 13.5742 15.4633 13.5369 15.672 13.4156C15.8807 13.2943 16.0355 13.0982 16.105 12.8671L16.529 11.4751C16.6074 11.2125 16.7683 10.9821 16.9879 10.8181C17.2075 10.6541 17.4741 10.5653 17.7482 10.5647C18.0222 10.5641 18.2892 10.6519 18.5094 10.815C18.7297 10.9781 18.8916 11.2078 18.971 11.4701V11.4701Z",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}))),hc||(hc=e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:24,height:24,fill:"white"})))))}),yc=(n.p,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX///8AAADr6+vy8vLl5eWSkpL7+/uEhITj4+O2trazs7NxcXF0dHS9vb319fXx8fHc3Nx9fX3FxcXLy8taWlrV1dU2NjZERES8vLw9PT2enp4ZGRnDw8NHR0ctLS2np6cSEhJjY2ONjY0LCwugoKAoKChgYGAiIiJpaWlVVVUcHByA0ew4AAAIfklEQVR4nO2d52LqOgyACStsCmG2hFVKS9//AS/LSSzJg9T4JFx9P89RFRtvDbtSYRiGYRiGYRiGYRiGYRiG+dcMOmFjapSaNsLOwENpnkD0GZzpGqS6F6HPyEuJHNMKbvS0Ut27VN1TqVwiyh5UNUJ1IWRq6gLSnInCtzVSbSE0a3ormSsGa1H4jkaqI4TW5athZSIKr5tOp0Lo6K1c7ojuZZ9rpZZ3qVJOpodb9xtqhYZfV6mDpzI5ZtpbxxvT+Gpu4nXPvC9gGIZhGIZhGOY1qdYtDuXNuv7o9JAqnbnHOavr+f2jof1otbG9SE36WlWL00Vou9er2l9VnVY5ypqHN3EuD4J3tdR7IhS//VFVIxFaqlU5JAoy/KikdlkplYlCUrX7kyqHvAUSI1qqJ0vR9t6WLKQwHQNVz2/FpfzBYEwJ9YHQjFS1BlLkiIWqlg7rQrICH6QLP4dS1BwBy05b5eDPQKpyyQR+kOo2b0iIModaqZoioYnzOsmgDwYbLPSOhL7wkjf4RlLEfLrBH3xCrTJU8QdDLBViKTzXtKxUjbCUzS4iP3X8QWI2JWrYQkJ2Nexhqec64pr4gw0stUdCW7xnqX4iqT1W1UBCT+6llQ/0QWKOR7MkOcfDdScIFlhogYR+nddJBv+mxLZ5iISIhiZamhhhuNNQqlyCphpi7BADkZod7FShqebpZwywEmzJMIoaGGP0thr0h89aflVO+ZE+qPAayQu1an++s1EVWalySqbfbJVusek2lVLszt2qcspKBCGEmkifmhiLM92BZyy2nSHZRe+qxA8x83UEPm88N+Go0TcYH5qLxijcmE47Z1W9xsKsqmdWxTAMwzAMwzDMa1KNVmPzeWC6WkVevZ+uGItY/dlBXf7quzgfdkkPT4EZS6ZCxfG2JlmZZqWqI7RUf1Dn/GgLpPS5J0WiiW29REoC4XNZFicl4e09DPd9lYuEqCC2Z3coIZX7c7jYh+G7PytGXzhA6fFFOFMuyA4Vwi+j7KhDMV7n+rgOZ2Rq8EmYAMd02YNYkiLbOSCd5lnbq5ehupNKhKuoKrvUT9sqIdxPZYuwMmIjF03KHAqt+rCjqppQbsRYKQVn3aGFVX+Qb4ZqdWfrCZrlje6ULhRISUeiYhRegGl6Zs/MeLKedXO4Te+dA6brGL1r6rJnPP4HjZSszuxdu3eqh0OJBqJzgIEGV2m4DBCO/oTU6UB45xPkNsID9kMukJiHaCeYhmS5kmcvo5c7wgIJacgJDjRJkRvD6OVORoUukZMi8XGupX82RiqgiKIM6VSjnmhgRJAxUiGJKCL9qxqS305exrD/GmhWT6VBcLKqobwiGqNNkvCrR73fyTILAoLwB2UBHA6Vkk6TPxopeW9mjBg60H9nwb1/w/xcY6iWpuxpMAkOUlBVAEd9gQCy5i1FM89u5zoC5nB3jQJJYOTeDAqkpHOIpi9DfcbIveE8ZwXPE3+7Q2w7YdghXIfUS913Op/XcFiOAC7A8MeIK4hpp+3SDGKKoFUviNkpSb0gorICUQ9HKFMUNBHUhsuu/B2IOX+X/X8vOd/1dKhR22BVD5RliZX8wge1M0llZ76uz1gdzxPYdqnIRqC3NTDw9URK0U1U3S/Pm8ivo79QjEuCR0s9uCkDRQwbZ4AipQPdBRPVVr1Il9jggMIJLt4AtyIRm1hU6mBbRgejgcN0XK47ahZpHb9DVYeuhumsFJeoAe+0NqNjfOruI934qUX77ik+jjY4SpphGIZhGKYItA6jSRz/7MeaGPVKbbz/ieNJGfc07XRf+jFS7Uvro8y+9FGb9b+lBZyItLUWnPPnJWpHfAQ+WZ0Pi9SMg5bmjE/YqYM5OuNTvmLdGb/l84zfn3wHwedScdUDbac5AanH7TTfhgso3NFKzdDU+KphF+MVO1sbNfFmbG1ehqrpqgelsTfb4oSX7gZhLz2aG9kp3m3eT7w1ok76LUy3RuBcfEGmBz7gt4AuV+LihWmnncuIdXWvLaHvCRkK10AA+YpScvmevqAAnG6q1988h+/p7j+ElyHgKdC3/xAYz4X/8OHLpPP6gHGJUp7rA370lleFH994a4QuUqFYfnz7WAx5BJQnFuP142lePyZKFdeGZ8GCxLXluE663p2tj05jE9NNpSY2ES5s5tjE6JgvNvFMkwrb9B5fCsYF5agjC5qfnfRB3DmUATVOYoS93BrhJM6b8nFfoOK8M1HCnm6N8B2rX/Mdq1+551ss/pRvQfbTouRbmLDLmSEiNgqUM2PCLu8JHhLLk/dUQblr9H6jJgWILUuVu3Ymsso/PIi1pVfKR0rsckjfxiXNIWUYhmEYhmEY5s9MNyOLCyvbjd5oY7LUXlW1Le6+NKtyR194Q0aagK7kqoe17mS7Eg7QkeYe8lSVp6QZgzXxRmRlAsyo2iqPwHaqHLKTbCtW9wirrno42qjybhEG7i5k1b8CE6Kt4trou6Btbo1wCvLMkP3G6hJuh6pcYvSuXcA57cSN+UW9k93kIb2Cc9fKc69+3rcRPkvzNoIxUuFKmd+3eP03SnK/M0PECBfznRlz1NeFp74V9OxX2F//vSc0x5MftHuzC3r8SQ+vRfSlY5737ppCFZhrPMRBP+vtPKWqHxtVTnH5/uH8MVXekk5ub1j+mt6wvHqxDVc99O2ew/y1UOWYodXOwuodUoeqGIZhGIZhGIZ5Rabd9fxgCmxuHubrrj/fp1NuB9cv/amn+mU6/xYXkXehNx0Je0EZQ4QTc6iuCybm0GdbQZ/AIDF0qq+CyKQkwPuKS0AzsYbqUh+TvJJZ+WqYpunpjEyJL+vhVOwCIAqvzxMRpuNy3Xt55/YWkCkR5trU6ueOi82gHTYs3uxqhO0iXS/LMAzDMAzDMAzDMAzDMMz/lf8AVPtuIfIBj8YAAAAASUVORK5CYII="),Ec=n(2427),Cc=((0,Ec.Z)(function(){return{otherOptionsContainer:{position:"absolute",display:"flex",right:"8px",bottom:"0.1vh"},bottomMainContainer:{height:"12vh",width:"100vw",display:"flex",justifyContent:"center",alignItems:"center",minHeight:"80px",backgroundImage:"linear-gradient(#1c2226,#13171A)"},peopleIconButton:{border:"none",outline:"none"},peopleIcon:{color:"#fff"}}}),(0,Ec.Z)(function(e){return{iconColor:{color:"#fff"},iconButton:{border:"none",outline:"none",marginRight:5},buttonContainer:{minHeight:"50px",minWidth:"50px",height:"7vh",width:"7vh",backgroundColor:e.palette.buttonBackgroundColor.main,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}}}),(0,Ec.Z)(function(e){return{iconColor:{color:"#fff"},iconButton:{border:"none",outline:"none",marginRight:5},buttonContainer:{minHeight:"50px",minWidth:"50px",height:"7vh",width:"7vh",backgroundColor:e.palette.buttonBackgroundColor.main,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}}}),(0,Ec.Z)(function(e){return{iconColor:{color:"#fff"},iconButton:{border:"none",outline:"none",marginRight:5},buttonContainer:{minHeight:"50px",minWidth:"50px",height:"7vh",width:"7vh",backgroundColor:e.palette.buttonBackgroundColor.main,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}}}),(0,Ec.Z)(function(e){return{iconColor:{color:"#fff"},iconButton:{border:"none",outline:"none",marginRight:5},buttonContainer:{minHeight:"50px",minWidth:"50px",height:"7vh",width:"7vh",backgroundColor:e.palette.buttonBackgroundColor.main,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}}}),(0,Ec.Z)(function(e){return{iconColor:{color:"#fff"},iconButton:{border:"none",outline:"none",marginRight:5},buttonContainer:{minHeight:"50px",minWidth:"50px",height:"7vh",width:"7vh",backgroundColor:e.palette.error.main,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}}}),(0,Ec.Z)(function(e){return{layoutDilogFormControl:{padding:16,paddingTop:0},scrollPaper:{},paperScrollPaper:{backgroundColor:"rgba(30,30,30,0.8)"},dropDownStyle:{minWidth:250,maxWidth:250,width:250,color:"#fff"},dropdownRoot:{borderBottomColor:"#fff",borderBottomWidth:2},dropdownIcon:{color:"#1E79E7"},dropDownList:{backgroundColor:"rgba(30,30,30,1)"},audioDilogFormControl:{paddingBottom:16,marginRight:8},videoDialogFormControl:{paddingBottom:16},iconButtonStyle:{border:"none",outline:"none"},iconColor:{color:"#fff",height:24,width:24},menuIconContainer:{marginRight:16},closeIcon:{position:"absolute",top:8,right:8,backgroundColor:"#31383e",padding:4,height:24,width:24},whiteColor:{color:"#fff"},markLabel:{color:"#fff"},root:{width:"90%"},PaginatedRoot:{width:"50%"},markActive:{backgroundColor:e.palette.primary.main,height:4}}},{index:1,classNamePrefix:"CometChat"})),Sc=(0,Ec.Z)(function(e){return{layoutDilogFormControl:{padding:16,paddingTop:0},scrollPaper:{},paperScrollPaper:{backgroundColor:"rgba(30,30,30,0.8)"},iconButtonStyle:{border:"none",outline:"none",top:-3},iconColor:{color:"#fff",height:24,width:24},closeIcon:{position:"absolute",top:8,right:8,padding:4,height:24,width:24},whiteColor:{color:"#fff"},noneContainer:{marginLeft:5,marginRight:5,cursor:"pointer",alignItems:"center",justifyContent:"center",display:"flex",backgroundColor:"#fff",height:60,width:"100%",borderRadius:5},noneFont:{textTransform:"none"},blurContainer:{marginLeft:5,marginRight:5,cursor:"pointer",backgroundColor:"#fff",borderRadius:5},imgContainer:{marginLeft:5,marginRight:5,cursor:"pointer"},active:{borderWidth:4,borderColor:"cadetblue",borderRadius:5},image:{height:60,width:180,borderRadius:5,objectFit:"cover"},buttonContainer:{height:60,width:"100%",transitionDuration:"".concat(e.transitions.duration.shorter,"ms"),transitionTimingFunction:e.transitions.easing.easeInOut,outline:"none !important","&:hover":{transform:"scale(1.1)",borderWidth:1,borderColor:"red"}},upperContainer:{paddingRight:16,paddingLeft:16,paddingTop:16,display:"flex",flexDirection:"row",justifyContent:"space-between"},dilogContent:{paddingTop:30,paddingBottom:30,maxHeight:250}}},{index:1,classNamePrefix:"CometChat"}),wc=["title","titleId"];function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kc.apply(this,arguments)}var xc=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,wc);return e.createElement("svg",kc({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,_c||(_c=e.createElement("path",{d:"M3 21L21 3",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),bc||(bc=e.createElement("path",{d:"M21 21L3 3",stroke:"#fff",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))});function Tc(e){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(e)}function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach(function(t){Lc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ic(){Ic=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==Tc(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Oc(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nc(e,t)}function Mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dc(e)}function Lc(e,t,n){return(t=Pc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pc(e){var t=function(e){if("object"!==Tc(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Tc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Tc(t)?t:String(t)}n.p;var jc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nc(e,t)}(l,t);var n,r,a,o,i,s,c=(i=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Dc(i);if(s){var n=Dc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Tc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mc(e)}(this,e)});function l(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Lc(Mc(n=c.call(this,t)),"_detachTrack",function(e){n.videoRef.current&&e&&null!=e&&e.detach&&(null==e||e.detach(n.videoRef.current))}),Lc(Mc(n),"_attachTrack",function(e){var t,r;e&&n.videoRef.current&&(null!=e&&e.attach&&(null==e||e.attach(n.videoRef.current)),JitsiMeetJS.util.browser.isWebKitBased()&&(null===(t=n.videoRef)||void 0===t||null===(r=t.current)||void 0===r||r.play()))}),n.videoRef=e.createRef(),n.updateSent=!1,n}return n=l,r=[{key:"componentDidUpdate",value:(a=Ic().mark(function e(t){var n,r;return Ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.streamManager,r=this.props.streamManager,n===r){e.next=6;break}return e.next=5,this._detachTrack(n);case 5:this._attachTrack(r);case 6:case"end":return e.stop()}},e,this)}),o=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=a.apply(e,t);function i(e){Oc(o,n,r,i,s,"next",e)}function s(e){Oc(o,n,r,i,s,"throw",e)}i(void 0)})},function(e){return o.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this._detachTrack(this.props.streamManager)}},{key:"componentDidMount",value:function(){var e=this;!this.updateSent&&this.props.onplay&&(this.videoRef.current.ontimeupdate=function(){!e.updateSent&&e.props.onplay&&e.props.streamManager&&(e.props.onplay(),e.updateSent=!0)}),this._attachTrack(this.props.streamManager)}},{key:"render",value:function(){var t,n,r,a,o,i=null!==(t=this.props.streamManager)&&void 0!==t&&null!==(n=t.isLocal)&&void 0!==n&&n.call(t)?"":null!==(r=null===(a=this.props.streamManager)||void 0===a||null===(o=a.getSourceName)||void 0===o?void 0:o.call(a))&&void 0!==r?r:"";return e.createElement("video",{className:this.props.flipped?"flipped-video":"",style:Rc({},this.props.style),autoPlay:!0,playsInline:!0,muted:!0,"webkit-playsinline":"webkit-playsinline",ref:this.videoRef,"cc-source-name":i,"cc-main-video":this.props.mainVideo?"true":"false"})}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pc(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),Uc="\n    var timer;\n\n    onmessage = function(request) {\n        switch (request.data.id) {\n        case ".concat(1,": {\n            timer = setTimeout(() => {\n                postMessage({ id: ").concat(3," });\n            }, request.data.timeMs);\n            break;\n        }\n        case ").concat(2,": {\n            if (timer) {\n                clearTimeout(timer);\n            }\n            break;\n        }\n        }\n    };\n"),Fc=URL.createObjectURL(new Blob([Uc],{type:"application/javascript"}));function Bc(e){return Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bc(e)}var Gc="image",Vc="desktop-share",Hc=function(){function e(t,n){var r,a,o;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._options=n,this._options.virtualBackground.backgroundType===Gc&&(this._virtualImage=document.createElement("img"),this._virtualImage.crossOrigin="anonymous",this._virtualImage.src=this._options.virtualBackground.virtualSource),this._options.virtualBackground.backgroundType===Vc&&(this._virtualVideo=document.createElement("video"),this._virtualVideo.autoplay=!0,this._virtualVideo.srcObject=null===(r=this._options)||void 0===r||null===(a=r.virtualBackground)||void 0===a||null===(o=a.virtualSource)||void 0===o?void 0:o.stream),this._model=t,this._segmentationPixelCount=this._options.width*this._options.height,this._onMaskFrameTimer=this._onMaskFrameTimer.bind(this),this._outputCanvasElement=document.createElement("canvas"),this._outputCanvasElement.getContext("2d"),this._inputVideoElement=document.createElement("video")}var t,n;return t=e,n=[{key:"_onMaskFrameTimer",value:function(e){3===e.data.id&&this._renderMask()}},{key:"runPostProcessing",value:function(){var e,t=this._stream.getVideoTracks()[0],n=null!==(e=t.getSettings())&&void 0!==e?e:t.getConstraints(),r=n.height,a=n.width,o=this._options.virtualBackground.backgroundType;this._outputCanvasElement.height=r,this._outputCanvasElement.width=a,this._outputCanvasCtx.globalCompositeOperation="copy",this._outputCanvasCtx.filter=o===Gc?"blur(4px)":"blur(8px)",o===Vc&&(this._outputCanvasCtx.save(),this._outputCanvasCtx.scale(-1,1),this._outputCanvasCtx.translate(-this._outputCanvasElement.width,0)),this._outputCanvasCtx.drawImage(this._segmentationMaskCanvas,0,0,this._options.width,this._options.height,0,0,this._inputVideoElement.width,this._inputVideoElement.height),o===Vc&&this._outputCanvasCtx.restore(),this._outputCanvasCtx.globalCompositeOperation="source-in",this._outputCanvasCtx.filter="none",o===Vc&&(this._outputCanvasCtx.save(),this._outputCanvasCtx.scale(-1,1),this._outputCanvasCtx.translate(-this._outputCanvasElement.width,0)),this._outputCanvasCtx.drawImage(this._inputVideoElement,0,0),o===Vc&&this._outputCanvasCtx.restore(),this._outputCanvasCtx.globalCompositeOperation="destination-over",o===Gc||o===Vc?this._outputCanvasCtx.drawImage(o===Gc?this._virtualImage:this._virtualVideo,0,0,this._outputCanvasElement.width,this._outputCanvasElement.height):(this._outputCanvasCtx.filter="blur(".concat(this._options.virtualBackground.blurValue,"px)"),this._outputCanvasCtx.drawImage(this._inputVideoElement,0,0))}},{key:"runInference",value:function(){this._model._runInference();for(var e=this._model._getOutputMemoryOffset()/4,t=0;t<this._segmentationPixelCount;t++){var n=this._model.HEAPF32[e+t];this._segmentationMask.data[4*t+3]=255*n}this._segmentationMaskCtx.putImageData(this._segmentationMask,0,0)}},{key:"_renderMask",value:function(){this.resizeSource(),this.runInference(),this.runPostProcessing(),this._maskFrameTimerWorker.postMessage({id:1,timeMs:1e3/30})}},{key:"resizeSource",value:function(){this._segmentationMaskCtx.drawImage(this._inputVideoElement,0,0,this._inputVideoElement.width,this._inputVideoElement.height,0,0,this._options.width,this._options.height);for(var e=this._segmentationMaskCtx.getImageData(0,0,this._options.width,this._options.height),t=this._model._getInputMemoryOffset()/4,n=0;n<this._segmentationPixelCount;n++)this._model.HEAPF32[t+3*n]=e.data[4*n]/255,this._model.HEAPF32[t+3*n+1]=e.data[4*n+1]/255,this._model.HEAPF32[t+3*n+2]=e.data[4*n+2]/255}},{key:"isEnabled",value:function(e){return e.isVideoTrack()&&"camera"===e.videoType}},{key:"startEffect",value:function(e){var t=this;this._stream=e,this._maskFrameTimerWorker=new Worker(Fc,{name:"Blur effect worker"}),this._maskFrameTimerWorker.onmessage=this._onMaskFrameTimer;var n=this._stream.getVideoTracks()[0],r=n.getSettings?n.getSettings():n.getConstraints(),a=r.height,o=r.frameRate,i=r.width;return this._segmentationMask=new ImageData(this._options.width,this._options.height),this._segmentationMaskCanvas=document.createElement("canvas"),this._segmentationMaskCanvas.width=this._options.width,this._segmentationMaskCanvas.height=this._options.height,this._segmentationMaskCtx=this._segmentationMaskCanvas.getContext("2d"),this._outputCanvasElement.width=parseInt(i,10),this._outputCanvasElement.height=parseInt(a,10),this._outputCanvasCtx=this._outputCanvasElement.getContext("2d"),this._inputVideoElement.width=parseInt(i,10),this._inputVideoElement.height=parseInt(a,10),this._inputVideoElement.autoplay=!0,this._inputVideoElement.srcObject=this._stream,this._inputVideoElement.onloadeddata=function(){t._maskFrameTimerWorker.postMessage({id:1,timeMs:1e3/30})},this._outputCanvasElement.captureStream(parseInt(o,10))}},{key:"stopEffect",value:function(){this._maskFrameTimerWorker.postMessage({id:2}),this._maskFrameTimerWorker.terminate()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==Bc(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Bc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Bc(a)?a:String(a)),r)}var a}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zc(e){return zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zc(e)}function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach(function(t){Kc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kc(e,t,n){return(t=function(e){var t=function(e){if("object"!==zc(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wc(){Wc=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==zc(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Jc(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function Zc(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){Jc(o,r,a,i,s,"next",e)}function s(e){Jc(o,r,a,i,s,"throw",e)}i(void 0)})}}var $c,Qc,Xc=!1;function el(e,t){return new Promise(function(n,r){setTimeout(function(){r(new Error("408"))},e),t.then(n,r)})}var tl={height:144,width:256};function nl(){return rl.apply(this,arguments)}function rl(){return(rl=Zc(Wc().mark(function e(){var t,r,a,o,i,s;return Wc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if($c||Xc){e.next=22;break}if(e.prev=1,Qc=n(7618),a=1e4,null===(t=Qc)||void 0===t||null===(r=t.feature)||void 0===r||!r.simd){e.next=10;break}return e.next=7,el(a,createTFLiteSIMDModule());case 7:$c=e.sent,e.next=13;break;case 10:return e.next=12,el(a,createTFLiteModule());case 12:$c=e.sent;case 13:e.next=20;break;case 15:return e.prev=15,e.t0=e.catch(1),Xc=!0,null===e.t0||void 0===e.t0||e.t0.message,e.abrupt("return",!1);case 20:e.next=25;break;case 22:if(!Xc){e.next=25;break}return e.abrupt("return",!1);case 25:return o=$c._getModelBufferMemoryOffset(),e.next=28,fetch("https://cdn.cometchat.io/calls/v3/selfie_segmentation_landscape.tflite");case 28:if((i=e.sent).ok){e.next=32;break}throw new Error("Failed to download tflite model!");case 32:return e.next=34,i.arrayBuffer();case 34:return s=e.sent,$c.HEAPU8.set(new Uint8Array(s),o),$c._loadModel(s.byteLength),e.abrupt("return",!0);case 38:case"end":return e.stop()}},e,null,[[1,15]])}))).apply(this,arguments)}function al(e){return ol.apply(this,arguments)}function ol(){return(ol=Zc(Wc().mark(function e(t){var n;return Wc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(MediaStreamTrack.prototype.getSettings||MediaStreamTrack.prototype.getConstraints){e.next=2;break}throw new Error("JitsiStreamBackgroundEffect not supported!");case 2:return e.next=4,nl();case 4:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return n=qc(qc({},tl),{},{virtualBackground:t}),e.abrupt("return",new Hc($c,n));case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function il(e){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(e)}function sl(){sl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==il(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function cl(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}var ll=function(){var e,t=(e=sl().mark(function e(t){var n,r,a,o;return sl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.track,r=t.option,a=void 0,e.t0=r.type,e.next="blur"===e.t0?6:"img"===e.t0?8:10;break;case 6:return a={backgroundEffectEnabled:!0,backgroundType:"blur",blurValue:r.blurValue,selectedThumbnail:"blur"},e.abrupt("break",11);case 8:return a={backgroundEffectEnabled:!0,backgroundType:"image",blurValue:void 0,selectedThumbnail:"5",virtualSource:r.url},e.abrupt("break",11);case 10:return e.abrupt("break",11);case 11:if(o=void 0,!a){e.next=16;break}return e.next=15,al(a);case 15:o=e.sent;case 16:return n.setEffect(o),e.abrupt("return",n);case 18:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){cl(o,r,a,i,s,"next",e)}function s(e){cl(o,r,a,i,s,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),ul=function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(){return t(r.result)},r.onerror=function(e){return n(e)},r.readAsDataURL(e)})},dl=function(e,t){try{var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(n.response)},n.onerror=function(e){},n.open("GET",e),n.responseType="blob",n.send()}catch(e){}},pl=function(e,t,n){var r=(new Date).valueOf();return e.collection("backgroundImages").doc("backgroundImages_".concat(r)).set({file:t,fileType:n,id:r}),r},hl=["architecture-5082700_1280","porch-691330_1280","saxon-switzerland-539418_1280","shibuyasky-4768679_1280"].map(function(e){return"https://cdn.cometchat.io/calls/v3/bg/".concat(e,".jpg")});function ml(e){return ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(e)}function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach(function(t){_l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _l(e,t,n){return(t=function(e){var t=function(e){if("object"!==ml(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ml(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(){bl=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==ml(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function vl(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function yl(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){vl(o,r,a,i,s,"next",e)}function s(e){vl(o,r,a,i,s,"throw",e)}i(void 0)})}}function El(e){return function(e){if(Array.isArray(e))return wl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||Sl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sl(e,t){if(e){if("string"==typeof e)return wl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wl(e,t):void 0}}function wl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}var xl,Tl,Al,Rl=e.forwardRef(function(t,n){return e.createElement(er,kl({direction:"down",timeout:1e3,ref:n},t))}),Il=function(t){var n=t.showChangeModeButton,r=t.changeMode,o=t.mode,i=t.activeInputDevices,s=t.activeOutputDevices,c=t.changeAudioSourceClicked,l=t.changeVideoSourceClicked,u=t.changeAudioOutputDeviceClicked,d=t.audioOutPutDevices,p=t.audioDevices,h=t.videoDevices,m=t.activeVideoDevice,g=t.peopleClicked,f=t.localizedObject,_=t.onBackgroundEffectSelected,b=t.selectedBg,v=t.appliedBg,y=t.setSelectedBg,E=t.db,C=t.AllowBackgroundBlur,S=t.AllowUserImages,w=t.ShowDefaultImages,k=t.isBackgroundModelVisible,x=t.setIsBackgroundModalVisible,T=t.EnforceBackgroundImage,A=t.EnforceBackgroundBlur,R=t.ShowVirtualBackgroundSetting,I=t.SetImages,O=t.isAudioOnly,N=t.addedBackgroundImage,M=t.addedBackgroundBlur,D=t.setNoOfUsersPerPage,L=t.noOfUsersPerPage,P=Cc(),j=Cl((0,e.useState)([]),2),U=j[0],F=j[1],B=Cl((0,e.useState)([]),2),G=B[0],V=B[1],z=Cl((0,e.useState)({}),2),Y=z[0],q=z[1],K=Sc(),W=Cl(e.useState(!1),2),J=W[0],Z=W[1],$=Cl(e.useState({}),2),Q=$[0],X=$[1],ee=Cl(e.useState(!1),2),te=ee[0],ne=ee[1],re=Cl(e.useState(null),2),ae=(re[0],re[1]),oe=Cl(e.useState(!1),2),ie=oe[0],se=oe[1],ce=Cl(e.useState(!1),2),le=ce[0],ue=ce[1],de=Cl(e.useState(!1),2),pe=de[0],he=de[1],me=Cl(e.useState("DEFAULT"===o?"SIDEBAR":o),2),ge=me[0],fe=me[1],_e=function(){ne(!1)},be=N?[N]:[],ve=M?[{value:M,type:"blur"}]:[],ye=T?[T]:[],Ee=(0,e.useRef)(null),Ce=(0,e.useRef)(JitsiMeetJS.mediaDevices.isDeviceChangeAvailable("output")).current,Se=(0,e.useRef)(JitsiMeetJS.mediaDevices.isDeviceChangeAvailable("input")).current;(0,e.useEffect)(function(){var e=window.document;e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement?ae(!0):ae(!1)},[]),(0,e.useEffect)(function(){w&&hl.forEach(function(e){dl(e,function(e){V(function(t){return[].concat(El(t),[e])})})})},[]),(0,e.useEffect)(function(){E.collection("backgroundImages").get().then(function(e){var t;F(e?null==e||null===(t=e.map(function(e){return"custom"===e.fileType?{type:"customImage",imageUrl:e.file,id:e.id}:"default"===e.fileType?null:e.file}))||void 0===t?void 0:t.filter(function(e){return e}):[])})},[]);var we=function(e){ll({track:Q,option:e}),q(e),y(e.selectedIndex)},ke=function(){var e=yl(bl().mark(function e(){return bl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q.dispose){e.next=3;break}return e.next=3,Q.dispose();case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),xe=function(){y(v),x(!1),ke()};return e.createElement("div",null,e.createElement(zn,{id:"settingButton","data-testid":"cc-setting",ref:Ee,component:"span",className:P.iconButtonStyle,onClick:function(e){e.stopPropagation(),ne(!te)}},e.createElement(tc,{"aria-controls":"simple-menu","aria-haspopup":"true",fontSize:"medium",className:P.iconColor})),e.createElement(ua,{"data-testid":"cc-setting-dialog",style:{zIndex:1e4},open:te,anchorEl:Ee.current,role:void 0,transition:!0,disablePortal:!0,placement:"top-end"},function(t){var r=t.TransitionProps;return e.createElement(er,kl({},r,{style:{transformOrigin:"left-end"}}),e.createElement(Ws,{style:{backgroundColor:"#1e1e1e"}},e.createElement(H,{onClickAway:_e},e.createElement(Zi,{autoFocusItem:te,id:"menu-list-grow",onKeyDown:_e},e.createElement(xn,{only:"xs"},n?e.createElement(Ms,{onClick:function(){se(!0),_e()}},e.createElement("div",{className:P.menuIconContainer},e.createElement(lc,{className:P.iconColor,fontSize:"medium"})),e.createElement(Uo,{style:{color:"#fff"},variant:"inherit"},f.CHANGE_LAYOUT)):null),!/iPad|iPhone|iPod/.test(navigator.userAgent)&&e.createElement(Ms,{"data-testid":"cc-audioSettingButton",onClick:function(){ue(!0),_e()}},e.createElement("div",{className:P.menuIconContainer},e.createElement(mc,{className:P.iconColor,stroke:"#fff"})),e.createElement(Uo,{style:{color:"#fff"},variant:"inherit"},f.AUDIO_SETTING)),!O&&R&&e.createElement(ya,{title:window.chrome?"":"This feature is only supported in Chrome",placement:"left",arrow:!0},e.createElement(Ms,{id:"vbDilogButton",onClick:function(){window.chrome&&(x(!0),_e())}},e.createElement("div",{className:P.menuIconContainer,style:{width:25}},e.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAFYElEQVR4nO2bW4hVVRjHf9/JWzNSmqHdjMpLFEVBET2Emna1mIR6yWwejISeRCzJohcxyS6OGVRmzoNJvQYVYTqaWRhdpAi7yUxRmk5JI2mlNtO/h7X2nHVOnpmz5+zLyc4PNqz9nbXX+ta3v3X71j7QoEGDBg3+v1i5QFIzcAMwCRieuUbpcBzoBLaY2R8nzCHJJD0k6ZBOXnokLZbU/+LNN74AbATuzuBt1AOvAvPMTMO8YDGlje8EOoCerDVLibHALFy3BpgLfAqsQlKzSt1+naSRuamaEpJGSlpf1h2akNQSCPecjI2P8EboDNp7ewGYGuTZYmbH8lIwbXzbtgSiqQVgdCDozlalXNgfpE8r5KZGnTBs8CyVkTQBuB44x4t+Araa2c+1KpYVQzKApCuAFcAtQLkX/S3pbeBRM/u8Rv1SJ3YXkLQA+BiYXeH5AnAb8ImkhbWplz6xPEDSA8Dzgeg4sBXY7e8vw3WJEb7s1ZKOmtnaBHRNhaoN4N3+2UC0DZhvZt+X5bsQaAdmeNEaSe+b2W7qkDhdYDnF3eE24ObyxgOY2XfATcB2LxoBLKtFyTSpygCSzgRu9bfHcW/+r0r5/W/zgShPi6QxtSiaFtV6wDTgFJ/uONGbL8fMunDjA7iuNi2+eulTrQEmBunPYpQfToMTK+bKkWoNoCD9ryhSwnVlSrVK7Q3SV8YoP8y7t2KuHKnWAO8BfT490091AyJpEm5NgH92R3z10qcqA5jZQWCTvx0BtEuqGDD1v7VTnDY3+TLqjjj98jGg16dnAJv9Wy5B0mTcnjsa9Xv9s3VJ1StBM9slaQmwyoumA19Jehf4Ajc4Xu7loXcsMbNdCembOLH2AmbW5t17BW5dMBy40V/l9AFLzaytZi0HQNLpwNGhRrJib4fN7ElJO4AnqLy42Q48bGYfDkWpEN+lrgKmABcDFwHjcZHesfhuLPXP1MeAg/76BRej2BNczWH5Q4oHmNlOYLqfDWZSXOT8gAuIDLpSrIRfMs/B7SemUwy2VMtI4Fx/DUpNESG/8VlfSxnQfzAzB2jFBVniRqYP47rjqLhV12SAWvEh+FbgQUqj0yHdwC5/fQ38iHPrA2Z2uKw8A8YATcBZOC84HzgPuAQ3SF+AG7AF7MzNAJJagDZcnw7pxS2a3gLeMLNvqy3TzIQ7zeoB9uFOf8rrHQ1cChwxsy8zN4CkicBaitvriP3AOuAlM9uXVv1mdgT4KLrP1ACSZgMbgHGB+AAuYPLyQDGGtMhkhyZ39L4MeJNi43uBx4EpZvZCHo2HDDzAD0xtQBgh7gJazeyDtOsfjFQN4Ke3DcA9gfh13Nn872nWXS1pd4GnKW38GuCuemk8pGgAf4awKBCtNLOFZtZX6Zks8N9DrPZXcypdQNK1uLcd0Q4sTaOuIXAfxfGoM3EPkPvK7BWK40sHsMAvUuqBM4L0uDS6wDPAZJ/uxg14ubr9QCRqAElXA/dHt7ip7kCSdSRN0h6wMijzNTN7J+HyEycxA0i6AxcbADgCLEmq7DRJ0gMeCdJPpbmhSZJEDCDpOuAaf3sYeC6JcrMgKQ8IFzwvmtl/5gvTAu6NRZwdtwBJ44EWf9tH6QKoHgnb+FsBCCMus4bwpeidFBc9W82sLs8AASSNojSE/w2Smvx3sxHr4xhB0vbg2XuTVzsZJI2S1B7o+qukU6PP5Rfjdm4RXbjjra5Byh2Gi+ZEY8ly3BRYb0zC/QkkPNRdZGarIwMY7v8Cc3NQLg824lapKkB/NHUe7n8Dh/LULGV6cDNWa7Q5O9F/hppwfy6YDEzIVL306MYdi3WY2Z95K9OgQYMGdcM/lejsX8rj5SEAAAAASUVORK5CYII=",alt:"hello",style:{height:25,width:23}})),e.createElement(Uo,{style:{color:"#fff"},variant:"inherit"},f.VIRTUAL_BACKGROUND),!window.chrome&&e.createElement(Oa.Z,{style:{aspectRatio:1,height:15,width:30,color:"red",alignSelf:"center"}}))),!O&&e.createElement(Ms,{"data-testid":"cc-videoSettingButton",onClick:function(){he(!0),_e()}},e.createElement("div",{className:P.menuIconContainer},e.createElement(vc,{className:P.iconColor,stroke:"#fff"})),e.createElement(Uo,{style:{color:"#fff"},variant:"inherit"},f.VIDEO_SETTING)),e.createElement(xn,{smUp:!0},e.createElement(Ms,{onClick:function(){_e(),g()}},e.createElement("div",{className:P.menuIconContainer},e.createElement(Jn,{style:{color:"#fff"},fontSize:"medium"})),e.createElement(Uo,{style:{color:"#fff"},variant:"inherit"},f.USER_LIST)))))))}),e.createElement(Lo,{classes:{scrollPaper:P.scrollPaper,paperScrollPaper:P.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:Rl,"aria-labelledby":"draggable-dialog-title",onClose:function(){se(!1)},open:ie,container:document.getElementById("cc-container")},e.createElement(zn,{"data-testid":"cc-close-layout",className:P.closeIcon,component:"span",onClick:function(e){e.stopPropagation(),se(!1)},size:"small"},e.createElement(xc,{className:P.whiteColor,fontSize:"small"})),e.createElement("div",{style:{paddingRight:16,paddingLeft:16,paddingTop:16,display:"flex",flexDirection:"row",justifyContent:"space-between"}},e.createElement(Uo,{className:P.whiteColor,variant:"h4"},f.SELECT_LAYOUT_HEADER)),e.createElement(Yo,{className:P.layoutDilogFormControl,component:"fieldset"},e.createElement(Zo,{"aria-label":"Layout",value:ge,onChange:function(e){fe(e.target.value),r(e.target.value)}},e.createElement(Xo,{value:"TILE",control:e.createElement(li,{className:P.whiteColor,color:"primary"}),label:f.TILE_MODE,className:P.whiteColor}),"TILE"===ge?e.createElement(e.Fragment,null,e.createElement(Uo,{className:P.whiteColor,id:"discrete-slider-always",gutterBottom:!0},f.NO_OF_USER_IN_PAGINATED_TEXT),e.createElement(Ci,{classes:{markLabel:P.markLabel,root:P.PaginatedRoot,markActive:P.markActive},getAriaValueText:function(e){return(8*(e%20+1)).toString()},defaultValue:50*(L-2),onChange:function(e,t){D(t/50+2)},"aria-labelledby":"discrete-slider-always",step:50,marks:[{value:0,label:"4"},{value:50,label:"9"},{value:100,label:"16"}],color:"primary",style:{marginLeft:4}})):null,e.createElement(Xo,{value:"SPOTLIGHT",control:e.createElement(li,{className:P.whiteColor,color:"primary"}),label:f.SPOTLIGHT_MODE,className:P.whiteColor}),e.createElement(Xo,{value:"SIDEBAR",className:P.whiteColor,control:e.createElement(li,{className:P.whiteColor,color:"primary"}),label:f.SIDEBAR_MODE})))),e.createElement(Lo,{open:le,onClose:function(){ue(!1)},classes:{scrollPaper:P.scrollPaper,paperScrollPaper:P.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:Rl,"aria-labelledby":"form-dialog-title",container:document.getElementById("cc-container")},e.createElement("div",{style:{paddingRight:16,paddingLeft:16,paddingTop:16,display:"flex",flexDirection:"row",justifyContent:"space-between"}},e.createElement(Uo,{className:P.whiteColor,variant:"h4"},f.CHANGE_AUDIO_SOURCE),e.createElement(zn,{className:P.closeIcon,component:"span",onClick:function(e){e.stopPropagation(),ue(!1)},size:"small"},e.createElement(xc,{className:P.whiteColor,fontSize:"small"}))),e.createElement(wi,{style:{paddingTop:0,paddingLeft:16}},e.createElement(xi,{className:P.whiteColor},f.CHANGE_AUDIO_SOURCE_DESC),Se&&e.createElement(Yo,{className:P.audioDilogFormControl,variant:"outlined",focused:!0},e.createElement(Oi,{className:P.whiteColor,id:"demo-simple-select-standard-label1"},f.AUDIO_INPUT_DEVICE_LABEL),e.createElement(As,{classes:{icon:P.whiteColor},MenuProps:{classes:{paper:P.dropDownList}},disabled:!p.length,error:p.length?null:f.NO_AUDIO_DEVICE_AVAILABLE,className:P.dropDownStyle,labelId:"demo-simple-select-standard-label1",id:"demo-simple-select-standard","data-testid":"cc-audioSettingInput",value:i,label:f.AUDIO_INPUT_DEVICE_LABEL,onChange:function(e){c(e.target.value)}},p.map(function(t,n){return e.createElement(Ms,{className:P.whiteColor,key:t.deviceId,value:t.deviceId,"data-testid":"cc-audioSettingInputDeviceMenu".concat(n)},t.label)})),e.createElement(Ls,{error:!0},p.length?"":f.NO_AUDIO_DEVICE_AVAILABLE)),Ce&&e.createElement(Yo,{className:P.audioDilogFormControl,variant:"outlined",focused:!0},e.createElement(Oi,{className:P.whiteColor,id:"demo-simple-select-filled-label2"},f.AUDIO_OUTPUT_DEVICE_LABEL),e.createElement(As,{classes:{icon:P.whiteColor,focused:P.whiteColor},MenuProps:{classes:{paper:P.dropDownList}},className:P.dropDownStyle,error:d.length?null:f.NO_AUDIO_DEVICE_AVAILABLE,disabled:!d.length,labelId:"demo-simple-select-filled-label2",id:"demo-simple-select-filled","data-testid":"cc-audioSettingOutput",value:s,label:f.AUDIO_OUTPUT_DEVICE_LABEL,onChange:function(e){u(e.target.value)}},d.map(function(t,n){return e.createElement(Ms,{className:P.whiteColor,key:t.deviceId,value:t.deviceId,"data-testid":"cc-audioSettingOutputDeviceMenu".concat(n)},t.label)})),e.createElement(Ls,{error:!0},d.length?"":f.NO_AUDIO_DEVICE_AVAILABLE)))),function(){var t,n,r,a,o=(0,e.useRef)({}),i=Cl((0,e.useState)({}),2),s=i[0],c=i[1],u=Cl((0,e.useState)([]),2),d=u[0],p=u[1],g=Cl((0,e.useState)(m),2),_=g[0],b=g[1],v=(n=(t=navigator).maxTouchPoints,r=t.platform,!!(a=t.userAgent).match(/Android/i)||!!(a.match(/iP(ad|hone|od)/i)||n&&n>2&&/MacIntel/.test(r))||!!a.match(/iP(ad)/i)),y=function(){var e=yl(bl().mark(function e(t){var n;return bl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,am({devices:["video"],facingMode:"user",cameraDeviceId:t||m});case 2:return n=e.sent,e.abrupt("return",n[0]);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),E=function(){d.forEach(function(e){e.dispose(),c(function(t){return fl(fl({},t),{},_l({},e.deviceId,!0))})})};(0,e.useEffect)(function(){if(!v){if(pe){var e=[];h.forEach(function(t){e.push(y(t.deviceId)),o.current=fl(fl({},o.current),{},_l({},t.deviceId,t.label)),c(function(e){return fl(fl({},e),{},_l({},t.deviceId,!0))})}),Promise.allSettled(e).then(function(e){var t,n=null===(t=e.map(function(e){return"fulfilled"===e.status?e.value:null}))||void 0===t?void 0:t.filter(function(e){return e});p(n)})}return E()}},[pe,v]);var C=function(t){return v?e.createElement(Vs,{item:!0,xs:12,key:t.deviceId,style:{cursor:"pointer"},onClick:function(){return b(t.deviceId)}},e.createElement("div",{className:"grid-box ".concat(t.deviceId===_?"show-border":""),style:{padding:12,borderRadius:8,display:"flex",alignItems:"center",background:"#1c2226",justifyContent:"space-between"}},e.createElement(Uo,{style:{color:"#fff",fontSize:14}},t.label),t.deviceId===_&&e.createElement(Uo,{style:{color:"#4cafef",fontSize:12}},f.SELECTED||"Selected"))):e.createElement(Vs,{item:!0,md:1===d.length?12:6,xs:12,key:t.id,style:{cursor:"pointer",minHeight:170,alignItems:"center",justifyContent:"center"},className:"grid-box ".concat(t.deviceId===_?"show-border":""),onClick:function(){return b(t.deviceId)}},e.createElement("div",{style:{position:"absolute",minHeight:160,width:"95%",height:"94%",backgroundColor:s[t.deviceId]?"#1c2226":"transparent",borderRadius:8,zIndex:99,display:"flex",justifyContent:"center",alignItems:"flex-end",color:"#fff",paddingBottom:5}},e.createElement("div",{style:{backgroundColor:"#31383e",padding:"1px 6px",borderRadius:"5px"}},e.createElement("p",null,o.current[t.deviceId]))),e.createElement(jc,{onplay:function(){c(function(e){return fl(fl({},e),{},_l({},t.deviceId,!1))})},streamManager:t,type:"video",style:{maxHeight:"45vh",objectFit:"contain",borderRadius:6},flipped:!0}))};return e.createElement(Lo,{open:pe,onClose:function(){E(),he(!1)},"aria-labelledby":"form-dialog-title",classes:{scrollPaper:P.scrollPaper,paperScrollPaper:P.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:Rl,container:document.getElementById("cc-container")},e.createElement("div",{style:{paddingRight:16,paddingLeft:16,paddingTop:16,display:"flex",flexDirection:"row",justifyContent:"space-between"}},e.createElement(Uo,{className:P.whiteColor,variant:"h4"},f.CHANGE_VIDEO_SOURCE),e.createElement(zn,{className:P.closeIcon,component:"span",onClick:function(e){e.stopPropagation(),E(),he(!1)},size:"small"},e.createElement(xc,{className:P.whiteColor,fontSize:"small"}))),e.createElement(wi,{style:{paddingTop:0,paddingLeft:16,minHeight:200}},e.createElement(xi,{className:P.whiteColor},f.CHANGE_VIDEO_SOURCE_DESC),e.createElement(Vs,{container:!0,spacing:2,"data-testid":"cc-videoDeviceContainer"},v?h.map(function(e){return C(e)}):d.map(function(e){return C(e)}))),e.createElement(zs,null,e.createElement(qs,{className:P.whiteColor,style:{textTransform:"none",outline:"none"},onClick:function(){E(),he(!1)}},f.CANCEL),e.createElement(qs,{id:"vbApplyButton",color:"primary",style:{textTransform:"none",outline:"none"},autoFocus:!0,onClick:function(){E(),l(_),he(!1)}},f.SELECT)))}(),((0,e.useEffect)(function(){return k&&(_m({devices:["video"],facingMode:"user"}).then(function(e){!function(e){try{e.forEach(function(){var t=yl(bl().mark(function t(n,r){return bl().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("video"!==e[r].getType()){t.next=5;break}if(0===v){t.next=4;break}return t.next=4,ll({track:e[r],option:1===be.length?{type:"img",url:be[0]}:1===ve.length?{type:"blur",blurValue:ve[0].value}:""!==T&&"string"==typeof T?{type:"img",url:T}:1===A||2===A?{type:"blur",blurValue:1===A?6:15}:Y});case 4:X(e[r]);case 5:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}())}catch(e){}}(e)}),J||nl().then(function(){Z(!0)})),function(){ke()}},[k]),e.createElement(Lo,{"data-testid":"cc-virtual-bg-dialog",open:k,onClose:xe,maxWidth:"sm","aria-labelledby":"form-dialog-title",classes:{scrollPaper:K.scrollPaper,paperScrollPaper:K.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:Rl,container:document.getElementById("cc-container")},e.createElement(jc,{streamManager:Q,type:"video",style:{maxHeight:"45vh",objectFit:"contain"},flipped:!0}),e.createElement("div",{className:K.upperContainer,style:{paddingBottom:10}},e.createElement(Uo,{className:K.whiteColor,variant:J?"h4":"p"},J?f.CHOOSE_BACKGROUND:f.DOWNLOADING_REQUIRED_FILES),S&&J&&e.createElement(e.Fragment,null,e.createElement("input",{accept:"image/png, image/jpeg",style:{display:"none"},id:"contained-button-file",type:"file",onChange:function(){var e=yl(bl().mark(function e(t){var n,r,a;return bl().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.target.files&&(!t.target.files||t.target.files[0])){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ul(t.target.files[0]);case 4:n=e.sent,r=pl(E,n,"custom",U.length),F(function(e){return[].concat(El(e),[{type:"customImage",imageUrl:n,id:r}])}),a=[].concat(El(G),El(I),ye,be,ve,El(U)).filter(function(e){return""!==e||"string"==typeof e}).length+3,we({type:"img",url:n,selectedIndex:a});case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}),e.createElement("label",{htmlFor:"contained-button-file"},e.createElement(qs,{color:"primary",style:{textTransform:"none"},component:"span"},f.ADD," ",e.createElement(Zs.Z,{style:{marginLeft:5}})))),e.createElement(zn,{className:K.closeIcon,component:"span",onClick:function(e){e.stopPropagation(),xe()},size:"small"},e.createElement(xc,{className:K.whiteColor,fontSize:"small"}))),J&&e.createElement(e.Fragment,null,e.createElement(wi,{className:K.dilogContent},e.createElement(Vs,{container:!0,spacing:2},e.createElement(Vs,{item:!0,md:4,xs:6},e.createElement(qs,{id:"vbImageButton0",className:K.buttonContainer,onClick:function(){we({type:"none",selectedIndex:0})}},e.createElement("div",{className:(0,a.Z)(K.noneContainer,0===b?K.active:{})},e.createElement(Uo,{className:K.noneFont,variant:"body1"},f.NONE)))),C&&e.createElement(e.Fragment,null,e.createElement(Vs,{item:!0,md:4,xs:6},e.createElement(qs,{id:"vbImageButton1",className:K.buttonContainer,onClick:function(){we({type:"blur",blurValue:6,selectedIndex:1})}},e.createElement("div",{className:(0,a.Z)(K.blurContainer,1===b?K.active:{})},e.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUGVYSWZNTQAqAAAACAACARIAAwAAAAEAAQAAh2kABAAAAAEAAAAmAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAABgoAMABAAAAAEAAABgAAAAALvucVAAAAIwaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj45NjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+OTY8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KOkNGDwAAA3lJREFUeAHtm0uO1TAQRVsMYBHsALEjtgCsA7bRwFb4jGDEDnhvjGBKg69ESZHlJHZ1JbE7x5LlxKmUy6fS+fj2u7mhQAACEIAABCAAAQhAAAIQgAAEIAABCECgbwKPU3hvU72k+iPVN6mqj7ITAQH/m1X1UXYioCs/T8B1p7FDh3kU6m0/Z4Kflz95xwj7oybgXQFuqa9gRlcEAT1wdc/XA5iHcARRfEAAAhCAAAQgAAEIrBB4ko6/TvVzqr//V22/SlXHKBsSeJp8f0s1X4aw/a/pmGwoGxDQ1b0Ef5oE/hI2SIBuOwZ5rX25wfgPxqWWETxr+V8aEvCpgpY3jgrXfZtoDSe/gtW3Vn4lg/y8uX3ZrhVvHGt+uz/uXctvScDPCgreOCpc15scsRytqzYvd3lHYf97oW+uq8bWG8fcmK7+IxJQWre/rYj+fYWNmXywjYXWG8eCyzEO6eGn+2/rWr5eLfWeP3fft37ZaIy14o1jze+DPq6PrKUk8CG2Q/p15eo9X6+aejCrfkxVfTVXfjKjQAACEIAABCAAAQich4A+pCKUrN78DJHBKCWrNz9DwNcVG6Fk9ebnMPj62mwRVKKUrN78tHIIS1irkBGlZPXmp5VDWAIuyZOtPFp7XfDeIqTIdq705qeVQ3FeHj1A0PMS9eOIGmEmH7u0v4efEA6eBJSEjFKfgalRp2pse/NTmnOpz+YW1urh0yKo6D/W7Fa11i79O0lvflo5hCWg1ZFeH5dEFEvKmpLVm59WDofaRylZvfk5FGrr4PqTjVCyevPTygF7CEAAAhCAAAQgAIEhCeiDLEJZG3LyEUHrPb5FT5iOGaWIyed94pjGNNy2dx1dV36EsmbAvHHY+cO2lxS5rf9Ye62YTZQiZkN547DzQ1rPcvR9Bxb0vNSs37/IT1rYr7H1xrEwbPuhIxJQWjO/rQj9WYWNmTy3jYXWG8eCyzEO6eHXoifYrFokyZrfiHnjsHhO10aJ8l2BO+IW5AUQ/RsxbxynPS9KETstwIiJRyliEbGc1ocenhHK2mkBMnEIQAACEIAABCAAAS8BvYp6RR3vmJw3IXBaMWXC4NDNSxrdxBxra0SdQ4MuDT7SYtw0/pKYEvUjkek4m2+PmoCSmFLq2xzgWQdATDlr5pk3BCAAAQhAAAIQgAAEIAABCEAAAhAYmMA/dsBd9S963/oAAAAASUVORK5CYII=","data-testid":"cc-vb-blur-low",alt:"",className:K.image,style:{objectFit:"contain"}})))),e.createElement(Vs,{item:!0,md:4,xs:6},e.createElement(qs,{id:"vbImageButton2","data-testid":"cc-vb-blur-high",className:K.buttonContainer,onClick:function(){we({type:"blur",blurValue:15,selectedIndex:2})}},e.createElement("div",{className:(0,a.Z)(K.blurContainer,2===b?K.active:{})},e.createElement("img",{src:yc,alt:"",className:K.image,style:{objectFit:"contain"}}))))),[].concat(El(G),El(I),ye,be,ve,El(U)).map(function(t,n){return""===t||"string"!=typeof t&&"customImage"!==t.type?"blur"===(null==t?void 0:t.type)?e.createElement(Vs,{item:!0,md:4,key:n,xs:6},e.createElement(qs,{id:"vbImageButton".concat(n+3),className:K.buttonContainer,onClick:function(){we({type:"blur",blurValue:null==t?void 0:t.value,selectedIndex:n+3})}},e.createElement("div",{className:(0,a.Z)(K.blurContainer,b===n+3?K.active:{})},e.createElement("img",{src:yc,alt:"",className:K.image,style:{objectFit:"contain"}})))):void 0:e.createElement(Vs,{item:!0,md:4,key:n,xs:6},e.createElement("div",{style:{position:"relative"}},"string"!=typeof t&&"customImage"===t.type&&e.createElement(zn,{style:{backgroundColor:"#fff",position:"absolute",top:-10,right:0,cursor:"pointer",padding:0,zIndex:1},onClick:function(){!function(e,t){if(function(e,t){e.collection("backgroundImages").doc("backgroundImages_".concat(t)).delete()}(E,e),F(function(t){return t.filter(function(t){return t.id!==e})}),0!==b&&t<b){var n=[].concat(El(G),El(I),ye,be,ve).filter(function(e){return""!==e||"string"==typeof e}).length+3;n<=t&&y(b-1)}t===v?(we({type:"none",selectedIndex:0}),_({type:"none",selectedIndex:0})):t===b&&we({type:"none",selectedIndex:0})}(t.id,n+3)}},e.createElement(Js.Z,{style:{color:"red",fontSize:20}})),e.createElement(qs,{id:"vbImageButton".concat(n+3),className:K.buttonContainer,onClick:function(){we({type:"img",url:"string"!=typeof t&&"customImage"===t.type?t.imageUrl:t,selectedIndex:n+3})}},e.createElement("div",{className:(0,a.Z)(K.imgContainer,b===n+3?K.active:{})},e.createElement("img",{src:"string"!=typeof t&&"customImage"===t.type?t.imageUrl:t,alt:"",className:K.image})))))}))),e.createElement(zs,null,e.createElement(qs,{className:P.whiteColor,style:{textTransform:"none"},onClick:xe},f.CANCEL),e.createElement(qs,{id:"vbApplyButton",color:"primary",style:{textTransform:"none"},autoFocus:!0,onClick:function(){_(Y),x(!1),ke()}},f.APPLY))))))},Ol=Il;Il.defaultProps={showFullScreen:!1,showChangeModeButton:!1,changeMode:function(){},mode:"SIDEBAR",activeInputDevices:"",activeOutputDevices:"",changeAudioSourceClicked:function(){},changeVideoSourceClicked:function(){},changeAudioOutputDeviceClicked:function(){},audioOutPutDevices:[],audioDevices:[],videoDevices:[],activeVideoDevice:"",peopleClicked:function(){},setNoOfUsersInTile:function(){},noOfUsersInTile:4,localizedObject:{}},Il.propTypes={showFullScreen:gn().bool,showChangeModeButton:gn().bool,changeMode:gn().func,mode:gn().string,activeInputDevices:gn().string,activeOutputDevices:gn().string,changeAudioSourceClicked:gn().func,changeVideoSourceClicked:gn().func,changeAudioOutputDeviceClicked:gn().func,audioOutPutDevices:gn().arrayOf(gn().object),audioDevices:gn().arrayOf(gn().object),videoDevices:gn().arrayOf(gn().object),activeVideoDevice:gn().string,peopleClicked:gn().func,setNoOfUsersInTile:gn().func,noOfUsersInTile:gn().number,localizedObject:gn().object};var Nl=["title","titleId"];function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}var Dl,Ll,Pl=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Nl);return e.createElement("svg",Ml({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,xl||(xl=e.createElement("path",{d:"M15.2352 5.15674H4.01948C3.543 5.15674 3.15674 5.543 3.15674 6.01948V15.5097C3.15674 15.9862 3.543 16.3724 4.01948 16.3724H15.2352C15.7117 16.3724 16.0979 15.9862 16.0979 15.5097V6.01948C16.0979 5.543 15.7117 5.15674 15.2352 5.15674Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Tl||(Tl=e.createElement("path",{d:"M23.0002 14.701C23.0002 15.0726 22.609 15.3144 22.2766 15.1482L18.1001 13.0599C17.9307 12.9752 17.8237 12.8021 17.8237 12.6127V8.91703C17.8237 8.72764 17.9307 8.55451 18.1001 8.46981L22.2766 6.38158C22.609 6.21535 23.0002 6.4571 23.0002 6.82879V14.701Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Al||(Al=e.createElement("line",{x1:1.46072,y1:2.57767,x2:17.6781,y2:20.2694,stroke:"white",strokeWidth:1.25})))}),jl=(n.p,["title","titleId"]);function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(this,arguments)}var Fl=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,jl);return e.createElement("svg",Ul({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Dl||(Dl=e.createElement("path",{d:"M14.3913 6H1.95652C1.42825 6 1 6.42825 1 6.95652V17.4783C1 18.0065 1.42825 18.4348 1.95652 18.4348H14.3913C14.9196 18.4348 15.3478 18.0065 15.3478 17.4783V6.95652C15.3478 6.42825 14.9196 6 14.3913 6Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Ll||(Ll=e.createElement("path",{d:"M22.9999 16.6693C22.9999 17.041 22.6087 17.2827 22.2763 17.1165L17.5371 14.7469C17.3677 14.6622 17.2607 14.4891 17.2607 14.2997V10.1351C17.2607 9.94574 17.3677 9.77261 17.5371 9.68791L22.2763 7.31835C22.6087 7.15212 22.9999 7.39387 22.9999 7.76556V16.6693Z",fill:"white",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),Bl=(n.p,n(3788)),Gl=function(t){return t.isAudioOnly&&2!=t.usersLength?null:t.isVisible?e.createElement(ya,{disableHoverListener:t.noTrack,title:t.isMuted?t.localizedObject.UN_MUTE_VIDEO_TEXT:t.isAudioOnly?t.localizedObject.SWITCH_TO_VIDEO_CALL:t.localizedObject.MUTE_VIDEO_TEXT,arrow:!0},e.createElement(zn,{id:"videoButton","data-testid":"cc-video",size:"small",component:"span",className:"bottom-buttons-icon-button",onClick:st()(function(e){e.stopPropagation(),t.onPress()},500)},e.createElement("div",{"data-testid":"videoButtonIconContainer",className:"cc-bottom-buttons-icon-container ".concat(t.isAudioOnly?"cc-switch-video-icon-container":t.isMuted?"cc-video-icon-container-muted":"cc-video-icon-container")},t.isAudioOnly?e.createElement(Bl.Z,{fontSize:"medium",className:"bottom-buttons-icon-color","data-testid":"cc-video-switch"}):t.isMuted?e.createElement(Pl,{fontSize:"medium",className:"bottom-buttons-icon-color","data-testid":"cc-video-off"}):e.createElement(Fl,{fontSize:"medium",className:"bottom-buttons-icon-color","data-testid":"cc-video-on"})),t.noTrack?e.createElement(ya,{title:t.localizedObject.CAMERA_ERROR_MSG,arrow:!0},e.createElement("div",{className:"track-error-container"},e.createElement(Oa.Z,{style:{aspectRatio:1,height:16,width:16,color:"#fff"}}))):null)):null};Gl.defaultProps={isMuted:!0,onPress:function(){},isVisible:!1,localizedObject:{},noTrack:!1},Gl.propTypes={isMuted:gn().bool,isVisible:gn().bool,localizedObject:gn().object,noTrack:gn().bool,onPress:gn().func};var Vl=Gl,Hl=(n(5335),{get:function(e,t){return"isPresenter"===t?e.mode===ot?!!e.isPresenter:void 0:Reflect.get.apply(Reflect,arguments)}}),zl=new Proxy({mode:"SIDEBAR",isPresenter:!1},Hl),Yl=function(t){return e.createElement("div",{className:"".concat("SIDEBAR"===t.mode?"cc-bottom-buttons-with-padding":"cc-bottom-buttons"," cc-bottom-buttons-container"),"data-testid":"cc-bottom-bar"},t.showButtons?e.createElement(e.Fragment,null,!1!==zl.isPresenter&&e.createElement(Da,{isVisible:t.showAudioMuteButton,isMuted:Boolean(t.user.isAudioMuted||!t.user.audioTrack),onPress:t.toggleAudioButton,localizedObject:t.localizedObject,noTrack:!t.user.audioTrack}),!1!==zl.isPresenter&&e.createElement(e.Fragment,null,t.isAudioOnly?e.createElement(Vl,{isVisible:t.showVideoPauseButton,isMuted:!1,localizedObject:t.localizedObject,onPress:t.toggleVideoButton,noTrack:!1,isAudioOnly:t.isAudioOnly,usersLength:t.usersLength-t.isAnyScreenShareUser.length}):e.createElement(Vl,{isVisible:t.showVideoPauseButton,isMuted:t.presenterTrack?Boolean(t.isPresenterTrackMuted):Boolean(t.user.isVideoMuted||!t.user.videoTrack),localizedObject:t.localizedObject,onPress:t.toggleVideoButton,noTrack:!t.user.videoTrack})),!1!==zl.isPresenter&&e.createElement(co,{isOn:t.isScreenShareOn,isVisible:t.showScreenShareButton,localizedObject:t.localizedObject,onPress:t.onScreenShareClicked}),!1!==zl.isPresenter&&e.createElement($a,{isOn:t.isRecording,isVisible:t.showRecordingButton,onPress:t.recordingClicked,localizedObject:t.localizedObject}),e.createElement(Ba,{onPress:t.onEndCallButtonCLicked,isVisible:t.showEndCallButton,localizedObject:t.localizedObject})):null,e.createElement("div",{className:"bottom-buttons-other-options"},!1!==zl.isPresenter&&e.createElement(Ol,{setNoOfUsersPerPage:t.setNoOfUsersPerPage,noOfUsersPerPage:t.noOfUsersPerPage,isAudioOnly:t.isAudioOnly,localizedObject:t.localizedObject,noOfUsersInTile:t.noOfUsersInTile,setNoOfUsersInTile:t.setNoOfUsersInTile,showFullScreen:t.showFullScreen,showChangeModeButton:t.showChangeModeButton,changeMode:t.changeMode,mode:t.mode,activeInputDevices:t.activeInputDevices,activeOutputDevices:t.activeOutputDevices,changeAudioSourceClicked:t.changeAudioSourceClicked,changeVideoSourceClicked:t.changeVideoSourceClicked,changeAudioOutputDeviceClicked:t.changeAudioOutputDeviceClicked,audioOutPutDevices:t.audioOutPutDevices,audioDevices:t.audioDevices,videoDevices:t.videoDevices,peopleClicked:t.peopleClicked,activeVideoDevice:t.user&&t.user.videoTrack?t.user.videoTrack.deviceId:"",onBackgroundEffectSelected:t.onBackgroundEffectSelected,selectedBg:t.selectedBg,appliedBg:t.appliedBg,SetImages:t.SetImages,localVideoTrack:t.localVideoTrack,setSelectedBg:t.setSelectedBg,db:t.db,AllowBackgroundBlur:t.AllowBackgroundBlur,AllowUserImages:t.AllowUserImages,ShowDefaultImages:t.ShowDefaultImages,isBackgroundModelVisible:t.isBackgroundModelVisible,setIsBackgroundModalVisible:t.setIsBackgroundModalVisible,EnforceBackgroundImage:t.EnforceBackgroundImage,ShowVirtualBackgroundSetting:t.ShowVirtualBackgroundSetting,EnforceBackgroundBlur:t.EnforceBackgroundBlur,addedBackgroundImage:t.addedBackgroundImage,addedBackgroundBlur:t.addedBackgroundBlur}),e.createElement(xn,{xsDown:!0},e.createElement(zn,{"data-testid":"cc-userlist-button",component:"span",className:"bottom-buttons-icon-button",style:{cursor:!1===zl.isPresenter?"auto":"pointer"},onClick:function(e){e.stopPropagation(),!1!==zl.isPresenter&&t.peopleClicked()}},e.createElement(qn,{badgeContent:t.usersLength,color:"primary",max:999},e.createElement(Jn,{className:"bottom-buttons-icon-color"}))))))};Yl.defaultProps={isScreenShareOn:!1,showAudioMuteButton:!1,showVideoPauseButton:!1,user:{},toggleAudioButton:function(){},toggleVideoButton:function(){},showScreenShareButton:!1,onScreenShareClicked:function(){},isRecording:!1,showRecordingButton:!1,recordingClicked:function(){},onEndCallButtonCLicked:function(){},showFullScreen:!1,showChangeModeButton:!1,changeMode:function(){},mode:"SIDEBAR",activeInputDevices:"",activeOutputDevices:"",changeAudioSourceClicked:function(){},changeVideoSourceClicked:function(){},changeAudioOutputDeviceClicked:function(){},audioOutPutDevices:[],audioDevices:[],videoDevices:[],peopleClicked:function(){},noOfUsersInTile:4,setNoOfUsersInTile:gn().func,usersLength:0,localizedObject:rt,showEndCallButton:!0,showButtons:!0},Yl.propTypes={showAudioMuteButton:gn().bool,user:gn().object,toggleAudioButton:gn().func,toggleVideoButton:gn().func,showVideoPauseButton:gn().bool,isScreenShareOn:gn().bool,showScreenShareButton:gn().bool,onScreenShareClicked:gn().func,isRecording:gn().bool,showRecordingButton:gn().bool,recordingClicked:gn().func,onEndCallButtonCLicked:gn().func,showFullScreen:gn().bool,showChangeModeButton:gn().bool,changeMode:gn().func,mode:gn().string,activeInputDevices:gn().string,activeOutputDevices:gn().string,changeAudioSourceClicked:gn().func,changeVideoSourceClicked:gn().func,changeAudioOutputDeviceClicked:gn().func,audioOutPutDevices:gn().array,audioDevices:gn().array,videoDevices:gn().array,peopleClicked:gn().func,noOfUsersInTile:gn().number,setNoOfUsersInTile:gn().func,usersLength:gn().number,localizedObject:gn().object,showEndCallButton:gn().bool,showButtons:gn().bool};var ql,Kl,Wl,Jl,Zl=e.memo(Yl);function $l(e){return $l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(e)}function Ql(){Ql=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==$l(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Xl(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function eu(e,t){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eu(e,t)}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tu(e)}var nu="CallingAnalytics",ru=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eu(e,t)}(c,e);var t,n,r,a,o,i,s=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=tu(o);if(i){var n=tu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===$l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),t=s.call(this,e),ql=e.user,Kl=e.appID,Wl=e.sessionID,t.props=e,Jl=t.props.analyticsSettings,t}return t=c,n=[{key:"componentDidMount",value:function(){var e=this;setInterval(function(){e.ping(e.props)},6e4)}},{key:"getAnalyticsUrl",value:function(){return"https://"+Jl.ANALYTICS_HOST+"/"+Jl.ANALYTICS_VERSION+"/calls/ping"}},{key:"ping",value:(r=Ql().mark(function e(t){var n,r,a,o;return Ql().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(n=new Headers).append("appId",Kl),n.append("authorization","Beare "+ql.jwt),n.append("Content-Type","application/json"),r={uts:Date.now(),wsId:ql.resource,type:null!=t&&t.isAudioOnly?"audio":"video",sessionId:Wl,isRecording:!1},a=JSON.stringify(r),pt.log(nu,"Ping data = ",r),o={method:"POST",headers:n,body:a,redirect:"follow"},pt.log(nu,"res",JSON.stringify(o)),fetch(this.getAnalyticsUrl(),o).then(function(e){return e.json()}).then(function(e){return pt.log(nu,"Ping result => ",e.data)}).catch(function(e){return pt.log(nu,"Ping error =>",e)});case 11:case"end":return e.stop()}},e,this)}),a=function(){var e=this,t=arguments;return new Promise(function(n,a){var o=r.apply(e,t);function i(e){Xl(o,n,a,i,s,"next",e)}function s(e){Xl(o,n,a,i,s,"throw",e)}i(void 0)})},function(e){return a.apply(this,arguments)})},{key:"render",value:function(){return null}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==$l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==$l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===$l(a)?a:String(a)),r)}var a}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(e.Component),au=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=(0,i.Z)(t,["classes","className"]),l=e.useContext(Gi);return e.createElement("div",(0,o.Z)({className:(0,a.Z)(r.root,s,"flex-start"===l.alignItems&&r.alignItemsFlexStart),ref:n},c))}),ou=(0,N.Z)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(au),iu=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=(0,i.Z)(t,["classes","className"]);return e.createElement("div",(0,o.Z)({className:(0,a.Z)(r.root,s),ref:n},c))});iu.muiName="ListItemSecondaryAction";var su,cu,lu,uu=(0,N.Z)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(iu),du=["title","titleId"];function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pu.apply(this,arguments)}var hu,mu,gu=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,du);return e.createElement("svg",pu({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,su||(su=e.createElement("path",{d:"M15.2352 5.15674H4.01948C3.543 5.15674 3.15674 5.543 3.15674 6.01948V15.5097C3.15674 15.9862 3.543 16.3724 4.01948 16.3724H15.2352C15.7117 16.3724 16.0979 15.9862 16.0979 15.5097V6.01948C16.0979 5.543 15.7117 5.15674 15.2352 5.15674Z",fill:"#d93438",stroke:"#d93438",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),cu||(cu=e.createElement("path",{d:"M23.0002 14.701C23.0002 15.0726 22.609 15.3144 22.2766 15.1482L18.1001 13.0599C17.9307 12.9752 17.8237 12.8021 17.8237 12.6127V8.91703C17.8237 8.72764 17.9307 8.55451 18.1001 8.46981L22.2766 6.38158C22.609 6.21535 23.0002 6.4571 23.0002 6.82879V14.701Z",fill:"#d93438",stroke:"#d93438",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),lu||(lu=e.createElement("line",{x1:1.46072,y1:2.57767,x2:17.6781,y2:20.2694,stroke:"#d93438",strokeWidth:1.25})))}),fu=(n.p,["title","titleId"]);function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_u.apply(this,arguments)}var bu=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,fu);return e.createElement("svg",_u({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,hu||(hu=e.createElement("path",{d:"M14.3913 6H1.95652C1.42825 6 1 6.42825 1 6.95652V17.4783C1 18.0065 1.42825 18.4348 1.95652 18.4348H14.3913C14.9196 18.4348 15.3478 18.0065 15.3478 17.4783V6.95652C15.3478 6.42825 14.9196 6 14.3913 6Z",fill:"#00D7A4",stroke:"#00D7A4",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),mu||(mu=e.createElement("path",{d:"M22.9999 16.6693C22.9999 17.041 22.6087 17.2827 22.2763 17.1165L17.5371 14.7469C17.3677 14.6622 17.2607 14.4891 17.2607 14.2997V10.1351C17.2607 9.94574 17.3677 9.77261 17.5371 9.68791L22.2763 7.31835C22.6087 7.15212 22.9999 7.39387 22.9999 7.76556V16.6693Z",fill:"#00D7A4",stroke:"#00D7A4",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}),vu=(n.p,n(3547)),yu=(0,ni.Z)(e.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),Eu=e.forwardRef(function(t,n){var r,s=t.alt,c=t.children,l=t.classes,u=t.className,d=t.component,p=void 0===d?"div":d,h=t.imgProps,m=t.sizes,g=t.src,f=t.srcSet,_=t.variant,b=void 0===_?"circular":_,v=(0,i.Z)(t,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),y=function(t){var n=t.src,r=t.srcSet,a=e.useState(!1),o=a[0],i=a[1];return e.useEffect(function(){if(n||r){i(!1);var e=!0,t=new Image;return t.src=n,t.srcSet=r,t.onload=function(){e&&i("loaded")},t.onerror=function(){e&&i("error")},function(){e=!1}}},[n,r]),o}({src:g,srcSet:f}),E=g||f,C=E&&"error"!==y;return r=C?e.createElement("img",(0,o.Z)({alt:s,src:g,srcSet:f,sizes:m,className:l.img},h)):null!=c?c:E&&s?s[0]:e.createElement(yu,{className:l.fallback}),e.createElement(p,(0,o.Z)({className:(0,a.Z)(l.root,l.system,l[b],u,!C&&l.colorDefault),ref:n},v),r)}),Cu=(0,N.Z)(function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}},{name:"MuiAvatar"})(Eu);function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(n),!0).forEach(function(t){xu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!==Su(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Su(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Au=L(function(e){return{root:{display:"flex","& > *":{margin:e.spacing(1)}},small:{width:"auto",maxHeight:"90%",height:"50%",aspectRatio:1},medium:{width:"auto",height:"50%",maxHeight:"90%",aspectRatio:1},large:{width:"auto",height:"50%",maxHeight:"90%",aspectRatio:1},fill:{width:"100%",height:"100%"},iosImage:{objectFit:"contain",borderRadius:"50%",width:"auto"},iosContainer:{width:"auto"}}}),Ru=function(t){var n,r=t.user,a=t.size,o=t.style,i=function(e){if(Array.isArray(e))return e}(n=(0,e.useState)(!1))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(n)||function(e){if(e){if("string"==typeof e)return Tu(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Tu(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[0],c=i[1],l=Au();(0,e.useEffect)(function(){d()},[]);var u,d=function(){try{var e=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS");c(e)}catch(e){}};return r.avatar?e.createElement(Cu,{variant:"fill"===a||"square"===a?"square":"circular",alt:r.name,classes:(s||Lt.isMob())&&{img:l.iosImage},className:"".concat(l["square"===a?"large":"fill"!==a||r.avatar?a:"large"]," ").concat(s?l.iosContainer:""),style:o,src:r.avatar}):e.createElement(Cu,{variant:"fill"===a||"square"===a?"square":"circular",alt:r.name,classes:(s||Lt.isMob())&&{img:l.iosImage},className:"".concat(l["square"===a?"large":"fill"!==a||r.avatar?a:"large"]," "),style:ku(ku({},o),{},{backgroundColor:lt.stringToColour(r.name),fontSize:"large"==a?"20vmin":"medium"==a?"10vmin":"20px",fontWeight:"bold"}),size:a},null===(u=r.name[0])||void 0===u?void 0:u.toUpperCase())},Iu=e.memo(Ru);function Ou(e){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ou(e)}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nu(e,t)}function Mu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Du(e){return Du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Du(e)}function Lu(e,t,n){return(t=Pu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pu(e){var t=function(e){if("object"!==Ou(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ou(t)?t:String(t)}Ru.propTypes={user:gn().object,size:gn().string,style:gn().object},Ru.defaultProps={user:gn().array,size:"circle",style:{}},n.p;var ju,Uu,Fu,Bu=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nu(e,t)}(s,t);var n,r,a,o,i=(a=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Du(a);if(o){var n=Du(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ou(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mu(e)}(this,e)});function s(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Lu(Mu(n=i.call(this,t)),"_isMounted",!1),Lu(Mu(n),"setAudiolevel",function(e){if(n._isMounted&&n.props.track&&!n.props.track.isMuted()){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,.1,.2,.5,.8,1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,28,38,40,44,47],r=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);n++);return n-1}(e,t);return function(e,t,n,r,a){return r==a?r:t==n?e<=t?r:a:r+(a-r)*(e-t)/(n-t)}(e,t[r],t[r+1],n[r],n[r+1])}(e);n.heightRef.current.style.height="".concat(t,"%")}}),n._isMounted=!1,n.heightRef=e.createRef(),n}return n=s,(r=[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.track&&this.props.track.on(window.JitsiMeetJS.events.track.TRACK_AUDIO_LEVEL_CHANGED,this.setAudiolevel)}},{key:"componentDidUpdate",value:function(e){this.props.track!==e.track&&e.track&&this.props.track&&(e.track.off(window.JitsiMeetJS.events.track.TRACK_AUDIO_LEVEL_CHANGED,this.setAudiolevel),this.props.track.on(window.JitsiMeetJS.events.track.TRACK_AUDIO_LEVEL_CHANGED,this.setAudiolevel))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){return this.props.noisy,e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M11.8333 17V21.1667V17ZM11.8333 2C10.9493 2 10.1014 2.35119 9.47631 2.97631C8.85119 3.60143 8.5 4.44928 8.5 5.33333V11.1667C8.5 12.0507 8.85119 12.8986 9.47631 13.5237C10.1014 14.1488 10.9493 14.5 11.8333 14.5C12.7174 14.5 13.5652 14.1488 14.1904 13.5237C14.8155 12.8986 15.1667 12.0507 15.1667 11.1667V5.33333C15.1667 4.44928 14.8155 3.60143 14.1904 2.97631C13.5652 2.35119 12.7174 2 11.8333 2Z",stroke:"#00D7A4","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M17.6667 8.66675V11.1667C17.6667 12.7138 17.0521 14.1976 15.9581 15.2915C14.8642 16.3855 13.3804 17.0001 11.8333 17.0001C10.2862 17.0001 8.80251 16.3855 7.70854 15.2915C6.61458 14.1976 6 12.7138 6 11.1667V8.66675",stroke:"#00D7A4","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("rect",{ref:this.heightRef,x:"9.37",y:"10.12",width:"5.59",height:"11.28",rx:"0",fill:"#00D7A4",style:{transformOrigin:"center",transform:"rotate(180deg)",height:"0%",transition:"height 0.2s"}}))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pu(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component),Gu=["title","titleId"];function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vu.apply(this,arguments)}var Hu=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Gu);return e.createElement("svg",Vu({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,ju||(ju=e.createElement("path",{d:"M11.8333 17V21.1667V17ZM11.8333 2C10.9493 2 10.1014 2.35119 9.47631 2.97631C8.85119 3.60143 8.5 4.44928 8.5 5.33333V11.1667C8.5 12.0507 8.85119 12.8986 9.47631 13.5237C10.1014 14.1488 10.9493 14.5 11.8333 14.5C12.7174 14.5 13.5652 14.1488 14.1904 13.5237C14.8155 12.8986 15.1667 12.0507 15.1667 11.1667V5.33333C15.1667 4.44928 14.8155 3.60143 14.1904 2.97631C13.5652 2.35119 12.7174 2 11.8333 2V2Z",fill:"#FF274D",stroke:"#FF274D",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Uu||(Uu=e.createElement("path",{d:"M17.6667 8.66675V11.1667C17.6667 12.7138 17.0521 14.1976 15.9581 15.2915C14.8642 16.3855 13.3804 17.0001 11.8333 17.0001C10.2862 17.0001 8.80251 16.3855 7.70854 15.2915C6.61458 14.1976 6 12.7138 6 11.1667V8.66675",stroke:"#FF274D",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Fu||(Fu=e.createElement("line",{x1:5.52554,y1:.601614,x2:20.0173,y2:19.7324,stroke:"#FF274D",strokeWidth:1.25})))});function zu(e){return zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zu(e)}function Yu(e,t,n){return(t=function(e){var t=function(e){if("object"!==zu(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==zu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.p;var qu,Ku,Wu=(0,Ec.Z)(function(e){var t;return{root:{flexGrow:1,maxWidth:752},demo:{backgroundColor:e.palette.background.paper},title:{margin:16,marginBottom:0,display:"flex",justifyContent:"space-between",alignItems:"center"},container:(t={},Yu(t,e.breakpoints.only("xs"),{position:"absolute",right:0,left:0,top:0,bottom:"80px"}),Yu(t,e.breakpoints.up("sm"),{width:350}),Yu(t,"@media (width:600px)",{position:"absolute",right:0,left:0,top:0,bottom:"80px",width:"auto"}),Yu(t,"display","flex"),Yu(t,"paddingLeft",8),Yu(t,"paddingRight",8),t),userNameStyle:{width:120,textOverflow:"ellipsis",overflow:"hidden",color:"#fff",whiteSpace:"nowrap",height:"20px"},iconsContainer:{display:"flex",flexDirection:"row",maxWidth:"125px"},detailsContainer:{display:"flex",justifyContent:"center",alignItems:"center"},iconStyle:{marginLeft:5,width:24},videoOnIconStyle:{color:"rgba(0, 215, 164, 1)",marginLeft:5,width:24},iconButtonstyle:{border:"none",outline:"none"},menuIconContainer:{marginRight:15,zIndex:3e4},sliderContainer:{display:"flex",flex:1,marginTop:8,flexDirection:"column",zIndex:100,backgroundColor:"rgb(36, 43, 48)"},paperContainer:{flexDirection:"column",display:"flex",flex:1,justifyContent:"flex-start"},colorWhite:{color:"#fff"}}}),Ju=["title","titleId"];function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zu.apply(this,arguments)}var $u,Qu,Xu,ed,td=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Ju);return e.createElement("svg",Zu({width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,qu||(qu=e.createElement("g",{clipPath:"url(#clip0)"},e.createElement("path",{d:"M12.4999 15.4497L12.4999 28.7631Z",fill:"white"}),e.createElement("path",{d:"M12.4999 15.4497L12.4999 28.7631",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M16.7425 3.429C16.8354 3.42901 16.9274 3.41073 17.0131 3.3752C17.0989 3.33967 17.1769 3.28759 17.2426 3.22193C17.3082 3.15626 17.3603 3.0783 17.3958 2.99251C17.4314 2.90671 17.4497 2.81476 17.4496 2.72189L17.4496 1.60042C17.4496 1.33526 17.3442 1.08096 17.1567 0.893465C16.9692 0.705965 16.715 0.600611 16.4498 0.600571L8.54999 0.600572C8.28483 0.600612 8.03054 0.705966 7.84304 0.893466C7.65554 1.08096 7.55019 1.33526 7.55015 1.60042L7.55014 2.72189C7.55013 2.81476 7.56841 2.90671 7.60394 2.99251C7.63947 3.0783 7.69156 3.15626 7.75722 3.22192C7.82288 3.28759 7.90084 3.33967 7.98664 3.3752C8.07243 3.41073 8.16439 3.42901 8.25725 3.429C8.35011 3.42899 8.44207 3.44727 8.52787 3.4828C8.61366 3.51833 8.69162 3.57041 8.75728 3.63607C8.82295 3.70174 8.87503 3.7797 8.91056 3.86549C8.94609 3.95129 8.96437 4.04324 8.96436 4.13611L8.96436 10.0857C8.9644 10.3509 8.8591 10.6052 8.67162 10.7928L6.42867 13.0358C6.24119 13.2233 6.13589 13.4777 6.13593 13.7429L6.13593 14.45C6.13597 14.7151 6.24133 14.9694 6.42883 15.1569C6.61632 15.3444 6.87062 15.4498 7.13578 15.4498L17.864 15.4498C18.1292 15.4498 18.3835 15.3444 18.571 15.1569C18.7585 14.9694 18.8638 14.7151 18.8639 14.45V13.7429C18.8639 13.4777 18.7586 13.2233 18.5711 13.0358L16.3289 10.7935C16.1414 10.606 16.0361 10.3516 16.0361 10.0864L16.0361 4.13681C16.036 4.04395 16.0542 3.95198 16.0897 3.86614C16.1251 3.78031 16.1771 3.7023 16.2427 3.63657C16.3083 3.57084 16.3862 3.51868 16.472 3.48307C16.5577 3.44745 16.6497 3.42908 16.7425 3.429V3.429Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}))),Ku||(Ku=e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(0.5 0.5)"})))))}),nd=(n.p,["title","titleId"]);function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}var ad,od,id,sd,cd,ld=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,nd);return e.createElement("svg",rd({width:35,height:36,viewBox:"0 0 35 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,$u||($u=e.createElement("path",{d:"M18.1315 21.0813L18.1315 34.3947L18.1315 21.0813Z",fill:"white"})),Qu||(Qu=e.createElement("path",{d:"M18.1315 21.0813L18.1315 34.3947",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})),Xu||(Xu=e.createElement("path",{d:"M22.3741 9.06059C22.467 9.06061 22.5589 9.04233 22.6447 9.0068C22.7305 8.97126 22.8085 8.91918 22.8742 8.85352C22.9398 8.78785 22.9919 8.7099 23.0274 8.6241C23.063 8.5383 23.0812 8.44635 23.0812 8.35349L23.0812 7.23201C23.0812 6.96685 22.9758 6.71256 22.7883 6.52506C22.6008 6.33756 22.3465 6.2322 22.0814 6.23216L14.1816 6.23216C13.9164 6.2322 13.6621 6.33756 13.4746 6.52506C13.2871 6.71256 13.1818 6.96685 13.1817 7.23201L13.1817 8.35348C13.1817 8.44635 13.2 8.5383 13.2355 8.6241C13.2711 8.7099 13.3231 8.78785 13.3888 8.85352C13.4545 8.91918 13.5324 8.97126 13.6182 9.00679C13.704 9.04232 13.796 9.06061 13.8888 9.06059C13.9817 9.06058 14.0737 9.07886 14.1595 9.11439C14.2453 9.14992 14.3232 9.202 14.3889 9.26767C14.4545 9.33333 14.5066 9.41129 14.5422 9.49708C14.5777 9.58288 14.596 9.67484 14.5959 9.7677L14.5959 15.7173C14.596 15.9825 14.4907 16.2368 14.3032 16.4244L12.0603 18.6673C11.8728 18.8549 11.7675 19.1093 11.7675 19.3745L11.7675 20.0816C11.7676 20.3467 11.8729 20.601 12.0604 20.7885C12.2479 20.976 12.5022 21.0814 12.7674 21.0814L23.4956 21.0814C23.7608 21.0814 24.0151 20.976 24.2026 20.7885C24.39 20.601 24.4954 20.3467 24.4954 20.0816V19.3744C24.4955 19.1093 24.3902 18.8549 24.2027 18.6673L21.9605 16.4251C21.773 16.2375 21.6677 15.9832 21.6677 15.718L21.6677 9.76841C21.6676 9.67554 21.6858 9.58357 21.7213 9.49774C21.7567 9.4119 21.8087 9.3339 21.8743 9.26817C21.9399 9.20244 22.0178 9.15027 22.1036 9.11466C22.1893 9.07904 22.2813 9.06067 22.3741 9.06059Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})),ed||(ed=e.createElement("line",{x1:10.086,y1:5.20257,x2:27.2516,y2:23.3779,stroke:"white",strokeWidth:1.25})))}),ud=(n.p,["title","titleId"]);function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}var pd,hd,md=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,ud);return e.createElement("svg",dd({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,ad||(ad=e.createElement("path",{d:"M3 15H1C0.723858 15 0.5 15.2239 0.5 15.5V20.5C0.5 20.7761 0.723858 21 1 21H3C3.27614 21 3.5 20.7761 3.5 20.5V15.5C3.5 15.2239 3.27614 15 3 15Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),od||(od=e.createElement("path",{d:"M8 12H6C5.72386 12 5.5 12.2239 5.5 12.5V20.5C5.5 20.7761 5.72386 21 6 21H8C8.27614 21 8.5 20.7761 8.5 20.5V12.5C8.5 12.2239 8.27614 12 8 12Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),id||(id=e.createElement("path",{d:"M13 9H11C10.7239 9 10.5 9.22386 10.5 9.5V20.5C10.5 20.7761 10.7239 21 11 21H13C13.2761 21 13.5 20.7761 13.5 20.5V9.5C13.5 9.22386 13.2761 9 13 9Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),sd||(sd=e.createElement("path",{d:"M18 6H16C15.7239 6 15.5 6.22386 15.5 6.5V20.5C15.5 20.7761 15.7239 21 16 21H18C18.2761 21 18.5 20.7761 18.5 20.5V6.5C18.5 6.22386 18.2761 6 18 6Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),cd||(cd=e.createElement("path",{d:"M23 3H21C20.7239 3 20.5 3.22386 20.5 3.5V20.5C20.5 20.7761 20.7239 21 21 21H23C23.2761 21 23.5 20.7761 23.5 20.5V3.5C23.5 3.22386 23.2761 3 23 3Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})))}),gd=(n.p,["title","titleId"]);function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(this,arguments)}var _d,bd,vd,yd,Ed,Cd=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,gd);return e.createElement("svg",fd({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,pd||(pd=e.createElement("g",{clipPath:"url(#clip0)"},e.createElement("path",{d:"M0 13H3V19H0V13ZM5 10H8V19H5V10ZM10 7H13V19H10V7ZM15 4H18V19H15V4ZM20 19H23H20Z",fill:"#00D7A4"}),e.createElement("path",{d:"M20 19H23M0 13H3V19H0V13ZM5 10H8V19H5V10ZM10 7H13V19H10V7ZM15 4H18V19H15V4Z",stroke:"#00D7A4",strokeWidth:.833333,strokeLinecap:"round",strokeLinejoin:"round"}))),hd||(hd=e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:24,height:24,fill:"white"})))))}),Sd=(n.p,["title","titleId"]);function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}var kd,xd,Td,Ad,Rd,Id=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Sd);return e.createElement("svg",wd({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,_d||(_d=e.createElement("path",{d:"M3 12H1C0.723858 12 0.5 12.2239 0.5 12.5V17.5C0.5 17.7761 0.723858 18 1 18H3C3.27614 18 3.5 17.7761 3.5 17.5V12.5C3.5 12.2239 3.27614 12 3 12Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),bd||(bd=e.createElement("path",{d:"M8 9H6C5.72386 9 5.5 9.22386 5.5 9.5V17.5C5.5 17.7761 5.72386 18 6 18H8C8.27614 18 8.5 17.7761 8.5 17.5V9.5C8.5 9.22386 8.27614 9 8 9Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),vd||(vd=e.createElement("path",{d:"M13 6H11C10.7239 6 10.5 6.22386 10.5 6.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V6.5C13.5 6.22386 13.2761 6 13 6Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),yd||(yd=e.createElement("path",{d:"M15.5 18H18.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Ed||(Ed=e.createElement("path",{d:"M20.5 18H23.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})))}),Od=(n.p,["title","titleId"]);function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}var Md,Dd,Ld,Pd,jd,Ud=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Od);return e.createElement("svg",Nd({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,kd||(kd=e.createElement("path",{d:"M3 10.5H1C0.723858 10.5 0.5 10.7239 0.5 11V16C0.5 16.2761 0.723858 16.5 1 16.5H3C3.27614 16.5 3.5 16.2761 3.5 16V11C3.5 10.7239 3.27614 10.5 3 10.5Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),xd||(xd=e.createElement("path",{d:"M8 7.5H6C5.72386 7.5 5.5 7.72386 5.5 8V16C5.5 16.2761 5.72386 16.5 6 16.5H8C8.27614 16.5 8.5 16.2761 8.5 16V8C8.5 7.72386 8.27614 7.5 8 7.5Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Td||(Td=e.createElement("path",{d:"M10.5 16.5H13.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Ad||(Ad=e.createElement("path",{d:"M15.5 16.5H18.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Rd||(Rd=e.createElement("path",{d:"M20.5 16.5H23.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})))}),Fd=(n.p,["title","titleId"]);function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}var Gd,Vd,Hd,zd,Yd,qd=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Fd);return e.createElement("svg",Bd({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Md||(Md=e.createElement("path",{d:"M3 9H1C0.723858 9 0.5 9.22386 0.5 9.5V14.5C0.5 14.7761 0.723858 15 1 15H3C3.27614 15 3.5 14.7761 3.5 14.5V9.5C3.5 9.22386 3.27614 9 3 9Z",fill:"#00D7A4",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Dd||(Dd=e.createElement("path",{d:"M5.5 15H8.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Ld||(Ld=e.createElement("path",{d:"M10.5 15H13.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),Pd||(Pd=e.createElement("path",{d:"M15.5 15H18.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})),jd||(jd=e.createElement("path",{d:"M20.5 15H23.5",stroke:"#00D7A4",strokeLinecap:"round",strokeLinejoin:"round"})))}),Kd=(n.p,["title","titleId"]);function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(this,arguments)}var Jd=e.forwardRef(function(t,n){var r=t.title,a=t.titleId,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,Kd);return e.createElement("svg",Wd({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:n,"aria-labelledby":a},o),r?e.createElement("title",{id:a},r):null,Gd||(Gd=e.createElement("path",{d:"M3 15H1C0.723858 15 0.5 15.2239 0.5 15.5V20.5C0.5 20.7761 0.723858 21 1 21H3C3.27614 21 3.5 20.7761 3.5 20.5V15.5C3.5 15.2239 3.27614 15 3 15Z",fill:"#808080",stroke:"#808080",strokeLinecap:"round",strokeLinejoin:"round"})),Vd||(Vd=e.createElement("path",{d:"M8 12H6C5.72386 12 5.5 12.2239 5.5 12.5V20.5C5.5 20.7761 5.72386 21 6 21H8C8.27614 21 8.5 20.7761 8.5 20.5V12.5C8.5 12.2239 8.27614 12 8 12Z",fill:"#808080",stroke:"#808080",strokeLinecap:"round",strokeLinejoin:"round"})),Hd||(Hd=e.createElement("path",{d:"M13 9H11C10.7239 9 10.5 9.22386 10.5 9.5V20.5C10.5 20.7761 10.7239 21 11 21H13C13.2761 21 13.5 20.7761 13.5 20.5V9.5C13.5 9.22386 13.2761 9 13 9Z",fill:"#808080",stroke:"#808080",strokeLinecap:"round",strokeLinejoin:"round"})),zd||(zd=e.createElement("path",{d:"M18 6H16C15.7239 6 15.5 6.22386 15.5 6.5V20.5C15.5 20.7761 15.7239 21 16 21H18C18.2761 21 18.5 20.7761 18.5 20.5V6.5C18.5 6.22386 18.2761 6 18 6Z",fill:"#808080",stroke:"#808080",strokeLinecap:"round",strokeLinejoin:"round"})),Yd||(Yd=e.createElement("path",{d:"M23 3H21C20.7239 3 20.5 3.22386 20.5 3.5V20.5C20.5 20.7761 20.7239 21 21 21H23C23.2761 21 23.5 20.7761 23.5 20.5V3.5C23.5 3.22386 23.2761 3 23 3Z",fill:"#808080",stroke:"#808080",strokeLinecap:"round",strokeLinejoin:"round"})))});function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zd.apply(this,arguments)}function $d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.p;var Qd=function(t){return t?t<20?e.createElement(qd,{style:{height:24,width:24}}):t<40?e.createElement(Ud,{style:{height:24,width:24}}):t<60?e.createElement(Id,{style:{height:24,width:24}}):t<80?e.createElement(Cd,{style:{height:24,width:24}}):e.createElement(md,{style:{height:24,width:24}}):e.createElement(Jd,{style:{height:24,width:24}})},Xd=function(t){var n,r=function(e){if(Array.isArray(e))return e}(n=(0,e.useState)(null))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(n)||function(e){if(e){if("string"==typeof e)return $d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$d(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],o=r[1],i=Wu(),s=(0,e.useRef)([]);return e.createElement("div",{className:i.container,fixed:!0},e.createElement(R,{className:i.sliderContainer,direction:"left",in:!0},e.createElement(No,{className:i.paperContainer},e.createElement("div",{className:i.title},e.createElement(Uo,{className:i.colorWhite,variant:"h4"},t.localizedObject.USER_LIST),e.createElement(zn,{component:"span",style:{backgroundColor:"#31383e",padding:8},onClick:function(e){e.stopPropagation(),t.close()},size:"small"},e.createElement(xc,{style:{height:16,width:16},className:i.colorWhite,fontSize:"small"}))),e.createElement(Hi,{className:"scroll"},t.users.map(function(n,r){return e.createElement("div",{key:n.id,"data-testid":"cc-userlist"},e.createElement(Os,null,e.createElement(ou,{style:{minWidth:40}},e.createElement("div",{style:{position:"relative"}},e.createElement(ya,{disableHoverListener:n.id!==t.recorderId,title:t.localizedObject.RECORDER_LABEL,arrow:!0},e.createElement(qn,{invisible:n.id!==t.recorderId,color:"error",badgeContent:"R",variant:"standard"},e.createElement(Iu,{size:"small",style:{height:32,width:32},user:null!=n&&n.screenShareUserID?t.users.find(function(e){return e.id==n.screenShareUserID}):n}))),fm(null==n?void 0:n.videoTrack)&&e.createElement("div",{style:{position:"absolute",bottom:"-5px",backgroundColor:"#242b2f",right:"0px",justifyContent:"center",alignItems:"center",display:"flex",borderRadius:"4px",width:"20px",height:"20px"}},e.createElement(io,{style:{height:14}})))),e.createElement(Uo,{variant:"h5",className:i.userNameStyle},ut(n.name||"")),e.createElement(uu,{className:i.iconsContainer},e.createElement("div",{style:{display:"flex",width:32,justifyContent:"center",alignItems:"center"}},Qd?Qd(t.connectionQuality[n.id]):null),e.createElement("div",{style:{display:"flex",width:32,justifyContent:"center",alignItems:"center"}},n.isAudioMuted||!n.audioTrack?e.createElement(Hu,{style:{color:"rgb(6, 170, 33)"},fontSize:"medium"}):e.createElement(Bu,{noisy:1==t.noisyMics[n.id],track:n.audioTrack})),!t.isAudioOnly&&e.createElement("div",{style:{display:"flex",width:32,justifyContent:"center",alignItems:"center"}},n.isVideoMuted||!n.videoTrack?e.createElement(gu,{style:{color:"rgb(6, 170, 33)"},fontSize:"default"}):e.createElement(bu,{className:i.videoOnIconStyle,fontSize:"default"})),e.createElement(zn,{"data-testid":"cc-userlist-menu-button-".concat(n.id),component:"span",className:i.iconButtonstyle,ref:function(e){return s.current[r]=e},onClick:function(e){e.preventDefault(),o(n.id)},edge:"end","aria-controls":"simple-menu"},e.createElement(vu.Z,{className:i.colorWhite})),e.createElement(ua,{open:a===n.id,role:void 0,anchorEl:s.current[r],transition:!0,disablePortal:!0,placement:"left",modifiers:{preventOverflow:{enabled:!0,boundariesElement:"scrollParent"}}},function(a){var s=a.TransitionProps;return e.createElement(er,Zd({},s,{style:{transformOrigin:"left-end"}}),e.createElement(No,null,e.createElement(H,{onClickAway:function(){return o(null)}},e.createElement(Zi,{id:"menu-list-grow",onKeyDown:function(){o(null)},style:{backgroundColor:"rgb(30,30,30)"}},0!==r&&!n.isAudioMuted&&n.audioTrack?e.createElement(Ms,{"data-testid":"cc-mute-user",onClick:function(){o(null),t.muteUser(n)}},e.createElement("div",{className:i.menuIconContainer},e.createElement(Ia,{className:i.colorWhite,fontSize:"medium"})),e.createElement(Uo,{className:i.colorWhite,variant:"h5"},t.localizedObject.MUTE_USER)):null,t.pinnedUserId===n.id?e.createElement(Ms,{onClick:function(){o(null),t.unPinUser(n.id)}},e.createElement("div",{className:i.menuIconContainer},e.createElement(ld,{style:{height:24,width:24},className:i.colorWhite})),e.createElement(Uo,{className:i.colorWhite,variant:"h5"},t.localizedObject.UNPIN_USER)):e.createElement(Ms,{onClick:function(){o(null),t.pinUser(n)}},e.createElement("div",{className:i.menuIconContainer},e.createElement(td,{style:{height:24,width:24},className:i.colorWhite})),e.createElement(Uo,{className:i.colorWhite,variant:"h5"},t.localizedObject.PIN_USER))))))}))))})))))},ep=e.memo(Xd);function tp(e){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tp(e)}function np(e,t){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},np(e,t)}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rp(e)}Xd.propTypes={users:gn().array,close:gn().func,pinUser:gn().func,unPinUser:gn().func,pinnedUserId:gn().string,muteUser:gn().func,kickUser:gn().func,localizedObject:gn().object,recorderId:gn().string,connectionQuality:gn().object},Xd.defaultProps={users:[],close:function(){},pinUser:function(){},unPinUser:function(){},pinnedUserId:"",muteUser:function(){},kickUser:function(){},localizedObject:rt,recorderId:"",connectionQuality:{}},n(3307);var ap=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&np(e,t)}(s,t);var n,r,a,o,i=(a=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=rp(a);if(o){var n=rp(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=i.call(this,t)).audioRef=e.createRef(),n}return n=s,(r=[{key:"componentDidUpdate",value:function(e){this.props.audioTrack&&this.audioRef&&this.props.audioTrack!==e.audioTrack&&this.props.audioTrack.attach(this.audioRef.current)}},{key:"componentDidMount",value:function(){var e;this.props.audioTrack&&this.audioRef&&(window.room&&window.room.getLocalAudioTrack&&null!==(e=window.room.getLocalAudioTrack())&&void 0!==e&&e.getId?window.room.getLocalAudioTrack().getId()!=this.props.audioTrack.getId()&&this.props.audioTrack.attach(this.audioRef.current):this.props.audioTrack.attach(this.audioRef.current))}},{key:"componentWillUnmount",value:function(){this.audioRef&&this.audioRef.current&&this.props.audioTrack&&this.props.audioTrack.detach(this.audioRef.current)}},{key:"render",value:function(){return e.createElement("audio",{style:{display:"none"},autoPlay:!0,ref:this.audioRef})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==tp(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===tp(a)?a:String(a)),r)}var a}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component),op=e.memo(function(t){return t.user?t.user.isVideoMuted||!t.user.videoTrack||"active"!=t.user.status||t.hideVideo?e.createElement("div",{className:"cc-video-container"},e.createElement(Iu,{size:t.size,user:t.user}),e.createElement("div",{className:"video-container-user-name"},t.hideName?t.hideVideo:e.createElement(Uo,{noWrap:!1,variant:"h6",className:"video-container-user-name-text"},ut(t.user.name))),t.user.audioTrack&&t.withAudio&&!t.user.isLocalUser?e.createElement(ap,{name:t.user.name,audioTrack:t.user.audioTrack}):null):e.createElement("div",{className:"cc-video-container"},e.createElement(jc,{flipped:t.user.isLocalUser,name:t.user.name,style:{display:"flex",height:"100%",width:"100%",objectFit:t.cover?"cover":"contain",borderRadius:8},streamManager:t.user.videoTrack,mainVideo:null!==(n=t.mainVideo)&&void 0!==n&&n}),t.withAudio&&!t.user.isLocalUser&&t.user.audioTrack&&!t.user.isAudioMuted?e.createElement(ap,{name:t.user.name,audioTrack:t.user.audioTrack}):null,e.createElement("div",{className:"video-container-user-name"},t.hideName?null:e.createElement(Uo,{variant:"h6",className:"video-container-user-name-text"},ut(t.user.name)))):null;var n});function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ip.apply(this,arguments)}function sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cp=function(t){var n,r=t.user,a=t.pinnedUserId,o=t.unPinUser,i=t.pinUser,s=t.showOptions,c=t.muteUser,l=t.localizedObject,u=t.noisyMics,d=(0,e.useRef)(),p=function(e){if(Array.isArray(e))return e}(n=(0,e.useState)(!1))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(n)||function(e){if(e){if("string"==typeof e)return sp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?sp(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=p[0],m=p[1];return e.createElement(e.Fragment,null,e.createElement("div",{style:{backgroundColor:at.nameLabel.background},className:"cc-name-label"},r.isAudioMuted||!r.audioTrack?e.createElement(Hu,{style:{color:"#06AA21",height:24,width:24}}):e.createElement(Bu,{noisy:!(!r||!u)&&!0===u[r.id],track:r.audioTrack}),e.createElement(Uo,{variant:"h5",style:{color:"#fff",marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",maxWidth:"20vw",height:"20px"}},ut(r.name||"")),s?e.createElement(e.Fragment,null,e.createElement(zn,{style:{border:"none",outline:"none",padding:0},component:"span",ref:d,onClick:function(e){e.preventDefault(),m(!0)},edge:"end","aria-controls":"simple-menu"},e.createElement(vu.Z,{style:{color:"#fff"}})),e.createElement(ua,{open:h,role:void 0,anchorEl:d.current,transition:!0,disablePortal:!0,placement:"top-end"},function(t){var n=t.TransitionProps;return e.createElement(er,ip({},n,{style:{transformOrigin:"top"}}),e.createElement(No,{style:{backgroundColor:"rgb(30, 30, 30)"}},e.createElement(H,{onClickAway:function(){return m(!1)}},e.createElement(Zi,{id:"menu-list-grow",onKeyDown:function(){m(null)}},!r.audioTrack||r.isAudioMuted||r.isLocalUser||!1===zl.isPresenter?null:e.createElement(Ms,{onClick:function(){m(null),c(r)}},e.createElement("div",{style:{marginRight:15}},e.createElement(Ia,{style:{color:"#fff",height:24,width:24},fontSize:"medium"})),e.createElement(Uo,{style:{color:"#fff"},variant:"h5"},l.MUTE_USER)),a===r.id?e.createElement(Ms,{onClick:function(){m(null),o()}},e.createElement("div",{style:{marginRight:15}},e.createElement(ld,{style:{color:"#fff",height:24,width:24},fontSize:"medium"})),e.createElement(Uo,{style:{color:"#fff"},variant:"h5"},l.UNPIN_USER)):e.createElement(Ms,{onClick:function(){i(r),m(null)}},e.createElement("div",{style:{marginRight:15}},e.createElement(td,{style:{color:"#fff",height:24,width:24},fontSize:"medium"})),e.createElement(Uo,{style:{color:"#fff"},variant:"h5"},l.PIN_USER))))))})):null))},lp=e.memo(cp);cp.defaultProps={user:null,pinnedUserId:"",unPinUser:function(){},pinUser:function(){},showOptions:!0,muteUser:function(){},localizedObject:rt},cp.propTypes={user:gn().object,pinnedUserId:gn().string,unPinUser:gn().func,pinUser:gn().func,showOptions:gn().bool,muteUser:gn().func,localizedObject:gn().object};var up="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAADjElEQVR4nO2cvW7UQBSFj6looggeJSmCaKgQQql4mtBly7wRQQiJlobn4EdESZVAcyh2jW6SnfXYvnNnnJyvXvueOV8cx2vHgBBCCCGEEEIIIYQQCViW04D8JyUXUDp/SQHFyzdrKCYhInwJwso36ygiISK4N+Hlm7W4S4gI7Um18s16XCVEBPaievk9dJQQEdaDZsrvoZOEiKBzaa78HjpIiAj5IMvvmSth7LwnJRaR4AbAeeC8qXzBOmubzDwCLkm+qL2GFCQPSV5EHgFTQs6lSQke5ZNt/wrq2Qdw3pIEkocAPgF4Fj27hgCgIQk1ywfKCfiT8ZlewlGhDINsZn9GXvk5axpNCQErAC8BXGR8dh/AxxpHwuYn/8MmwxBXAF4BeF80VA4D56BT87kDkr8zz12hJ2aOO+Fe2qOUA9cJEeFT3LvIYoMSOKN8s4+khNL5UwKSV7gtSfAo3+xrq4RS2e3g7PLNNtUleJZv9nlPgnfubUNHlW+2qyahRPlm37ckeGXeNXB0+WbbcAklyzcz/kuYmzdn2KTyzfZhEiLKN7NOogSsHPZxtFlwDr9I7k2YsbfZtnj5ZubsbsJg3pHwl+S7GTOOSd5ElL9IBiTMKt/M2CXh8Zbfk5DgUr6ZsU2Cyu+5I8G1fDPDSlD5d9lI+F6ifDPjmOQPlZ+AE/7aaXGGEEIIIYQQQgghhBDNoy/jKsL1DfSIr6N/soGnspuCt59eiLohIwlA8tGRqFuSj1tConxXCYnyJWGgfBcJA+UvUwL1YNaumeUfzNoEPpuxfeTjgpGPQa7I2IdzR0uILN/MLC6hLz9awCgJNco3s4tJsOXXEJAloWb5JoO7hLvl1xKwU0IL5ZssbhK2lV9TwFYJLZVvMs2WkCq/tgDSSGCD5ZtskyVwR/lkfQEkecaGyzfrGC2BA+WTbQggh68+7cKqvqqA+ReEWWsam6GbENrL8hWAN13XfXXa3yRIHmD9so7nHvvrum5Up7XeltJE+QDQdd03AK+R926L+mQerrto8p8jOO6ckCQi6IMrv8dDQkTIqVy3XH4P1yfm6ygBkeeApwCK3e915C3WWdtkxhHQM/mr7NIw4+987yNgSkgPmpNAh/LJ5QggG5JAp/LJZQkgG5BAx/LJ5QkgK0qgc/nkMgWQFSSwQPnkcgWQgRJYqHxy2QLIAAksWD4ZIEAIIYQQQgghhBBCLJZ/JA5dNdHn/r4AAAAASUVORK5CYII=",dp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAADkklEQVR4nO2dsXLTQBCGV1TpEsKbkCIMDRXDUPI0oUvKvBFhgAwtFPAkZJIqpvoo5GMOY0sr6/ZOd96vPt2u/s+yYsd3EnEcx3Ecx3Ecx3Ecx3EcJcAJ8Bl4UbqXXABnwC3wrHQjJ8B3eu4PQcI6/Lv1Of8sJmEjfA5Bwkb4FJOwI/ymJewIP7+EkfCblDASfl4J9DcfDffAuXlDxgDn63PRcJujoefArwkSqr0S0L3y87/gDkHCYsOPGswuAbhSjLlOUGfZ4UeNZpMAXAEoxjFHQjXhRw2bSwjhTxCwl4Tqwg9YSojDnyhgkoRqww9YSNgMfw8BKgnVhx9IKWFb+HsKGJTQTPiBFBJ2hT9DwFYJzYUfmCNhKHyYJQAiCbQafoA9JDASPswWAHBN6+EHmPY9ykozSFEzWS0yhN9ZTi7SXwki8klETlPM13XdYM8aSUoeRORN13XfEs23lSeWk4uIdF33Q0Rei8idda2EZAk/K0y7J+xEUWcu9b7nj0ECCYoaHv4Q9DfmxwUKeCwRvvk9YAtvReSoQN0xjkTkXekmTEHxd37BKyAw+/8JiyRF+JBFALQmgUThQzYB0IoEEoYPWQVA7RJIHD5kFwC1SsAgfCgiAGqTgFH4UEwA1CIBw/ChqACoRYLjOI7jOI7jOIcFcGH5SUhR35LLHBnOBkMJitpW1BF+ACMJiroW1BV+AAMJipqpqTP8AIklKOqlpO7wAySUoKiVijbCD5BIgqJOCtoKP0ACCYoaHv4QcyUo5q8q/BK/jPsqIqsCdcdYichN6SZMYdrKlBJXQJXbKqhIEX4GAZBZQpa3IOBM+lUyT3PUm8mxiNzkkmAuoLLwA9kkmAqg/739F9GF/9uylz1qBQmmawbMBKxf+R+kP5ExHkTklYi8t+on4kpEXopuzdqxiHzMeU9IAjPW4TLyOUFRe4jLaFybm06RYBE0AxIU9UfDj8a2JSFF+NFcWyUoelCFH41vQ0LK8KM5/5OgOEYdfnRM3RIswo/m/keCYvyk8KPj6pRgGX5U468ExdjJ4UfH1iUhR/hRrYsJAvb+VrMaCUzbCSXJCnR021aOjlHMkf3cpjbY/H47LPVKOITwA4uUgG/ePUSWzbu129dXH34A3ZWwmGcINBV+YETCYp6i0WT4gR0SFvMcmabDD2xIKBd+1NAp/Y25+fAD9DfmWyDJRoSO4ziO4ziO4ziO4zjOYfAHO7OVVfpcX1oAAAAASUVORK5CYII=",pp=function(t){return t?t<20?e.createElement(qd,{style:{height:24,width:24}}):t<40?e.createElement(Ud,{style:{height:24,width:24}}):t<60?e.createElement(Id,{style:{height:24,width:24}}):t<80?e.createElement(Cd,{style:{height:24,width:24}}):e.createElement(md,{style:{height:24,width:24}}):e.createElement(Jd,{style:{height:24,width:24}})},hp=function(t){var n={noisyMics:t.noisyMics,muteUser:t.muteUser,user:t.user,pinnedUserId:t.pinnedUserId,pinUser:t.pinUser,localizedObject:t.localizedObject,unPinUser:t.unPinUser,backgroundColor:t.backgroundColor},r=t.user.name.includes("(Screen)");return!1===t.mainVideo?e.createElement(e.Fragment,null,e.createElement("div",{className:"absolute-top-right"},t.pinnedUserId==t.user.id&&e.createElement("div",{"data-testid":"cc-unPinButton",onClick:function(){t.unPinUser()},style:{cursor:"pointer"}},e.createElement(td,{className:"tile-pinned-ui-un-pin-icon",alt:"Pin"}))),e.createElement("div",{className:"absolute-bottom-left"},e.createElement(lp,n)),e.createElement("div",{className:"absolute-bottom-right"},pp(t.connectionQuality))):e.createElement(e.Fragment,null,e.createElement("div",{className:"absolute-top-left"},at.nameLabel.visible&&"top-left"===at.nameLabel.position&&e.createElement(lp,n),at.network.visible&&"top-left"===at.network.position&&pp(t.connectionQuality),at.fitButton.visible&&!r&&"top-left"===at.fitButton.position&&!1===t.user.isVideoMuted&&(t.fitVideo?e.createElement("img",{src:dp,style:{height:24},onClick:t.toggleFitVideo,alt:"FullscreenExit",className:"pin-image"}):e.createElement("img",{src:up,style:{height:24},onClick:t.toggleFitVideo,alt:"Fullscreen",className:"pin-image"}))),e.createElement("div",{className:"absolute-top-right"},at.nameLabel.visible&&"top-right"===at.nameLabel.position&&e.createElement(lp,n),at.network.visible&&"top-right"===at.network.position&&pp(t.connectionQuality),at.fitButton.visible&&!r&&"top-right"===at.fitButton.position&&!1===t.user.isVideoMuted&&(t.fitVideo?e.createElement("img",{src:dp,style:{height:24},onClick:t.toggleFitVideo,alt:"FullscreenExit",className:"pin-image"}):e.createElement("img",{src:up,style:{height:24},onClick:t.toggleFitVideo,alt:"Fullscreen",className:"pin-image"})),t.pinnedUserId==t.user.id&&e.createElement("div",{"data-testid":"cc-unPinButton",onClick:function(){t.unPinUser()},style:{cursor:"pointer"}},e.createElement(td,{className:"tile-pinned-ui-un-pin-icon",alt:"Pin"}))),e.createElement("div",{className:"absolute-bottom-left"},at.nameLabel.visible&&"bottom-left"===at.nameLabel.position&&e.createElement(lp,n),at.fitButton.visible&&!r&&"bottom-left"===at.fitButton.position&&!1===t.user.isVideoMuted&&(t.fitVideo?e.createElement("img",{src:dp,style:{height:24},onClick:t.toggleFitVideo,alt:"FullscreenExit",className:"pin-image"}):e.createElement("img",{src:up,style:{height:24},onClick:t.toggleFitVideo,alt:"Fullscreen",className:"pin-image"})),at.network.visible&&"bottom-left"===at.network.position&&pp(t.connectionQuality)),e.createElement("div",{className:"absolute-bottom-right"},at.nameLabel.visible&&"bottom-right"===at.nameLabel.position&&e.createElement(lp,n),at.network.visible&&"bottom-right"===at.network.position&&pp(t.connectionQuality),at.fitButton.visible&&!r&&"bottom-right"===at.fitButton.position&&!1===t.user.isVideoMuted&&(t.fitVideo?e.createElement("img",{src:dp,style:{height:24},onClick:t.toggleFitVideo,alt:"FullscreenExit",className:"pin-image"}):e.createElement("img",{src:up,style:{height:24},onClick:t.toggleFitVideo,alt:"Fullscreen",className:"pin-image"}))))};hp.propTypes={connectionQuality:gn().number,noisyMics:gn().any,muteUser:gn().func.isRequired,pinnedUserId:gn().string,pinUser:gn().func.isRequired,unPinUser:gn().func.isRequired,localizedObject:gn().object.isRequired,user:gn().object.isRequired,toggleFitVideo:gn().func.isRequired,fitVideo:gn().bool.isRequired,backgroundColor:gn().string,mainVideo:gn().bool};var mp=hp,gp=function(t){var n;return t.mainUser?e.createElement("div",{className:"spotlight-main-container","data-testid":"cc-spotlight-container"},t.myScreenShareID===t.mainUser.id?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,backgroundColor:"#000",borderRadius:8,color:"#fff"}},t.localizedObject.SCREEN_SHARE_MSG||"You are currently sharing your screen."):e.createElement(op,{size:"fullscreen"===t.avatarMode?"fill":"square"===t.avatarMode?"square":"large",withAudio:t.myScreenShareID!=t.mainUser.id,hideName:!0,user:t.mainUser,mainVideo:!0,cover:(null===(n=t.mainUser.name)||void 0===n||!n.includes(rt.SCREEN_SHARE_POSTFIX))&&t.fitVideo}),t.users.map(function(n){if(n.id!==t.mainUser.id&&!n.isLocalUser&&n.id!==t.myScreenShareID)return e.createElement(ap,{audioTrack:n.audioTrack})}),e.createElement(mp,{noisyMics:t.noisyMics,connectionQuality:t.connectionQuality&&t.connectionQuality[t.mainUser.id],user:t.mainUser,pinnedUserId:t.pinnedUserId,pinUser:t.pinUser,unPinUser:t.unPinUser,muteUser:t.muteUser,toggleFitVideo:t.toggleFitVideo,fitVideo:t.fitVideo})):null},fp=gp;gp.propTypes={users:gn().array,dominantSpeakerId:gn().string,pinnedUserId:gn().string,unPinUser:gn().func,muteUser:gn().func,pinUser:gn().func,room:gn().object,myScreenShareID:gn().string,mainUser:gn().object,localizedObject:gn().object,connectionQuality:gn().object,fitVideo:gn().bool.isRequired,toggleFitVideo:gn().func.isRequired},gp.defaultProps={users:[],dominantSpeakerId:"",pinnedUserId:"",unPinUser:function(){},pinUser:function(){},muteUser:function(){},room:{},myScreenShareID:"",mainUser:{},localizedObject:{},connectionQuality:{}};var _p=function(t){var n=(0,e.useRef)(null),r=(0,e.useRef)({isDragStarted:!1,initX:0,initY:0,containerWidth:0,containerHeight:0,localVideoWidth:0,localVideoHeight:0,percLeft:1,percTop:1,padding:8});return(0,e.useEffect)(function(){r.current.padding=parseInt(getComputedStyle(document.body).getPropertyValue("--ccccn-padding-around-video").match(/\d+/)[0]),n.current.addEventListener("mousedown",function(e){var t=e.target.className.indexOf("flipped-video")>=0;r.current.isDragStarted=!0,r.current.initX=t?r.current.localVideoWidth-e.offsetX:e.offsetX,r.current.initY=e.offsetY}),n.current.addEventListener("touchstart",function(e){var t=e.target.getBoundingClientRect();r.current.isDragStarted=!0,r.current.initX=e.targetTouches[0].clientX-t.x,r.current.initY=e.targetTouches[0].clientY-t.y});var e=function(e){var t;if(null!==(t=e.touches)&&void 0!==t&&t[0]&&(e=e.touches[0]),r.current.isDragStarted){var a=e.clientX-r.current.initX,o=e.clientY-r.current.initY;a<r.current.padding&&(a=r.current.padding),o<r.current.padding&&(o=r.current.padding),r.current.containerWidth-e.clientX+r.current.initX-r.current.padding<r.current.localVideoWidth&&(a=r.current.containerWidth-r.current.localVideoWidth-r.current.padding),e.clientY>r.current.containerHeight-r.current.localVideoHeight+r.current.initY&&(o=r.current.containerHeight-r.current.localVideoHeight),n.current.style.left=a+"px",n.current.style.top=o+"px"}},a=function(){!1!==r.current.isDragStarted&&(r.current.isDragStarted=!1,n.current.style.left&&(r.current.percLeft=(parseInt(n.current.style.left.match(/\d+/)[0])-r.current.padding)/(r.current.containerWidth-r.current.localVideoWidth-2*r.current.padding)),n.current.style.top&&(r.current.percTop=(parseInt(n.current.style.top.match(/\d+/)[0])-r.current.padding)/(r.current.containerHeight-r.current.localVideoHeight-r.current.padding)))};document.addEventListener("touchend",a),document.addEventListener("mouseup",a),document.addEventListener("mousemove",e),document.addEventListener("touchmove",e);var o=new ResizeObserver(function(e){if(n.current){if(n.current.style.left){var t=r.current.percLeft*(e[0].target.offsetWidth-n.current.offsetWidth-2*r.current.padding)+r.current.padding;n.current.style.left="".concat(t,"px")}else n.current.style.left="".concat(e[0].target.offsetWidth-n.current.offsetWidth-r.current.padding,"px");if(n.current.style.top){var a=r.current.percTop*(e[0].target.offsetHeight-n.current.offsetHeight-r.current.padding)+r.current.padding;n.current.style.top="".concat(a,"px")}else n.current.style.top="".concat(e[0].target.offsetHeight-n.current.offsetHeight,"px");r.current.containerWidth=e[0].target.offsetWidth,r.current.containerHeight=e[0].target.offsetHeight,r.current.localVideoWidth=n.current.offsetWidth,r.current.localVideoHeight=n.current.offsetHeight}}),i=document.getElementsByClassName(t.boundaryClass||"spotlight-main-container")[0];return i&&o.observe(i),function(){o.disconnect()}},[]),e.createElement(Ws,{raised:!0,style:{backgroundColor:"#00000000"},className:"local-video-container",ref:n},e.createElement(op,{size:"fullscreen"===t.avatarMode?"fill":"square"===t.avatarMode?"square":"small",user:t.user}))},bp=_p;_p.propTypes={user:gn().object},_p.defaultProps={user:{}};var vp=e.forwardRef(function(t,n){var r=t.action,s=t.classes,c=t.className,l=t.message,u=t.role,d=void 0===u?"alert":u,p=(0,i.Z)(t,["action","classes","className","message","role"]);return e.createElement(No,(0,o.Z)({role:d,square:!0,elevation:6,className:(0,a.Z)(s.root,c),ref:n},p),e.createElement("div",{className:s.message},l),r?e.createElement("div",{className:s.action},r):null)}),yp=(0,N.Z)(function(e){var t="light"===e.palette.type?.8:.98,n=(0,M._4)(e.palette.background.default,t);return{root:(0,o.Z)({},e.typography.body2,(0,Sn.Z)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},{name:"MuiSnackbarContent"})(vp),Ep=e.forwardRef(function(t,n){var r=t.action,s=t.anchorOrigin,c=(s=void 0===s?{vertical:"bottom",horizontal:"center"}:s).vertical,l=s.horizontal,u=t.autoHideDuration,d=void 0===u?null:u,p=t.children,h=t.classes,m=t.className,g=t.ClickAwayListenerProps,f=t.ContentProps,_=t.disableWindowBlurListener,b=void 0!==_&&_,v=t.message,y=t.onClose,E=t.onEnter,C=t.onEntered,w=t.onEntering,k=t.onExit,x=t.onExited,T=t.onExiting,A=t.onMouseEnter,R=t.onMouseLeave,I=t.open,O=t.resumeHideDuration,N=t.TransitionComponent,M=void 0===N?er:N,D=t.transitionDuration,L=void 0===D?{enter:S.x9.enteringScreen,exit:S.x9.leavingScreen}:D,P=t.TransitionProps,j=(0,i.Z)(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),U=e.useRef(),F=e.useState(!0),B=F[0],V=F[1],z=(0,G.Z)(function(){y&&y.apply(void 0,arguments)}),Y=(0,G.Z)(function(e){y&&null!=e&&(clearTimeout(U.current),U.current=setTimeout(function(){z(null,"timeout")},e))});e.useEffect(function(){return I&&Y(d),function(){clearTimeout(U.current)}},[I,d,Y]);var q=function(){clearTimeout(U.current)},K=e.useCallback(function(){null!=d&&Y(null!=O?O:.5*d)},[d,O,Y]);return e.useEffect(function(){if(!b&&I)return window.addEventListener("focus",K),window.addEventListener("blur",q),function(){window.removeEventListener("focus",K),window.removeEventListener("blur",q)}},[b,K,I]),!I&&B?null:e.createElement(H,(0,o.Z)({onClickAway:function(e){y&&y(e,"clickaway")}},g),e.createElement("div",(0,o.Z)({className:(0,a.Z)(h.root,h["anchorOrigin".concat((0,wn.Z)(c)).concat((0,wn.Z)(l))],m),onMouseEnter:function(e){A&&A(e),q()},onMouseLeave:function(e){R&&R(e),K()},ref:n},j),e.createElement(M,(0,o.Z)({appear:!0,in:I,onEnter:(0,oa.Z)(function(){V(!1)},E),onEntered:C,onEntering:w,onExit:k,onExited:(0,oa.Z)(function(){V(!0)},x),onExiting:T,timeout:L,direction:"top"===c?"down":"up"},P),p||e.createElement(yp,(0,o.Z)({message:v,action:r},f)))))}),Cp=(0,N.Z)(function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},i={top:24},s={bottom:24},c={right:24},l={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,o.Z)({},t,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({},i,u))),anchorOriginBottomCenter:(0,o.Z)({},n,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({},s,u))),anchorOriginTopRight:(0,o.Z)({},t,r,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({left:"auto"},i,c))),anchorOriginBottomRight:(0,o.Z)({},n,r,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({left:"auto"},s,c))),anchorOriginTopLeft:(0,o.Z)({},t,a,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({right:"auto"},i,l))),anchorOriginBottomLeft:(0,o.Z)({},n,a,(0,Sn.Z)({},e.breakpoints.up("sm"),(0,o.Z)({right:"auto"},s,l)))}},{flip:!1,name:"MuiSnackbar"})(Ep),Sp=44,wp=e.forwardRef(function(t,n){var r=t.classes,s=t.className,c=t.color,l=void 0===c?"primary":c,u=t.disableShrink,d=void 0!==u&&u,p=t.size,h=void 0===p?40:p,m=t.style,g=t.thickness,f=void 0===g?3.6:g,_=t.value,b=void 0===_?0:_,v=t.variant,y=void 0===v?"indeterminate":v,E=(0,i.Z)(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},S={},w={};if("determinate"===y||"static"===y){var k=2*Math.PI*((Sp-f)/2);C.strokeDasharray=k.toFixed(3),w["aria-valuenow"]=Math.round(b),C.strokeDashoffset="".concat(((100-b)/100*k).toFixed(3),"px"),S.transform="rotate(-90deg)"}return e.createElement("div",(0,o.Z)({className:(0,a.Z)(r.root,s,"inherit"!==l&&r["color".concat((0,wn.Z)(l))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[y]),style:(0,o.Z)({width:h,height:h},S,m),ref:n,role:"progressbar"},w,E),e.createElement("svg",{className:r.svg,viewBox:"".concat(22," ").concat(22," ").concat(Sp," ").concat(Sp)},e.createElement("circle",{className:(0,a.Z)(r.circle,d&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[y]),style:C,cx:Sp,cy:Sp,r:(Sp-f)/2,fill:"none",strokeWidth:f})))}),kp=(0,N.Z)(function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},{name:"MuiCircularProgress",flip:!1})(wp),xp=n(1626);function Tp(e){return Tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp(e)}function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach(function(t){Ip(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ip(e,t,n){return(t=function(e){var t=function(e){if("object"!==Tp(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Tp(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Np=function(t){var n,r,a=t.unPinUser,o=t.pinUser,i=t.pinnedUserId,s=t.users,c=t.muteUser,l=t.peopleClicked,u=t.localizedObject,d=t.mainUser,p=t.myScreenShareID,h=t.avatarMode,m=t.connectionQuality,g=t.lastNId,f=t.stats,_=t.noisyMics,b=void 0===_?{}:_,v=t.fitVideo,y=t.toggleFitVideo,E=Lt.isMob(),C=function(e){if(Array.isArray(e))return e}(r=(0,e.useState)(E?2:4))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(r)||function(e){if(e){if("string"==typeof e)return Op(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Op(e,2):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),S=C[0],w=C[1];return(0,e.useEffect)(function(){var e=document.getElementById("side-bar-tile-list");if(e){var t=new ResizeObserver(function(e){!function(e){var t=e.width>e.height,n=t?Math.floor((e.width+8)/108):Number.POSITIVE_INFINITY,r=Math.min(Math.ceil((t?e.width/e.height:e.height/e.width)-.3),n);w(r-1),document.querySelector(":root").style.setProperty("--ccccn-no-of-tiles",r.toString())}(e[0].contentRect)});return t.observe(e),function(){t.unobserve(e)}}},[]),d?e.createElement("div",{className:"side-bar","data-testid":"cc-sidebar-container"},e.createElement("div",{className:"side-bar-container"},e.createElement("div",{className:"side-bar-main-user-container"},e.createElement("div",{className:"side-bar-main-user-video"},p===d.id?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,backgroundColor:"#000",borderRadius:8}},e.createElement("p",{style:{color:"#ffff"}},u.SCREEN_SHARE_MSG||"You are currently sharing your screen.")):e.createElement(op,{size:"fullscreen"===h?"fill":"square"===h?"square":"large",mainVideo:!0,withAudio:p!==d.id,hideName:!0,user:d,cover:(null===(n=d.name)||void 0===n||!n.includes(rt.SCREEN_SHARE_POSTFIX))&&v}),e.createElement(mp,{noisyMics:b,connectionQuality:m&&m[d.id],user:d,pinnedUserId:i,pinUser:o,unPinUser:a,muteUser:c,localizedObject:u,toggleFitVideo:y,fitVideo:v}))),e.createElement("div",{id:"side-bar-tile-list",className:"side-bar-tile-list"},function(){var t=[];if(g){for(var n=1;n<s.length;n++)g.includes(s[n].id)?t.unshift(Rp(Rp({},s[n]),{},{inLastN:!0})):t.push(s[n]);t.unshift(s[0])}else t=s;var r=!1;return e.createElement(e.Fragment,null,t.map(function(n,c){return n.id===i&&s.length>S+1&&n.id!==s[0].id?(r=!0,null):c-(r?1:0)>S&&n.id!=p?e.createElement(ap,{key:n.id,audioTrack:n.audioTrack}):c===S&&c+1!==t.length&&E?e.createElement("div",{key:n.id,onClick:l,className:"side-bar-tile-wrapper"},e.createElement("div",{className:"side-bar-tile-container"},e.createElement("div",{className:"side-bar-tile-more-people-icon-container"},e.createElement(qn,{className:"side-bar-tile-more-people-icon-badge",badgeContent:s.length-S,color:"primary"},e.createElement(xp.Z,{fontSize:"medium"}))),e.createElement(Uo,{className:"side-bar-tile-more-text",variant:"h6"},u.MORE),n.id!==p?e.createElement(ap,{audioTrack:n.audioTrack}):null)):e.createElement("div",{item:n.id,key:n.id,className:"side-bar-tile-wrapper"},e.createElement("div",{onClick:function(){i==n.id?a():o(n)},id:"pin",className:"side-bar-tile-pin-icon-container"},e.createElement(td,{className:"side-bar-tile-pin-icon",alt:"Pin"})),e.createElement("div",{className:"side-bar-tile-audio-icon"},n.isAudioMuted||!n.audioTrack?e.createElement(Hu,{fontSize:"medium",className:"red"}):e.createElement(Bu,{noisy:!0===b[n.id],track:n.audioTrack})),e.createElement(op,{connectionQuality:m&&m[n.id],stats:f,size:"fullscreen"===h?"fill":"square"===h?"square":"small",cover:!0,withAudio:!(d&&n.id==d.id||p===n.id)&&0!==c,user:n}))}))}()))):null},Mp=e.memo(Np);function Dp(e){return Dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dp(e)}function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach(function(t){jp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jp(e,t,n){return(t=function(e){var t=function(e){if("object"!==Dp(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dp(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Up(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Np.propTypes={unPinUser:gn().func,pinUser:gn().func,pinnedUserId:gn().string,users:gn().array,dominantSpeakerId:gn().string,muteUser:gn().func,peopleClicked:gn().func,localizedObject:gn().object,room:gn().object,myScreenShareID:gn().string,mainUser:gn().object},Np.defaultProps={unPinUser:function(){},pinUser:function(){},pinnedUserId:"",users:[],dominantSpeakerId:"",muteUser:function(){},peopleClicked:function(){},localizedObject:{},room:{},myScreenShareID:"",mainUser:null};var Fp=function(t){var n,r,a,o=t.unPinUser,i=t.pinUser,s=t.pinnedUserId,c=t.users,l=t.muteUser,u=t.peopleClicked,d=t.localizedObject,p=t.mainUser,h=t.myScreenShareID,m=t.avatarMode,g=t.connectionQuality,f=t.lastNId,_=t.stats,b=t.noisyMics,v=void 0===b?{}:b,y=t.fitVideo,E=t.toggleFitVideo,C=t.screenSharedUserIndex,S=Lt.isMob(),w=function(e){if(Array.isArray(e))return e}(a=(0,e.useState)(S?2:4))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(a)||function(e){if(e){if("string"==typeof e)return Up(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Up(e,2):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=w[0],x=w[1];(0,e.useEffect)(function(){var e=document.getElementById("side-bar-tile-list");if(e){var t=new ResizeObserver(function(e){!function(e){var t=e.width>e.height,n=t?Math.floor((e.width+8)/108):Number.POSITIVE_INFINITY,r=Math.min(Math.ceil((t?e.width/e.height:e.height/e.width)-.3),n);x(r-1),document.querySelector(":root").style.setProperty("--no-of-tiles",r.toString())}(e[0].contentRect)});return t.observe(e),function(){t.unobserve(e)}}},[]);var T=c.filter(function(e,t){return!(C>-1&&C===t)&&!1!==e.isPresenter});return!1===(null===(n=p)||void 0===n?void 0:n.isPresenter)&&T.length>0&&(p=T[0]),p?0===T.length?e.createElement("div",{className:"loading-container"},e.createElement(kp,null),e.createElement(Uo,{variant:"h4",className:"loading-text"},"Waiting for presenter to join.")):e.createElement("div",{className:"side-bar","data-testid":"cc-sidebar-container"},e.createElement("div",{className:"side-bar-container"},e.createElement("div",{className:"side-bar-main-user-container"},e.createElement("div",{className:"side-bar-main-user-video"},h===p.id?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,backgroundColor:"#000",borderRadius:8}},e.createElement("p",{style:{color:"#ffff"}},d.SCREEN_SHARE_MSG||"You are currently sharing your screen.")):e.createElement(op,{size:"fullscreen"===m?"fill":"square"===m?"square":"large",withAudio:h!==p.id,mainVideo:!0,hideName:!0,user:p,cover:(null===(r=p.name)||void 0===r||!r.includes(rt.SCREEN_SHARE_POSTFIX))&&y}),e.createElement(mp,{noisyMics:v,connectionQuality:g&&g[p.id],user:p,pinnedUserId:s,pinUser:i,unPinUser:o,muteUser:l,localizedObject:d,toggleFitVideo:E,fitVideo:y}))),T.length>1&&e.createElement("div",{id:"side-bar-tile-list",className:"side-bar-tile-list"},function(){var t=[];if(f){for(var n=1;n<T.length;n++)f.includes(T[n].id)?t.unshift(Pp(Pp({},T[n]),{},{inLastN:!0})):t.push(T[n]);t.unshift(T[0])}else t=T;var r=!1;return e.createElement(e.Fragment,null,t.map(function(n,a){return n.id===s&&T.length>k+1&&n.id!==T[0].id?(r=!0,null):a-(r?1:0)>k&&n.id!=h?e.createElement(ap,{key:n.id,audioTrack:n.audioTrack}):a===k&&a+1!==t.length&&S?e.createElement("div",{key:n.id,onClick:u,className:"side-bar-tile-wrapper"},e.createElement("div",{className:"side-bar-tile-container"},e.createElement("div",{className:"side-bar-tile-more-people-icon-container"},e.createElement(qn,{className:"side-bar-tile-more-people-icon-badge",badgeContent:T.length-k,color:"primary"},e.createElement(xp.Z,{fontSize:"medium"}))),e.createElement(Uo,{className:"side-bar-tile-more-text",variant:"h6"},d.MORE),n.id!==h?e.createElement(ap,{audioTrack:n.audioTrack}):null)):e.createElement("div",{item:n.id,key:n.id,className:"side-bar-tile-wrapper"},e.createElement("div",{onClick:function(){s==n.id?o():i(n)},id:"pin",className:"side-bar-tile-pin-icon-container"},e.createElement(td,{className:"side-bar-tile-pin-icon",alt:"Pin"})),e.createElement("div",{className:"side-bar-tile-audio-icon"},n.isAudioMuted||!n.audioTrack?e.createElement(Hu,{fontSize:"medium",className:"red"}):e.createElement(Bu,{noisy:!0===v[n.id],track:n.audioTrack})),e.createElement(op,{connectionQuality:g&&g[n.id],stats:_,size:"fullscreen"===m?"fill":"square"===m?"square":"small",cover:!0,withAudio:!(p&&n.id==p.id||h===n.id)&&0!==a,user:n}))}))}()))):null},Bp=e.memo(Fp);Fp.propTypes={unPinUser:gn().func,pinUser:gn().func,pinnedUserId:gn().string,users:gn().array,dominantSpeakerId:gn().string,muteUser:gn().func,peopleClicked:gn().func,localizedObject:gn().object,myScreenShareID:gn().string,mainUser:gn().object},Fp.defaultProps={unPinUser:function(){},pinUser:function(){},pinnedUserId:"",users:[],dominantSpeakerId:"",muteUser:function(){},peopleClicked:function(){},localizedObject:{},myScreenShareID:"",mainUser:null};var Gp=n(9483),Vp=n.n(Gp);function Hp(e){if(e){if("string"!=typeof e)return this.userErrors.push("Collection name in collection() method must be a string and not an object, number or boolean."),this;{this.collectionName=e;let t=this.dbName;return e in this.lf||(this.lf[e]=Vp().createInstance({driver:Vp().INDEXEDDB,name:t,storeName:e})),this}}return this.userErrors.push("No collection name specified in collection() method."),this}function zp(e){return e?"string"!=typeof e&&"object"!=typeof e?this.userErrors.push("Document criteria specified in doc() method must not be a number or boolean. Use a string (with a key) or an object (with criteria) e.g. { id: 1 }"):this.docSelectionCriteria=e:this.userErrors.push("No document criteria specified in doc() method. Use a string (with a key) or an object (with criteria) e.g. { id: 1 }"),this}function Yp(e,t){return e?"string"!=typeof e?this.userErrors.push("First parameter in orderBy() method must be a string (a field name) e.g. 'name'"):this.orderByProperty=e:this.userErrors.push("No field name specified in orderBy() method. Use a string e.g. 'name'"),t&&("asc"!==t&&"desc"!==t?this.userErrors.push("Second parameter in orderBy() method must be a string set to 'asc' or 'desc'."):this.orderByDirection=t),this}function qp(e){return e?Number.isInteger(e)?this.limitBy=e:this.userErrors.push("Limit parameter in limit() method must be an integer (e.g. 3) and not a float, boolean, string or object."):this.userErrors.push("No integer specified in limit() method."),this}function Kp(e,t){return Object.keys(t).every(n=>"object"==typeof t[n]?Kp(e[n],t[n]):t[n]===e[n])}var Wp={baseStyle:"\n    padding: 2px 5px;\n    background-color: #124F5C;\n    border-radius: 4px;\n    color: white; \n  ",colors:{log:"#124F5C",error:"#ed2939",warn:"#f39c12"},log(e,t){},error(e,t){},warn(e,t){}};function Jp(){this.collectionName=null,this.orderByProperty=null,this.orderByDirection=null,this.limitBy=null,this.docSelectionCriteria=null,this.userErrors=[]}function Zp(){let e;return this.collectionName||this.docSelectionCriteria?this.collectionName&&!this.docSelectionCriteria?e="collection":this.collectionName&&this.docSelectionCriteria&&(e="doc"):e="db",e}function $p(){for(let e=0;e<this.userErrors.length;e++)Wp.error.call(this,this.userErrors[e]);Jp.call(this)}function Qp(e={keys:!1}){if(this.getCollection=()=>{let t=this.collectionName,n=this.orderByProperty,r=this.orderByDirection,a=this.limitBy,o=[];return this.lf[t].iterate((t,n)=>{let r={};r=e.keys?{key:n,data:t}:t,o.push(r)}).then(()=>{let i=`Got "${t}" collection`;return n&&(i+=`, ordered by "${n}"`,e.keys?o.sort((e,t)=>e.data[n].toString().localeCompare(t.data[n].toString())):o.sort((e,t)=>e[n].toString().localeCompare(t[n].toString()))),"desc"==r&&(i+=" (descending)",o.reverse()),a&&(i+=`, limited to ${a}`,o=o.splice(0,a)),i+=":",Wp.log.call(this,i,o),Jp.call(this),o})},this.getDocument=()=>{let e=this.collectionName,t=this.docSelectionCriteria,n=[],r={};return this.getDocumentByCriteria=()=>this.lf[e].iterate((e,r)=>{Kp(e,t)&&n.push(e)}).then(()=>{if(n.length)return r=n[0],Wp.log.call(this,`Got Document with ${JSON.stringify(t)}:`,r),Jp.call(this),r;Wp.error.call(this,`Could not find Document in "${e}" collection with criteria: ${JSON.stringify(t)}`)}),this.getDocumentByKey=()=>this.lf[e].getItem(t).then(n=>(r=n,r?Wp.log.call(this,`Got Document with key ${JSON.stringify(t)}:`,r):Wp.error.call(this,`Could not find Document in "${e}" collection with Key: ${JSON.stringify(t)}`),Jp.call(this),r)).catch(n=>{Wp.error.call(this,`Could not find Document in "${e}" collection with Key: ${JSON.stringify(t)}`),Jp.call(this)}),"object"==typeof t?this.getDocumentByCriteria():this.getDocumentByKey()},"object"!=typeof e||e instanceof Array!=0?this.userErrors.push('Data passed to .get() must be an object. Not an array, string, number or boolean. The object must contain a "keys" property set to true or false, e.g. { keys: true }'):e.hasOwnProperty("keys")?"boolean"!=typeof e.keys&&this.userErrors.push('Property "keys" passed into get() method must be assigned a boolean value (true or false). Not a string or integer.'):this.userErrors.push('Object passed to get() method must contain a "keys" property set to boolean true or false, e.g. { keys: true }'),this.userErrors.length)return $p.call(this),null;{let e=Zp.call(this);if("collection"==e)return this.getCollection();if("doc"==e)return this.getDocument()}}function Xp(e,t){return Jp.call(this),Wp.log.call(this,e,t),{success:!0,message:e,data:t}}function eh(e){return Jp.call(this),Wp.error.call(this,e),`Error: ${e}`}let th=n(2024);function nh(e,t){if(e?"object"==typeof e&&e instanceof Array==0||this.userErrors.push("Data passed to .add() must be an object. Not an array, string, number or boolean."):this.userErrors.push('No data specified in add() method. You must use an object, e.g { id: 1, name: "Bill", age: 47 }'),!this.userErrors.length){let n=this.collectionName;return new Promise((r,a)=>{let o=null;return o=t||th.generate(),this.lf[n].setItem(o,e).then(()=>{r(Xp.call(this,`Document added to "${n}" collection.`,{key:o,data:e}))}).catch(e=>{a(eh.call(this,`Could not add Document to ${n} collection.`))})})}$p.call(this)}function rh(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t]){var r=arguments[t][n];e[n]=r}return e}function ah(e){let t=this.collectionName,n=this.docSelectionCriteria;return new Promise((r,a)=>{this.updateDocumentByCriteria=()=>{let o=[];this.lf[t].iterate((t,r)=>{if(Kp(t,n)){let n=rh(t,e);o.push({key:r,newDocument:n})}}).then(()=>{o.length||a(eh.call(this,`No Documents found in ${t} Collection with criteria ${JSON.stringify(n)}.`)),o.length>1&&Wp.warn.call(this,`Multiple documents (${o.length}) with ${JSON.stringify(n)} found for updating.`)}).then(()=>{o.forEach((i,s)=>{this.lf[t].setItem(i.key,i.newDocument).then(a=>{s===o.length-1&&r(Xp.call(this,`${o.length} Document${o.length>1?"s":""} in "${t}" collection with ${JSON.stringify(n)} updated.`,e))}).catch(e=>{a(eh.call(this,`Could not update ${o.length} Documents in ${t} Collection.`))})})})},this.updateDocumentByKey=()=>{let o={};this.lf[t].getItem(n).then(a=>{o=rh(a,e),this.lf[t].setItem(n,o),r(Xp.call(this,`Document in "${t}" collection with key ${JSON.stringify(n)} updated.`,o))}).catch(e=>{a(eh.call(this,`No Document found in "${t}" collection with key ${JSON.stringify(n)}`))})},e?"object"==typeof e&&e instanceof Array==0||this.userErrors.push("Data passed to .update() must be an object. Not an array, string, number or boolean."):this.userErrors.push('No update object provided to update() method. Use an object e.g. { name: "William" }'),this.userErrors.length?$p.call(this):"object"==typeof n?this.updateDocumentByCriteria():this.updateDocumentByKey()})}function oh(e,t={keys:!1}){let n=this.collectionName,r=this.docSelectionCriteria,a=Zp.call(this);return new Promise((o,i)=>{if(this.setCollection=()=>{this.lf[n].clear().then(()=>{if(t.keys){let t=0;e.forEach(e=>{e.hasOwnProperty("_key")||t++}),t?i(eh.call(this,"Documents provided to .set() in an array must each have a _key property set to a string.")):(e.forEach(e=>{let t=e._key;delete e._key,this.add(e,t)}),o(Xp.call(this,`Collection "${n}" set with ${e.length} Documents.`,e)))}else e.forEach(e=>{this.add(e)}),o(Xp.call(this,`Collection "${n}" set with ${e.length} Documents.`,e))}).catch(t=>{i(eh.call(this,`Could not set ${n} Collection with data ${JSON.stringify(e)}.`))})},this.setDocument=()=>(this.setDocumentByCriteria=()=>{let t=[];this.lf[n].iterate((n,a)=>{Kp(n,r)&&t.push({key:a,newDocument:e})}).then(()=>{t.length||i(eh.call(this,`No Documents found in ${n} Collection with criteria ${JSON.stringify(r)}.`)),t.length>1&&Wp.warn.call(this,`Multiple documents (${t.length}) with ${JSON.stringify(r)} found for setting.`)}).then(()=>{t.forEach((a,s)=>{this.lf[n].setItem(a.key,a.newDocument).then(a=>{s===t.length-1&&o(Xp.call(this,`${t.length} Document${t.length>1?"s":""} in "${n}" collection with ${JSON.stringify(r)} was set.`,e))}).catch(e=>{i(eh.call(this,`Could not set ${t.length} Documents in ${n} Collection.`))})})})},this.setDocumentByKey=()=>{this.lf[n].setItem(r,e).then(t=>{o(Xp.call(this,`Document in "${n}" collection with key ${JSON.stringify(r)} was set.`,e))}).catch(e=>{i(eh.call(this,`Document in "${n}" collection with key ${JSON.stringify(r)} could not be set.`))})},"object"==typeof r?this.setDocumentByCriteria():this.setDocumentByKey()),e?"doc"===a?"object"==typeof e&&e instanceof Array==0||this.userErrors.push("Data passed to .set() must be an object. Not an array, string, number or boolean."):"collection"===a&&("object"==typeof e&&e instanceof Array==1||this.userErrors.push("Data passed to .set() must be an array of objects. Not an object, string, number or boolean.")):this.userErrors.push('No new Document object provided to set() method. Use an object e.g. { id: 1, name: "Bill", age: 47 }'),this.userErrors.length)$p.call(this);else{if("collection"==a)return this.setCollection();if("doc"==a)return this.setDocument()}})}function ih(){return new Promise((e,t)=>{if(this.deleteDatabase=()=>{let t=this.dbName;indexedDB.deleteDatabase(t),e(Xp.call(this,`Database "${t}" deleted.`,{database:t}))},this.deleteCollection=()=>{let n=this.dbName,r=this.collectionName;this.addToDeleteCollectionQueue=e=>{this.deleteCollectionQueue.queue.push(e),this.runDeleteCollectionQueue()},this.runDeleteCollectionQueue=()=>{0==this.deleteCollectionQueue.running&&(this.deleteCollectionQueue.running=!0,this.deleteNextCollectionFromQueue())},this.deleteNextCollectionFromQueue=()=>{if(this.deleteCollectionQueue.queue.length){let r=this.deleteCollectionQueue.queue[0];this.deleteCollectionQueue.queue.shift(),this.lf[r].dropInstance({name:n,storeName:r}).then(()=>{this.deleteNextCollectionFromQueue(),e(Xp.call(this,`Collection "${r}" deleted.`,{collection:r}))}).catch(e=>{t(e.call(this,`Collection "${r}" could not be deleted.`))})}else this.deleteCollectionQueue.running=!1},this.addToDeleteCollectionQueue(r)},this.deleteDocument=()=>{let n=this.collectionName,r=this.docSelectionCriteria;return this.deleteDocumentByCriteria=()=>{let a=[];this.lf[n].iterate((e,t)=>{Kp(e,r)&&a.push(t)}).then(()=>{a.length||t(eh.call(this,`No Documents found in "${n}" Collection with criteria ${JSON.stringify(r)}. No documents deleted.`)),a.length>1&&Wp.warn.call(this,`Multiple documents (${a.length}) with ${JSON.stringify(r)} found.`)}).then(()=>{a.forEach((o,i)=>{this.lf[n].removeItem(o).then(()=>{i===a.length-1&&e(Xp.call(this,`${a.length} Document${a.length>1?"s":""} with ${JSON.stringify(r)} deleted.`,{keys:a}))}).catch(e=>{t(eh.call(this,`Could not delete ${a.length} Documents in ${n} Collection.`))})})})},this.deleteDocumentByKey=()=>{this.lf[n].getItem(r).then(a=>{a?this.lf[n].removeItem(r).then(()=>{e(Xp.call(this,`Document with key ${JSON.stringify(r)} deleted.`,{key:r}))}).catch(function(e){t(eh.call(this,`No Document found in "${n}" Collection with key ${JSON.stringify(r)}. No document was deleted.`))}):t(eh.call(this,`No Document found in "${n}" Collection with key ${JSON.stringify(r)}. No document was deleted.`))})},"object"==typeof r?this.deleteDocumentByCriteria():this.deleteDocumentByKey()},this.userErrors.length)$p.call(this);else{let e=Zp.call(this);if("db"==e)return this.deleteDatabase();if("collection"==e)return this.deleteCollection();if("doc"==e)return this.deleteDocument()}})}function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}var ch=e.forwardRef(function(t,n){return e.createElement(er,sh({direction:"down",timeout:1e3,ref:n},t))}),lh=function(t){var n=t.isModalVisible,r=t.name,a=void 0===r?"":r,o=t.handleAccept,i=t.handleReject,s=t.toVideoRequestType,c=uh();return e.createElement(Lo,{open:n,"aria-labelledby":"draggable-dialog-title",classes:{paperScrollPaper:c.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:ch,container:document.getElementById("cc-container")},e.createElement(wi,null,e.createElement(xi,{className:c.title},"initial"==s?"".concat(a," is requesting to switch to a video\n        call"):"This call has been switched to video.\n        Do you wish to continue?")),e.createElement(zs,null,e.createElement(qs,{className:c.button,onClick:o},"Accept"),e.createElement(qs,{className:c.button,onClick:i},"Reject")))},uh=(0,D.Z)(function(){return O({paperScrollPaper:{backgroundColor:"rgba(30,30,30,0.8)"},title:{paddingTop:10,paddingLeft:15,color:"#fff"},button:{color:"#1E79E7",textTransform:"capitalize"}})});function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(this,arguments)}var ph=e.forwardRef(function(t,n){return e.createElement(er,dh({direction:"down",timeout:1e3,ref:n},t))}),hh=function(t){var n=t.isModalVisible,r=t.handleSessionEnd,a=t.handleLeave,o=mh();return e.createElement(Lo,{open:n,"aria-labelledby":"draggable-dialog-title",classes:{paperScrollPaper:o.paperScrollPaper},style:{position:"absolute"},fullWidth:!0,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.8)",position:"absolute"}},TransitionComponent:ph,container:document.getElementById("cc-container")},e.createElement(wi,null,e.createElement(xi,{className:o.title},"Do you want to end presentation for everyone or just leave the session.")),e.createElement(zs,null,e.createElement(qs,{className:o.button,onClick:r},"End"),e.createElement(qs,{className:o.button,onClick:a},"Leave")))},mh=(0,D.Z)(function(){return O({paperScrollPaper:{backgroundColor:"rgba(30,30,30,0.8)"},title:{paddingTop:10,paddingLeft:15,color:"#fff"},button:{color:"#1E79E7",textTransform:"capitalize"}})}),gh=n(991),fh=n.n(gh);function _h(e){return _h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_h(e)}function bh(e){return function(e){if(Array.isArray(e))return wh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(t){Eh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eh(e,t,n){return(t=function(e){var t=function(e){if("object"!==_h(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||Sh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sh(e,t){if(e){if("string"==typeof e)return wh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wh(e,t):void 0}}function wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kh(t){var n=Ch((0,e.useState)(0),2),r=n[0],a=n[1],o=Ch((0,e.useState)([]),2),i=o[0],s=o[1],c=Ch((0,e.useState)(1),2),l=c[0],u=c[1],d=(0,e.useRef)(null),p=e.useCallback(function(){var e=window,n=e.innerWidth,r=e.innerHeight;t.showUserList&&function(){throw new TypeError('"width" is read-only')}();var a=parseInt((r-96)/150),o=parseInt((n-16)/150);return{width:n,height:r,numberOfRow:a>t.noOfUsersPerPage?t.noOfUsersPerPage:a||1,numberOfCol:o>t.noOfUsersPerPage?t.noOfUsersPerPage:o||1}},[t.noOfUsersPerPage,t.showUserList]),h=Ch((0,e.useState)(p()),2),m=h[0],g=h[1],f=(0,e.useCallback)(function(){var e=p();m.height==e.height&&m.width==e.width||g(yh({},e))},[t]);(0,e.useEffect)(function(){setTimeout(function(){return a(0)},1e3)},[t.pinnedUserId]),(0,e.useEffect)(function(){return window.addEventListener("resize",f),function(){return window.removeEventListener("resize",f)}},[f]),(0,e.useEffect)(function(){var e=p();g(yh({},e))},[t.noOfUsersPerPage,t.showUserList]),(0,e.useEffect)(function(){try{for(var e={constraints:{},defaultConstraints:{maxHeight:180},lastN:-1,onStageSources:[],selectedSources:[]},n=0;n<t.users.length;n++){var a,o,i,s=null===(a=t.users[n].videoTrack)||void 0===a||null===(o=(i=a).getSourceName)||void 0===o?void 0:o.call(i);s&&(e.constraints[s]={maxHeight:0})}if(t.pinnedUserId&&0==r){var c,l,u=t.users.find(function(e){return e.id===t.pinnedUserId}),p=null==u||null===(c=u.videoTrack)||void 0===c||null===(l=c.getSourceName)||void 0===l?void 0:l.call(c);p&&(e.constraints[p]={maxHeight:720},e.onStageSources.push(p)),window.room.setReceiverConstraints(e)}else{var h=r+(t.pinnedUserId?0:1);if(d.current[h]){for(var m=bh(d.current[h]),g=0;g<m.length;g++){var f,_,b,v,y=null===(f=m[g])||void 0===f||null===(_=f.videoTrack)||void 0===_||null===(b=(v=_).getSourceName)||void 0===b?void 0:b.call(v);y&&(e.selectedSources.push(y),e.constraints[y]={maxHeight:360})}if(t.pinnedUserId){var E=t.users.find(function(e){return e.id===t.pinnedUserId});if(E){var C,S,w=null==E||null===(C=E.videoTrack)||void 0===C||null===(S=C.getSourceName)||void 0===S?void 0:S.call(C);w&&(e.constraints[w]={maxHeight:720},e.onStageSources.push(w))}}window.room.setReceiverConstraints(e)}}}catch(e){}},[r,t.pinnedUserId,t.screenSharersID,d.current]),(0,e.useEffect)(function(){var e=setInterval(function(){var e;null!==(e=t.dominantSpeakerList)&&void 0!==e&&e.length&&s(bh(t.dominantSpeakerList))},1e4);return function(){clearInterval(e)}},[t.dominantSpeakerList]);var _=function(n,r){var a,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.createElement("div",{key:n.id,style:r,className:" grid-box ".concat(t.dominantSpeakerId===n.id?"show-border":""," ")},e.createElement(op,{hideVideo:!o,hideName:!0,mainVideo:i,size:"fullscreen"===t.avatarMode?"fill":"square"===t.avatarMode?"square":"medium",withAudio:!1,user:n,cover:!(!i||null!==(a=n.name)&&void 0!==a&&a.includes(rt.SCREEN_SHARE_POSTFIX))&&t.fitVideo}),e.createElement(mp,{connectionQuality:t.connectionQuality&&t.connectionQuality[n.id],noisyMics:t.noisyMics,muteUser:t.muteUser,user:n,pinnedUserId:t.pinnedUserId,pinUser:t.pinUser,localizedObject:t.localizedObject,unPinUser:t.unPinUser,toggleFitVideo:t.toggleFitVideo,fitVideo:t.fitVideo,mainVideo:i}),t.pinnedUserId==n.id?null:e.createElement("div",{onClick:function(){return t.pinUser(n)},className:"rounded-full pin-option"},e.createElement(td,{alt:"Pin",className:"pin-image"})))},b=function(n,a){var o,i,s=(i=1,(o=n.length)>2&&o<=6?i=2:o>6&&o<=12?i=3:o>12&&o<=20?i=4:o>20&&o<=30?i=5:o>30&&o<=42?i=6:o>42&&o<=49&&(i=7),i),c=Math.ceil(n.length/s);s>t.noOfUsersPerPage&&(s=t.noOfUsersPerPage),c>t.noOfUsersPerPage&&(c=t.noOfUsersPerPage),s>m.numberOfRow&&(s=m.numberOfRow),c>m.numberOfCol&&(c=m.numberOfCol),s*c<n.length&&(s=m.numberOfRow,c=m.numberOfCol);for(var l=[],u=0;u<s;u++){for(var d=[],p=0;p<c;p++){var h=u*c+p;n[h]&&d.push(_(n[h],{width:100/s+"%",maxWidth:"40%",minWidth:"150px"},r===a))}l.push(e.createElement("div",{className:"grid-row",style:{height:100/s-1+"%",maxHeight:"50%",minHeight:"150px"}},d))}return e.createElement("div",{key:"page-"+a,className:"tile-main-container"},e.createElement("div",{style:{paddingBottom:20,paddingLeft:"5%",paddingRight:"5%"},className:"tile-list-wrapper"},l))};return e.createElement("div",{className:"paginated-container","data-testid":"cc-tile-container"},function(){for(var n=[],r=1;r<t.users.length;r++)t.users[r].audioTrack&&!t.users[r].isAudioMuted&&n.push(e.createElement(ap,{key:t.users[r].id+"_audio",name:t.users[r].name,audioTrack:t.users[r].audioTrack}));return n}(),e.createElement(fh(),{selected:r,bullets:l>1,mobileTouch:!1,fillParent:!0,infinite:!1,onTransitionRequest:function(e){a(e.nextIndex)}},function(){try{var n=[],o=t.users,s=[],c={};if(t.pinnedUserId){c[0]=t.pinnedUserId;var p=null;if(i.length){var h=yh({},o[0]);h.id==t.pinnedUserId&&(p=h);var g=bh(o);g.shift();var f=[],v=[];g.forEach(function(e){var n=i.findIndex(function(t){return t==e.id});t.pinnedUserId==e.id?p=e:n>=0?f[n]=e:v.push(e)}),s=[h].concat(f,v)}else s=bh(o).filter(function(e){return e.id!=t.pinnedUserId||(p=e,!1)});if(p){var y,E,C=null===(y=t.screenSharersID.find(function(e){return e.screenShareId===p.id}))||void 0===y?void 0:y.userId,S=o[o.findIndex(function(e){return e.id===C})];n.push(e.createElement("div",{key:"pinned",className:"paginated-pinned-view ".concat(t.pinnedUserId==t.myScreenShareID?"paginated-pinned-view-text":"")},t.pinnedUserId==t.myScreenShareID?e.createElement("p",{style:{color:"#ffff"}},"You are currently sharing your screen."):_(p,{borderWidth:0},!0,!0),"presenter"!==t.screenShareMode&&fm(null===(E=p)||void 0===E?void 0:E.videoTrack)&&S?e.createElement(bp,{user:S,boundaryClass:"paginated-pinned-view",avatarMode:!1}):null))}else n.push(null)}else if(i.length){var w=yh({},o[0]),k=bh(o);k.shift();var x=[],T=[];k.forEach(function(e){var t=i.findIndex(function(t){return t==e.id});t>=0?x[t]=e:T.push(e)}),s=[w].concat(x,T)}else s=bh(o);for(var A=(s=s.filter(function(e){return e})).length,R=m.numberOfCol&&m.numberOfRow?m.numberOfCol*m.numberOfRow:9,I=0;I<A/R;I++){var O=bh(s).splice(I*R,R);c[I+1]=O.map(function(e){return e}).filter(function(e){return null==e?void 0:e.id}),n.push(b(O,I+(t.pinnedUserId?1:0)))}return n.length!=l&&(1==n.length&&a(0),r>n.length-1&&a(n.length-1),u(n.length)),d.current=c,n}catch(e){}}()))}n(485),n(4099),kh.propTypes={avatarMode:gn().string,unPinUser:gn().func,pinUser:gn().func,pinnedUserId:gn().string,users:gn().array,dominantSpeakerId:gn().string,muteUser:gn().func,localizedObject:gn().object,myScreenShareID:gn().string,localUserId:gn().string,connectionQuality:gn().object},kh.defaultProps={unPinUser:function(){},pinUser:function(){},pinnedUserId:"",users:[],dominantSpeakerId:"",muteUser:function(){},localizedObject:{},room:{},myScreenShareID:"",avatarMode:"circle",localUserId:"",connectionQuality:{}};var xh=kh;function Th(e){return Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Th(e)}var Ah=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"audio"!==t.getType())throw new Error("AudioMixerEffect only supports audio JitsiLocalTracks; effect will not work!");this._mixAudio=t}var t,n;return t=e,(n=[{key:"isEnabled",value:function(e){return e.isAudioTrack()&&this._mixAudio.isAudioTrack()}},{key:"startEffect",value:function(e){return this._originalStream=e,this._originalTrack=e.getTracks()[0],this._audioMixer=JitsiMeetJS.createAudioMixer(),this._audioMixer.addMediaStream(this._mixAudio.getOriginalStream()),this._audioMixer.addMediaStream(this._originalStream),this._mixedMediaStream=this._audioMixer.start(),this._mixedMediaTrack=this._mixedMediaStream.getTracks()[0],this._mixedMediaStream}},{key:"stopEffect",value:function(){this._audioMixer.reset()}},{key:"setMuted",value:function(e){this._originalTrack.enabled=!e}},{key:"isMuted",value:function(){return!this._originalTrack.enabled}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(a=function(e){if("object"!==Th(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Th(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Th(a)?a:String(a)),r)}var a}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(7275);var Ih=function(t){var n,r=t.onLeave,a=t.onStay,o=t.timeToLeaveInSec,i=void 0===o?60:o,s=t.localizedObject,c=function(e){if(Array.isArray(e))return e}(n=e.useState(i))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(n)||function(e){if(e){if("string"==typeof e)return Rh(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Rh(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=c[0],u=c[1],d=l>0,p=Math.floor(l/60),h="".concat(p>0?"".concat(p,":"):"").concat((l%60).toString().padStart(2,"0")),m=Math.ceil(l/60);return e.useEffect(function(){var e=setInterval(function(){u(function(t){return t<=1&&(setTimeout(function(){r(Qe)},0),clearInterval(e)),t-1})},1e3);return function(){clearInterval(e)}},[]),e.createElement("div",{className:"modal-overlay",style:d?{}:{backgroundColor:"#1c2226"}},e.createElement("div",{className:"modal"},d&&e.createElement("div",{className:"timer-circle"},e.createElement("span",{className:"timer-text"},h)),e.createElement("h2",{className:"modal-title"},d?s.ARE_YOU_STILL_THERE:s.MEETING_ENDED),d?e.createElement("p",{className:"modal-text"},m>1?s.SOLO_CALL_WARNING_MINUTES.replace("__MINUTES__",m):s.SOLO_CALL_WARNING_MINUTE.replace("__MINUTES__",m)):e.createElement("p",{className:"modal-text"},s.CALL_ENDED_MESSAGE),e.createElement("div",{className:"modal-buttons"},e.createElement("button",{className:"leave-button",onClick:function(){r(d?Ze:$e)}},s.LEAVE_NOW),d&&e.createElement("button",{className:"stay-button",onClick:a},s.STAY_IN_CALL))))};function Oh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Dh(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function Nh(e){return Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nh(e)}function Mh(e){return function(e){if(Array.isArray(e))return Lh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dh(e,t){if(e){if("string"==typeof e)return Lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lh(e,t):void 0}}function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ph(){Ph=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==Nh(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jh(Object(n),!0).forEach(function(t){Vh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fh(e,t){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fh(e,t)}function Bh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(e)}function Vh(e,t,n){return(t=Hh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e){var t=function(e){if("object"!==Nh(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Nh(t)?t:String(t)}function zh(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function Yh(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){zh(o,r,a,i,s,"next",e)}function s(e){zh(o,r,a,i,s,"throw",e)}i(void 0)})}}var qh,Kh,Wh="Conference",Jh=null,Zh=null,$h=!1,Qh=0,Xh="avatar-url",em="user_object",tm="CallingComponent",nm="",rm=[];function am(e){return om.apply(this,arguments)}function om(){return(om=Yh(Ph().mark(function e(t){var n,r,a,o;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,JitsiMeetJS.createLocalTracks(t);case 2:n=e.sent,r=Oh(n);try{for(r.s();!(a=r.n()).done;)o=a.value,rm.push(o)}catch(e){r.e(e)}finally{r.f()}return window.allTracks=rm,e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}var im,sm,cm=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fh(e,t)}(d,t);var r,a,o,i,s,c,l,u=(c=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Gh(c);if(l){var n=Gh(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bh(e)}(this,e)});function d(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),Vh(Bh(r=u.call(this,t)),"toggleFitVideo",function(){r.setState({fitVideo:!r.state.fitVideo})}),Vh(Bh(r),"checkIsPWA",function(){(window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://"))&&(r.PWAListener=document.addEventListener("visibilitychange",Yh(Ph().mark(function e(){var t,n,a,o,i,s,c,l,u,d,p,h;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"visible"===document.visibilityState&&(r.state.isAudioOnly||null===(t=r.state)||void 0===t||null===(n=t.users)||void 0===n||null===(a=n[0])||void 0===a||!a.videoTrack||null!==(o=r.state)&&void 0!==o&&null!==(i=o.users)&&void 0!==i&&null!==(s=i[0])&&void 0!==s&&s.isVideoMuted||_m({devices:[Xe]}).then(function(){var e=Yh(Ph().mark(function e(t){var n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t[0],e.next=3,Zh.replaceTrack(r.state.users[0].videoTrack,n);case 3:return e.next=5,r.state.users[0].videoTrack.dispose();case 5:r.setState({users:r.state.users.map(function(e,t){return 0==t?Uh(Uh({},e),{},{videoTrack:n,isVideoMuted:!1}):e})});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){}),null===(c=r.state)||void 0===c||null===(l=c.users)||void 0===l||null===(u=l[0])||void 0===u||!u.audioTrack||null!==(d=r.state)&&void 0!==d&&null!==(p=d.users)&&void 0!==p&&null!==(h=p[0])&&void 0!==h&&h.isAudioMuted||_m({devices:["audio"]}).then(function(){var e=Yh(Ph().mark(function e(t){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zh.replaceTrack(r.state.users[0].audioTrack,t[0]);case 2:return e.next=4,r.state.users[0].audioTrack.dispose();case 4:r.setState({users:r.state.users.map(function(e,n){return 0==n?Uh(Uh({},e),{},{audioTrack:t[0],isAudioMuted:!1}):e})});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){}));case 1:case"end":return e.stop()}},e)}))))}),Vh(Bh(r),"storeImagesInLocal",function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e,t){dl(e,function(e){pl(r.db,e,"custom")})})}),Vh(Bh(r),"checkBrowser",function(){try{if(-1!==navigator.userAgent.indexOf("like Mac")){var e=window.navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i),a=t&&n&&!e.match(/CriOS/i)&&!e.match(/OPiOS/i);t&&!a&&(pt.log(tm,"[checkBrowser]",{iOS:t,webkit:n,iOSSafari:a}),r.props.enqueueSnackbar(r.localizedObject.IOS_BROWSER_WARNING,{variant:"error",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}))}}catch(e){pt.log(tm,"[checkBrowser]",e)}}),Vh(Bh(r),"getOrientation",function(){try{var e=window.innerWidth>window.innerHeight?"Landscape":"Portrait";r.setState({orientation:e})}catch(e){pt.log(tm,"[getOrientation]",e)}}),Vh(Bh(r),"dominantSpeakers",[]),Vh(Bh(r),"unload",function(){var e=Yh(Ph().mark(function e(t){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.left){e.next=18;break}return r.left=!0,r.showOnLeftMsg=!1,e.prev=3,r.state.isScreenShareOn&&r.stopScreenShare(),e.next=7,Zh.leave().then(Yh(Ph().mark(function e(){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.disposeLocalTracks();case 2:Jh.disconnect(),Wh="Conference",Jh=null,Zh=null,$h=!1,Qh=0,qh=void 0,Kh=void 0,r.props.onCallEnded();case 11:case"end":return e.stop()}},e)})));case 7:return r.disposeLocalTracks(),r.deleteAllTracks(),JitsiMeetJS.mediaDevices.removeEventListener(JitsiMeetJS.events.mediaDevices.DEVICE_LIST_CHANGED,r.onDeviceListChange),(t||window.event).returnValue=null,e.abrupt("return",null);case 14:return e.prev=14,e.t0=e.catch(3),pt.log(tm,"[unload]",e.t0),e.abrupt("return",null);case 18:return e.abrupt("return",null);case 19:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"init",function(e){try{Wh=e,JitsiMeetJS.init(Ve),JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR)}catch(e){pt.log(tm,"[init]",e)}}),Vh(Bh(r),"muteNoisyMic",function(){var e=r.state.users;e[0].audioTrack&&(e[0].audioTrack.mute(),e[0].isAudioMuted=!0,r.props.triggerEvent&&r.props.triggerEvent(We,{muted:r.removeAudioVideoTrackFromUser(e[0]),mutedBy:r.removeAudioVideoTrackFromUser(e[0])}),r.setState({users:e}),!0===r.state.noisyMics[e[0].id]&&Zh.sendCommandOnce(Re,{value:e[0].id}))}),Vh(Bh(r),"unMuteMic",function(){var e=r.state.users;e[0].audioTrack&&(e[0].audioTrack.unmute(),e[0].isAudioMuted=!1,r.setState({users:e}),r.props.triggerEvent&&r.props.triggerEvent(Je,{muted:r.removeAudioVideoTrackFromUser(e[0]),mutedBy:r.removeAudioVideoTrackFromUser(e[0])}))}),Vh(Bh(r),"noisyMicAction",function(t){return e.createElement(e.Fragment,null,e.createElement("button",{style:{paddingRight:10,outline:"none",backgroundColor:"#fff",color:"#000",fontSize:11,padding:"8px 10px",borderRadius:5},onClick:function(){r.muteNoisyMic(),r.props.closeSnackbar(t)}},"Mute","     "))}),Vh(Bh(r),"talkWhileMuteAction",function(t){return e.createElement(e.Fragment,null,e.createElement("button",{style:{paddingRight:5,outline:"none",backgroundColor:"#fff",color:"#000",fontSize:11,padding:"8px 10px",borderRadius:5},onClick:function(){r.unMuteMic(),r.props.closeSnackbar(t)}},"Unmute","     "))}),Vh(Bh(r),"onConnectionSuccess",function(){try{var e;r.state.connectionError&&r.setState({connectionError:!1,connectionErrorType:""}),Zh=Jh.initJitsiConference(Wh,Uh(Uh({},He),{},{createVADProcessor:sn})),window.room=Zh,pt.log(tm,"onConnectionSuccess Called......",Zh),r.getDevices(!1);var t=Zh.myUserId()||"",a=Mh(r.state.users),o=a[0];a[0]=Uh(Uh({},o),{},{id:t}),r.setState({users:a,dominantSpeakerId:Zh.lastDominantSpeaker||t}),Zh.on(JitsiMeetJS.events.conference.TRACK_ADDED,r.onRemoteTrack),Zh.on(JitsiMeetJS.events.conference.NOISY_MIC,r.onNoisyMic),Zh.on(JitsiMeetJS.events.conference.TALK_WHILE_MUTED,r.onTalkWhileMuted),Zh.on(JitsiMeetJS.events.conference.TRACK_REMOVED,r.onRemoteTrackRemoved),Zh.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED,r.onConferenceJoined),Zh.on(JitsiMeetJS.events.conference.CONFERENCE_FAILED,r.onConferenceFailed),Zh.on(JitsiMeetJS.events.conference.USER_JOINED,r.onUserJoined),Zh.on(JitsiMeetJS.events.conference.USER_LEFT,r.onUserLeft),Zh.on(JitsiMeetJS.events.conference.TRACK_MUTE_CHANGED,r.onTrackMuted),Zh.on(JitsiMeetJS.events.conference.PARTICIPANT_KICKED,function(){}),Zh.on(JitsiMeetJS.events.conference.DOMINANT_SPEAKER_CHANGED,r.onDominantSpeakerChanged),Zh.on(JitsiMeetJS.events.connectionQuality.REMOTE_STATS_UPDATED,r.onRemoteStatsUpdated),Zh.on(JitsiMeetJS.events.connectionQuality.LOCAL_STATS_UPDATED,r.onLocalStatsUpdated),Zh.on(JitsiMeetJS.events.conference.LAST_N_ENDPOINTS_CHANGED,r.onLastNChanged),Zh.on(JitsiMeetJS.events.conference.CONNECTION_INTERRUPTED,r.onConnectionInterrupted),Zh.on(JitsiMeetJS.events.conference.CONNECTION_RESTORED,r.onConnectionRestored),Zh.on(JitsiMeetJS.events.conference.PARTICIPANT_CONN_STATUS_CHANGED,r.onParticipantStatusChange),JitsiMeetJS.mediaDevices.addEventListener(JitsiMeetJS.events.mediaDevices.DEVICE_LIST_CHANGED,r.onDeviceListChange),Zh.addCommandListener(Ae,function(e){var t=e.value;r.setState({noisyMics:Uh(Uh({},r.state.noisyMics),{},Vh({},t,!0))},function(){setTimeout(function(){r.setState({noisyMics:Uh(Uh({},r.state.noisyMics),{},Vh({},t,!1))})},15e3)})}),Zh.addCommandListener(Re,function(e){var t=e.value;r.setState({noisyMics:Uh(Uh({},r.state.noisyMics),{},Vh({},t,!1))})}),Zh.addCommandListener(Ie,function(e){var t=e.value,n=JSON.parse(t);r.setState({pinnedUserId:n.screenShareId}),r.screenShareUserID=n.userId,r.screenSharersID=[].concat(Mh(r.screenSharersID),[n])}),Zh.addCommandListener(De,function(e){var t=e.attributes;!1===r.state.isRecording&&(r.setState({recorder:t,recordId:t.recordId,isRecording:!0}),r.recordingStartedBy={uid:t.uid,name:t.name})}),Zh.addCommandListener(je,function(e){var t=e.attributes;r.setState({tryingToStartRecording:!0,recorder:t})}),Zh.addCommandListener(Be,function(e){e.attributes,r.setState({tryingToStartRecording:!1,recorder:null})}),Zh.addCommandListener(Pe,function(e){var t=e.attributes;if(r.showUserJoinMsg){var n={},a={};r.state.users.map(function(e){e.id==t.mutedParticipantId?a=e:e.id==t.participantMutedBy&&(n=e)}),!1!==zl.isPresenter&&r.props.enqueueSnackbar(" ".concat(ut(n.name)," ").concat(r.localizedObject.MUTED," ").concat(ut(a.name)),{variant:"info",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}),r.props.triggerEvent&&r.props.triggerEvent(We,{muted:r.removeAudioVideoTrackFromUser(a),mutedBy:r.removeAudioVideoTrackFromUser(n)})}}),Zh.addCommandListener(Le,function(e){e.attributes,r.setState({recorder:{},recordId:null,isRecording:!1})}),Zh.addCommandListener(Oe,function(e){var t=e.value;t===r.state.pinnedUserId&&r.setState({pinnedUserId:null}),r.screenShareUserID=void 0,r.screenSharersID=r.screenSharersID.filter(function(e){return e.userId!==t})}),Zh.setDisplayName(r.state.myUserName),Zh.sendCommand("uid",{value:r.props.uid}),r.props.avatar&&Zh.sendCommand(Xh,{value:r.props.avatar}),Zh.addCommandListener(Xh,function(e,t){pt.log(tm,"Avatar data received : ",e);var n=r.state.users.map(function(n){return n.id===t?Uh(Uh({},n),{},{avatar:e.value}):n});r.setState({users:n})}),Zh.on(JitsiMeetJS.events.conference.SUBJECT_CHANGED,r.onRoomSubjectChange),Zh.addCommandListener(Ue,function(e,t){var n=e.attributes.initiator&&JSON.parse(e.attributes.initiator);t===r.localUser.id||r.switchedToVideoCall||r.setState({toVideoRequestModal:!0,toVideoRequestInitiator:n})}),Zh.addCommandListener(Fe,function(e,t){if(!r.switchedToVideoCall){var n=e.attributes.responder&&JSON.parse(e.attributes.responder);"true"==e.attributes.response?(r.switchToVideoCall(!0,n),r.switchedToVideoCall=!0,r.toVideoRequestResponder=n,r.setState({requestingForVideoCall:!1},function(){})):(r.setState({requestingForVideoCall:!1}),!1!==zl.isPresenter&&r.props.enqueueSnackbar(" ".concat(r.localizedObject.REQUESTING_TO_SWITCH_VIDEO_CALL_REJECTED),{variant:"error",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}))}});var i={start_recording_on_call_start:r.props.startRecordingOnCallStart,is_video_muted:r.props.startVideoMuted,is_audio_muted:r.props.startAudioMuted,session_id:r.props.sessionID,is_audio_only:r.props.isAudioOnly,mode:r.props.mode,uid:a[0].uid,platform:"web",sdk:"react",sdk_version:n(4147).i8,app_id:r.props.appID,meeting_id:Zh.xmpp.getJid()};r.props.urlVersion>="5"&&(i.call_version=n(4147).i8);var s=new URLSearchParams(window.location.search);i.param_v=null!==(e=s.get("v"))&&void 0!==e?e:0,Zh.sendCommand("initial_config",{attributes:i}),Zh.sendCommand(em,{attributes:{uid:r.props.uid,avatar:r.props.avatar||o.avatar,name:r.state.myUserName,joinnedAt:Date.now(),isPresenter:zl.isPresenter}}),Zh.addCommandListener(em,function(e,t){pt.log(tm,"USER_OBJECT received data : ",e);var n=e.attributes.isPresenter;if("SCREEN_SHARE"===e.attributes.uid)return!1;var a=r.state.users.map(function(a){return a.id===t?(a.uid||r.props.triggerEvent&&r.props.triggerEvent("onUserJoined",e.attributes),Uh(Uh({},a),{},{uid:e.attributes.uid,avatar:e.attributes.avatar,joinedAt:e.attributes.joinnedAt,isPresenter:"string"==typeof n?"true"===n:void 0})):a}),o=r.state.exportUserList;if(!r.state.exportUserList.find(function(e){return e.id===t})){var i={id:t,name:e.attributes.name,avatar:e.attributes.avatar,uid:e.attributes.uid};o=[].concat(Mh(o),[i]),r.props.triggerEvent&&r.props.triggerEvent(ze,o)}r.setState({users:a,exportUserList:o},function(){pt.log(tm,"Export userList = ",r.state.exportUserList)})}),Zh.addCommandListener(Ge,function(e){r.endCall()}),Zh.join(),Jh.removeEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,r.onConnectionSuccess)}catch(e){pt.log(tm,"[onConnectionSuccess]",e)}}),Vh(Bh(r),"onCallConvertedToVideo",function(e,t){r.switchedToVideoCall||(r.toVideoRequestResponder=t,r.setState({toVideoRequestInitiator:e,toVideoRequestType:"other",toVideoRequestModal:!0}))}),Vh(Bh(r),"onLocalStatsUpdated",function(e){try{r.stats.connectionQuality||(r.stats.connectionQuality={}),r.stats.connectionQuality[r.localUser.id]=e.connectionQuality,JSON.stringify(r.state.stats)!=JSON.stringify(r.stats)&&(pt.log(tm,"onLocalStatsUpdated updated : ",e),r.setState({connectionQuality:Uh({},r.stats.connectionQuality)}))}catch(e){pt.log(tm,"[onLocalStatsUpdated]",e)}}),Vh(Bh(r),"onRemoteStatsUpdated",function(e,t){try{r.stats.connectionQuality||(r.stats.connectionQuality={}),r.stats.connectionQuality[e]=t.connectionQuality,JSON.stringify(r.state.connectionQuality)!=JSON.stringify(r.stats.connectionQuality)&&(pt.log(tm,"onRemoteStatsUpdated updated : ",t),r.setState({connectionQuality:Uh({},r.stats.connectionQuality)}))}catch(e){pt.log(tm,"[onRemoteStatsUpdated]",e)}}),Vh(Bh(r),"onConferenceFailed",function(e){pt.log(tm,"onConferenceFailed Called......",e),Kh()}),Vh(Bh(r),"onLastNChanged",function(e,t){try{pt.log(tm,"LastN LeavingIDs...  ",e),pt.log(tm,"LastN enteringIds...  ",t);var n,a=[];if(n=Array.from(new Set([].concat(Mh(t),Mh(r.LastNId)))),null!=e&&e.length)for(var o=0;o<n.length;o++)e.includes(n[o])||a.push(n[o]);else a=n;r.state.LastNId?a.toString()!=r.LastNId.toString()&&(r.LastNId=a,r.setState({LastNId:r.LastNId})):(r.LastNId=a,r.setState({LastNId:r.LastNId}))}catch(e){pt.log(tm,"[onLastNChanged]",e)}}),Vh(Bh(r),"onDominantSpeakerChanged",function(e){try{if(pt.log(tm,"onDominantSpeakerChanged id ...  ",e),!e)return;if(r.state.users[0].id!==e){var t=[e].concat(Mh(r.state.dominantSpeakerList)),n=new Set(t);r.setState({dominantSpeakerId:e,dominantSpeakerList:Array.from(n)})}}catch(e){pt.log(tm,"[onDominantSpeakerChanged]",e)}}),Vh(Bh(r),"onUserJoined",function(e,t){try{var n;if(pt.log(tm,"onUserJoined",t),"Unnamed"===(n=t.getDisplayName()?t.getDisplayName():"Unnamed")&&t._statsID.includes("jibri"))return!1!==zl.isPresenter&&(r.props.enqueueSnackbar(r.localizedObject.CALL_RECORDING_STARTED_MSG,{variant:"info",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}),r.props.triggerEvent&&r.props.triggerEvent(Ke,{recordingStarted:!0,user:r.recordingStartedBy})),!1;var a={id:t.getId(),name:n,avatar:void 0,status:"active",isAudioMuted:void 0,isVideoMuted:void 0,videoTrack:void 0,audioTrack:void 0};a.name&&a.name.includes(rt.SCREEN_SHARE_POSTFIX)&&r.setState({isAnyScreenShareUser:[].concat(Mh(r.state.isAnyScreenShareUser),[a])}),zl.mode!==ot&&r.showUserJoinMsg&&!1!==zl.isPresenter&&r.props.enqueueSnackbar("".concat(ut(n)," ").concat(r.localizedObject.USER_JOINED_CALL_MSG),{variant:"info",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}),r.setState({users:[].concat(Mh(r.state.users),[a])}),r.state.isRecording&&r.state.recorder.id===r.state.users[0].id&&Zh.sendCommandOnce(De,{attributes:Uh({recordId:r.state.recordId},r.state.recorder)}),r.state.tryingToStartRecording&&Zh.sendCommandOnce(je,{attributes:Uh({},r.state.recorder)})}catch(e){pt.log(tm,"[onUserJoined]",e)}}),Vh(Bh(r),"onUserLeft",function(e,t){try{if(pt.log(tm,"[onUserLeft]",t._statsID,t._statsID.includes("jibri")),("Unnamed"===t.getDisplayName()||!t.getDisplayName())&&t._statsID&&t._statsID.includes("jibri"))return!1!==zl.isPresenter&&(r.props.enqueueSnackbar(r.localizedObject.CALL_RECORDING_ENDED_MSG,{variant:"info",autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}}),r.setState({recorder:{},recordId:null,isRecording:!1}),r.props.triggerEvent&&r.props.triggerEvent(Ke,{recordingStarted:!1})),!1;r.state.pinnedUserId&&t._id===r.state.pinnedUserId&&r.setState({pinnedUserId:""});var n=null;r.state.users.map(function(e){if((null==n||n.joinedAt>e.joinedAt)&&t._id!==e.id&&"active"===e.status&&(n=e),t._id===e.id){if(r.state.tryingToStartRecording&&Zh.sendCommandOnce(Be,{}),zl.mode!==ot&&r.showOnLeftMsg){if(e.name&&e.name.includes(rt.SCREEN_SHARE_POSTFIX)){var a=Mh(r.state.isAnyScreenShareUser).filter(function(t){return t.id!=e.id});r.setState({isAnyScreenShareUser:a})}r.usersLeftNotiHoldTime&&clearTimeout(r.usersLeftNotiHoldTime),r.usersLeftNotiHoldTime=setTimeout(function(){for(var t=0;t<r.usersLeft.length;t+=4){var n=r.usersLeft.slice(t,t+4),a=n.length<=1?"".concat(ut(e.name)," ").concat(r.localizedObject.USER_LEFT_CALL_MSG):r.localizedObject.USERS_LEFT_CALL_MSG.replace("__USERS__",n.slice(0,-1).join(", ")).replace("__USER__",n[n.length-1]);!1!==zl.isPresenter&&r.props.enqueueSnackbar(a,{variant:"info",autoHideDuration:Math.min(500+90*a.length,3e3),anchorOrigin:{vertical:"bottom",horizontal:"left"}})}r.usersLeftNotiHoldTime=null,r.usersLeft=[]},300)}r.usersLeft.push(ut(e.name)),r.props.triggerEvent&&r.props.triggerEvent("onUserLeft",{uid:e.uid,name:e.name,avatar:e.avatar})}});var a=r.state.users.filter(function(e){return e.id!==t._id});r.state.recorder&&t._id===r.state.recorder.id&&r.setState({recorder:n});var o=r.state.exportUserList.filter(function(e){return e.id!==t._id});r.props.triggerEvent&&r.props.triggerEvent(ze,o),a.length<=1&&r.props.triggerEvent("hangup",{}),r.setState({exportUserList:o,users:a})}catch(e){pt.log(tm,"[onUserLeft]",e)}}),Vh(Bh(r),"onTrackMuted",function(e){try{pt.log(tm,"onTrackMuted ...... ",e),pt.log(tm,"onTrackMuted isMuted ...... ",e.isMuted());var t=e.ownerEndpointId;e.isLocal()&&(t=r.state.users[0].id);var n=r.state.users.map(function(n){return n.id===t?e.getType()===Xe?Uh(Uh({},n),{},{isVideoMuted:e.isMuted()}):Uh(Uh({},n),{},{isAudioMuted:e.isMuted()}):n});r.setState({users:n})}catch(e){pt.log(tm,"[onTrackMuted]",e)}}),Vh(Bh(r),"onUserKicked",function(e,t){try{var n=Zh.getParticipantById(e);Zh.kickParticipant(e,"reason"),pt.log(tm,"kickParticipant ......sfddsfdssdff ",n)}catch(e){}}),Vh(Bh(r),"onRemoteTrack",function(e){try{if(e.isLocal())return;pt.log(tm,"onRemoteTrack ...... ",e);var t=e.ownerEndpointId;fm(e)?r.setState({pinnedUserId:e.ownerEndpointId}):Zh.lastDominantSpeaker===t&&r.setState({dominantSpeakerId:e.ownerEndpointId});var n=r.state.users.map(function(n){return n.id===t?e.type===Xe?fm(e)?Uh(Uh({},n),{},{screenShareUserID:r.screenShareUserID,videoTrack:e,isVideoMuted:e.muted}):Uh(Uh({},n),{},{videoTrack:e,isVideoMuted:e.muted}):Uh(Uh({},n),{},{audioTrack:e,isAudioMuted:e.muted}):n});r.setState({users:n})}catch(e){pt.log(tm,"[onRemoteTrack]",e)}}),Vh(Bh(r),"onNoisyMic",function(e){var t=Zh.myUserId()||"";Zh.sendCommandOnce(Ae,{value:t}),!1!==zl.isPresenter&&r.props.enqueueSnackbar(r.localizedObject.NOISY_MIC,{action:r.noisyMicAction,variant:"warning",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}})}),Vh(Bh(r),"onTalkWhileMuted",function(e){!1!==zl.isPresenter&&r.props.enqueueSnackbar(r.localizedObject.TALK_WHILE_MUTED,{action:r.talkWhileMuteAction,variant:"warning",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"}})}),Vh(Bh(r),"onConnectionInterrupted",function(){$h=!0,r.setState({connectionLost:!0})}),Vh(Bh(r),"onConnectionRestored",function(){$h=!0,r.setState({connectionLost:!1})}),Vh(Bh(r),"onParticipantStatusChange",function(e,t){pt.log(tm,"PARTICIPANT_CONN_STATUS_CHANGED",e,t);var n=r.state.users.map(function(n){return n.id===e?Uh(Uh({},n),{},{status:t}):n});r.setState({users:n})}),Vh(Bh(r),"onDeviceListChange",function(){var e=Yh(Ph().mark(function e(t){var n,a;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.state.users[0].videoTrack&&r.state.users[0].videoTrack.deviceId,r.state.users[0].audioTrack&&r.state.users[0].audioTrack.deviceId,a=!1,null==t||!t.length){e.next=13;break}if(t.map(function(e){e.deviceId===n&&(a=!0),e.deviceId}),!r.state.noCamera&&a||r.state.isAudioOnly){e.next=13;break}if(a||r.state.noCamera){e.next=11;break}return e.next=11,r.disposeLocalVideoTrack();case 11:_m({devices:["video"],facingMode:"user"}).then(function(e){r.onLocalTracks(e)}).catch(function(e){pt.log(tm,"Error creating Video local media : ",e),r.setState({noCamera:!0})});case 13:r.getDevices();case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"onRoomSubjectChange",function(e){var t=e?JSON.parse(e):{};if(null!=t&&t.converted){var n=null==t?void 0:t.converted;r.onCallConvertedToVideo(n.initiator,n.responder)}}),Vh(Bh(r),"onRemoteTrackRemoved",function(e){try{pt.log(tm,"onRemoteTrackRemoved ...... ",e);var t=r.state.users.map(function(t){return t.id===e.ownerEndpointId?e.type===Xe?Uh(Uh({},t),{},{videoTrack:void 0}):Uh(Uh({},t),{},{audioTrack:void 0}):t});r.setState({users:t})}catch(e){pt.log(tm,"[onRemoteTrackRemoved]",e)}}),Vh(Bh(r),"onConferenceJoined",Yh(Ph().mark(function e(){var t,n,a,o;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==$h){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,pt.log("onConferenceJoined called ",r.state.localTracks),$h=!0,r.props.startRecordingOnCallStart&&r.startRecording(),setTimeout(function(){return r.showUserJoinMsg=!0},6e3),n=Bh(r),(a=n.localUser).audioTrack&&Zh.addTrack(a.audioTrack),!a.videoTrack){e.next=12;break}return e.next=12,Zh.addTrack(a.videoTrack);case 12:o=function(){Zh.sendCommandOnce("ON_CONFERENCE_JOINED",{attributes:{startRecordingOnCallStart:r.props.startRecordingOnCallStart,username:r.props.username||"Unnamed",avatar:r.props.avatar,isVideoMuted:r.props.startVideoMuted,isAudioMuted:r.props.startAudioMuted,isLegacyServer:!1,sessionID:r.props.sessionID,isAudioOnly:r.props.isAudioOnly,mode:r.props.mode,uiVersion:2,appID:r.props.appID,meeting_id:Zh.xmpp.getJid()}})},"function"==typeof(null===(t=Zh.xmpp)||void 0===t?void 0:t.getJid)?o():setTimeout(o,3e3),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(2),pt.log(tm,"[onConferenceJoined]",e.t0);case 19:case"end":return e.stop()}},e,null,[[2,16]])}))),Vh(Bh(r),"createLocalTracks",function(){try{var e=!1;r.state.isAudioOnly?(pt.log(tm,"createLocalTracks Audio Only",""),_m({devices:["audio"]}).then(r.onLocalTracks).catch(function(e){pt.log(tm,"Error creating local media : ",e),r.props.enqueueSnackbar(r.localizedObject.MIC_ERROR_MSG,{variant:"error"}),r.setState({noMic:!0,showAudioMuteButton:!1,connectionError:!0,connectionErrorType:"CAMERA_MIC_ERROR"})})):r.state.isBroadcast?(pt.log(tm,"createLocalTracks Audio Only",""),_m({devices:["audio"]}).then(r.onLocalTracks).catch(function(e){pt.log(tm,"Error creating local media : ",e)})):"SINGLE"===r.state.mode?(pt.log(tm,"Single Mode local track create",""),_m({devices:["audio","video"],facingMode:"user",resolution:1080,constraints:{video:{aspectRatio:16/9,height:{ideal:720,max:720,min:405},width:{ideal:1280,max:1280,min:720}}}}).then(r.onLocalTracks).catch(function(e){pt.log(tm,"[createLocalTracks Video & Audio]","erroraudio",e),_m({devices:["audio"],facingMode:"user"}).then(r.onLocalTracks)})):(pt.log(tm,"createLocalTracks Video & Audio",""),_m({devices:["audio","video"]}).then(r.onLocalTracks).catch(function(t){_m({devices:["audio"],facingMode:"user"}).then(function(e){r.onLocalTracks(e),r.props.enqueueSnackbar(r.localizedObject.CAMERA_ERROR_MSG,{variant:"error"})}).catch(function(t){pt.log(tm,"Error creating Audio local media : ",t),r.setState({noMic:!0,showAudioMuteButton:!1}),e=!0,_m({devices:["video"],facingMode:"user"}).then(function(e){r.onLocalTracks(e),r.props.enqueueSnackbar(r.localizedObject.MIC_ERROR_MSG,{variant:"error"})}).catch(function(t){e&&r.props.enqueueSnackbar(r.localizedObject.CAMERA_MIC_ERROR_MSG,{variant:"error"}),pt.log(tm,"Error creating Video local media : ",t),r.setState({noCamera:!0,showVideoPauseButton:!1,connectionError:!0,connectionErrorType:"CAMERA_MIC_ERROR"})})})}))}catch(e){pt.log(tm,"[createLocalTracks]",e)}}),Vh(Bh(r),"onLocalTracks",function(e,t){pt.log(tm,"[onLocalTracks]",e,t);try{t||Jh||r.makeConnection(),e.forEach(function(){var n=Yh(Ph().mark(function n(a,o){var i,s,c,l;return Ph().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e[o].getType()===Xe&&(localStorage.setItem("lastVideoDeviceId",e[o].deviceId),i=Mh(r.state.users),(s=i[0]).isVideoMuted&&!t&&e[o].mute(),""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage?ll({track:e[o],option:{type:"img",url:r.props.EnforceBackgroundImage}}):1!==r.props.EnforceBackgroundBlur&&2!==r.props.EnforceBackgroundBlur||ll({track:e[o],option:{type:"blur",blurValue:1===r.props.EnforceBackgroundBlur?6:15}}),i[0]=Uh(Uh({},s),{},{videoTrack:e[o]}),r.setState({users:i,noCamera:!1})),e[o].getType()===et&&(c=Mh(r.state.users),(l=c[0]).isAudioMuted&&e[o].mute(),c[0]=Uh(Uh({},l),{},{audioTrack:e[o]}),r.setState({users:c,noMic:!1})),!$h){n.next=20;break}if(e[o].getType()!==et){n.next=13;break}if(!Zh.getLocalAudioTrack()){n.next=9;break}return n.next=7,Zh.replaceTrack(Zh.getLocalAudioTrack(),e[o]);case 7:n.next=11;break;case 9:return n.next=11,Zh.addTrack(e[o]);case 11:case 16:n.next=20;break;case 13:if(!Zh.getLocalVideoTrack()){n.next=18;break}return n.next=16,Zh.replaceTrack(Zh.getLocalVideoTrack(),e[o]);case 18:return n.next=20,Zh.addTrack(e[o]);case 20:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()),r.state.isBroadcast&&Bh(r).localUser.audioTrack.mute()}catch(e){pt.log(tm,"[onLocalTracks]",e)}}),Vh(Bh(r),"switchToVideoCall",Yh(Ph().mark(function e(){var t,n,a,o=arguments;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=o.length>0&&void 0!==o[0]&&o[0],n=o.length>1&&void 0!==o[1]?o[1]:{},r.setState({isAudioOnly:!1}),t&&(a={initiator:Uh({},r.state.toVideoRequestInitiator),responder:Uh({},n),response:!0},Zh.setSubject(JSON.stringify({converted:a}))),am({devices:["video"],facingMode:"user"}).then(function(e){r.onLocalTracks(e)}).catch(function(e){pt.log(tm,"Error creating Video local media : ",e),r.setState({noCamera:!0})}),r.props.triggerEvent&&r.props.triggerEvent("onCallSwitchedToVideo",{sessionId:r.props.sessionID,initiator:r.state.toVideoRequestInitiator,responder:n});case 7:case"end":return e.stop()}},e)}))),Vh(Bh(r),"sendRequestforVideoCall",function(e){r.setState({toVideoRequestInitiator:Uh(Uh({},e),{},{audioTrack:null,videoTrack:null,stats:null})}),Zh.sendCommandOnce(Ue,{attributes:{initiator:JSON.stringify(Uh(Uh({},e),{},{audioTrack:null,videoTrack:null,stats:null}))}})}),Vh(Bh(r),"sendVideoRequestResponse",function(e){"initial"==r.state.toVideoRequestType?Zh.sendCommandOnce(Fe,{attributes:{responder:JSON.stringify(Uh(Uh({},r.state.users[0]),{},{audioTrack:null,videoTrack:null,stats:null})),response:e}}):e?r.switchToVideoCall():r.onEndCallButtonCLicked(),r.setState({toVideoRequestModal:!1})}),Vh(Bh(r),"handleUnMutingVideoForFirstTime",function(){if(r.props.startVideoMuted&&r.unMutingVideoForFirstTime){var e=r.state.users;r.unMutingVideoForFirstTime=!1,Zh.replaceTrack(e[0].videoTrack,e[0].videoTrack)}}),Vh(Bh(r),"toggleVideoButton",function(){var e=Yh(Ph().mark(function e(t){var n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||r.state.isAudioOnly&&!r.switchedToVideoCall){e.next=2;break}return e.abrupt("return");case 2:if(n=r.state.users,!r.state.isAudioOnly||r.switchedToVideoCall){e.next=7;break}return r.sendRequestforVideoCall(n[0]),r.setState({requestingForVideoCall:!0}),e.abrupt("return");case 7:if(!r.presenterTrack){e.next=26;break}if(r.state.isPresenterTrackMuted){e.next=14;break}r.desktopVideoTrack.setEffect(void 0),r.presenterTrack.dispose(),r.setState({isPresenterTrackMuted:!0}),e.next=25;break;case 14:return r.setState({isPresenterTrackMuted:!1}),e.t0=r.desktopVideoTrack,e.t1=hn,e.next=19,r.createLocalPresenterTrack();case 19:return e.t2=e.sent,e.next=22,(0,e.t1)(e.t2);case 22:return e.t3=e.sent,e.next=25,e.t0.setEffect.call(e.t0,e.t3);case 25:return e.abrupt("return");case 26:n[0].videoTrack&&(n[0].isVideoMuted?(n[0].videoTrack.unmute(),n[0].isVideoMuted=!1):(n[0].videoTrack.mute(),n[0].isVideoMuted=!0),r.setState({users:n}),r.handleUnMutingVideoForFirstTime());case 27:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"toggleAudioButton",function(){var e=r.state.users;e[0].audioTrack&&(e[0].isAudioMuted?(e[0].audioTrack.unmute(),e[0].isAudioMuted=!1,r.props.triggerEvent&&r.props.triggerEvent(Je,{muted:r.removeAudioVideoTrackFromUser(e[0]),mutedBy:r.removeAudioVideoTrackFromUser(e[0])})):(e[0].audioTrack.mute(),e[0].isAudioMuted=!0,r.props.triggerEvent&&r.props.triggerEvent(We,{muted:r.removeAudioVideoTrackFromUser(e[0]),mutedBy:r.removeAudioVideoTrackFromUser(e[0])})),r.setState({users:e}),!0===r.state.noisyMics[e[0].id]&&Zh.sendCommandOnce(Re,{value:e[0].id}))}),Vh(Bh(r),"endCall",Yh(Ph().mark(function e(){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({endCallDialogVisible:!1}),e.next=3,r.unload();case 3:case"end":return e.stop()}},e)}))),Vh(Bh(r),"endCallDueToTimeout",function(){var e=Yh(Ph().mark(function e(t){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t===Qe?(Zh.sendCommandOnce("call-ending-due-to-timeout",{attributes:{uid:r.props.uid,idleTimeoutPeriod:r.props.idleTimeoutPeriod}}),r.props.triggerEvent("onSessionTimeout",{})):t===Ze&&r.props.triggerEvent(Ye,{}),r.onEndCallButtonCLicked();case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"onEndCallButtonCLicked",function(){r.localUserEndsCall=!0,!0!==zl.isPresenter||!1!==r.state.endCallDialogVisible?r.endCall():r.setState({endCallDialogVisible:!0})}),Vh(Bh(r),"endSessionForAll",function(){Zh.sendCommand(Ge,{value:r.state.users[0].id}),r.endCall()}),Vh(Bh(r),"disposeLocalVideoTrack",Yh(Ph().mark(function e(){var t,n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=Mh(r.state.users),!(n=t[0]).videoTrack){e.next=8;break}return e.next=6,n.videoTrack.mute();case 6:return e.next=8,n.videoTrack.dispose();case 8:t[0]=Uh(Uh({},n),{},{videoTrack:void 0}),r.setState({users:t}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),pt.log(tm,"[disposeLocalVideoTrack]",e.t0);case 15:case"end":return e.stop()}},e,null,[[0,12]])}))),Vh(Bh(r),"disposeLocalAudioTrack",Yh(Ph().mark(function e(){var t,n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=Mh(r.state.users),n=t[0],!Zh.getLocalAudioTrack()){e.next=6;break}return e.next=6,Zh.getLocalAudioTrack().dispose();case 6:t[0]=Uh(Uh({},n),{},{audioTrack:void 0}),r.setState({users:t}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),pt.log(tm,"[disposeLocalAudioTrack]",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])}))),Vh(Bh(r),"createScreenShareTrack",Yh(Ph().mark(function e(){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("presenter"!==r.props.screenShareMode){e.next=3;break}return r.createDesktopTrack(),e.abrupt("return");case 3:r.ScreenShareRef.start();case 4:case"end":return e.stop()}},e)}))),Vh(Bh(r),"createLocalPresenterTrack",function(){var e=Yh(Ph().mark(function e(t){var n,a,o,i,s,c,l,u,d=arguments;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:400,a=d.length>2?d[2]:void 0,o=[180,270,360,540,720].find(function(e){return n/5<e}),i={video:{aspectRatio:4/3,height:{ideal:o}}},e.next=8,localStorage.getItem("lastVideoDeviceId");case 8:return a=e.sent,s={constraints:i,devices:["video"]},e.next=13,am(a?Uh(Uh({},s),{},{cameraDeviceId:a}):s);case 13:return c=e.sent,l=function(e){if(Array.isArray(e))return e}(p=c)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,o,i=[],s=!0,c=!1;try{for(a=(t=t.call(e)).next;!(s=(n=a.call(t)).done)&&(i.push(n.value),1!==i.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}(p)||Dh(p,1)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),(u=l[0]).type="presenter",u.isVideoMuted=!1,r.presenterTrack=u,t&&u.dispose(),e.abrupt("return",u.stream);case 21:case"end":return e.stop()}var p},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"createDesktopTrack",function(){am({devices:["desktop"],desktopSharingSources:["screen","window"],resolution:1080,constraints:{video:{aspectRatio:16/9,height:{ideal:720,max:720,min:720},width:{ideal:1280,max:1280,min:1280}}}}).then(function(){var e=Yh(Ph().mark(function e(t){var n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.desktopAudioTrack=t.find(function(e){return"audio"===e.getType()}),r.desktopVideoTrack=t.find(function(e){return"video"===e.getType()}),"presenter"===r.props.screenShareMode&&(r.desktopVideoTrack.track.onended=function(){r.stopScreenShare()}),!(n=r.state.users[0].isVideoMuted)){e.next=15;break}return e.next=7,r.state.users[0].videoTrack.unmute();case 7:return e.next=9,Zh.replaceTrack(r.state.users[0].videoTrack,r.desktopVideoTrack);case 9:return e.next=11,r.state.users[0].videoTrack.dispose();case 11:return e.next=13,r.createLocalPresenterTrack(!0);case 13:e.next=29;break;case 15:return e.next=17,Zh.replaceTrack(r.state.users[0].videoTrack,r.desktopVideoTrack);case 17:return e.next=19,r.state.users[0].videoTrack.dispose();case 19:return e.t0=r.desktopVideoTrack,e.t1=hn,e.next=23,r.createLocalPresenterTrack();case 23:return e.t2=e.sent,e.next=26,(0,e.t1)(e.t2);case 26:return e.t3=e.sent,e.next=29,e.t0.setEffect.call(e.t0,e.t3);case 29:if(!r.desktopAudioTrack){e.next=33;break}return r._mixerEffect=new Ah(r.desktopAudioTrack),e.next=33,r.state.users[0].audioTrack.setEffect(r._mixerEffect);case 33:Zh.sendCommand(Ie,{value:r.state.users[0].id}),r.setState({users:r.state.users.map(function(e,t){return 0==t?Uh(Uh({},e),{},{videoTrack:r.desktopVideoTrack}):e}),isScreenShareOn:!0,isPresenterTrackMuted:n}),r.screenShareUserID=r.state.users[0].id,r.myScreenShareID=r.state.users[0].id,r.props.triggerEvent&&r.props.triggerEvent(Ne,{});case 38:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){})}),Vh(Bh(r),"stopScreenShare",Yh(Ph().mark(function e(){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.setState({isScreenShareOn:!1}),"presenter"!==r.props.screenShareMode){e.next=5;break}return _m({devices:["video"],facingMode:"user"}).then(function(){var e=Yh(Ph().mark(function e(t){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zh.replaceTrack(r.desktopVideoTrack,t[0]);case 2:r.state.isPresenterTrackMuted&&(t[0].mute(),t[0].isVideoMuted=!0),r.desktopVideoTrack.dispose(),r.presenterTrack&&(r.presenterTrack.dispose(),r.presenterTrack=null),r.setState({users:r.state.users.map(function(e,n){return 0==n?Uh(Uh({},e),{},{videoTrack:t[0]}):e}),isScreenShareOn:!1,screenShareLoader:!1}),r.myScreenShareID=null,Zh.sendCommandOnce(Oe,{value:r.screenShareUserID}),r.props.triggerEvent&&r.props.triggerEvent(Me,{});case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){pt.log(tm,"Error creating Video local media : ",e)}),e.abrupt("return");case 5:r.ScreenShareRef.stop();case 6:case"end":return e.stop()}},e)}))),Vh(Bh(r),"onScreenShareClicked",function(){r.state.isScreenShareOn?r.stopScreenShare():r.createScreenShareTrack()}),Vh(Bh(r),"onUserItemClicked",function(e){r.setState({dominantSpeakerId:e.id})}),Vh(Bh(r),"removeAudioVideoTrackFromUser",function(e){var t=Uh({},e);return delete t.audioTrack,delete t.videoTrack,t}),Vh(Bh(r),"muteParticipant",function(e){try{Zh.muteParticipant(e.id),Zh.sendCommandOnce(Pe,{attributes:{mutedParticipantId:e.id,participantMutedBy:r.state.users[0].id}})}catch(e){pt.log(tm,"[muteParticipant]",e)}}),Vh(Bh(r),"kickParticipant",function(e){try{var t=Zh.getParticipantById(e);Zh.kickParticipant(e,"reason"),pt.log(tm,"kickParticipant ......sfddsfdssdff ",t),pt.log(tm,"[kickParticipant]",e),Zh.kickParticipant(e)}catch(e){pt.log(tm,"[kickParticipant]",e)}}),Vh(Bh(r),"pinUser",function(e){r.setState({pinnedUserId:e.id})}),Vh(Bh(r),"unPinUser",function(){r.setState({pinnedUserId:null})}),Vh(Bh(r),"getDevices",Yh(Ph().mark(function e(){var t,n=arguments;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!(n.length>0&&void 0!==n[0])||n[0],JitsiMeetJS.mediaDevices.enumerateDevices(function(e){var n,a,o,i,s=[],c=[],l=[],u={},d=null===(n=r.state)||void 0===n||null===(a=n.users[0])||void 0===a||null===(o=a.videoTrack)||void 0===o?void 0:o.deviceId;r.audioInputDevicesSet.forEach(function(t){e.find(function(e){return e.deviceId===t})||r.audioInputDevicesSet.delete(t)});var p=e.filter(function(e){return e.kind===tt});p.reverse().forEach(function(e){r.audioInputDevicesSet.add(e.deviceId)});var h=[];p.forEach(function(e){"default"===e.deviceId&&(h=p.filter(function(t){return e.groupId===t.groupId&&"default"!==t.deviceId}))}),0!==(null===(i=h)||void 0===i?void 0:i.length)&&(localStorage.getItem("lastAudioDeviceId")||localStorage.setItem("lastAudioDeviceId",h[0].deviceId)),e.sort(function(e,t){return t.deviceId.length-e.deviceId.length}).reverse();var m=e.filter(function(e){return"default"===e.deviceId&&Lt.isMob()?(u[e.kind]=e,!0):"default"!==e.deviceId||(u[e.kind]=e,!1)});if(m.map(function(e){var n=Uh({},JSON.parse(JSON.stringify(e)));if(!n.label)return!1;if(n.kind===tt&&r.inputDeviceChangeSupported)u[tt]&&n.groupId===u[tt].groupId||"default"===n.deviceId&&Lt.isMob()?(t?r.changeAudioSourceClicked(n.deviceId,m):r.setState({activeInputDevices:lastAudioDeviceId||n.deviceId}),n.active=!0):n.active=!1,s.push(n);else if("videoinput"===n.kind)n.active=d===n.deviceId,l.push(n);else if(u[nt]&&r.speakerChangeSupported){if(n.groupId===u[nt].groupId){var a=localStorage.getItem("lastAudioOutputDevice");t?r.changeAudioOutputDeviceClicked(a||n.deviceId,m):r.setState({activeOutputDevices:a||n.deviceId}),a||localStorage.setItem("lastAudioOutputDevice",n.deviceId),n.active=!0}else n.active=!1;c.push(n)}}),!u[tt]){var g=e.filter(function(e){return e.kind===tt});if(1===g.length)r.setState({activeInputDevices:g[0].deviceId});else if(g.length>1){var f=Array.from(r.audioInputDevicesSet);r.setState({activeInputDevices:f[f.length-1]})}}r.setState({audioDevices:s,videoDevices:l,audioOutPutDevices:c});var _={videoInputDevices:l,audioInputDevices:s,audioOutputDevices:c};t?r.props.triggerEvent&&r.props.triggerEvent(qe,_):r.props.triggerEvent&&r.props.triggerEvent("initialDeviceList",_)});case 2:case"end":return e.stop()}},e)}))),Vh(Bh(r),"changeAudioSourceClicked",st()(function(){var e=Yh(Ph().mark(function e(t){var n,a,o,i,s=arguments;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:null,!1!==zl.isPresenter){e.next=3;break}return e.abrupt("return");case 3:if(a=n||r.state.audioDevices,o=!0,i=null==a?void 0:a.map(function(e){return e.deviceId===t?(o=!1,e.active=!0):e.active=!1,e}),!o){e.next=8;break}return e.abrupt("return",!1);case 8:return localStorage.setItem("lastAudioDeviceId",t),e.next=12,r.disposeLocalAudioTrack();case 12:am({devices:[et],micDeviceId:t}).then(function(e){r.onLocalTracks(e,!0),r.triggerOnDeviceChange({audioInputDevices:i}),r.setState({activeInputDevices:t})}).catch(function(e){am({devices:[et]}).then(function(e){return r.onLocalTracks(e,!0)})});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),1e3)),Vh(Bh(r),"changeVideoSourceClicked",function(){var e=Yh(Ph().mark(function e(t){var n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!0,r.state.videoDevices.map(function(e){e.deviceId===t&&(n=!1)}),!n){e.next=4;break}return e.abrupt("return",!1);case 4:if(localStorage.setItem("lastVideoDeviceId",t),!r.presenterTrack){e.next=21;break}return e.next=9,r.presenterTrack.dispose();case 9:return e.t0=r.desktopVideoTrack,e.t1=hn,e.next=13,r.createLocalPresenterTrack(!1,400,t);case 13:return e.t2=e.sent,e.next=16,(0,e.t1)(e.t2);case 16:return e.t3=e.sent,e.next=19,e.t0.setEffect.call(e.t0,e.t3);case 19:return r.getDevices(),e.abrupt("return");case 21:return e.next=23,r.disposeLocalVideoTrack();case 23:am({devices:[Xe],cameraDeviceId:t}).then(function(e){r.onLocalTracks(e),r.setState({appliedBg:0,selectedBg:0,addedBackgroundImage:null}),r.getDevices()}).catch(function(e){pt.log(tm,"changeVideoSourceClicked","error",e),am({devices:[Xe]}).then(function(e){return r.onLocalTracks(e)})});case 24:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"toggleCamera",Yh(Ph().mark(function e(){var t;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=Zh.getLocalVideoTrack().getCameraFacingMode(),e.next=3,r.disposeLocalVideoTrack();case 3:am({devices:[Xe],facingMode:"user"===t?"environment":"user"}).then(function(e){r.onLocalTracks(e),r.setState({appliedBg:0,selectedBg:0,addedBackgroundImage:null}),r.getDevices()}).catch(function(e){pt.log(tm,"toggleCamera called","error",e),am({devices:[Xe]}).then(function(e){return r.onLocalTracks(e)})});case 4:case"end":return e.stop()}},e)}))),Vh(Bh(r),"changeAudioOutputDeviceClicked",function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||r.state.audioOutPutDevices,n=!0,a=null==t?void 0:t.map(function(t){return t.deviceId===e?(n=!1,t.active=!0):t.active=!1,t});if(n)return!1;try{JitsiMeetJS.mediaDevices.setAudioOutputDevice(e),localStorage.setItem("lastAudioOutputDevice",e),r.setState({activeOutputDevices:e},function(){}),r.triggerOnDeviceChange({audioOutputDevices:a})}catch(e){pt.log(tm,"[changeAudioOutputDeviceClicked]",e)}}),Vh(Bh(r),"changeMode",function(e){var t;if("GRID"===e&&(null===(t=r.state.users)||void 0===t?void 0:t.length)>16)return!1;r.setState({mode:e,isGridMode:"GRID"===e},function(){r.initProps(),r.props.triggerEvent&&r.props.triggerEvent("onModeChanged",r.state.mode)})}),Vh(Bh(r),"triggerOnDeviceChange",function(e){var t=Uh({videoInputDevices:r.state.videoDevices,audioInputDevices:r.state.audioDevices,audioOutputDevices:r.state.audioOutPutDevices},e);r.props.triggerEvent&&r.props.triggerEvent(qe,t)}),Vh(Bh(r),"startStreaming",function(e){if(e.preventDefault(),!r.state.streamingKey)return!1;Zh.startRecording({mode:"stream",streamId:r.state.streamingKey}).then(function(e){pt.log(tm,"[startStreaming]","sessionidrecord",e),nm=e._sessionID,r.setState({isStreaming:!0})})}),Vh(Bh(r),"startRecording",function(){try{r.state.isRecording||Zh.startRecording({mode:"file"}).then(function(e){r.setState({tryingToStartRecording:!1}),pt.log(tm,"[startRecording]","success",e),nm=e._sessionID,r.setState({isRecording:!0,recordId:nm,recorder:r.state.users[0]},function(){Zh.sendCommandOnce(De,{attributes:Uh({recordId:nm},r.state.recorder)}),r.recordingStartedBy={name:r.state.users[0].name,uid:r.state.users[0].uid}})}).catch(function(e){pt.log(tm,"[startRecording]",e,"trying to reconnect. try number:",r.recordingRetry),r.recordingRetryTimer=setTimeout(function(){r.startRecording()},5e3*r.recordingRetry),r.setState({tryingToStartRecording:!0}),1===r.recordingRetry&&r.setState({recorder:r.state.users[0]},function(){Zh.sendCommandOnce(je,{attributes:Uh({},r.state.users[0])})}),r.recordingRetry++})}catch(e){pt.log(tm,"[startRecording]",e)}}),Vh(Bh(r),"stopRecording",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.state.tryingToStartRecording)return r.state.recorder.id===r.state.users[0].id||e?(clearTimeout(r.recordingRetryTimer),r.recordingRetry=1,r.setState({tryingToStartRecording:!1}),void Zh.sendCommandOnce(Be,{})):void(!1!==zl.isPresenter&&r.props.enqueueSnackbar(r.localizedObject.STOP_RECORDING_ERROR,{variant:"error"}));pt.log(tm,"stopRecording recording id = ",r.state.recordId,"rtcorder",r.state.recorder),r.state.isRecording&&r.state.recorder&&(r.state.recorder.id===r.state.users[0].id||e?(Zh.sendCommand(Le,{attributes:r.removeAudioVideoTrackFromUser(r.state.users[0])}),Zh.stopRecording(r.state.recordId),r.setState({isRecording:!1,isStreaming:!1,streamingKey:"",recordId:"",recorder:{}})):!1!==zl.isPresenter&&r.props.enqueueSnackbar(r.localizedObject.STOP_RECORDING_ERROR,{variant:"error"}))}),Vh(Bh(r),"recordingClicked",function(){r.state.isRecording||r.state.tryingToStartRecording?r.stopRecording():r.startRecording()}),Vh(Bh(r),"peopleClicked",function(){r.setState({showUserList:!r.state.showUserList})}),Vh(Bh(r),"renderVideoView",function(){var t,n,a,o,i,s,c=r.state,l=c.users,u=c.dominantSpeakerId,d=c.pinnedUserId,p=l.length>1?l[1]:l[0];switch(u&&!d&&u!==l[0].id&&(p=l.find(function(e){return e.id===u})),d&&(p=l.find(function(e){return e.id===d})),r.state.mode){case"DEFAULT":case"SIDEBAR":if(null!==(t=p)&&void 0!==t&&t.id){var h,m,g={};window.dummyMainUser=p;var f=null===(h=p.videoTrack)||void 0===h||null===(m=h.getSourceName)||void 0===m?void 0:m.call(h);f&&(g[f]={maxHeight:720},Zh.setReceiverConstraints({lastN:r.getLastN(),onStageSources:[f],defaultConstraints:{maxHeight:180},constraints:g}))}return e.createElement(Mp,{noisyMics:r.state.noisyMics,stats:r.stats,lastNId:r.state.LastNId,connectionQuality:r.state.connectionQuality,avatarMode:r.state.avatarMode,users:r.state.users,dominantSpeakerId:r.state.dominantSpeakerId,pinnedUserId:r.state.pinnedUserId,myScreenShareID:r.myScreenShareID,room:Zh,pinUser:r.pinUser,muteUser:r.muteParticipant,unPinUser:r.unPinUser,peopleClicked:r.peopleClicked,localizedObject:r.localizedObject,mainUser:p||r.state.users[0],localUserId:r.state.users[0].id,fitVideo:r.state.fitVideo,toggleFitVideo:r.toggleFitVideo});case ot:if(null!==(n=p)&&void 0!==n&&n.id){var _,b,v={},y=null===(_=p.videoTrack)||void 0===_||null===(b=_.getSourceName)||void 0===b?void 0:b.call(_);y&&(v[y]={maxHeight:720},Zh.setReceiverConstraints({lastN:r.getLastN(),onStageSources:[y],defaultConstraints:{maxHeight:180},constraints:v}))}var E=-1;return null!==(a=p)&&void 0!==a&&a.screenShareUserID&&(E=r.state.users.findIndex(function(e){return e.id===p.screenShareUserID})),e.createElement(e.Fragment,null,e.createElement(Bp,{noisyMics:r.state.noisyMics,stats:r.stats,lastNId:r.state.LastNId,connectionQuality:r.state.connectionQuality,avatarMode:r.state.avatarMode,users:r.state.users,dominantSpeakerId:r.state.dominantSpeakerId,pinnedUserId:r.state.pinnedUserId,myScreenShareID:r.myScreenShareID,pinUser:r.pinUser,muteUser:r.muteParticipant,unPinUser:r.unPinUser,peopleClicked:r.peopleClicked,localizedObject:r.localizedObject,mainUser:p||r.state.users[0],fitVideo:r.state.fitVideo,toggleFitVideo:r.toggleFitVideo,screenSharedUserIndex:E}),E>-1&&e.createElement(bp,{user:r.state.users[E],boundaryClass:"side-bar-main-user-container",avatarMode:r.state.avatarMode}));case"SPOTLIGHT":if(null!==(o=p)&&void 0!==o&&o.id){var C,S,w={constraints:{},defaultConstraints:{maxHeight:180},lastN:r.getLastN(),onStageSources:[],selectedSources:[]},k=null===(C=p.videoTrack)||void 0===C||null===(S=C.getSourceName)||void 0===S?void 0:S.call(C);if(k&&(w.onStageSources.push(k),w.constraints[k]={maxHeight:720}),r.screenShareUserID){var x,T,A=r.state.users.find(function(e){return e.id===r.screenShareUserID}),R=null==A||null===(x=A.videoTrack)||void 0===x||null===(T=x.getSourceName)||void 0===T?void 0:T.call(x);R&&(w.constraints[R]={maxHeight:180})}Zh.setReceiverConstraints(w)}var I=r.state.users.findIndex(function(e){return e.id===r.screenShareUserID});return e.createElement(e.Fragment,null,e.createElement(fp,{noisyMics:r.state.noisyMics,stats:r.stats,connectionQuality:r.state.connectionQuality,avatarMode:r.state.avatarMode,users:r.state.users,mainUser:p||r.state.users[0],dominantSpeakerId:r.state.dominantSpeakerId,pinnedUserId:r.state.pinnedUserId,myScreenShareID:r.myScreenShareID,screenShareUserID:r.screenShareUserID,room:Zh,unPinUser:r.unPinUser,pinUser:r.pinUser,muteUser:r.muteParticipant,fitVideo:r.state.fitVideo,toggleFitVideo:r.toggleFitVideo}),e.createElement(bp,{user:r.state.users[fm(null===(i=p)||void 0===i?void 0:i.videoTrack)&&r.screenShareUserID&&"presenter"!==r.props.screenShareMode?-1==I?0:I:0],avatarMode:r.state.avatarMode}));case"TILE":return e.createElement(xh,{selected:r.state.selected||0,setSelected:function(e){r.setState({selected:e})},lastN:r.state.LastNId,noisyMics:r.state.noisyMics,connectionQuality:r.state.connectionQuality,avatarMode:r.state.avatarMode,localizedObject:r.localizedObject,users:r.state.users,dominantSpeakerId:r.state.dominantSpeakerId,dominantSpeakerList:r.state.dominantSpeakerList,pinnedUserId:r.state.pinnedUserId,screenShareUserID:r.screenShareUserID,screenShareMode:r.props.screenShareMode,pinUser:r.pinUser,muteUser:r.muteParticipant,unPinUser:r.unPinUser,myScreenShareID:r.myScreenShareID,localUserId:r.state.users[0].id,noOfUsersPerPage:r.state.noOfUsersPerPage||3,screenSharersID:r.screenSharersID,fitVideo:r.state.fitVideo,toggleFitVideo:r.toggleFitVideo});default:if(null!==(s=p)&&void 0!==s&&s.id){var O,N,M={},D=null===(O=p.videoTrack)||void 0===O||null===(N=O.getSourceName)||void 0===N?void 0:N.call(O);D&&(M[D]={maxHeight:720},Zh.setReceiverConstraints({lastN:r.getLastN(),onStageSources:[D],defaultConstraints:{maxHeight:180},constraints:M}))}return e.createElement(Mp,{stats:r.stats,lastNId:r.state.LastNId,connectionQuality:r.state.connectionQuality,avatarMode:r.state.avatarMode,users:r.state.users,dominantSpeakerId:r.state.dominantSpeakerId,pinnedUserId:r.state.pinnedUserId,screenShareUserID:r.screenShareUserID,room:Zh,myScreenShareID:r.myScreenShareID,pinUser:r.pinUser,muteUser:r.muteParticipant,unPinUser:r.unPinUser,peopleClicked:r.peopleClicked,localizedObject:r.localizedObject,mainUser:p||r.state.users[0],localUserId:r.state.users[0].id,fitVideo:r.state.fitVideo,toggleFitVideo:r.toggleFitVideo})}}),Vh(Bh(r),"setNoOfUser",function(e){r.setState({noOfUsersInTile:e})}),Vh(Bh(r),"screenShareComponent",function(){return e.createElement(Qt,{ref:function(e){return r.ScreenShareRef=e},user:r.state.users[0],sessionID:r.props.sessionID,domain:r.props.domain,MUC:"conference."+r.props.domain,focus:"focus."+r.props.domain,bosh:"https://xmpp."+r.props.domain+"/http-bind",boshLegacy:"https://"+r.props.domain+"/http-bind",webSocket:"wss://xmpp."+r.props.domain+"/xmpp-websocket",onTrackCreated:function(){r.setState({isScreenShareOn:!0,screenShareLoader:!0})},onError:function(){r.setState({isScreenShareOn:!1,screenShareLoader:!1})},onSuccess:function(e){r.screenShareUserID=e,r.myScreenShareID=e,r.userIdScreenShare=e,r.setState({isScreenShareOn:!0,screenShareLoader:!1}),r.props.triggerEvent&&r.props.triggerEvent(Ne,{})},onStopped:function(){r.myScreenShareID=null,Zh.sendCommand(Oe,{value:r.userIdScreenShare}),r.setState({isScreenShareOn:!1,screenShareLoader:!1}),r.props.triggerEvent&&r.props.triggerEvent(Me,{})}})}),Vh(Bh(r),"onBackgroundEffectSelected",function(){var e=Yh(Ph().mark(function e(t){return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:_m({devices:[Xe]}).then(function(){var e=Yh(Ph().mark(function e(n){var a,o;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ll({track:n[0],option:t});case 2:return o=e.sent,null!==(a=r.state.users[0])&&void 0!==a&&a.videoTrack&&!r.state.users[0].isVideoMuted||null==o||o.mute(),e.next=6,Zh.replaceTrack(r.state.users[0].videoTrack,o);case 6:return e.next=8,r.state.users[0].videoTrack.dispose();case 8:Mh(r.state.users)[0].isVideoMuted&&(null==o||o.mute()),r.setState({users:r.state.users.map(function(e,t){return 0==t?Uh(Uh({},e),{},{videoTrack:o}):e}),selectedBg:t.selectedIndex,appliedBg:t.selectedIndex});case 11:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),Vh(Bh(r),"setSelectedBg",function(e){r.setState({selectedBg:e})}),Vh(Bh(r),"setIsBackgroundModalVisible",function(e){r.setState({isBackgroundModelVisible:e})}),Vh(Bh(r),"setBackgroundBlur",function(e){ll({track:r.localUser.videoTrack,option:{type:"blur",blurValue:e}}),0==e||!e||"string"!=typeof e&&"number"!=typeof e?r.setState({appliedBg:0,selectedBg:0,addedBackgroundBlur:null}):r.setState({addedBackgroundImage:null,addedBackgroundBlur:e,appliedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+4:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages?hl.length+4:r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+3:r.props.ShowDefaultImages?hl.length+3:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage?4:r.props.SetImages.length+3,selectedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+4:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages?hl.length+4:r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+3:r.props.ShowDefaultImages?hl.length+3:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage?4:r.props.SetImages.length+3})}),Vh(Bh(r),"validURL",function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}),Vh(Bh(r),"setBackgroundImage",function(e){try{"string"==typeof e&&""!==e&&r.validURL(e)?(ll({track:r.localUser.videoTrack,option:{type:"img",url:e}}),r.setState({addedBackgroundBlur:null,addedBackgroundImage:e,appliedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+4:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages?hl.length+4:r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+3:r.props.ShowDefaultImages?hl.length+3:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage?4:r.props.SetImages.length+3,selectedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+4:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages?hl.length+4:r.props.ShowDefaultImages&&0!==r.props.SetImages.length?hl.length+r.props.SetImages.length+3:r.props.ShowDefaultImages?hl.length+3:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage?4:r.props.SetImages.length+3})):"object"===Nh(e)?ul(e).then(function(e){ll({track:r.localUser.videoTrack,option:{type:"img",url:e}}),r.setState({addedBackgroundBlur:null,addedBackgroundImage:e,appliedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages||r.props.ShowDefaultImages?hl.length+r.props.SetImages.length+3:r.props.SetImages.length+3,selectedBg:""!==r.props.EnforceBackgroundImage&&"string"==typeof r.props.EnforceBackgroundImage&&r.props.ShowDefaultImages||r.props.ShowDefaultImages?hl.length+r.props.SetImages.length+3:r.props.SetImages.length+3})}):(ll({track:r.localUser.videoTrack,option:{}}),r.setState({appliedBg:0,selectedBg:0,addedBackgroundImage:null}))}catch(e){}}),r.LastNId=[],r.stats={},r.showOnLeftMsg=!0,r.localUserEndsCall=!1,r.showUserJoinMsg=!1,r.usersLeftNotiHoldTime=null,r.usersLeft=[],r.localizedObject=r.props.localizedObject||rt;var a={name:r.props.username||"Unnamed",avatar:r.props.avatar,status:"active",isVideoMuted:r.props.startVideoMuted,isAudioMuted:r.props.startAudioMuted,showVideo:!0,isLocalUser:!0};return r.recordingRetry=1,r.removeInterruptedUsersTimeoutId=null,r.deviceChangeCalled=!1,r.updateLastN=!0,r.switchedToVideoCall=!1,r.unMutingVideoForFirstTime=!0,r.inputDeviceChangeSupported=JitsiMeetJS.mediaDevices.isDeviceChangeAvailable("input"),r.speakerChangeSupported=JitsiMeetJS.mediaDevices.isDeviceChangeAvailable("output"),r.audioInputDevicesSet=new Set([]),r.showCallTimeoutModalTimer=null,r.observeVideoElementsInterval=null,r.state={connectionError:!1,connectionErrorType:"",noisyMics:{},mySessionId:r.props.sessionID,myUserName:r.props.username,isBroadcast:r.props.isBroadcast,isGridMode:"GRID"===r.props.mode,isBroadcaster:r.props.isBroadcaster,isAudioOnly:r.props.isAudioOnly,showSwitchToVideoCallButton:r.props.showSwitchToVideoCallButton,mode:r.props.mode,showLocalMedia:!1,status:"active",myAvatar:r.props.avatar||a.avatar,remoteTracks:[],users:[a],exportUserList:[],dominantSpeakerId:null,isScreenShareOn:!1,isChatEnabled:!1,showthumbList:!0,showLocalStream:!0,renderSingleMain:!1,pinnedUserId:null,showEndCallButton:r.props.showEndCallButton,showVideoPauseButton:r.props.showPauseVideoButton,showAudioMuteButton:r.props.showMuteAudioButton,showScreenShareButton:r.props.showScreenShareButton,defaultLayout:r.props.defaultLayout,avatarMode:r.props.avatarMode,noMic:!1,noCamera:!1,isReconecting:!1,orientation:"Portrait",resolutions:{},isRecording:!1,isMob:Lt.isMob(),showUserList:!1,noOfUsersInTile:2,virtualBackground:{},selectedBg:0,appliedBg:0,isBackgroundModelVisible:!1,toVideoRequestModal:!1,toVideoRequestType:"initial",isAnyScreenShareUser:[],connectionLost:!1,noNetwork:!1,dominantSpeakerList:[],fitVideo:"cover"===at.fit,endCallDialogVisible:!1},r.recordingStartedBy={uid:"",name:""},r.toVideoRequestResponder={},r.reconnect=r.reconnect.bind(Bh(r)),r.screenShareUserID=void 0,r.screenSharersID=[],Kh=r.reconnect,r.db=new class{constructor(e){this.dbName=e,this.lf={},this.collectionName=null,this.orderByProperty=null,this.orderByDirection=null,this.limitBy=null,this.docSelectionCriteria=null,this.deleteCollectionQueue={queue:[],running:!1},this.config={debug:!0},this.userErrors=[],this.collection=Hp.bind(this),this.doc=zp.bind(this),this.orderBy=Yp.bind(this),this.limit=qp.bind(this),this.get=Qp.bind(this),this.add=nh.bind(this),this.update=ah.bind(this),this.set=oh.bind(this),this.delete=ih.bind(this)}}("db"),r}return r=d,a=[{key:"componentDidMount",value:function(){var e=this;window.onresize=function(){e.getOrientation()},this.checkBrowser(),this.checkIsPWA(),navigator&&navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=function(t){e.state.noCamera&&e.state.noMic&&!e.deviceChangeCalled&&!Jh&&(e.deviceChangeCalled=!0,e.createLocalTracks())}),this.initProps(),this.createLocalTracks(),this.init(this.state.mySessionId),JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR),1!==this.props.EnforceBackgroundBlur&&2!==this.props.EnforceBackgroundBlur||""!=this.props.EnforceBackgroundImage&&"string"==typeof this.props.EnforceBackgroundImage||this.setState({appliedBg:this.props.EnforceBackgroundBlur,selectedBg:this.props.EnforceBackgroundBlur}),this.props.ShowDefaultImages?""!==this.props.EnforceBackgroundImage&&"string"==typeof this.props.EnforceBackgroundImage?this.setState({appliedBg:this.props.ShowDefaultImages?hl.length+this.props.SetImages.length+3:this.props.SetImages.length+3,selectedBg:this.props.ShowDefaultImages?hl.length+this.props.SetImages.length+3:this.props.SetImages.length+3}):this.storeImagesInLocal():""!==this.props.EnforceBackgroundImage&&"string"==typeof this.props.EnforceBackgroundImage&&this.setState({appliedBg:this.props.ShowDefaultImages?hl.length+this.props.SetImages.length+3:this.props.SetImages.length+3,selectedBg:this.props.ShowDefaultImages?hl.length+this.props.SetImages.length+3:this.props.SetImages.length+3}),window.addEventListener("online",function(){return e.setState({noNetwork:!1})}),window.addEventListener("offline",function(){return e.setState({noNetwork:!0})}),this.observeVideoElementsInterval=setInterval(function(){},2e3)}},{key:"startCallTimeoutTimer",value:function(){var e=this;this.showCallTimeoutModalTimer||(this.showCallTimeoutModalTimer=setTimeout(function(){e.props.setShowCallTimeoutModal(!0),e.showCallTimeoutModalTimer=null},1e3*this.props.idleTimeoutPeriod-6e4))}},{key:"endCallTimeoutTimer",value:function(){this.showCallTimeoutModalTimer&&(clearTimeout(this.showCallTimeoutModalTimer),this.showCallTimeoutModalTimer=null)}},{key:"componentDidUpdate",value:function(e,t){window.uu=this.state.users,t.pinnedUserId!==this.state.pinnedUserId&&this.observeVideoElements(),this.state.users.length>1?this.endCallTimeoutTimer():this.startCallTimeoutTimer()}},{key:"observeVideoElements",value:(s=Yh(Ph().mark(function e(){var t,n,r;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=function(e){return e<=220?180:e<=400?360:e<=2160?720:180},n=Array.from(document.getElementsByTagName("video")).filter(function(e){var t;return null===(t=e.attributes["cc-source-name"])||void 0===t?void 0:t.value}),r={constraints:{},defaultConstraints:{maxHeight:180},lastN:-1,onStageSources:[],selectedSources:[]},n.forEach(function(e){var n,a=e.attributes["cc-source-name"].value,o="true"===(null===(n=e.attributes["cc-main-video"])||void 0===n?void 0:n.value);if(a){var i,s,c=e.clientHeight<e.clientWidth?e.clientHeight:e.clientWidth;r.constraints[a]={maxHeight:Math.max(t(c),(null===(i=r.constraints)||void 0===i||null===(s=i[a])||void 0===s?void 0:s.maxHeight)||0)},o?r.onStageSources.push(a):r.selectedSources.push(a)}}),Zh&&Zh.setReceiverConstraints(r);case 6:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"initProps",value:function(){try{this.state.isAudioOnly&&!this.state.showSwitchToVideoCallButton&&this.setState({showVideoPauseButton:!1}),"SINGLE"!==this.state.mode||Lt.isMob()?"SPOTLIGHT"!==this.state.mode||Lt.isMob()?this.state.isBroadcast?this.setState({showthumbList:!1,showUserList:!1,showAudioMuteButton:!1,showVideoPauseButton:!1,showEndCallButton:!0,showScreenShareButton:!1}):this.setState({showthumbList:!0,showUserList:!1,showLocalStream:!1,renderSingleMain:!1}):this.setState({showthumbList:!1,showUserList:!1,showLocalStream:!0,renderSingleMain:!1}):this.setState({showthumbList:!1,showUserList:!1,showLocalStream:!0,renderSingleMain:!0})}catch(e){pt.log(tm,"[initProps]",e)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.removeInterruptedUsersTimeoutId),this.observeVideoElementsInterval&&(clearInterval(this.observeVideoElementsInterval),this.observeVideoElementsInterval=null),this.db.delete()}},{key:"localUser",get:function(){return this.state.users[0]}},{key:"deleteAllTracks",value:function(){var e,t,n=Oh(rm.concat(null!==(e=window.tracksInternal)&&void 0!==e?e:[]));try{for(n.s();!(t=n.n()).done;){var r=t.value;!1===r.disposed&&r.dispose()}}catch(e){n.e(e)}finally{n.f()}rm=[],window.tracksInternal=[]}},{key:"makeConnection",value:function(){try{var e={hosts:{domain:this.getDomain(),muc:this.getMUC(),focus:this.getFocus()},serviceUrl:this.getWebSocket(),bosh:this.getBosh()};e=Uh(Uh({},e),{},{flags:{receiveMultipleVideoStreams:!0,sendMultipleVideoStreams:!0,sourceNameSignaling:!0,ssrcRewritingEnabled:!0},enableNoAudioDetection:!0,enableNoisyMicDetection:!0,channelLastN:-1,enableWelcomePage:!0,p2p:{enabled:!0},mouseMoveCallbackInterval:1e3,audioQuality:{stereo:!1},bridgeChannel:{preferSctp:!0},constraints:{video:{height:{ideal:720,max:720,min:180},width:{ideal:1280,max:1280,min:320}}},hiddenDomain:"hidden.".concat(this.getDomain()),resolution:720}),pt.log(tm,"Make connection options = ",e),pt.log(tm,"Connection object = ",Jh),pt.log(tm,"Connection user object = ",this.props.user),(Jh=this.props.user&&this.props.user.jwt?new JitsiMeetJS.JitsiConnection(null,this.props.user.jwt,e):new JitsiMeetJS.JitsiConnection(null,null,e)).connect(),this.addEventListener()}catch(e){pt.log(tm,"[makeConnection]",e)}}},{key:"getDomain",value:function(){var e=this.props.domain;return pt.log(tm,"RTC Domain = ",e),e}},{key:"getMUC",value:function(){var e="conference."+this.props.domain;return pt.log(tm,"RTC MUC = ",e),e}},{key:"getFocus",value:function(){var e="focus."+this.props.domain;return pt.log(tm,"RTC Focus = ",e),e}},{key:"getBosh",value:function(){var e="https://xmpp."+this.props.domain+"/http-bind";return pt.log(tm,"RTC Bosh = ",e),e}},{key:"getBoshLegacy",value:function(){var e="https://"+this.props.domain+"/http-bind";return pt.log(tm,"RTC Bosh = ",e),e}},{key:"getWebSocket",value:function(){var e="wss://xmpp."+this.props.domain+"/xmpp-websocket";return pt.log(tm,"RTC websocket = ",e),e}},{key:"addEventListener",value:function(){try{Jh.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,this.onConnectionSuccess),Jh.addEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED,this.onConnectionFailed),Jh.addEventListener(JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,this.onDisconnect)}catch(e){pt.log(tm,"[addEventListener]",e)}}},{key:"onConnectionFailed",value:function(e){pt.log(tm,"onConnectionFailed Called......",e),Kh()}},{key:"reconnect",value:function(){try{pt.log(tm,"Reconnect called ...",this.state.users,this.state.connectionError),this.state.connectionError||($h=!1,this.setState({connectionError:!0,connectionErrorType:"jwt"})),qh=setInterval(function(){Qh<10?(pt.log(tm,"Reconnect attempt ",Qh),Qh+=1,navigator.onLine&&(pt.log(tm,"Connection object = ",Jh),Jh.connect(),Qh=0,clearInterval(qh))):clearInterval(qh)},5e3)}catch(e){pt.log(tm,"[reconnect]",e)}}},{key:"onDisconnect",value:function(){pt.log(tm,"onDisconnect Called......")}},{key:"pauseVideo",value:function(){var e=this.localUser;e.videoTrack&&e.videoTrack.mute()}},{key:"unPauseVideo",value:function(){var e=this.localUser;e.videoTrack&&e.videoTrack.unmute(),this.handleUnMutingVideoForFirstTime()}},{key:"muteAudio",value:function(){var e=this.localUser;e.audioTrack&&e.audioTrack.mute()}},{key:"unMuteAudio",value:function(){var e=this.localUser;e.audioTrack&&e.audioTrack.unmute()}},{key:"removeLocalTracks",value:(i=Yh(Ph().mark(function e(){var t,n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Mh(this.state.users),n=t[0],e.next=5,Zh.removeTrack(n.audioTrack);case 5:return e.next=7,Zh.removeTrack(n.videoTrack);case 7:return e.abrupt("return");case 10:e.prev=10,e.t0=e.catch(0),pt.log(tm,"[disposeLocalTracks]",e.t0);case 13:case"end":return e.stop()}},e,this,[[0,10]])})),function(){return i.apply(this,arguments)})},{key:"disposeLocalTracks",value:(o=Yh(Ph().mark(function e(){var t,n;return Ph().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=Mh(this.state.users),!(n=t[0]).audioTrack){e.next=6;break}return e.next=6,n.audioTrack.dispose();case 6:if(!n.videoTrack){e.next=9;break}return e.next=9,n.videoTrack.dispose();case 9:return e.abrupt("return",null);case 12:e.prev=12,e.t0=e.catch(0),pt.log(tm,"[disposeLocalTracks]",e.t0);case 15:case"end":return e.stop()}},e,this,[[0,12]])})),function(){return o.apply(this,arguments)})},{key:"renderError",value:function(){var t=this;return this.state.errorMsg?e.createElement(Cp,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},message:this.state.errorMsg,open:!0,onClose:function(){t.setState({errorMsg:""})},action:e.createElement(zn,{component:"span",onClick:function(){t.setState({errorMsg:""})},color:"inherit",size:"small"},e.createElement(Xt.Z,null)),autoHideDuration:6e3,key:"top right"}):null}},{key:"getLastN",value:function(){return"SIDEBAR"!=this.state.mode&&this.state.mode&&"default"!=this.state.mode.toLowerCase()?"TILE"==this.state.mode?this.state.pinnedUserId?5:this.state.users.length>35?10:this.state.users.length>25?15:20:-1:5}},{key:"render",value:function(){var t,n=this;return e.createElement("div",{className:"cc-main-container custom-main-container"},$h?e.createElement(e.Fragment,null,this.state.isRecording?e.createElement("div",{className:"recording-text-container"},e.createElement(Pt.Z,{className:"main-container-recording-icon"}),e.createElement(Uo,{className:"main-container-recording-text",variant:"h5"},this.localizedObject.RECORDING_TEXT)):this.state.tryingToStartRecording?e.createElement("div",{className:"recording-text-container"},e.createElement(Uo,{className:"main-container-recording-text",variant:"h5"},this.localizedObject.TRYING_TO_START_RECORDING_TEXT)):this.state.requestingForVideoCall?e.createElement("div",{className:"recording-text-container"},e.createElement(Uo,{className:"main-container-recording-text",variant:"h5"},this.localizedObject.REQUESTING_TO_SWITCH_VIDEO_CALL)):null,e.createElement("div",{className:"mainVideoContainer"},this.screenShareComponent(),e.createElement("div",{className:"layout"},this.renderVideoView()),this.state.showUserList?e.createElement(ep,{noisyMics:this.state.noisyMics,connectionQuality:this.state.connectionQuality,isAudioOnly:this.state.isAudioOnly,localizedObject:this.localizedObject,kickUser:this.kickParticipant,muteUser:this.muteParticipant,pinnedUserId:this.state.pinnedUserId,pinUser:this.pinUser,unPinUser:this.unPinUser,users:this.state.users,close:this.peopleClicked,recorderId:this.state.recorder&&this.state.recorder.id?this.state.recorder.id:"id"}):null),e.createElement(Zl,{showButtons:this.state.defaultLayout,showAudioMuteButton:this.props.showMuteAudioButton,toggleAudioButton:this.toggleAudioButton,user:this.state.users[0],presenterTrack:this.presenterTrack,isPresenterTrackMuted:this.state.isPresenterTrackMuted,showVideoPauseButton:this.state.showVideoPauseButton,showEndCallButton:this.state.showEndCallButton,toggleVideoButton:this.toggleVideoButton,showScreenShareButton:this.state.showScreenShareButton&&!this.state.isMob,onScreenShareClicked:this.onScreenShareClicked,isScreenShareOn:this.state.isScreenShareOn,isRecording:this.state.isRecording||this.state.tryingToStartRecording,ShowVirtualBackgroundSetting:this.props.ShowVirtualBackgroundSetting,showRecordingButton:this.props.showRecordingButton,recordingClicked:this.recordingClicked,onEndCallButtonCLicked:function(){n.props.triggerEvent(Ye,{}),n.onEndCallButtonCLicked()},showFullScreen:!this.state.isMob,showChangeModeButton:"SINGLE"!==this.state.mode&&!this.state.isMob&&this.props.showSwitchModeButton,mode:this.state.mode,changeMode:this.changeMode,activeInputDevices:this.state.activeInputDevices,activeOutputDevices:this.state.activeOutputDevices,changeAudioSourceClicked:this.changeAudioSourceClicked,changeVideoSourceClicked:this.changeVideoSourceClicked,changeAudioOutputDeviceClicked:this.changeAudioOutputDeviceClicked,audioOutPutDevices:this.state.audioOutPutDevices,audioDevices:this.state.audioDevices,videoDevices:this.state.videoDevices,peopleClicked:this.peopleClicked,noOfUsersInTile:this.state.noOfUsersInTile,setNoOfUsersInTile:this.setNoOfUser,usersLength:this.state.users.length,localizedObject:this.localizedObject,onBackgroundEffectSelected:this.onBackgroundEffectSelected,selectedBg:this.state.selectedBg,appliedBg:this.state.appliedBg,setSelectedBg:this.setSelectedBg,SetImages:this.props.SetImages,localVideoTrack:this.localUser.videoTrack,db:this.db,AllowUserImages:this.props.AllowUserImages,AllowBackgroundBlur:this.props.AllowBackgroundBlur,ShowDefaultImages:this.props.ShowDefaultImages,isBackgroundModelVisible:this.state.isBackgroundModelVisible,setIsBackgroundModalVisible:this.setIsBackgroundModalVisible,EnforceBackgroundImage:this.props.EnforceBackgroundImage,EnforceBackgroundBlur:this.props.EnforceBackgroundBlur,isAudioOnly:this.state.isAudioOnly,isAnyScreenShareUser:this.state.isAnyScreenShareUser,addedBackgroundImage:this.state.addedBackgroundImage,addedBackgroundBlur:this.state.addedBackgroundBlur,setNoOfUsersPerPage:function(e){n.setState({noOfUsersPerPage:e})},noOfUsersPerPage:this.state.noOfUsersPerPage||2}),this.props.appID?e.createElement(ru,{user:this.props.user,appID:this.props.appID,isAudioOnly:this.state.isAudioOnly,sessionID:this.props.sessionID,analyticsSettings:this.props.analyticsSettings}):null):e.createElement("div",{className:"loading-container"},!this.state.connectionError&&e.createElement(kp,null),e.createElement(Uo,{variant:"h4",className:"loading-text"},this.state.connectionError?"CAMERA_MIC_ERROR"===this.state.connectionErrorType?this.localizedObject.CAMERA_MIC_ERROR_MSG:this.localizedObject.CONNECTION_ERROR_TEXT:this.localizedObject.JOINING_TEXT),"CAMERA_MIC_ERROR"===this.state.connectionErrorType&&e.createElement("div",{style:{position:"absolute",bottom:30}},e.createElement(ya,{title:this.localizedObject.END_CALL_TEXT,arrow:!0},e.createElement(zn,{size:"small",component:"span",className:"bottom-buttons-icon-button",onClick:function(){n.props.triggerEvent(Ye,{}),n.props.onCallEnded(),n.onEndCallButtonCLicked()}},e.createElement("div",{className:"cc-bottom-buttons-icon-container cc-end-call-icon-container"},e.createElement(ja,{className:"bottom-buttons-icon-color"})))))),(this.state.connectionLost||this.state.noNetwork)&&e.createElement("div",{className:"reconnect-loading"},e.createElement(kp,null),e.createElement(Uo,{variant:"h4",className:"loading-text"},this.state.noNetwork?this.localizedObject.NO_NETWORK_TEXT:this.localizedObject.RECONNECTING_TEXT)),e.createElement(lh,{isModalVisible:this.state.toVideoRequestModal,name:null===(t=this.state.toVideoRequestInitiator)||void 0===t?void 0:t.name,onClose:function(){n.setState({toVideoRequestModal:!1})},toVideoRequestType:this.state.toVideoRequestType,handleAccept:function(){return n.sendVideoRequestResponse(!0)},handleReject:function(){return n.sendVideoRequestResponse(!1)}}),e.createElement(hh,{isModalVisible:this.state.endCallDialogVisible,handleLeave:function(){return n.endCall()},handleSessionEnd:function(){return n.endSessionForAll()}}))}}],a&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hh(r.key),r)}}(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),d}(e.PureComponent),lm=(im=cm,sm=e.forwardRef(function(t,n){return e.createElement(W.Consumer,null,function(r){return e.createElement(im,q({},t,{ref:n,enqueueSnackbar:r.enqueueSnackbar,closeSnackbar:r.closeSnackbar}))})}),Y()(sm,im),sm);function um(e){return um="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},um(e)}function dm(){dm=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new k(a||[]);return r(i,"_invoke",{value:E(e,n,s)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function m(){}var g={};c(g,o,function(){return this});var f=Object.getPrototypeOf,_=f&&f(f(x([])));_&&_!==t&&n.call(_,o)&&(g=_);var b=m.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function a(r,o,i,s){var c=u(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==um(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){a("next",e,i,s)},function(e){a("throw",e,i,s)}):t.resolve(d).then(function(e){l.value=e,i(l)},function(e){return a("throw",e,i,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=C(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),c(y.prototype,i,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new y(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(b),c(b,s,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;w(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(n),!0).forEach(function(t){mm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mm(e,t,n){return(t=function(e){var t=function(e){if("object"!==um(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==um(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===um(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gm(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}var fm=function(e){return!(!e||"desktop"!==e.videoType)},_m=function(){var e,t=(e=dm().mark(function e(t){var n,r,a,o;return dm().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=localStorage.getItem("lastVideoDeviceId"),r=localStorage.getItem("lastAudioDeviceId"),a=n&&r?hm(hm({},t),{},{cameraDeviceId:n,micDeviceId:r}):n?hm(hm({},t),{},{cameraDeviceId:n}):r?hm(hm({},t),{},{micDeviceId:r}):t,e.next=6,am(a);case 6:return o=e.sent,e.abrupt("return",o);case 8:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){gm(o,r,a,i,s,"next",e)}function s(e){gm(o,r,a,i,s,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),bm=!1;function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vm.apply(this,arguments)}function ym(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Em(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Em(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Em(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cm=e.forwardRef(function(n,r){var a=ym(e.useState(!1),2),o=a[0],i=a[1],s=ym(e.useState(!0),2),c=s[0],l=s[1],u=(0,e.useRef)("");function d(){u.current===Ze||u.current===$e||""===u.current?t.unmountComponentAtNode(zl.htmlElement):u.current===Qe&&l(!1)}return e.createElement(e.Fragment,null,c&&e.createElement(lm,vm({},n,{ref:r,onCallEnded:d,setShowCallTimeoutModal:i})),o&&e.createElement(Ih,{localizedObject:n.localizedObject,onLeave:function(e){u.current=e,u.current===Ze||u.current===Qe?r.current.endCallDueToTimeout(e):u.current===$e&&(n.triggerEvent(Ye,{}),d())},onStay:function(){i(!1)}}))});Cm.displayName="CallingComponentWrapper";var Sm=Cm;function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(n),!0).forEach(function(t){xm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xm(e,t,n){return(t=Am(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tm(e){return Tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tm(e)}function Am(e){var t=function(e){if("object"!==Tm(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Tm(t)?t:String(t)}function Rm(e,t){return Rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rm(e,t)}function Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Im(e)}var Om,Nm,Mm,Dm,Lm,Pm,jm,Um,Fm,Bm,Gm,Vm,Hm,zm,Ym=window.location.search,qm=new URLSearchParams(Ym),Km=!0,Wm=!0,Jm=!0,Zm=!0,$m=!1,Qm=!0,Xm=!0,eg=!0,tg=rt,ng=!0,rg=180,ag=!1,og=!0,ig=!0,sg=!0,cg=[],lg=!0,ug=0,dg="",pg="circle",hg="default",mg=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rm(e,t)}(s,t);var n,r,a,o,i=(a=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Im(a);if(o){var n=Im(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Tm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=i.call(this,t)).state={isFullScreen:!1,loadCallScreen:!1},n.callingComponentRef=e.createRef(),n}return n=s,r=[{key:"getCallingComponentRef",value:function(){return this.callingComponentRef}},{key:"componentDidMount",value:function(){if(bm){var e,t,n;Lm=null!==(e=qm.get("sessionID"))&&void 0!==e?e:"test",Pm=null!==(t=qm.get("username"))&&void 0!==t?t:"test",Um=null!==(n=qm.get("mode"))&&void 0!==n?n:"TILE",zl.mode=Um;var r=qm.get("isPresenter");zl.isPresenter="true"===r||"false"!==r&&void 0,zl.htmlElement=this.props.htmlElement,Dm="eu",Bm="rtc-eu.cometchat.io",Fm="uid",Nm=!0,Mm=!0,this.setState({loadCallScreen:!0})}else this.addSettingListener()}},{key:"addSettingListener",value:function(){var e,t,n,r,a,o,i,s,c,l,u,d,p,h,m,g,f,_,b,v,y,E,C,S,w,k,x,T,A,R,I=this.props.callsettings;hg=I.screenShareMode||"default",Km=I.ShowEndCallButton,ng=I.ShowRecordingButton,rg=I.idleTimeoutPeriod,ag=I.StartRecordingOnCallStart,Wm=I.ShowMuteAudioButton,Jm=I.ShowPauseVideoButton,Qm=I.ShowScreenShareButton,eg=I.ShowSwitchToVideoCallButton,Zm=I.defaultLayout,Lm=I.sessionID,Dm=I.region.toLowerCase(),$m=I.isAudioOnly,Pm=I.user.name,jm=I.user.avatar,Um=I.mode,zl.mode=Um,zl.isPresenter=I.isPresenter,zl.htmlElement=this.props.htmlElement,Fm=I.user.uid,"object"===Tm(I.localizedObject)&&(tg=km(km({},rt),I.localizedObject)),Nm=I.StartAudioMuted,Mm=I.StartVideoMuted,Hm=I.customCSS,Vm=I.user,zm=I.appId,Gm=I.analyticsSettings,Xm=I.ShowSwitchModeButton,og=I.ShowVirtualBackgroundSetting,ig=Boolean(null===(e=I.VirtualBackground)||void 0===e?void 0:e.AllowBackgroundBlur),sg=Boolean(null===(t=I.VirtualBackground)||void 0===t?void 0:t.AllowUserImages),lg=Boolean(null===(n=I.VirtualBackground)||void 0===n?void 0:n.ShowDefaultImages),cg=null!==(r=I.VirtualBackground)&&void 0!==r&&r.SetImages?null===(a=I.VirtualBackground)||void 0===a?void 0:a.SetImages:[],ug=null!==(o=I.VirtualBackground)&&void 0!==o&&o.EnforceBackgroundBlur?null===(i=I.VirtualBackground)||void 0===i?void 0:i.EnforceBackgroundBlur:0,dg=null!==(s=I.VirtualBackground)&&void 0!==s&&s.EnforceBackgroundImage?null===(c=I.VirtualBackground)||void 0===c?void 0:c.EnforceBackgroundImage:"",pg=I.AvatarMode?I.AvatarMode:"circle","MainVideoContainerSetting"in I&&("string"==typeof(null===(l=I.MainVideoContainerSetting)||void 0===l?void 0:l.videoFit)&&(at.fit=I.MainVideoContainerSetting.videoFit),"boolean"==typeof(null===(u=I.MainVideoContainerSetting)||void 0===u||null===(d=u.zoomButton)||void 0===d?void 0:d.visibility)?at.fitButton.visible=I.MainVideoContainerSetting.zoomButton.visibility:"boolean"==typeof(null===(p=I.MainVideoContainerSetting)||void 0===p||null===(h=p.zoomButton)||void 0===h?void 0:h.visible)&&(at.fitButton.visible=I.MainVideoContainerSetting.zoomButton.visible),"string"==typeof(null===(m=I.MainVideoContainerSetting)||void 0===m||null===(g=m.zoomButton)||void 0===g?void 0:g.position)&&(at.fitButton.position=I.MainVideoContainerSetting.zoomButton.position),"boolean"==typeof(null===(f=I.MainVideoContainerSetting)||void 0===f||null===(_=f.nameLabel)||void 0===_?void 0:_.visibility)?at.nameLabel.visible=I.MainVideoContainerSetting.nameLabel.visibility:"boolean"==typeof(null===(b=I.MainVideoContainerSetting)||void 0===b||null===(v=b.nameLabel)||void 0===v?void 0:v.visible)&&(at.nameLabel.visible=I.MainVideoContainerSetting.nameLabel.visible),"string"==typeof(null===(y=I.MainVideoContainerSetting)||void 0===y||null===(E=y.nameLabel)||void 0===E?void 0:E.position)&&(at.nameLabel.position=I.MainVideoContainerSetting.nameLabel.position),"string"==typeof(null===(C=I.MainVideoContainerSetting)||void 0===C||null===(S=C.nameLabel)||void 0===S?void 0:S.color)&&(at.nameLabel.background=I.MainVideoContainerSetting.nameLabel.color),"boolean"==typeof(null===(w=I.MainVideoContainerSetting)||void 0===w||null===(k=w.network)||void 0===k?void 0:k.visibility)?at.network.visible=I.MainVideoContainerSetting.network.visibility:"boolean"==typeof(null===(x=I.MainVideoContainerSetting)||void 0===x||null===(T=x.network)||void 0===T?void 0:T.visible)&&(at.network.visible=I.MainVideoContainerSetting.network.visible),"string"==typeof(null===(A=I.MainVideoContainerSetting)||void 0===A||null===(R=A.network)||void 0===R?void 0:R.position)&&(at.network.position=I.MainVideoContainerSetting.network.position)),Bm=2==qm.get("v")?"rtc-"+Dm+".cometchat.io":I.domain,this.setState({loadCallScreen:!0});var O=document.createElement("style");document.head.appendChild(O),O.innerHTML=Hm}},{key:"render",value:function(){var t=this;Om=1===qm.get("broadcast");var n={palette:{primaryIconColor:{main:"#1E79E7"},secondaryIconColor:{main:"#808080"},fontHeadingColor:{main:"#292A2c"},fontTitleColor:{main:"#292A2c"},fontSubTitleColor:{main:"#808080"},fontTextColor:{main:"#808080"},buttonBackgroundColor:{main:"#35383b"},error:{main:"#d93438"},primary:{main:"#1E79E7"}},typography:{fontFamily:"Inter",h3:{fontFamily:"Inter",fontSize:"2em",fontWeight:900},h4:{fontFamily:"Inter",fontSize:"1.5em",fontWeight:700},h5:{fontFamily:"Inter",fontSize:"1em",fontWeight:400},h6:{fontFamily:"Inter",fontSize:"0.7em",fontWeight:400}},spacing:function(e){return"".concat(1*e,"vh")},margin:function(e){return"".concat(4*e,"px")}},r=(0,Se.Z)(n);return Te.setTheme(n),e.createElement("div",{className:"ccccn",id:"cc-container"},e.createElement(Ce.Z,{theme:r},e.createElement("div",{className:"cc-App"},e.createElement(Ee,{autoHideDuration:6e3,maxSnack:3,dense:!0,anchorOrigin:{vertical:"top",horizontal:"right"},TransitionComponent:R,classes:{containerRoot:"cc-snackbar-root-override"}},this.state.loadCallScreen?e.createElement("div",{className:"cc-App-header",id:"fullscreen",onDoubleClick:function(e){"BODY"!==e.target.tagName&&"DIV"!==e.target.tagName||t.setState({isFullScreen:!t.state.isFullScreen})}},e.createElement(Sm,{ref:this.callingComponentRef,triggerEvent:this.props.triggerEvent,urlVersion:qm.get("v"),screenShareMode:hg,sessionID:Lm,username:Pm,avatar:jm,region:Dm,isBroadcast:Om,isBroadcaster:void 0,mode:Um,uid:Fm,domain:Bm,isAudioOnly:$m,showEndCallButton:Km,showMuteAudioButton:Wm,showPauseVideoButton:Jm,showScreenShareButton:Qm,defaultLayout:Zm,localizedObject:tg,startAudioMuted:Nm,startVideoMuted:Mm,user:Vm,appID:zm,analyticsSettings:Gm,showSwitchModeButton:Xm,SetImages:cg,showRecordingButton:ng,idleTimeoutPeriod:"number"==typeof rg?Math.max(rg,120):180,startRecordingOnCallStart:ag,AllowBackgroundBlur:ig,AllowUserImages:sg,ShowDefaultImages:lg,EnforceBackgroundImage:dg,EnforceBackgroundBlur:ug,ShowVirtualBackgroundSetting:og,showSwitchToVideoCallButton:eg,avatarMode:pg})):null))))}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Am(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component),gg=mg;function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(this,arguments)}n(7260),n(6206),n(1515),n(6847);var _g=document.createElement("script");_g.src="https://cdn.cometchat.io/calls/v3/tflite.js";var bg=document.createElement("script");bg.src="https://cdn.cometchat.io/calls/v3/tflite-simd.js";var vg=document.createElement("script");function yg(e){return Boolean(document.querySelector('script[src="'+e+'"]'))}vg.src="https://cdn.cometchat.io/calls/v3/rnnoise.js",setTimeout(function(){yg(_g.src)||document.body.appendChild(_g),yg(bg.src)||document.body.appendChild(bg),yg(vg.src)||document.body.appendChild(vg)},3e3);var Eg=e.createRef(),Cg=function(n){t.render(e.createElement(gg,fg({ref:Eg},n)),n.htmlElement)},Sg=function(){return Eg},wg=Cg}(),r}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{CallGroup:()=>U,CallLog:()=>V,CallLogRequestBuilder:()=>z,CallUser:()=>F,CometChatCalls:()=>pe,Participant:()=>B,Recording:()=>G});var e={DEFAULT:"DEFAULT",SPOTLIGHT:"SPOTLIGHT",GRID:"TILE"},t="data",a="receiver",o="initiator",i="entities",s="entity",c={position:"bottom-right",visible:!0},l={position:"bottom-left",visible:!0,color:"rgba(27, 27, 27, 0.4)"},u={position:"bottom-right",visible:!0},d="position",p="visible",h="visibility",m="color",g={us:"us",eu:"eu",in:"in",US:"us",EU:"eu",IN:"in"},f="INVALID_ARGUMENT_EXCEPTION",_="UNKNOWN_API_ERROR",b="There is an unknown issue with the API request. Please check your internet connection and verify the api call.",v="INVALID_CALL_SETTINGS",y="INVALID_ARGUMENT_EXCEPTION",E="callToken must be valid please verify.",C=function(e){q(e.onUserJoined)||(this.onUserJoined=e.onUserJoined),q(e.onUserLeft)||(this.onUserLeft=e.onUserLeft),q(e.onUserListUpdated)||(this.onUserListUpdated=e.onUserListUpdated),q(e.onMediaDeviceListUpdated)||(this.onMediaDeviceListUpdated=e.onMediaDeviceListUpdated),q(e.onRecordingStarted)||(this.onRecordingStarted=e.onRecordingStarted),q(e.onRecordingStopped)||(this.onRecordingStopped=e.onRecordingStopped),q(e.onScreenShareStarted)||(this.onScreenShareStarted=e.onScreenShareStarted),q(e.onScreenShareStopped)||(this.onScreenShareStopped=e.onScreenShareStopped),q(e.onUserMuted)||(this.onUserMuted=e.onUserMuted),q(e.onUserUnMuted)||(this.onUserUnMuted=e.onUserUnMuted),q(e.onCallSwitchedToVideo)||(this.onCallSwitchedToVideo=e.onCallSwitchedToVideo),q(e.onCallEnded)||(this.onCallEnded=e.onCallEnded),q(e.onSessionTimeout)||(this.onSessionTimeout=e.onSessionTimeout),q(e.onError)||(this.onError=e.onError),q(e.onCallEndButtonPressed)||(this.onCallEndButtonPressed=e.onCallEndButtonPressed)},S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},S.apply(this,arguments)},w=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))},k=function(){function e(){}return e.addCallEventListener=function(t,n){try{e.callHandlers=null==e?void 0:e.callHandlers.filter(function(e){return e._name!=t}),e.callHandlers=w(w([],e.callHandlers,!0),[S({_name:t},new C(n))],!1)}catch(e){}},e.removeCallEventListener=function(t){try{e.callHandlers=null==e?void 0:e.callHandlers.filter(function(e){return e._name!==t})}catch(e){}},e.callHandlers=[],e}(),x=function(){function e(e){this.appId=e.appId,this.region=e.region,this.host=e.host}return e.prototype.setAppId=function(e){return this.appId=e,this},e.prototype.setRegion=function(e){return this.region=e,this},e.prototype.setHost=function(e){return this.host=e,this},e.prototype.getAppId=function(){return this.appId},e.prototype.getRegion=function(){return this.region},e.prototype.getHost=function(){return this.host},e}(),T=function(){function e(){}return e.prototype.setAppId=function(e){return this.appId=e,this},e.prototype.setRegion=function(e){return this.region=e,this},e.prototype.setHost=function(e){return this.host=e,this},e.prototype.build=function(){return new x(this)},e}(),A=(function(){function e(e){this.avatar="",q(e)||(this.uid=e.toString())}e.prototype.setUID=function(e){this.uid=e?e.toString():""},e.prototype.getUID=function(){return this.uid.toString()},e.prototype.setName=function(e){this.name=e?e.toString():""},e.prototype.getName=function(){return this.name.toString()},e.prototype.setAvatar=function(e){this.avatar=e?e.toString():""},e.prototype.getAvatar=function(){return this.avatar.toString()},e.prototype.setJWT=function(e){this.jwt=e?e.toString():""},e.prototype.getJWT=function(){return this.jwt.toString()},e.prototype.setResource=function(e){this.resource=e?e.toString():""},e.prototype.getResource=function(){return this.resource.toString()}}(),function(e){"code"in e&&(this.code=e.code),"name"in e&&(this.name=e.name),"message"in e&&(this.message=e.message),"details"in e&&(this.details=e.details)}),R="call_tokens",I="calls",O="__APP_ID__",N="__REGION__",M="https://".concat(O,".call-").concat(N,".cometchat.io/v3.0/"),D=function(e){return new Promise(function(t){var n=new Headers;if(n.append("Accept","application/json"),"object"==typeof e.headers)for(var r in e.headers)n.append(r,e.headers[r]);var a={method:"GET",headers:n};fetch(e.url,a).then(function(e){return e.json()}).then(function(e){t({error:null,data:e})}).catch(function(e){t({error:e,data:null})})})},L=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}c((r=r.apply(e,t||[])).next())})},P=function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(6===s[0]&&i.label<a[1]){i.label=a[1],a=s;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(s);break}a[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},j=function(){function e(){}return e.setAppSettings=function(e){this.appSettings=e},e.generateToken=function(e,t,n){return L(this,void 0,void 0,function(){var r;return P(this,function(a){return r=M.replace(O,n.getAppId()).replace(N,n.getRegion()),n.getHost()&&(r=n.getHost()),[2,(o={url:"".concat(r).concat(R),headers:{authToken:e},data:{sessionId:t}},new Promise(function(e){var t=new Headers;if(t.append("content-Type","application/json"),t.append("Accept","application/json"),"object"==typeof o.headers)for(var n in o.headers)t.append(n,o.headers[n]);var r={method:"POST",headers:t,body:JSON.stringify(o.data)};fetch(o.url,r).then(function(e){return e.json()}).then(function(t){e({error:null,data:t})}).catch(function(t){e({error:t,data:null})})}))];var o})})},e.verifyToken=function(e,t){return L(this,void 0,void 0,function(){var n;return P(this,function(r){return n=M.replace(O,t.getAppId()).replace(N,t.getRegion()),t.getHost()&&(n=t.getHost()),[2,D({url:"".concat(n).concat(R),headers:{callToken:e}})]})})},e.getCallLogList=function(e,t){return L(this,void 0,void 0,function(){var n,r,a;return P(this,function(o){return n=M.replace(O,this.appSettings.getAppId()).replace(N,this.appSettings.getRegion()),this.appSettings.getHost()&&(n=this.appSettings.getHost()),r=function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(e),a="".concat(n).concat(I,"?").concat(r),[2,D({url:a,headers:{authToken:t}})]})})},e.getCallDetails=function(e,t){return L(this,void 0,void 0,function(){var n;return P(this,function(r){return n=M.replace(O,this.appSettings.getAppId()).replace(N,this.appSettings.getRegion()),this.appSettings.getHost()&&(n=this.appSettings.getHost()),[2,D({url:"".concat(n).concat(I,"/").concat(e),headers:{authToken:t}})]})})},e}(),U=function(){function e(e){Object.assign(this,e)}return e.prototype.getGuid=function(){return this.guid},e.prototype.setGuid=function(e){this.guid=e},e.prototype.getName=function(){return this.name},e.prototype.setName=function(e){this.name=e},e.prototype.getIcon=function(){return this.icon},e.prototype.setIcon=function(e){this.icon=e},e.prototype.toString=function(){return"CallGroup{ guid='".concat(this.guid,"', name='").concat(this.name,"', icon='").concat(this.icon,"' }")},e.getGroupFromJson=function(t){return new e(t)},e}(),F=function(){function e(e){Object.assign(this,e)}return e.prototype.getUid=function(){return this.uid},e.prototype.setUid=function(e){this.uid=e},e.prototype.getName=function(){return this.name},e.prototype.setName=function(e){this.name=e},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.toString=function(){return"CallUser{ uid='".concat(this.uid,"', name='").concat(this.name,"', avatar='").concat(this.avatar,"' }")},e.getUserFromJson=function(t){return new e(t)},e}(),B=function(){function e(e){Object.assign(this,e)}return e.prototype.getUid=function(){return this.uid},e.prototype.setUid=function(e){this.uid=e},e.prototype.getName=function(){return this.name},e.prototype.setName=function(e){this.name=e},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.getTotalAudioMinutes=function(){return this.totalAudioMinutes},e.prototype.setTotalAudioMinutes=function(e){this.totalAudioMinutes=e},e.prototype.getTotalVideoMinutes=function(){return this.totalVideoMinutes},e.prototype.setTotalVideoMinutes=function(e){this.totalVideoMinutes=e},e.prototype.getTotalDurationInMinutes=function(){return this.totalDurationInMinutes},e.prototype.setTotalDurationInMinutes=function(e){this.totalDurationInMinutes=e},e.prototype.getDeviceID=function(){return this.deviceID},e.prototype.setDeviceID=function(e){this.deviceID=e},e.prototype.getHasJoined=function(){return this.hasJoined},e.prototype.setHasJoined=function(e){this.hasJoined=e},e.prototype.getJoinedAt=function(){return this.joinedAt},e.prototype.setJoinedAt=function(e){this.joinedAt=e},e.prototype.getLeftAt=function(){return this.leftAt},e.prototype.setLeftAt=function(e){this.leftAt=e},e.prototype.getMid=function(){return this.mid},e.prototype.setMid=function(e){this.mid=e},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.state=e},e.getParticipantFromJson=function(t){return new e(t)},e}(),G=function(){function e(e){Object.assign(this,e)}return e.prototype.getRid=function(){return this.rid},e.prototype.setRid=function(e){this.rid=e},e.prototype.getRecordingURL=function(){return this.recording_url},e.prototype.setRecordingURL=function(e){this.recording_url=e},e.prototype.getStartTime=function(){return this.startTime},e.prototype.setStartTime=function(e){this.startTime=e},e.prototype.getEndTime=function(){return this.endTime},e.prototype.setEndTime=function(e){this.endTime=e},e.prototype.getDuration=function(){return this.duration},e.prototype.setDuration=function(e){this.duration=e},e.getRecordingFromJson=function(t){return new e(t)},e}(),V=function(){function e(e){Object.assign(this,e)}return e.prototype.getSessionID=function(){return this.sessionId},e.prototype.setSessionID=function(e){this.sessionId=e},e.prototype.getTotalAudioMinutes=function(){return this.totalAudioMinutes},e.prototype.setTotalAudioMinutes=function(e){this.totalAudioMinutes=e},e.prototype.getTotalVideoMinutes=function(){return this.totalVideoMinutes},e.prototype.setTotalVideoMinutes=function(e){this.totalVideoMinutes=e},e.prototype.getTotalDuration=function(){return this.totalDuration},e.prototype.setTotalDuration=function(e){this.totalDuration=e},e.prototype.getHasRecording=function(){return this.hasRecording},e.prototype.setHasRecording=function(e){this.hasRecording=e},e.prototype.getInitiatedAt=function(){return this.initiatedAt},e.prototype.setInitiatedAt=function(e){this.initiatedAt=e},e.prototype.getCallCategory=function(){return this.callCategory},e.prototype.setCallCategory=function(e){this.callCategory=e},e.prototype.getInitiator=function(){return this.initiator},e.prototype.setInitiator=function(e){this.initiator=e},e.prototype.getReceiver=function(){return this.receiver},e.prototype.setReceiver=function(e){this.receiver=e},e.prototype.getReceiverType=function(){return this.receiverType},e.prototype.setReceiverType=function(e){this.receiverType=e},e.prototype.getStatus=function(){return this.status},e.prototype.setStatus=function(e){this.status=e},e.prototype.getTotalDurationInMinutes=function(){return this.totalDurationInMinutes},e.prototype.setTotalDurationInMinutes=function(e){this.totalDurationInMinutes=e},e.prototype.getTotalParticipants=function(){return this.totalParticipants},e.prototype.setTotalParticipants=function(e){this.totalParticipants=e},e.prototype.getType=function(){return this.type},e.prototype.setType=function(e){this.type=e},e.prototype.getMid=function(){return this.mid},e.prototype.setMid=function(e){this.mid=e},e.prototype.getEndedAt=function(){return this.endedAt},e.prototype.setEndedAt=function(e){this.endedAt=e},e.prototype.getParticipants=function(){return this.participants},e.prototype.setParticipants=function(e){this.participants=e},e.prototype.getRecordings=function(){return this.recordings},e.prototype.setRecordings=function(e){this.recordings=e},e.callLogFromJson=function(n){var r=new e(n);if(n.participants&&(r.participants=n.participants.map(function(e){return B.getParticipantFromJson(e)})),n.recordings&&(r.recordings=n.recordings.map(function(e){return G.getRecordingFromJson(e)})),n.initiator&&n[t]&&n[t][i]&&n[t][i][o]&&n[t][i][o][s]){var c=n[t][i][o][s];r.initiator=F.getUserFromJson(c)}if(n.receiver&&n[t]&&n[t][i]&&n[t][i][a]&&n[t][i][a][s]){var l=n[t][i][a][s];"user"==n.receiverType?r.receiver=F.getUserFromJson(l):r.receiver=U.getGroupFromJson(l)}return r},e}(),H=function(){function e(e){this.limit=30,this.totalPages=0,this.currentPage=0,this.inProgress=!1,this.updatedAt=0,this.onlyUpdates=0,this.timestamp=0,this.paginationMeta={},this.limit=e.limit,this.callType=e.callType,this.callStatus=e.callStatus,this.hasRecording=e.hasRecording,this.callCategory=e.callCategory,this.callDirection=e.callDirection,this.uid=e.uid,this.guid=e.guid,this.authToken=e.authToken}return e.prototype.fetchNext=function(){return this.makeAPICall(!0)},e.prototype.fetchPrevious=function(){return this.makeAPICall()},e.prototype.makeAPICall=function(e){var t=this;return new Promise(function(n,r){return function(e,t,n,r){return new(n||(n=Promise))(function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function i(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(o,i)}s((r=r.apply(e,[])).next())})}(t,0,void 0,function(){var t,a,o,i;return function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(6===s[0]&&i.label<a[1]){i.label=a[1],a=s;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(s);break}a[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(s){switch(s.label){case 0:if(s.trys.push([0,5,,6]),e?0!=this.totalPages&&this.totalPages==this.currentPage:1==this.currentPage)return this.inProgress=!1,n([]),[2];if(this.inProgress)return this.inProgress=!1,r(new A({code:"REQUEST_IN_PROGRESS",name:"REQUEST_IN_PROGRESS",message:"Request in progress.",details:{}})),[2];if(this.inProgress=!0,!this.authToken)return this.inProgress=!1,r(new A({code:"NOT_ENOUGH_PARAMETERS",message:"`Auth Token` is required to use the 'fetchNext()' method."})),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,j.getCallLogList(this.getParams(e),this.authToken)];case 2:return t=s.sent(),(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.error)?(this.inProgress=!1,r(new A(t.data.error)),[2]):(a=this.getCallLogList(JSON.stringify(t.data)),n(a),this.inProgress=!1,[3,4]);case 3:return o=s.sent(),this.inProgress=!1,r(new A(o)),[3,4];case 4:return[3,6];case 5:return s.sent(),this.inProgress=!1,r(new A({code:"UNKNOWN ERROR",message:"Unknown error"})),[3,6];case 6:return[2]}})})})},e.prototype.getParams=function(e){var t={};return t.page=e?this.currentPage+1:this.currentPage-1,t.perPage=this.limit,this.hasRecording&&(t.hasRecording=this.hasRecording),this.callStatus&&(t.status=this.callStatus),this.callType&&(t.type=this.callType),this.callCategory&&(t.mode=this.callCategory),this.callDirection&&(t.direction=this.callDirection),this.uid&&(t.uid=this.uid),this.guid&&(t.guid=this.guid),t},e.prototype.getCallLogList=function(e){var t=[],n=JSON.parse(e),r=n.meta;if(r.pagination){var a=r.pagination;a.total_pages&&(this.totalPages=a.total_pages,this.currentPage=a.current_page)}for(var o=n.data,i=0;i<o.length;i++){var s=o[i],c=V.callLogFromJson(s);t.push(c)}return t},e}(),z=function(){function e(){this.limit=30}return e.prototype.setLimit=function(e){return this.limit=e,this},e.prototype.setCallType=function(e){return this.callType=e,this},e.prototype.setCallStatus=function(e){return this.callStatus=e,this},e.prototype.setHasRecording=function(e){return this.hasRecording=e,this},e.prototype.setCallCategory=function(e){return this.callCategory=e,this},e.prototype.setCallDirection=function(e){return this.callDirection=e,this},e.prototype.setUid=function(e){return this.uid=e,this},e.prototype.setGuid=function(e){return this.guid=e,this},e.prototype.setAuthToken=function(e){return this.authToken=e,this},e.prototype.build=function(){return new H(this)},e}(),Y=(k.addCallEventListener,k.removeCallEventListener,function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))});function q(e){return null!=e&&("string"==typeof e&&(e=e.trim()),"object"==typeof e&&0===Object.keys(e).length&&(e=void 0)),["",0,"0",!1,null,"null",void 0,"undefined"].includes(e)}function K(e){return e&&"object"==typeof e&&!Array.isArray(e)}function W(e){for(var t,n,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!r.length)return e;var o=r.shift();if(K(e)&&K(o))for(var i in o)K(o[i])?(e[i]||Object.assign(e,((t={})[i]={},t)),W(e[i],o[i])):Object.assign(e,((n={})[i]=o[i],n));return W.apply(void 0,Y([e],r,!1))}function J(e){return new Promise(function(t,n){var r=new A({code:"INVALID_CALL_APP_SETTINGS"});if(!(e instanceof x))return r.message="appSettings must be an instance of CallAppSettings class",void n(r);var a=e.getAppId(),o=e.getRegion(),i=e.getHost();return"string"!=typeof a||0===a.length?(r.message="Invalid app id, please check your appSettings",void n(r)):"string"==typeof o&&g[o]?null!=i&&"string"!=typeof i?(r.message="Invalid host, please check your appSettings",void n(r)):void t(!0):(r.message="Invalid region, please check your appSettings",void n(r))})}function Z(e,t){var n,r;try{var a=new A({code:"GENERIC_EXCEPTION"});if("string"==typeof t?(a.message=t,a.details=t):"toString"in t&&(a.message=t.toString(),a.details=t.toString()),e)return void e(a);throw a}catch(e){if((null===(r=null===(n=null==e?void 0:e.toString)||void 0===n?void 0:n.call(e))||void 0===r?void 0:r.length)>0)throw new A({code:"GENERIC_EXCEPTION",message:e.toString()});throw e}}var $=function(){function e(e){this.defaultLayout=e.defaultLayout,this.isAudioOnly=e.isAudioOnly,this.mode=e.mode,this.ShowEndCallButton=e.ShowEndCallButton,this.ShowMuteAudioButton=e.ShowMuteAudioButton,this.ShowPauseVideoButton=e.ShowPauseVideoButton,this.ShowScreenShareButton=e.ShowScreenShareButton,this.ShowSwitchModeButton=e.ShowSwitchModeButton,this.StartAudioMuted=e.StartAudioMuted,this.StartVideoMuted=e.StartVideoMuted,this.localizedObject=e.localizedObject,this.analyticsSettings=e.analyticsSettings,this.customCSS=e.customCSS,this.ShowRecordingButton=e.ShowRecordingButton,this.idleTimeoutPeriod=e.idleTimeoutPeriod,this.StartRecordingOnCallStart=e.StartRecordingOnCallStart,this.callListener=e.callListener,this.ShowSwitchToVideoCallButton=e.ShowSwitchToVideoCallButton,this.VirtualBackground=e.virtualBackground,this.ShowVirtualBackgroundSetting=e.ShowVirtualBackgroundSetting,this.MainVideoContainerSetting=e.MainVideoContainerSetting}return e.prototype.getCallListener=function(){return this.callListener},e.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},e.prototype.getIdleTimeoutPeriod=function(){return this.idleTimeoutPeriod},e.prototype.shouldStartRecordingOnCallStart=function(){return this.StartRecordingOnCallStart},e.prototype.getCustomCSS=function(){return this.customCSS},e.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},e.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},e.prototype.getMode=function(){return this.mode},e.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},e.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},e.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},e.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},e.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},e.prototype.isScreenShareButtonEnabled=function(){return this.ShowScreenShareButton},e.prototype.isModeButtonEnabled=function(){return this.ShowSwitchModeButton},e.prototype.getLocalizedStringObject=function(){return this.localizedObject},e.prototype.getAnalyticsSettings=function(){return this.analyticsSettings},e.prototype.isAudioToVideoButtonEnabled=function(){return this.ShowSwitchToVideoCallButton},e.prototype.getVirtualBackground=function(){return this.VirtualBackground},e.prototype.isVirtualBackgroundSettingEnabled=function(){return this.ShowVirtualBackgroundSetting},e.prototype.getMainVideoContainerSetting=function(){return this.MainVideoContainerSetting},e.POSITION_TOP_LEFT="top-left",e.POSITION_TOP_RIGHT="top-right",e.POSITION_BOTTOM_LEFT="bottom-left",e.POSITION_BOTTOM_RIGHT="bottom-right",e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},e.ASPECT_RATIO_DEFAULT="default",e.ASPECT_RATIO_CONTAIN="contain",e.ASPECT_RATIO_COVER="cover",e.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},e}(),Q=function(){function t(){this.defaultLayout=!0,this.isAudioOnly=!1,this.mode=e.DEFAULT,this.ShowEndCallButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowScreenShareButton=!0,this.ShowSwitchModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.localizedObject={},this.analyticsSettings={},this.ShowRecordingButton=!1,this.idleTimeoutPeriod=180,this.StartRecordingOnCallStart=!1,this.ShowSwitchToVideoCallButton=!0,this.virtualBackground=(new ee).build(),this.ShowVirtualBackgroundSetting=!0,this.MainVideoContainerSetting=new te}return t.prototype.enableDefaultLayout=function(e){return this.defaultLayout=e,this},t.prototype.setIsAudioOnlyCall=function(e){return this.isAudioOnly=e,this},t.prototype.setMode=function(e){return this.mode=e,this},t.prototype.showEndCallButton=function(e){return this.ShowEndCallButton=e,this},t.prototype.showMuteAudioButton=function(e){return this.ShowMuteAudioButton=e,this},t.prototype.showPauseVideoButton=function(e){return this.ShowPauseVideoButton=e,this},t.prototype.showScreenShareButton=function(e){return this.ShowScreenShareButton=e,this},t.prototype.showModeButton=function(e){return this.ShowSwitchModeButton=e,this},t.prototype.setLocalizedStringObject=function(e){return this.localizedObject=e,this},t.prototype.setAnalyticsSettings=function(e){return this.analyticsSettings=e,this},t.prototype.startWithAudioMuted=function(e){return this.StartAudioMuted=e,this},t.prototype.startWithVideoMuted=function(e){return this.StartVideoMuted=e,this},t.prototype.showRecordingButton=function(e){return this.ShowRecordingButton=e,this},t.prototype.setIdleTimeoutPeriod=function(e){return this.idleTimeoutPeriod=e,this},t.prototype.startRecordingOnCallStart=function(e){return this.StartRecordingOnCallStart=e,this},t.prototype.showSwitchToVideoCallButton=function(e){return this.ShowSwitchToVideoCallButton=e,this},t.prototype.setVirtualBackground=function(e){return this.virtualBackground=e,this},t.prototype.showVirtualBackgroundSetting=function(e){return this.ShowVirtualBackgroundSetting=e,this},t.prototype.setMainVideoContainerSetting=function(e){return this.MainVideoContainerSetting=e,this},t.prototype.setCallListener=function(e){return this.callListener=e,this},t.prototype.build=function(){return new $(this)},t}(),X=function(){function e(e){this.AllowBackgroundBlur=e.AllowBackgroundBlur,this.AllowUserImages=e.AllowUserImages,this.ShowDefaultImages=e.ShowDefaultImages,this.SetImages=e.SetImages,this.EnforceBackgroundBlur=e.EnforceBackgroundBlur,this.EnforceBackgroundImage=e.EnforceBackgroundImage}return e.prototype.shouldAllowBackgroundBlur=function(){return this.AllowBackgroundBlur},e.prototype.shouldAllowUserImages=function(){return this.AllowUserImages},e.prototype.shouldShowDefaultImages=function(){return this.ShowDefaultImages},e.prototype.getImages=function(){return this.SetImages},e.prototype.isBackgroundBlurEnforced=function(){return this.EnforceBackgroundBlur},e.prototype.getEnforcedBackgroundImage=function(){return this.EnforceBackgroundImage},e}(),ee=function(){function e(){this.AllowBackgroundBlur=!0,this.AllowUserImages=!0,this.ShowDefaultImages=!0,this.SetImages=[],this.EnforceBackgroundBlur=0,this.EnforceBackgroundImage=""}return e.prototype.allowBackgroundBlur=function(e){return this.AllowBackgroundBlur=e,this},e.prototype.allowUserImages=function(e){return this.AllowUserImages=e,this},e.prototype.showDefaultImages=function(e){return this.ShowDefaultImages=e,this},e.prototype.setImages=function(e){return this.SetImages=e,this},e.prototype.enforceBackgroundBlur=function(e){return this.EnforceBackgroundBlur=e,this},e.prototype.enforceBackgroundImage=function(e){return this.EnforceBackgroundImage=e,this},e.prototype.build=function(){return new X(this)},e}(),te=function(){function e(){this.videoFit=$.ASPECT_RATIO_CONTAIN,this.zoomButton=c,this.nameLabel=l,this.network=u}return e.prototype.setMainVideoAspectRatio=function(e){this.videoFit=e},e.prototype.setFullScreenButtonParams=function(e,t){q(e)||(this.zoomButton[d]=e),null!=t&&null!=t&&(this.zoomButton[p]=t,this.zoomButton[h]=t)},e.prototype.setNameLabelParams=function(e,t,n){q(e)||(this.nameLabel[d]=e),null!=t&&null!=t&&(this.nameLabel[p]=t,this.nameLabel[h]=t),q(n)||(this.nameLabel[m]=n)},e.prototype.setNetworkLabelParams=function(e,t){q(e)||(this.network[d]=e),null!=t&&null!=t&&(this.network[p]=t,this.network[h]=t)},e}(),ne=n(472),re={screenShareMode:"default",ShowEndCallButton:!0,ShowRecordingButton:!1,idleTimeoutPeriod:180,StartRecordingOnCallStart:!1,ShowMuteAudioButton:!0,ShowPauseVideoButton:!0,ShowScreenShareButton:!0,ShowSwitchToVideoCallButton:!0,defaultLayout:!0,isAudioCall:!1,isAudioOnly:!1,mode:"DEFAULT",StartAudioMuted:!1,StartVideoMuted:!1,ShowSwitchModeButton:!0,ShowVirtualBackgroundSetting:!0,VirtualBackground:{AllowBackgroundBlur:!0,AllowUserImages:!0,ShowDefaultImages:!0,SetImages:[],EnforceBackgroundBlur:0,EnforceBackgroundImage:""},AvatarMode:"circle",MainVideoContainerSetting:{videoFit:"contain",zoomButton:{visible:!0,visibility:!0,position:"bottom-right"},nameLabel:{visible:!0,visibility:!0,position:"bottom-left",color:"rgba(27, 27, 27, 0.4)"},network:{visible:!0,visibility:!0,position:"bottom-right"}},customCSS:"",analyticsSettings:{ANALYTICS_VERSION:"v1",ANALYTICS_HOST:"rtc-staging.cometchat.io",ANALYTICS_PING_DISABLED:!1,ANALYTICS_USE_SSL:!0}},ae=function(){function e(e){this.defaultLayout=e.defaultLayout,this.isAudioOnly=e.isAudioOnly,this.isPresenter=e.isPresenter,this.mode="PRESENTER",this.ShowEndCallButton=e.ShowEndCallButton,this.ShowMuteAudioButton=e.ShowMuteAudioButton,this.ShowPauseVideoButton=e.ShowPauseVideoButton,this.ShowScreenShareButton=e.ShowScreenShareButton,this.ShowSwitchModeButton=e.ShowSwitchModeButton,this.StartAudioMuted=e.StartAudioMuted,this.StartVideoMuted=e.StartVideoMuted,this.localizedObject=e.localizedObject,this.analyticsSettings=e.analyticsSettings,this.customCSS=e.customCSS,this.ShowRecordingButton=e.ShowRecordingButton,this.idleTimeoutPeriod=e.idleTimeoutPeriod,this.StartRecordingOnCallStart=e.StartRecordingOnCallStart,this.callListener=e.callListener,this.ShowSwitchToVideoCallButton=e.ShowSwitchToVideoCallButton,this.VirtualBackground=e.virtualBackground,this.ShowVirtualBackgroundSetting=e.ShowVirtualBackgroundSetting,this.MainVideoContainerSetting=e.MainVideoContainerSetting}return e.prototype.getCallListener=function(){return this.callListener},e.prototype.isRecordingButtonEnabled=function(){return this.ShowRecordingButton},e.prototype.getIdleTimeoutPeriod=function(){return this.idleTimeoutPeriod},e.prototype.shouldStartRecordingOnCallStart=function(){return this.StartRecordingOnCallStart},e.prototype.getCustomCSS=function(){return this.customCSS},e.prototype.isAudioOnlyCall=function(){return this.isAudioOnly},e.prototype.getIsPresenter=function(){return this.isPresenter},e.prototype.isDefaultLayoutEnabled=function(){return this.defaultLayout},e.prototype.getMode=function(){return this.mode},e.prototype.getStartWithAudioMuted=function(){return this.StartAudioMuted},e.prototype.getStartWithVideoMuted=function(){return this.StartVideoMuted},e.prototype.isEndCallButtonEnabled=function(){return this.ShowEndCallButton},e.prototype.isMuteAudioButtonEnabled=function(){return this.ShowMuteAudioButton},e.prototype.isPauseVideoButtonEnabled=function(){return this.ShowPauseVideoButton},e.prototype.isScreenShareButtonEnabled=function(){return this.ShowScreenShareButton},e.prototype.isModeButtonEnabled=function(){return this.ShowSwitchModeButton},e.prototype.getLocalizedStringObject=function(){return this.localizedObject},e.prototype.getAnalyticsSettings=function(){return this.analyticsSettings},e.prototype.isAudioToVideoButtonEnabled=function(){return this.ShowSwitchToVideoCallButton},e.prototype.getVirtualBackground=function(){return this.VirtualBackground},e.prototype.isVirtualBackgroundSettingEnabled=function(){return this.ShowVirtualBackgroundSetting},e.prototype.getMainVideoContainerSetting=function(){return this.MainVideoContainerSetting},e.POSITION_TOP_LEFT="top-left",e.POSITION_TOP_RIGHT="top-right",e.POSITION_BOTTOM_LEFT="bottom-left",e.POSITION_BOTTOM_RIGHT="bottom-right",e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},e.ASPECT_RATIO_DEFAULT="default",e.ASPECT_RATIO_CONTAIN="contain",e.ASPECT_RATIO_COVER="cover",e.ASPECT_RATIO={DEFAULT:"default",CONTAIN:"contain",COVER:"cover"},e}(),oe=function(){function e(){this.defaultLayout=!0,this.isAudioOnly=!1,this.isPresenter=!1,this.ShowEndCallButton=!0,this.ShowMuteAudioButton=!0,this.ShowPauseVideoButton=!0,this.ShowScreenShareButton=!0,this.ShowSwitchModeButton=!0,this.StartAudioMuted=!1,this.StartVideoMuted=!1,this.localizedObject={},this.analyticsSettings={},this.ShowRecordingButton=!1,this.StartRecordingOnCallStart=!1,this.ShowSwitchToVideoCallButton=!0,this.virtualBackground=(new ee).build(),this.ShowVirtualBackgroundSetting=!0,this.MainVideoContainerSetting=new te}return e.prototype.enableDefaultLayout=function(e){return this.defaultLayout=e,this},e.prototype.setIsAudioOnlyCall=function(e){return this.isAudioOnly=e,this},e.prototype.setIsPresenter=function(e){return this.isPresenter=e,this},e.prototype.showEndCallButton=function(e){return this.ShowEndCallButton=e,this},e.prototype.showMuteAudioButton=function(e){return this.ShowMuteAudioButton=e,this},e.prototype.showPauseVideoButton=function(e){return this.ShowPauseVideoButton=e,this},e.prototype.showScreenShareButton=function(e){return this.ShowScreenShareButton=e,this},e.prototype.showModeButton=function(e){return this.ShowSwitchModeButton=e,this},e.prototype.setLocalizedStringObject=function(e){return this.localizedObject=e,this},e.prototype.setAnalyticsSettings=function(e){return this.analyticsSettings=e,this},e.prototype.startWithAudioMuted=function(e){return this.StartAudioMuted=e,this},e.prototype.startWithVideoMuted=function(e){return this.StartVideoMuted=e,this},e.prototype.showRecordingButton=function(e){return this.ShowRecordingButton=e,this},e.prototype.setIdleTimeoutPeriod=function(e){return this.idleTimeoutPeriod=e,this},e.prototype.startRecordingOnCallStart=function(e){return this.StartRecordingOnCallStart=e,this},e.prototype.showSwitchToVideoCallButton=function(e){return this.ShowSwitchToVideoCallButton=e,this},e.prototype.setVirtualBackground=function(e){return this.virtualBackground=e,this},e.prototype.showVirtualBackgroundSetting=function(e){return this.ShowVirtualBackgroundSetting=e,this},e.prototype.setMainVideoContainerSetting=function(e){return this.MainVideoContainerSetting=e,this},e.prototype.setCallListener=function(e){return this.callListener=e,this},e.prototype.build=function(){return new ae(this)},e}(),ie=function(e,t){if(null!=e&&"boolean"!=typeof e)throw new A({code:v,message:"".concat(t," method must be provided a boolean value.")})},se=function(e){var t=e.isDefaultLayoutEnabled();ie(t,"enableDefaultLayout");var n=e.isAudioOnlyCall();ie(n,"setIsAudioOnlyCall");var r=e.isEndCallButtonEnabled();ie(r,"showEndCallButton");var a=e.isMuteAudioButtonEnabled();ie(a,"showMuteAudioButton");var o=e.isPauseVideoButtonEnabled();ie(o,"showPauseVideoButton");var i=e.isScreenShareButtonEnabled();ie(i,"showScreenShareButton");var s=e.isModeButtonEnabled();ie(s,"showModeButton");var c=e.getStartWithAudioMuted();ie(c,"startWithAudioMuted");var l=e.getStartWithVideoMuted();ie(l,"startWithVideoMuted");var u=e.isRecordingButtonEnabled();ie(u,"showRecordingButton");var d=e.getIdleTimeoutPeriod();if("number"==typeof d&&d<120)throw new A({code:v,message:"Minimum value for idleTimeoutPeriod is 120 seconds."});var p=e.shouldStartRecordingOnCallStart();ie(p,"startRecordingOnCallStart");var h=e.isAudioToVideoButtonEnabled();ie(h,"showSwitchToVideoCallButton");var m=e.isVirtualBackgroundSettingEnabled();ie(m,"showVirtualBackgroundSetting")};const ce=JSON.parse('{"UU":"@cometchat/calls-sdk-javascript","rE":"4.2.5"}');var le=function(){return le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},le.apply(this,arguments)},ue=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}c((r=r.apply(e,t||[])).next())})},de=function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(6===s[0]&&i.label<a[1]){i.label=a[1],a=s;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(s);break}a[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},pe=function(){function t(){}return t.joinPresentation=function(e,n,r){return ue(this,void 0,void 0,function(){return de(this,function(a){return function(e){if(!(e instanceof ae))throw new A({code:"INVALID_PRESENTER_SETTINGS",message:"presenterSettings must be an instance of PresenterSettings class"});se(e)}(n),this.startSessionCore(e,n,r),t.isPresenterMode=!0,[2]})})},t.startSession=function(e,t,n){return ue(this,void 0,void 0,function(){return de(this,function(r){return function(e){if(!(e instanceof $))throw new A({code:v,message:"callSettings must be an instance of CallSettings class"});se(e)}(t),this.startSessionCore(e,t,n),[2]})})},t.startSessionCore=function(e,n,r){var a,o,i,s,c,l,u,d,p,h,m,g,f,v,S,w,x,T,R,I,O,N,M,D,L,P,U,F,B,G,V,H,z,Y,q,K,W,J,Z,$,Q;return ue(this,void 0,void 0,function(){var X,ee,te,ne,ae;return de(this,function(oe){switch(oe.label){case 0:try{if(!(ie=e,se=ie.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),ce=decodeURIComponent(window.atob(se).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")),JSON.parse(ce)).data.sessionId){if("function"==typeof(null===(a=null==n?void 0:n.getCallListener())||void 0===a?void 0:a.onError))return null===(o=null==n?void 0:n.getCallListener())||void 0===o||o.onError(new A({code:y,message:E})),[2];throw new A({code:y,message:E})}}catch(e){if("function"==typeof(null===(i=null==n?void 0:n.getCallListener())||void 0===i?void 0:i.onError))return null===(s=null==n?void 0:n.getCallListener())||void 0===s||s.onError(new A({code:y,message:E})),[2];throw new A({code:y,message:E})}return[4,j.verifyToken(e,this.appSettings)];case 1:if(X=oe.sent(),!(null===(c=null==X?void 0:X.data)||void 0===c?void 0:c.data)){if(null===(u=null===(l=null==X?void 0:X.data)||void 0===l?void 0:l.error)||void 0===u?void 0:u.message){if("function"==typeof(null===(d=null==n?void 0:n.getCallListener())||void 0===d?void 0:d.onError))return null===(p=null==n?void 0:n.getCallListener())||void 0===p||p.onError(new A({code:null===(m=null===(h=null==X?void 0:X.data)||void 0===h?void 0:h.error)||void 0===m?void 0:m.code,message:null===(f=null===(g=null==X?void 0:X.data)||void 0===g?void 0:g.error)||void 0===f?void 0:f.message})),[2];throw new A({code:null===(S=null===(v=null==X?void 0:X.data)||void 0===v?void 0:v.error)||void 0===S?void 0:S.code,message:null===(x=null===(w=null==X?void 0:X.data)||void 0===w?void 0:w.error)||void 0===x?void 0:x.message})}if("function"==typeof(null===(T=null==n?void 0:n.getCallListener())||void 0===T?void 0:T.onError))return null===(R=null==n?void 0:n.getCallListener())||void 0===R||R.onError(new A({code:_,message:b})),[2];throw new A({code:_,message:b})}if(ee=null===(N=null===(O=null===(I=null==X?void 0:X.data)||void 0===I?void 0:I.data)||void 0===O?void 0:O.payload)||void 0===N?void 0:N.data,te=null===(L=null===(D=null===(M=null==X?void 0:X.data)||void 0===M?void 0:M.data)||void 0===D?void 0:D.settings)||void 0===L?void 0:L.WEBRTC_HOST,"object"!=typeof(ne=le(le({},re),{sessionID:null==ee?void 0:ee.sessionId,user:le(le({},null==ee?void 0:ee.user),{jwt:e}),region:null==ee?void 0:ee.region,domain:te,appId:null==ee?void 0:ee.appId})).analyticsSettings&&(ne.analyticsSettings={}),(null===(F=null===(U=null===(P=null==X?void 0:X.data)||void 0===P?void 0:P.data)||void 0===U?void 0:U.settings)||void 0===F?void 0:F.ANALYTICS_HOST)&&(ne.analyticsSettings.ANALYTICS_HOST=X.data.data.settings.ANALYTICS_HOST),(null===(V=null===(G=null===(B=null==X?void 0:X.data)||void 0===B?void 0:B.data)||void 0===G?void 0:G.settings)||void 0===V?void 0:V.ANALYTICS_VERSION)&&(ne.analyticsSettings.ANALYTICS_VERSION=X.data.data.settings.ANALYTICS_VERSION),t.isPresenterMode){if(!0!==(null===(Y=null===(z=null===(H=null==X?void 0:X.data)||void 0===H?void 0:H.data)||void 0===z?void 0:z.settings)||void 0===Y?void 0:Y.PRESENTER_MODE_ENABLED)){if(ae=new A({code:"ERROR_PRESENTER_MODE",message:"Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard"}),null===(q=null==k?void 0:k.callHandlers)||void 0===q||q.map(function(e){var t;null===(t=null==e?void 0:e.onError)||void 0===t||t.call(e,ae)}),"function"==typeof(null===(K=null==n?void 0:n.getCallListener())||void 0===K?void 0:K.onError))return null===(W=null==n?void 0:n.getCallListener())||void 0===W||W.onError(ae),[2];throw new A({code:null===(Z=null===(J=null==X?void 0:X.data)||void 0===J?void 0:J.error)||void 0===Z?void 0:Z.code,message:null===(Q=null===($=null==X?void 0:X.data)||void 0===$?void 0:$.error)||void 0===Q?void 0:Q.message})}t.startTheSession({htmlElement:r,callSettings:n,callSettingsObj:ne})}else t.startTheSession({htmlElement:r,callSettings:n,callSettingsObj:ne});return n.getCallListener()instanceof C&&(this.callEventListener=n.getCallListener()),[2]}var ie,se,ce})})},t.startTheSession=function(e){var t=this,n=e.htmlElement,r=e.callSettings,a=e.callSettingsObj;(0,ne.startSession)({htmlElement:n,triggerEvent:function(e,n){var a,o,i,s,c,l,u,d,p,h,m,g,f,_,b,v,y,E,C,S,w,x,T,A,R,I,O,N,M,D,L,P,j,U,F,B,G,V,H,z,Y,q,K,W,J,Z,$,Q,X,ee,te,ne,re,ae,oe,ie,se,ce,le,ue,de,pe,he,me,ge,fe,_e;switch(e){case"onUserJoined":null===(a=null==k?void 0:k.callHandlers)||void 0===a||a.map(function(e){var t;null===(t=null==e?void 0:e.onUserJoined)||void 0===t||t.call(e,n)}),null===(i=null===(o=r.getCallListener())||void 0===o?void 0:o.onUserJoined)||void 0===i||i.call(o,n);break;case"onUserLeft":null===(s=null==k?void 0:k.callHandlers)||void 0===s||s.map(function(e){var t;null===(t=null==e?void 0:e.onUserLeft)||void 0===t||t.call(e,n)}),null===(l=null===(c=r.getCallListener())||void 0===c?void 0:c.onUserLeft)||void 0===l||l.call(c,n);break;case"onUserListChanged":null===(u=null==k?void 0:k.callHandlers)||void 0===u||u.map(function(e){var t;null===(t=null==e?void 0:e.onUserListUpdated)||void 0===t||t.call(e,n)}),null===(p=null===(d=r.getCallListener())||void 0===d?void 0:d.onUserListUpdated)||void 0===p||p.call(d,n);break;case"SCREEN_SHARE_STARTED":null===(h=null==k?void 0:k.callHandlers)||void 0===h||h.map(function(e){var t;null===(t=null==e?void 0:e.onScreenShareStarted)||void 0===t||t.call(e)}),null===(g=null===(m=r.getCallListener())||void 0===m?void 0:m.onScreenShareStarted)||void 0===g||g.call(m);break;case"SCREEN_SHARE_ENDED":null===(f=null==k?void 0:k.callHandlers)||void 0===f||f.map(function(e){var t;null===(t=null==e?void 0:e.onScreenShareStopped)||void 0===t||t.call(e)}),null===(b=null===(_=r.getCallListener())||void 0===_?void 0:_.onScreenShareStopped)||void 0===b||b.call(_);break;case"hangup":null===(v=null==k?void 0:k.callHandlers)||void 0===v||v.map(function(e){var t;null===(t=null==e?void 0:e.onCallEnded)||void 0===t||t.call(e)}),null===(E=null===(y=r.getCallListener())||void 0===y?void 0:y.onCallEnded)||void 0===E||E.call(y),k&&(k.callHandlers=[]);break;case"onSessionTimeout":null===(C=null==k?void 0:k.callHandlers)||void 0===C||C.map(function(e){var t;null===(t=null==e?void 0:e.onSessionTimeout)||void 0===t||t.call(e)}),null===(w=null===(S=r.getCallListener())||void 0===S?void 0:S.onSessionTimeout)||void 0===w||w.call(S),k&&(k.callHandlers=[]);break;case"onCallEndButtonPressed":null===(x=null==k?void 0:k.callHandlers)||void 0===x||x.map(function(e){var t;null===(t=null==e?void 0:e.onCallEndButtonPressed)||void 0===t||t.call(e)}),null===(A=null===(T=r.getCallListener())||void 0===T?void 0:T.onCallEndButtonPressed)||void 0===A||A.call(T),k&&(k.callHandlers=[]);break;case"initialDeviceList":case"onDeviceChange":t.deviceList=n,t.debounceDeviceChange&&clearTimeout(t.debounceDeviceChange),t.debounceDeviceChange=setTimeout(function(){var e,t,a;null===(e=null==k?void 0:k.callHandlers)||void 0===e||e.map(function(e){var t;null===(t=null==e?void 0:e.onMediaDeviceListUpdated)||void 0===t||t.call(e,n)}),null===(a=null===(t=r.getCallListener())||void 0===t?void 0:t.onMediaDeviceListUpdated)||void 0===a||a.call(t,n)},500);break;case"onUserUnMuted":null===(R=null==k?void 0:k.callHandlers)||void 0===R||R.map(function(e){var t;null===(t=null==e?void 0:e.onUserUnMuted)||void 0===t||t.call(e,n)}),null===(O=null===(I=r.getCallListener())||void 0===I?void 0:I.onUserUnMuted)||void 0===O||O.call(I,n);break;case"onRecordingToggled":!0===n.recordingStarted?(null===(N=null==k?void 0:k.callHandlers)||void 0===N||N.map(function(e){var t;null===(t=null==e?void 0:e.onRecordingStarted)||void 0===t||t.call(e,n)}),null===(D=null===(M=r.getCallListener())||void 0===M?void 0:M.onRecordingStarted)||void 0===D||D.call(M,n)):!1===n.recordingStarted&&(null===(L=null==k?void 0:k.callHandlers)||void 0===L||L.map(function(e){var t;null===(t=null==e?void 0:e.onRecordingStopped)||void 0===t||t.call(e)}),null===(j=null===(P=r.getCallListener())||void 0===P?void 0:P.onRecordingStopped)||void 0===j||j.call(P));break;case"onUserMuted":null===(U=null==n?void 0:n.muted)||void 0===U||delete U.status,null===(F=null==n?void 0:n.muted)||void 0===F||delete F.showVideo,null===(B=null==n?void 0:n.muted)||void 0===B||delete B.isLocalUser,null===(G=null==n?void 0:n.muted)||void 0===G||delete G.audioTrack,null===(V=null==n?void 0:n.muted)||void 0===V||delete V.id,null===(H=null==n?void 0:n.muted)||void 0===H||delete H.videoTrack,null===(z=null==n?void 0:n.muted)||void 0===z||delete z.stats,null===(Y=null==n?void 0:n.mutedBy)||void 0===Y||delete Y.status,null===(q=null==n?void 0:n.mutedBy)||void 0===q||delete q.showVideo,null===(K=null==n?void 0:n.mutedBy)||void 0===K||delete K.isLocalUser,null===(W=null==n?void 0:n.mutedBy)||void 0===W||delete W.audioTrack,null===(J=null==n?void 0:n.mutedBy)||void 0===J||delete J.id,null===(Z=null==n?void 0:n.mutedBy)||void 0===Z||delete Z.videoTrack,null===($=null==n?void 0:n.mutedBy)||void 0===$||delete $.stats,null===(Q=null==k?void 0:k.callHandlers)||void 0===Q||Q.map(function(e){var t;null===(t=null==e?void 0:e.onUserMuted)||void 0===t||t.call(e,n)}),null===(ee=null===(X=r.getCallListener())||void 0===X?void 0:X.onUserMuted)||void 0===ee||ee.call(X,n);break;case"onCallSwitchedToVideo":null===(te=null==n?void 0:n.initiator)||void 0===te||delete te.status,null===(ne=null==n?void 0:n.initiator)||void 0===ne||delete ne.showVideo,null===(re=null==n?void 0:n.initiator)||void 0===re||delete re.isLocalUser,null===(ae=null==n?void 0:n.initiator)||void 0===ae||delete ae.audioTrack,null===(oe=null==n?void 0:n.initiator)||void 0===oe||delete oe.id,null===(ie=null==n?void 0:n.initiator)||void 0===ie||delete ie.videoTrack,null===(se=null==n?void 0:n.initiator)||void 0===se||delete se.stats,null===(ce=null==n?void 0:n.responder)||void 0===ce||delete ce.status,null===(le=null==n?void 0:n.responder)||void 0===le||delete le.showVideo,null===(ue=null==n?void 0:n.responder)||void 0===ue||delete ue.isLocalUser,null===(de=null==n?void 0:n.responder)||void 0===de||delete de.audioTrack,null===(pe=null==n?void 0:n.responder)||void 0===pe||delete pe.id,null===(he=null==n?void 0:n.responder)||void 0===he||delete he.videoTrack,null===(me=null==n?void 0:n.responder)||void 0===me||delete me.stats,null===(ge=null==k?void 0:k.callHandlers)||void 0===ge||ge.map(function(e){var t;null===(t=null==e?void 0:e.onCallSwitchedToVideo)||void 0===t||t.call(e,n)}),null===(_e=null===(fe=r.getCallListener())||void 0===fe?void 0:fe.onCallSwitchedToVideo)||void 0===_e||_e.call(fe,n)}},callsettings:W(a,r)})},t.generateToken=function(e,t){var n,r,a,o,i,s,c;return ue(this,void 0,void 0,function(){var l;return de(this,function(u){switch(u.label){case 0:return[4,J(this.appSettings)];case 1:if(u.sent(),"string"!=typeof t)throw new A({code:f,message:"Argument authToken is missing or invalid, a valid authentication token as a string is required to proceed."});if("string"!=typeof e)throw new A({code:f,message:"Argument sessionID is missing or invalid, a valid session identifier as a string is required to proceed."});return[4,j.generateToken(t,e,this.appSettings)];case 2:if(l=u.sent(),!(null===(n=null==l?void 0:l.data)||void 0===n?void 0:n.data)){if(null===(a=null===(r=null==l?void 0:l.data)||void 0===r?void 0:r.error)||void 0===a?void 0:a.message)throw new A({code:null===(i=null===(o=null==l?void 0:l.data)||void 0===o?void 0:o.error)||void 0===i?void 0:i.code,message:null===(c=null===(s=null==l?void 0:l.data)||void 0===s?void 0:s.error)||void 0===c?void 0:c.message});throw new A({code:_,message:b})}return[2,l.data.data]}})})},t.init=function(e){return ue(this,void 0,void 0,function(){return de(this,function(t){switch(t.label){case 0:return[4,J(e)];case 1:return t.sent(),window.getCometChatCallSDKInfo=function(){return{name:ce.UU,version:ce.rE}},this.appSettings=e,j.setAppSettings(e),[2]}})})},t.getRef=function(){var e,t,n;return null===(n=null===(t=null===(e=(0,ne.getAppRef)())||void 0===e?void 0:e.current)||void 0===t?void 0:t.getCallingComponentRef())||void 0===n?void 0:n.current},t.pauseVideo=function(e){var t,n;void 0===e&&(e=!0);try{e?null===(t=this.getRef())||void 0===t||t.pauseVideo():null===(n=this.getRef())||void 0===n||n.unPauseVideo()}catch(e){Z(this.callEventListener.onError,e)}},t.unPauseVideo=function(){this.resumeVideo()},t.resumeVideo=function(){var e;try{null===(e=this.getRef())||void 0===e||e.unPauseVideo()}catch(e){Z(this.callEventListener.onError,e)}},t.setMode=function(e){var t;try{null===(t=this.getRef())||void 0===t||t.changeMode(e)}catch(e){Z(this.callEventListener.onError,e)}},t.muteAudio=function(e){var t,n;void 0===e&&(e=!0);try{e?null===(t=this.getRef())||void 0===t||t.muteAudio():null===(n=this.getRef())||void 0===n||n.unMuteAudio()}catch(e){Z(this.callEventListener.onError,e)}},t.unMuteAudio=function(){var e;try{null===(e=this.getRef())||void 0===e||e.unMuteAudio()}catch(e){Z(this.callEventListener.onError,e)}},t.startScreenShare=function(){var e;try{null===(e=this.getRef())||void 0===e||e.createScreenShareTrack()}catch(e){Z(this.callEventListener.onError,e)}},t.stopScreenShare=function(){var e;try{null===(e=this.getRef())||void 0===e||e.stopScreenShare()}catch(e){Z(this.callEventListener.onError,e)}},t.endSession=function(){var e;try{null===(e=this.getRef())||void 0===e||e.onEndCallButtonCLicked()}catch(e){Z(this.callEventListener.onError,e)}},t.switchCamera=function(){var e;try{null===(e=this.getRef())||void 0===e||e.toggleCamera()}catch(e){Z(this.callEventListener.onError,e)}},t.startRecording=function(){var e;try{null===(e=this.getRef())||void 0===e||e.startRecording()}catch(e){Z(this.callEventListener.onError,e)}},t.stopRecording=function(){var e;try{null===(e=this.getRef())||void 0===e||e.stopRecording()}catch(e){Z(this.callEventListener.onError,e)}},t.switchToVideoCall=function(){var e;try{null===(e=this.getRef())||void 0===e||e.toggleVideoButton(!0)}catch(e){Z(this.callEventListener.onError,e)}},t.openVirtualBackground=function(){var e;try{null===(e=this.getRef())||void 0===e||e.setIsBackgroundModalVisible(!0)}catch(e){Z(this.callEventListener.onError,e)}},t.closeVirtualBackground=function(){var e;try{null===(e=this.getRef())||void 0===e||e.setIsBackgroundModalVisible(!1)}catch(e){Z(this.callEventListener.onError,e)}},t.setBackgroundBlur=function(e){var t;try{null===(t=this.getRef())||void 0===t||t.setBackgroundBlur(e)}catch(e){Z(this.callEventListener.onError,e)}},t.setBackgroundImage=function(e){var t;try{null===(t=this.getRef())||void 0===t||t.setBackgroundImage(e)}catch(e){Z(this.callEventListener.onError,e)}},t.getAudioInputDevices=function(){try{return"audioInputDevices"in this.deviceList?this.deviceList.audioInputDevices.filter(function(e){return"audioinput"===e.kind}):[]}catch(e){Z(this.callEventListener.onError,e)}},t.getAudioOutputDevices=function(){try{return"audioOutputDevices"in this.deviceList?this.deviceList.audioOutputDevices.filter(function(e){return"audiooutput"===e.kind}):[]}catch(e){Z(this.callEventListener.onError,e)}},t.getVideoInputDevices=function(){try{return"videoInputDevices"in this.deviceList?this.deviceList.videoInputDevices.filter(function(e){return"videoinput"===e.kind}):[]}catch(e){Z(this.callEventListener.onError,e)}},t.setAudioInputDevice=function(e){var t,n;try{if("string"==typeof e&&""!==e){var r=this.deviceList.audioInputDevices.find(function(t){return t.deviceId===e});"deviceId"in r&&(null===(n=null===(t=this.getRef())||void 0===t?void 0:t.changeAudioSourceClicked)||void 0===n||n.call(t,r.deviceId))}}catch(e){Z(this.callEventListener.onError,e)}},t.setAudioOutputDevice=function(e){var t,n;try{if("string"==typeof e&&""!==e){var r=this.deviceList.audioOutputDevices.find(function(t){return t.deviceId===e});"deviceId"in r&&(null===(n=null===(t=this.getRef())||void 0===t?void 0:t.changeAudioOutputDeviceClicked)||void 0===n||n.call(t,r.deviceId))}}catch(e){Z(this.callEventListener.onError,e)}},t.setVideoInputDevice=function(e){var t,n;try{if("string"==typeof e&&""!==e){var r=this.deviceList.videoInputDevices.find(function(t){return t.deviceId===e});"deviceId"in r&&(null===(n=null===(t=this.getRef())||void 0===t?void 0:t.changeVideoSourceClicked)||void 0===n||n.call(t,r.deviceId))}}catch(e){Z(this.callEventListener.onError,e)}},t.getCallDetails=function(e,t){var n=this;return new Promise(function(r,a){return ue(n,void 0,void 0,function(){var n,o,i,s,c;return de(this,function(l){switch(l.label){case 0:if(l.trys.push([0,5,,6]),this.inProgress)return a(new A({code:"REQUEST_IN_PROGRESS",name:"REQUEST_IN_PROGRESS",message:"Request in progress.",details:{}})),this.inProgress=!1,[2];if(this.inProgress=!0,!t)return this.inProgress=!1,a(new A({code:"NOT_ENOUGH_PARAMETERS",message:"`Auth Token` is required to use the 'fetchNext()' method."})),[2];if(!e)return this.inProgress=!1,a(new A({code:"NOT_ENOUGH_PARAMETERS",message:"`Session ID` is required to use the 'fetchNext()' method."})),[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,j.getCallDetails(e,t)];case 2:return n=l.sent(),(null===(s=null==n?void 0:n.data)||void 0===s?void 0:s.error)?(this.inProgress=!1,a(new A(n.data.error)),[2]):(o=((null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.data)||[]).map(function(e){return V.callLogFromJson(e)}),r(o),this.inProgress=!1,[3,4]);case 3:return i=l.sent(),this.inProgress=!1,a(new A(i)),[3,4];case 4:return[3,6];case 5:return l.sent(),this.inProgress=!1,a(new A({code:"UNKNOWN ERROR",message:"Unknown error"})),[3,6];case 6:return[2]}})})})},t.inProgress=!1,t.debounceDeviceChange=null,t.deviceList={audioInputDevices:[],audioOutputDevices:[],videoInputDevices:[]},t.CALL_MODE=e,t.MODE=e,t.addCallEventListener=k.addCallEventListener,t.removeCallEventListener=k.removeCallEventListener,t.OngoingCallListener=C,t.CallSettingsBuilder=Q,t.CallSettings=$,t.PresenterSettingsBuilder=oe,t.PresenterSettings=ae,t.CallAppSettingsBuilder=T,t.CallAppSettings=x,t.MainVideoContainerSetting=te,t.CallLogRequestBuilder=z,t.CallLog=V,t.CallUser=F,t.CallGroup=U,t.Participant=B,t.Recording=G,t.isPresenterMode=!1,t}()})(),r})(),e.exports=t()},8502:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-call-button {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-padding-4, 16px);\n    height: fit-content;\n    width: fit-content;\n}\n\n.cometchat-call-button__voice,\n.cometchat-call-button__video {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n}\n\n.cometchat-call-button .cometchat-button {\n    width: 24px;\n    height: 24px;\n    padding: 0px;\n    gap: 0px;\n    background: var(--cometchat-background-color-01, #FFFFFF);\n}\n\n.cometchat-call-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n.cometchat-outgoing-call__backdrop {\n    display: flex;\n    position: fixed;\n    z-index: 3;\n    left: 0;\n    top: 0;\n    justify-content: center;\n    align-items: center;\n    width: 100%;\n    height: 100%;\n    overflow: auto;\n    background-color: rgb(0, 0, 0);\n    background-color: rgba(0, 0, 0, 0.4);\n}\n\n.cometchat-call-button .cometchat-button:hover {\n    background: transparent;\n}\n\n.cometchat-call-button .cometchat-button:active {\n    background: transparent;\n}",""]);const s=i},8529:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/collaborative_document_fill.221c4b61169245253c63.svg"},8560:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/right-arrow.d430f526b3249ce1e4c9.svg"},8664:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/* Styles for the image bubble container */\n.cometchat-image-bubble {\n    padding: 0;\n    background: transparent;\n    height: auto;\n    width: 100%;\n    display: flex;\n    justify-content: center;\n    max-height: 350px;\n    max-width: 250px;\n    border-radius: var(--cometchat-radius-3);\n    overflow: hidden;\n    cursor: pointer;\n}\n\n/* Styles for the image inside the bubble */\n.cometchat-image-bubble__body {\n    margin: 0;\n    border-radius: inherit;\n    height: 100%;\n    width: 100%;\n    object-fit: cover;\n\n}\n\n/* Specific styling for incoming image bubbles, giving it a background color\n   for differentiation */\n.cometchat-image-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/* Specific styling for outgoing image bubbles, using the primary color as\n   the background to distinguish it from incoming bubbles */\n.cometchat-image-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}",""]);const s=i},8677:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(571),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-menu-list {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    background: transparent;\n}\n\n.cometchat-menu-list__main-menu {\n    display: flex;\n    align-items: center;\n    gap: 12px;\n    width: 100%;\n}\n\n.cometchat-menu-list__sub-menu-list {\n    display: flex;\n    position: fixed;\n    overflow: hidden;\n    z-index: 3;\n    width: 160px;\n    padding: 0px;\n    flex-direction: column;\n    align-items: flex-start;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n}\n\n.cometchat-menu-list__main-menu-item {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    padding: 4px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n    cursor: pointer;\n}\n\n.cometchat-menu-list__sub-menu-list-item {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    padding: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    cursor: pointer;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n.cometchat-menu-list__sub-menu-list-item:hover{\n    background: var(--cometchat-white-hover);\n}\n.cometchat-menu-list__menu {\n    display: flex;\n    height: 48px;\n    width: 100%;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 12px);\n    align-self: stretch;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-menu-list__main-menu-item-icon {\n    display: flex;\n    width: 16px;\n    height: 16px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n}\n\n.cometchat-menu-list__sub-menu-list-item-icon {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask-size: contain;\n}\n\n.cometchat-menu-list__sub-menu-item-title {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    text-align: left;\n    font: var(--cometchat-font-body-regular, 400 14px Roboto);\n    line-height: 120%;\n    \n}\n\n.cometchat-menu-list__sub-menu {\n    display: flex;\n    width: 24px;\n    height: 24px;\n    justify-content: center;\n    align-items: center;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-background-color-01, #FFF);\n    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n}\n\n.cometchat-menu-list__sub-menu-icon {\n    width: 16px;\n    height: 16px;\n    flex-shrink: 0;\n    background: var(--cometchat-icon-color-secondary, #A1A1A1);\n    -webkit-mask: url(${d});\n    -webkit-mask-size: contain;\n    cursor: pointer;\n}\n\n.cometchat-menu-list__menu-wrapper {\n    display: flex;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}`,""]);const p=u},8764:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/start_chat.8f162a45823986cf2187.svg"},8781:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/cometchat_logo.ecf7992c1cc3576ceb57.svg"},8797:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/video_call_button.ad8739d880b299a43512.svg"},8806:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/arrow_back.dd796cd8deddca446613.svg"},8857:(e,t,n)=>{"use strict";n.d(t,{A:()=>ce});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4475),n.b),u=new URL(n(4491),n.b),d=new URL(n(2496),n.b),p=new URL(n(3663),n.b),h=new URL(n(7033),n.b),m=new URL(n(5300),n.b),g=new URL(n(2137),n.b),f=new URL(n(6319),n.b),_=new URL(n(46),n.b),b=new URL(n(9830),n.b),v=new URL(n(1689),n.b),y=new URL(n(7188),n.b),E=new URL(n(6363),n.b),C=new URL(n(8432),n.b),S=new URL(n(2996),n.b),w=new URL(n(9880),n.b),k=new URL(n(9357),n.b),x=new URL(n(2324),n.b),T=new URL(n(9721),n.b),A=new URL(n(3200),n.b),R=new URL(n(8357),n.b),I=new URL(n(8403),n.b),O=new URL(n(7425),n.b),N=new URL(n(7005),n.b),M=new URL(n(3214),n.b),D=new URL(n(4921),n.b),L=i()(a()),P=c()(l),j=c()(u),U=c()(d),F=c()(p),B=c()(h),G=c()(m),V=c()(g),H=c()(f),z=c()(_),Y=c()(b),q=c()(v),K=c()(y),W=c()(E),J=c()(C),Z=c()(S),$=c()(w),Q=c()(k),X=c()(x),ee=c()(T),te=c()(A),ne=c()(R),re=c()(I),ae=c()(O),oe=c()(N),ie=c()(M),se=c()(D);L.push([e.id,`\n.cometchat-conversations {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 0px;\n  flex-shrink: 0;\n  background: var(--cometchat-background-color-01, #FFF);\n  position: relative;\n}\n.cometchat-conversations .cometchat-conversations-header{\nmin-height: 64px;\nbox-sizing: border-box;\n}\n.cometchat-conversations .cometchat-list__body>div:not([class]):first-child {\n  display: none;\n}\n\n\n.cometchat-conversations .cometchat-list-item {\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  cursor: pointer;\n} \n\n.cometchat-conversations .cometchat-list-item__body {\n  padding: 0px;\n  min-height: 43px;\n}\n\n.cometchat-conversations .cometchat-list-item__trailing-view{\n  width: auto;\n  height: 40px;\n}\n\n.cometchat-conversations .cometchat-date {\n  padding: 0px;\n  font: var(--cometchat-font-caption1-regular);\n}\n\n.cometchat-conversations__subtitle-receipts {\n  height: 16px;\n  width: 16px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border: none;\n  align-self: center;  \n  background:var(--cometchat-icon-color-secondary, #A1A1A1);\n  flex-shrink: 0;\n}\n\n\n.cometchat-conversations__subtitle-receipts-sent{\n  -webkit-mask: url(${P}) center center no-repeat;\n  mask: url(${P}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-receipts-wait{\n  -webkit-mask: url(${j}) center center no-repeat;\n  mask: url(${j}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-receipts-error{\n  -webkit-mask: url(${U}) center center no-repeat;\n  mask: url(${U}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  background-color: var(--cometchat-error-color);\n}\n\n.cometchat-conversations__subtitle-receipts-delivered{\n  -webkit-mask: url(${F}) center center no-repeat;\n  mask: url(${F}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-receipts-read{\n  -webkit-mask: url(${B}) center center no-repeat;\n  mask: url(${B}) center center no-repeat;\n  background: var(--cometchat-message-seen-color,#56E8A7);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-text-wrapper {\n  display: flex;\n  gap: var(--cometchat-padding, 2px);\n  width: 100%;\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.cometchat-conversations__subtitle-text-sender {\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-body-medium);\n  font-style: normal;\n  flex-shrink:0;\n }\n\n.cometchat-conversations__subtitle-text{\n  overflow: hidden;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular);\n  width: 100%; \n}\n\n/* Inline code styling in conversation subtitle */\n.cometchat-conversations__subtitle-text code {\n  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n  font-size: 0.9em;\n  background: var(--cometchat-background-color-03);\n  color: var(--cometchat-text-color-secondary);\n  padding: 0 var(--cometchat-padding-1, 2px);\n  border-radius: var(--cometchat-radius-1, 4px);\n  border: 1px solid var(--cometchat-border-color-light);\n}\n\n/* Rich text formatting tags in conversation subtitle */\n/* !important needed because the parent uses the \`font\` shorthand which resets font-weight/style on all descendants */\n.cometchat-conversations__subtitle-text b,\n.cometchat-conversations__subtitle-text strong {\n  font-weight: 700 !important;\n}\n\n.cometchat-conversations__subtitle-text i,\n.cometchat-conversations__subtitle-text em {\n  font-style: italic !important;\n}\n\n.cometchat-conversations__subtitle-text u {\n  text-decoration: underline !important;\n}\n\n.cometchat-conversations__subtitle-text s {\n  text-decoration: line-through !important;\n}\n\n.cometchat-conversations__subtitle-icon {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  background: var(--cometchat-icon-color-secondary, #A1A1A1);\n  height: 16px;\n  width: 16px;\n  flex-shrink: 0;\n}\n\n.cometchat-conversations__subtitle-icon-incoming-audio-call{\n  -webkit-mask: url(${G}) center center no-repeat;\n  mask: url(${G}) center center no-repeat;\n  background-color: var(--cometchat-error-color,#F44649);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-incoming-video-call{\n  -webkit-mask: url(${V}) center center no-repeat;\n  mask: url(${V}) center center no-repeat;\n  background-color: var(--cometchat-error-color,#F44649);\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-outgoing-audio-call{\n  -webkit-mask: url(${H}) center center no-repeat;\n  mask: url(${H}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n\n}\n\n.cometchat-conversations__subtitle-icon-outgoing-video-call{\n  -webkit-mask: url(${z}) center center no-repeat;\n  mask: url(${z}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-icon-image{\n  -webkit-mask: url(${Y}) center center no-repeat;\n  mask: url(${Y}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-file{\n  -webkit-mask: url(${q}) center center no-repeat;\n  mask: url(${q}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-video{\n  -webkit-mask: url(${K}) center center no-repeat;\n  mask: url(${K}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-audio{\n  -webkit-mask: url(${W}) center center no-repeat;\n  mask: url(${W}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-poll{\n  -webkit-mask: url(${J}) center center no-repeat;\n  mask: url(${J}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-icon-sticker{\n  -webkit-mask: url(${Z}) center center no-repeat;\n  mask: url(${Z}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-icon-collaborative-document{\n  -webkit-mask: url(${$}) center center no-repeat;\n  mask: url(${$}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n\n.cometchat-conversations__subtitle-icon-collaborative-whiteboard{\n  -webkit-mask: url(${Q}) center center no-repeat;\n  mask: url(${Q}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n.cometchat-conversations__subtitle-icon-deleted{\n  -webkit-mask: url(${X}) center center no-repeat;\n  mask: url(${X}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-link{\n  -webkit-mask: url(${ee}) center center no-repeat;\n  mask: url(${ee}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-unsupported {\n  -webkit-mask: url(${te}) center center no-repeat;\n  mask: url(${te}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-thread {\n  -webkit-mask: url(${ne}) center center no-repeat;\n  mask: url(${ne}) center center no-repeat;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n}\n\n.cometchat-conversations__subtitle-icon-none {\n  display: none;\n}\n\n.cometchat-conversations__trailing-view {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-conversations__trailing-view-badge {\n  display: flex;\n  justify-content: flex-end;\n  gap: var(--cometchat-padding-1, 4px);\n}\n\n.cometchat-conversations__trailing-view-badge-count {\n  display: flex;\n  height: 20px;\n  padding: 0px 8px;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  border-radius: 20px;\n  background: var(--cometchat-primary-color, #6852D6);\n  overflow: hidden;\n  color: var( --cometchat-static-white, #FFF);\n  text-align: center;\n  text-overflow: ellipsis;\n  font:var(--cometchat-font-caption1-regular);\n  font-style: normal;\n}\n\n\n.cometchat-conversations__subtitle {\n  display: flex;\n  gap: var(--cometchat-padding-1, 4px);\n  width: 100%;\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.cometchat-conversations .cometchat-list-item__body-subtitle {\n  width: 100%;\n}\n\n.cometchat-conversations__list-item-active .cometchat-list-item{\n  background-color:var(--cometchat-white-pressed,#E8E8E8)\n}\n\n.cometchat-conversations__list-item-online .cometchat-list-item__status {\n  width: 14px;\n  height: 14px;\n  margin-right: -12px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background:  var(--cometchat-success-color,#09C26F);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50,#FFFFFF);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n\n.cometchat-conversations__list-item-password .cometchat-list-item__status{\n  width: 14px;\n  height: 14px;\n  margin-right: -14px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50, #FFF);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--cometchat-success-color,#09C26F);\n}\n\n.cometchat-conversations__list-item-private .cometchat-list-item__status{\n  width: 14px;\n  height: 14px;\n  margin-right: -14px;\n  position: relative;\n  top: 20px;\n  right: 15px;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  min-width: 14px;\n  border: 2px solid var(--cometchat-neutral-color-50, #FFF);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--cometchat-warning-color,#FFAB00);\n}\n\n.cometchat-conversations__list-item-password .cometchat-list-item__status-icon {\n  -webkit-mask: url(${re}) center center no-repeat;\n  mask: url(${re}) center center no-repeat;\n  height: 8px;\n  width: 8px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;  \n  background:var(--cometchat-static-white,#FFF);\n}\n\n.cometchat-conversations__list-item-private .cometchat-list-item__status-icon {\n  -webkit-mask: url(${ae}) center center no-repeat;\n  mask: url(${ae}) center center no-repeat;\n  height: 8px;\n  width: 8px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  -webkit-mask-size: contain;\n  mask-size: contain;\n  border: none;\n  align-self: center;\n  background:var(--cometchat-static-white,#FFF);\n}\n\n.cometchat-conversations__trailing-view-options-delete-backdrop {\n  background: rgba(0, 0, 0, 0.5);\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  z-index: 10;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n\n.cometchat-conversations__trailing-view-options .cometchat-menu-list__menu {\n  background-color: transparent;\n}\n\n.cometchat-conversations__trailing-view-options .cometchat-menu-list__main-menu-item{\n  background-color: transparent;\n  box-shadow: none;\n}\n\n.cometchat-conversations .cometchat-list__header {\n  border-bottom: none;\n}\n.cometchat-conversations__trailing-view-options .cometchat-menu-list__main-menu-item-icon-delete {\n -webkit-mask: url(${oe}) center center no-repeat;\n  mask: url(${oe}) center center no-repeat;\n  background: var(--cometchat-error-color,#F44649);\n  width: 24px;\n  height: 24px;\n  -webkit-mask-size: contain;\n}\n\n.cometchat-conversations__trailing-view-options .cometchat-menu-list__sub-menu-icon {\nwidth: 20px;\nheight: 20px;\nbackground: var(--cometchat-icon-color-secondary, #A1A1A1);\n}\n\n\n.cometchat-conversations__trailing-view-options .cometchat-menu-list__sub-menu {\n  display: flex;\n  width: 20px;\n  height: 20px;\n  justify-content: center;\n  align-items: center;\n  border-radius: var(--cometchat-radius-1, 4px);\n  background: var( --cometchat-background-color-04, #E8E8E8);\n}\n\n.cometchat-conversations__subtitle-text .cometchat-mentions{\n  border-radius: var(--cometchat-radius, 2px);\n  background: rgba(104, 82, 214, 0.20);\n  padding: 0px var(--cometchat-padding, 2px);\n\n}\n.cometchat-conversations__subtitle-text .cometchat-mentions-you{\n  border-radius: var(--cometchat-radius, 2px);\n  background: rgba(255, 171, 0, 0.20);\n  padding: 0px var(--cometchat-padding, 2px);\n\n}\n.cometchat-conversations__subtitle-text .cometchat-mentions > span{ \n  color: var(--cometchat-text-color-highlight,#6852D6);\n  font: var(--cometchat-font-body-regular);\n  font-weight: normal;\n  font-style: normal;\n  text-decoration: none;\n}\n.cometchat-conversations__subtitle-text .cometchat-mentions-you > span{ \n  color: var(--cometchat-warning-color,#FFAB00);\n  font: var(--cometchat-font-body-regular);\n  font-weight: normal;\n  font-style: normal;\n  text-decoration: none;\n}\n\n.cometchat-conversations__subtitle-typing {\n  overflow: hidden;\n  color: var(--cometchat-text-color-highlight, #6852D6);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-conversations .cometchat-confirm-dialog {\n  width: 320px;\n}\n\n.cometchat-conversations__empty-state-view,\n.cometchat-conversations__error-state-view {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-5, 20px);\n  justify-content: center;\n  align-items: center;\n  background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-conversations__empty-state-view-icon {\n  -webkit-mask: url(${ie}) center center no-repeat;\n  mask: url(${ie}) center center no-repeat;\n}\n\n\n.cometchat-conversations__error-state-view-icon {\n  -webkit-mask: url(${se}) center center no-repeat;\n  mask: url(${se}) center center no-repeat;\n}\n\n.cometchat-conversations__empty-state-view-body,\n.cometchat-conversations__error-state-view-body {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding, 2px);\n}\n\n.cometchat-conversations__empty-state-view-body-title,\n.cometchat-conversations__error-state-view-body-title {\n  width: 280px;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-align: center;\n  font: var(--cometchat-font-heading3-bold);\n  font-style: normal;\n}\n\n.cometchat-conversations__empty-state-view-body-description,\n.cometchat-conversations__error-state-view-body-description {\n  width: 280px;\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}\n\n.cometchat-conversations__shimmer {\n  width: 100%;\n  height: 100%;\n  background: var(--cometchat-background-color-01, #FFF);\n\n}\n.cometchat-conversations .cometchat-conversations__list-item-agent .cometchat-list-item__title-container {\n  max-width: 90%;\n}\n\n.cometchat-conversations__shimmer-item {\n  width: 100%;\n  height: 72px;\n  display: flex;\n  width: 100%;\n  min-width: 240px;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  align-items: center;\n  gap: 12px;\n}\n\n.cometchat-conversations__shimmer-item-avatar {\n  display: flex;\n  flex-shrink: 0;\n  width: 48px;\n  height: 48px;\n  border-radius: var(--cometchat-radius-max,1000px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n}\n\n .cometchat-conversations__shimmer-item-body {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-2, 8px);\n\n}\n\n.cometchat-conversations__shimmer-item-body-title-wrapper {\n  display: flex;\n  justify-content: space-between;\nwidth: 100%;\n}\n\n.cometchat-conversations__shimmer-item-body-title {\n  width: 50%;\n  height: 22px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-conversations__shimmer-item-body-subtitle {\n  width:100%;\n  height: 12px;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 1.5s infinite linear;\n\n}\n\n.cometchat-conversations__shimmer-item-body-tail {\n  width: 60px;\n  height: 22px;\n  min-height: 22px;\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(\n    --cometchat-shimmer-gradient-color,\n    linear-gradient(90deg, #e0e0e0 0%, #eee 100%)\n  );\n  animation: shimmerAnimation 10.5s infinite linear;\n}\n.cometchat-conversations .cometchat-menu-list__sub-menu-list-item .cometchat-menu-list__sub-menu-list-item-icon {\n  display: none;\n  }\n\n.cometchat-conversations .cometchat-search-bar__input{\n  cursor: pointer;\n}\n.cometchat-conversations .cometchat-list-item__body{\n  position: relative;\n}\n.cometchat-conversations .cometchat-list-item__menu-view{\n  position: absolute;\n  top: 0;\n  right: 0;\n  z-index: 1;\n}\n.cometchat-conversations .cometchat-list-item__trailing-view-hidden {\n  visibility: hidden;\n  display: initial;\n}\n@keyframes shimmerAnimation {\n    0% {\n      background-position: -468px 0;\n    }\n  \n    100% {\n      background-position: 468px 0;\n    }\n  }\n`,""]);const ce=L},8939:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(1197),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/* Container for the message header, aligning items horizontally */\n\n.cometchat-message-header {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    flex: 1 0 0;\n    align-self: stretch;\n    justify-content: space-between;\n    height: 63px;\n    background: var(--cometchat-background-color-01);\n    width: 100%;\n    overflow: hidden;\n}\n\n/* Subtitle styling within the message header */\n\n.cometchat-message-header .cometchat-message-header__subtitle {\n    overflow: hidden;\n    color: var(--cometchat-icon-color-secondary);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    font: var(--cometchat-font-caption1-regular);\n    width: 100%;\n    text-align: left;\n    height: 100%;\n    min-height: 17px;\n    display: block;\n}\n\n/* Subtitle styling for typing state in the message header */\n\n.cometchat-message-header .cometchat-message-header__subtitle.cometchat-message-header__subtitle-typing {\n    color: var(--cometchat-text-color-highlight);\n}\n\n/* Container for the title of the list item within the message header */\n\n.cometchat-message-header .cometchat-list-item__title-container {\n    gap: 0;\n    height: fit-content;\n}\n\n/* Flex container for direct children of the message header that have no class */\n\n.cometchat-message-header>div:not([class]) {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    gap: var(--cometchat-padding-2, 8px);\n    flex: 1 0 0;\n    width: 100%;\n    overflow: hidden;\n}\n\n.cometchat-message-header .cometchat-list-item__trailing-view {\n    width: auto;\n}\n\n/* Styling for the back button in the message header */\n\n.cometchat-message-header__back-button {\n    width: 24px;\n    height: 24px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    -webkit-mask: url(${d});\n    -webkit-mask-size: contain;\n    background: var(--cometchat-icon-color-primary);\n    cursor: pointer;\n}\n\n.cometchat-message-header .cometchat-message-header__conversation-summary-button .cometchat-button {\n    background: transparent;\n    border: none;\n    justify-content: center;\n    align-items: center;\n    height: fit-content;\n    width: fit-content;\n    padding: 0;\n}\n\n.cometchat-message-header .cometchat-message-header__conversation-summary-button .cometchat-button .cometchat-button__icon {\n    height: 24px;\n    width: 24px;\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n/* Styling for the search button in the message header */\n.cometchat-message-header .cometchat-message-header__search-button .cometchat-button {\n    background: transparent;\n    border: none;\n    justify-content: center;\n    align-items: center;\n    height: fit-content;\n    width: fit-content;\n    padding: 0;\n}\n\n.cometchat-message-header .cometchat-message-header__search-button  .cometchat-button__icon,.cometchat-message-header .cometchat-menu-list__sub-menu-icon {\n    height: 24px;\n    width: 24px;\n    background: var(--cometchat-icon-color-primary, #141414);\n}\n\n/* Styling for the menu in the message header */\n.cometchat-message-header .cometchat-message-header__menu {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    height: fit-content;\n    width: fit-content;\n}\n\n.cometchat-message-header .cometchat-message-header__menu .cometchat-button {\n    background: transparent;\n    border: none;\n    justify-content: center;\n    align-items: center;\n    height: 24px;\n    width: 24px;\n    padding: 0;\n}\n\n.cometchat-message-header .cometchat-menu-list__sub-menu-list {\n    width: max-content;\n}\n/* List item container within the message header */\n\n.cometchat-message-header__listitem {\n    height: 100%;\n    width: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    overflow: hidden;\n}\n\n/* Menu container within the message header, aligned to the right */\n\n.cometchat-message-header__auxiliary-button-view {\n    width: fit-content;\n    display: flex;\n    gap: var(--cometchat-padding-4, 16px);\n    align-items: center;\n    justify-content: flex-end;\n    gap: 16px;\n}\n\n/* Removes padding for list items within the message header */\n\n.cometchat-message-header .cometchat-list-item {\n    padding: 0;\n\n}\n\n.cometchat-message-header .cometchat-list-item:hover {\n    background: transparent;\n    cursor: default;\n}\n\n/* Removes padding for the body of the list item within the message header */\n\n.cometchat-message-header .cometchat-list-item__body {\n    padding: 0;\n}\n\n/* Title styling within the body of the list item in the message header */\n\n.cometchat-message-header .cometchat-list-item .cometchat-list-item__body-title {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    width: 100%;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n}\n\n/* Avatar styling in the message header and shared avatar styling */\n\n.cometchat-message-header .cometchat-list-item .cometchat-avatar {\n    display: flex;\n    width: 40px;\n    height: 40px;\n    justify-content: center;\n    align-items: center;\n    flex-shrink: 0;\n    border-radius: var(--cometchat-radius-max);\n}\n\n.cometchat-message-header .cometchat-list-item .cometchat-list-item__leading-view {\n    height: 40px;\n    width: 40px;\n    padding: 0;\n}\n\n.cometchat-message-header__listitem>.cometchat {\n    height: 100%;\n    width: 100%;\n}\n\n.cometchat-message-header .cometchat-button__icon:hover {\n    background: var(--cometchat-primary-color);\n}\n\n\n/* Media query for larger screens to hide the back button */\n\n@media (max-width: 768px) {\n    .cometchat-message-header__back-button {\n        display: block;\n    }\n\n    .cometchat-message-header .cometchat-list-item .cometchat-list-item__body-title {\n        display: initial;\n    }\n}`,""]);const p=u},9066:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/search_message_icon.dce7250b5966716057a8.svg"},9226:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/search.61b1c747aa872b5ab4aa.svg"},9282:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,"/**\n * CometChat Markdown Formatter Styles\n * \n * Styles for rendering markdown in message bubbles.\n * Uses native HTML tags for better compatibility.\n */\n\n/* Text bubble formatting styles */\n.cometchat-text-bubble__body-text b,\n.cometchat-text-bubble__body-text strong {\n  font-weight: var(--cometchat-font-weight-bold, 700);\n}\n\n.cometchat-text-bubble__body-text i,\n.cometchat-text-bubble__body-text em {\n  font-style: italic;\n}\n\n.cometchat-text-bubble__body-text s,\n.cometchat-text-bubble__body-text strike,\n.cometchat-text-bubble__body-text del {\n  text-decoration: line-through;\n}\n\n.cometchat-text-bubble__body-text u {\n  text-decoration: underline;\n}\n\n/* Inline code */\n.cometchat-text-bubble__body-text code {\n  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n  font-size: 14px;\n  background: var(--cometchat-background-color-03);\n  color: var(--cometchat-text-color-highlight);\n  padding: 0 var(--cometchat-padding);\n  border-radius: var(--cometchat-radius);\n  border: 1px solid var(--cometchat-border-color-default);\n  white-space: pre-wrap;\n  word-break: break-word;\n}\n\n/* Inline code for incoming messages */\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text code {\n  color: var(--cometchat-text-color-highlight);\n  background: var(--cometchat-background-color-03);\n  border: 1px solid var(--cometchat-border-color-dark);\n}\n\n/* Inline code for outgoing messages */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text code {\n  color: var(--cometchat-static-white);\n  background: rgba(255, 255, 255, 0.20);\n  border: 1px solid rgba(245, 245, 245, 0.10);\n}\n\n/* Code block */\n.cometchat-text-bubble__body-text pre {\n  display: block;\n  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n  font-size: 14px;\n  background: var(--cometchat-background-color-02);\n  color: var(--cometchat-text-color-primary);\n  border: 1px solid var(--cometchat-border-color-light);\n  padding: var(--cometchat-padding-2) var(--cometchat-padding-3);\n  border-radius: var(--cometchat-radius-2);\n  margin: 0;\n  white-space: pre-wrap;\n  word-break: break-word;\n  overflow-x: auto;\n}\n\n.cometchat-text-bubble__body-text pre code,\n.cometchat-text-bubble-incoming .cometchat-text-bubble__body-text pre code,\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre code {\n  background: transparent;\n  color: inherit;\n  padding: 0;\n  border: none;\n  border-radius: 0;\n  display: inline;\n  font-family: inherit;\n}\n\n/* Blockquote */\n.cometchat-text-bubble__body-text blockquote {\n  display: block;\n  border-left: 3px solid var(--cometchat-primary-color, #3399ff);\n  padding: var(--cometchat-padding-2);\n  border-radius: var(--cometchat-radius-1);\n  margin: var(--cometchat-margin, 4px) 0;\n  color: var(--cometchat-text-color-secondary, #727272);\n  min-width: 100px;\n}\n\n/* Links */\n.cometchat-text-bubble__body-text a {\n  color: var(--cometchat-primary-color, #3399ff);\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n/* Outgoing message links should be white */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text a {\n  color: var(--cometchat-static-white) !important;\n}\n\n/* Links inside code/code blocks for outgoing messages */\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text code a,\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre a,\n.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre code a {\n  color: var(--cometchat-static-white) !important;\n}\n\n.cometchat-text-bubble__body-text a:hover {\n  text-decoration: none;\n}\n\n/* List items */\n.cometchat-text-bubble__body-text li {\n  display: list-item;\n  margin-left: var(--cometchat-margin-4, 16px);\n}\n\n.cometchat-text-bubble__body-text ol,\n.cometchat-text-bubble__body-text ul {\n  margin: var(--cometchat-margin, 4px) 0;\n  padding-left: var(--cometchat-padding-3, 12px);\n}\n\n/* Nested list styling progression */\n.cometchat-text-bubble__body-text ol { list-style-type: decimal; }\n.cometchat-text-bubble__body-text ol ol { list-style-type: lower-alpha; }\n.cometchat-text-bubble__body-text ol ol ol { list-style-type: lower-roman; }\n.cometchat-text-bubble__body-text ul { list-style-type: disc; }\n.cometchat-text-bubble__body-text ul ul { list-style-type: circle; }\n.cometchat-text-bubble__body-text ul ul ul { list-style-type: square; }\n.cometchat-text-bubble__body-text li > ol,\n.cometchat-text-bubble__body-text li > ul {\n  margin-top: 0;\n  margin-bottom: 0;\n}\n",""]);const s=i},9357:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/collaborative_whiteboard.25e29644e4591c341125.svg"},9415:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4842),n.b),u=i()(a()),d=c()(l);u.push([e.id,`/**\nRepresents the overall container for the call bubble component. It is a flexible container that displays its content in a column format and aligns its items centrally.\n*/\n.cometchat-call-bubble {\n    display: flex;\n    max-width: 240px;\n    width: 240px;\n    flex-direction: column;\n    align-items: center;\n    gap: 0px;\n    background: var(--cometchat-primary-color);\n    border-radius: var(--cometchat-radius-3, 12px);\n    background: inherit;\n    box-sizing: border-box;\n    padding: 0;\n    margin: 0;\n}\n\n/**\nDefines the main body of the call bubble,\norganizing its child elements in a flexible layout and aligning them appropriately.\n*/\n.cometchat-call-bubble__body {\n    display: flex;\n    padding: var(--cometchat-padding-3, 12px);\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n}\n\n/**\nRepresents the title area of the call bubble,\nensuring the text is constrained to a single line and truncates overflowed text with ellipsis.\n*/\n.cometchat-call-bubble__body-title {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    align-self: stretch;\n    overflow: hidden;\n\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-medium);\n    font-style: normal;\n}\n\n/**\nSpecifies the icon within the call bubble,\ntypically an SVG used to visually represent a type of call (e.g., video or voice).\n*/\n.cometchat-call-bubble__icon-wrapper-icon {\n    mask: url(${d}) center center no-repeat;\n    -webkit-mask: url(${d}) center center no-repeat;\n    height: 20px;\n    width: 20px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: var(--cometchat-primary-color);\n    -webkit-mask-size: contain;\n    mask-size: contain;\n}\n\n/**\nActs as the wrapper for the call bubble icon,\nsetting its size and background with a rounded appearance.\n*/\n.cometchat-call-bubble__icon-wrapper {\n    display: flex;\n    width: 40px;\n    border-radius: var(--cometchat-radius-max, 1000px);\n    background: var(--cometchat-static-white);\n    height: 40px;\n\n    padding: var(--cometchat-padding-2);\n    justify-content: center;\n    align-items: center;\n}\n\n/**\nRepresents the subtitle text within the call bubble,\nensuring the text is truncated with ellipsis to fit within the given space.\n*/\n.cometchat-call-bubble__body-content-subtitle {\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n    align-self: stretch;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-caption1-regular);\n    font-style: normal;\n}\n\n/**\nDefines the styling of the subtitle date within the body content of the call bubble\n*/\n.cometchat-call-bubble__body-content-subtitle .cometchat-date {\n    padding: 0px;\n    color: inherit;\n    font: inherit;\n  }\n\n/**\nProvides additional content styling for the body of the call bubble, aligning the content text to the left.\n*/\n.cometchat-call-bubble__body-content {\n    text-align: left;\n}\n\n\n/**\n Defines the button at the bottom of the call bubble,\n making it fully responsive in width and controlling its appearance with inherited styles.\n*/\n.cometchat-call-bubble__button {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    border: none;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-2, 8px);\n    align-self: stretch;\n    width: 100%;\n    background: inherit;\n    border-radius: 0px 0px var(--cometchat-radius-radius_2, 8px) var(--cometchat-radius-radius_2, 8px);\n    font: var(--cometchat-font-body-medium);\n    font-style: normal;\n    cursor: pointer;\n}\n\n/**\nRepresents the visual styling for an incoming call bubble,\nproviding a background color specific to incoming calls.\n*/\n.cometchat-call-bubble-incoming {\n    background: var(--cometchat-neutral-color-300);\n}\n\n/**\nRepresents the visual styling for an outgoing call bubble,\nproviding a background color specific to outgoing calls.\n*/\n.cometchat-call-bubble-outgoing {\n    background: var(--cometchat-primary-color);\n}\n\n/**\nAdjusts the subtitle text color within an incoming call bubble.\n*/\n.cometchat-call-bubble-incoming .cometchat-call-bubble__body-content-subtitle {\n    color: var(--cometchat-neutral-color-600);\n}\n\n.cometchat-call-bubble__body-content-title {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-medium);\n}\n\n/**\n Adjusts the title text color for the body content within an incoming call bubble.\n*/\n.cometchat-call-bubble-incoming .cometchat-call-bubble__body-content-title {\n    color: var(--cometchat-neutral-color-900);\n}\n\n/**\nAdjusts the subtitle text color within an outgoing call bubble.\n*/\n.cometchat-call-bubble-outgoing .cometchat-call-bubble__body-content-subtitle {\n    color: var(--cometchat-static-white);\n}\n\n/**\n Adjusts the title text color for the body content within an outgoing call bubble.\n*/\n.cometchat-call-bubble-outgoing .cometchat-call-bubble__body-content-title {\n    color: var(--cometchat-static-white);\n}\n\n/**\nDefines the styling of the button for incoming call bubbles,\nadding a border and setting the button text color.\n*/\n.cometchat-call-bubble-incoming .cometchat-call-bubble__button {\n    border-top: 1px solid var(--cometchat-border-color-dark);\n    color: var(--cometchat-neutral-color-900);\n}\n\n/**\nDefines the styling of the button for outgoing call bubbles,\nincluding a top border and button text color.\n*/\n.cometchat-call-bubble-outgoing .cometchat-call-bubble__button {\n    border-top: 1px solid var(--cometchat-extended-primary-color-800);\n    color: var(--cometchat-static-white);\n}`,""]);const p=u},9502:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(8806),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-call-log-details {\n    display: flex;\n    width: 100%;\n    height: 100%;\n    flex-direction: column;\n    align-items: flex-start;\n    background: var(--cometchat-background-color-01, #FFF);\n}\n\n.cometchat-call-log-details__header {\n    display: flex;\n    height: 64px;\n    min-height: 64px;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);\n    align-items: center;\n    gap: var(--cometchat-padding-3, 12px);\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading2-bold);\n}\n\n.cometchat-call-log-details__call-log-item .cometchat-list-item:hover {\n    background: transparent;\n    cursor: default;\n}\n\n.cometchat-call-log-details__header-text {\n    overflow: hidden;\n    color: var(--cometchat-text-color-primary, #141414);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-heading2-bold, 700 20px Roboto);\n}\n\n.cometchat-call-log-details .cometchat-message-header {\n    height: fit-content;\n    padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-5, 20px) var(--cometchat-padding-4, 16px);\n}\n\n.cometchat-call-log-details .cometchat-call-log-details__subtitle {\n    overflow: hidden;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-overflow: ellipsis;\n    font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-call-log-details .cometchat-call-log-details__call-log-item .cometchat-list-item__tail-view {\n    height: fit-content;\n}\n\n.cometchat-call-log-details .cometchat-call-button {\n    gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-call-log-details .cometchat-call-button__voice,\n.cometchat-call-log-details .cometchat-call-button__video {\n    display: flex;\n    padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n    height: 100%;\n    width: 100%;\n    justify-content: center;\n    align-items: center;\n    gap: 10px;\n    border-radius: var(--cometchat-radius-2, 8px);\n    border: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n}\n\n.cometchat-call-log-details .cometchat-call-button .cometchat-button__icon {\n    background: var(--cometchat-icon-color-highlight);\n}\n\n.cometchat-call-log-details__call-log-item {\n    width: 100%;\n}\n\n.cometchat-call-log-details__call-log-item .cometchat-list-item {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    gap: var(--cometchat-padding-5, 20px);\n    flex: 1 0 0;\n}\n\n.cometchat-call-log-details .cometchat-message-header .cometchat-list-item .cometchat-list-item__leading-view,\n.cometchat-call-log-details__call-log-item .cometchat-avatar,\n.cometchat-call-log-details__call-log-item .cometchat-avatar__image {\n    height: 60px;\n    width: 60px;\n}\n\n.cometchat-outgoing-call__avatar .cometchat-avatar,\n.cometchat-outgoing-call__avatar .cometchat-avatar__image {\n    width: 160px;\n    height: 160px;\n}\n\n.cometchat-call-log-details__call-log-item .cometchat-avatar__text {\n    font: var(--cometchat-font-heading1-bold, 700 24px Roboto);\n}\n\n.cometchat-call-log-details__tabs {\n    display: flex;\n    align-items: center;\n    align-self: stretch;\n    border-bottom: 1px solid var(--cometchat-border-color-default, #E8E8E8);\n}\n\n.cometchat-call-log-details__tabs-tab-item {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-2, 8px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex: 1 0 0;\n    border-radius: 4px 4px 0px 0px;\n    color: var(--cometchat-text-color-secondary, #727272);\n    text-align: center;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n    cursor: pointer;\n}\n\n.cometchat-call-log-details__tabs-tab-item-active {\n    display: flex;\n    height: 40px;\n    padding: var(--cometchat-padding-2, 8px);\n    flex-direction: column;\n    align-items: center;\n    gap: var(--cometchat-padding-1, 4px);\n    flex: 1 0 0;\n    border-radius: 4px 4px 0px 0px;\n    border-bottom: 2px solid var(--cometchat-primary-color, #6852D6);\n    color: var(--cometchat-text-color-highlight, #6852D6);\n    text-align: center;\n    font: var(--cometchat-font-heading4-medium, 500 16px Roboto);\n}\n\n.cometchat-call-log-details__header-back {\n    width: 24px;\n    height: 24px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    -webkit-mask: url(${d});\n    -webkit-mask-size: contain;\n    background: var(--cometchat-icon-color-primary);\n    cursor: pointer;\n}\n\n@media (max-width: 768px) {\n    .cometchat-call-log-details {\n        width: 100vw;\n        position: fixed;\n        top: 0px;\n        left: 0px;\n        z-index: 3;\n    }\n\n    .cometchat-call-log-details__header-back {\n        display: block;\n    }\n\n    .cometchat-call-log-details .cometchat-message-header__back-button {\n        display: none;\n    }\n\n    .cometchat-call-log-details .cometchat-call-button__voice,\n    .cometchat-call-log-details .cometchat-call-button__video {\n        padding: var(--cometchat-padding-2, 8px);\n    }\n}\n\n@media (min-width: 769px) {\n    .cometchat-call-log-details__header-back {\n        display: none;\n    }\n}\n\n.cometchat-call-log-details .cometchat-call-log-details__call-log-item .cometchat-list-item__trailing-view {\n    height: fit-content;\n}`,""]);const p=u},9614:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".cometchat-flag-message-dialog {\n  max-width: 400px;\n  width: 100%;\n  height: fit-content;\n  max-height: 100%;\n  flex-shrink: 0;\n  border-radius: var(--cometchat-radius-5);\n  border: 1px solid var(--cometchat-border-color-light);\n  background: var(--cometchat-background-color-01);\n  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n  overflow: hidden;\n}\n\n.cometchat-flag-message-dialog button {\n  cursor: pointer;\n}\n\n.cometchat-flag-message-dialog__header {\n  padding: var(--cometchat-padding-4) var(--cometchat-padding-4);\n  border-bottom: 1px solid var(--cometchat-border-color-light);\n  border-left: 1px solid var(--cometchat-border-color-light);\n  background: var(--cometchat-background-color-01);\n}\n\n.cometchat-flag-message-dialog__header-main {\n  display: flex;\n  margin-bottom: var(--cometchat-padding-2);\n  align-items: center;\n  gap: var(--cometchat-padding-3);\n  align-self: stretch;\n}\n\n.cometchat-flag-message-dialog__body {\n  width: calc(100% - var(--cometchat-padding-5) * 2);\n  margin-inline: auto;\n  display: flex;\n  flex-direction: column;\n}\n\n.cometchat-flag-message-dialog__header-title {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  gap: 0px;\n  flex: 1 0 0;\n  overflow: hidden;\n  color: var(--cometchat-text-color-primary);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-heading2-medium);\n}\n\n.cometchat-flag-message-dialog__header-subtitle {\n  text-align: left;\n  overflow: hidden;\n  color: var(--cometchat-neutral-color-600);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-flag-message-dialog__reasons {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: flex-start;\n  gap: 8px;\n  padding: var(--cometchat-padding-4) 0 0 0;\n}\n\n.cometchat-flag-message-dialog__reason {\n  color: var(--cometchat-text-color-primary);\n  background-color: var(--cometchat-background-color-02);\n  border: 1px solid var(--cometchat-border-color-default);\n  border-radius: 16px;\n  cursor: pointer;\n  font: var(--cometchat-font-body-regular);\n  padding: 4px 12px;\n}\n\n.cometchat-flag-message-dialog__reason:hover {\n  background-color: var(--cometchat-neutral-color-200);\n}\n\n.cometchat-flag-message-dialog__reasons .cometchat-flag-message-dialog__reason-selected {\n  color: var(--cometchat-text-color-highlight);\n  background-color: var(--cometchat-extended-primary-color-100);\n  border-color: var(--cometchat-extended-primary-color-200);\n}\n\n.cometchat-flag-message-dialog__remark {\n  display: flex;\n  flex-direction: column;\n  gap: var(--cometchat-padding-2);\n  align-items: flex-start;\n  margin-top: var(--cometchat-margin-6)\n}\n\n.cometchat-flag-message-dialog__remark-label {\n  text-align: left;\n  font: var(--cometchat-font-body-medium);\n  color: var(--cometchat-text-color-primary);\n}\n\n.cometchat-flag-message-dialog__remark-label span {\n  color: var(--cometchat-text-color-tertiary);\n  font: var(--cometchat-font-body-regular);\n}\n\n.cometchat-flag-message-dialog__remark-input {\n  resize: none;\n  width: 100%;\n  overflow: auto;\n  height: 84px;\n  min-height: 84px;\n  max-height: 84px;\n  border: 1px solid var(--cometchat-border-color-light);\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-background-color-02);\n  color: var(--cometchat-text-color-primary);\n  font: var(--cometchat-font-body-regular);\n  padding: var(--cometchat-padding-2);\n  caret-color: var(--cometchat-text-color-primary);\n}\n\n.cometchat-flag-message-dialog__remark-input:focus {\n  outline: none;\n}\n\n.cometchat-flag-message-dialog__remark-input::placeholder {\n  color: var(--cometchat-text-color-tertiary);\n}\n\n.cometchat-flag-message-dialog__error{\n  text-align: left;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  font: var(--cometchat-font-body-regular);\n  color: var(--cometchat-error-color);\n  padding: var(--cometchat-padding-2) 0 var(--cometchat-padding-4) 0;\n}\n\n.cometchat-flag-message-dialog__actions {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  gap: var(--cometchat-padding-3);\n  padding: 0 0 var(--cometchat-padding-5) 0;\n}\n\n.cometchat-flag-message-dialog__actions-item{\n  width: 100%;\n}\n\n.cometchat-flag-message-dialog__actions .cometchat:has(> .cometchat-button) {\n  width: 100%;\n  height: 40px;\n  border: none;\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-button {\n  width: 100%;\n  border-radius: var(--cometchat-radius-2, 8px);\n  font: var(--cometchat-font-body-medium);\n}\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-cancel .cometchat-button {\n  background-color: var(--cometchat-background-color-01);\n  border: 1px solid var(--cometchat-border-color-dark);\n}\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-cancel .cometchat-button__text {\n  color: var(--cometchat-text-color-primary);\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button__text {\n  color: var(--cometchat-static-white);\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button:disabled{\n  background-color: var(--cometchat-neutral-color-300);\n  border-color: var(--cometchat-neutral-color-300);\n  cursor: not-allowed;\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button:has(.cometchat-button__loading-view) {\n  background: var(--cometchat-primary-button-background, #6852D6);\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button:disabled .cometchat-button__text{\n  color: var(--cometchat-neutral-color-50);\n}\n\n.cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button:disabled .cometchat-button__icon, .cometchat-flag-message-dialog__actions .cometchat-flag-message-dialog__actions-submit .cometchat-button:disabled .cometchat-button__text{\n  cursor: not-allowed;\n}\n\n.cometchat-flag-message-dialog__header-close .cometchat-button {\n  height: 24px;\n  width: 24px;\n  padding: 0px;\n  gap: 0px;\n  background: transparent;\n}\n\n@media (max-width: 420px) {\n  .cometchat-flag-message-dialog {\n    width: 95%;\n  }\n}",""]);const s=i},9643:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/recording_resume.3d513ca8193f9334828b.svg"},9646:(e,t,n)=>{"use strict";e.exports=n.p+"assets/Roboto-BoldItalic.3fcf599c8a6c05a2c712.ttf"},9678:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(6246),n.b),u=i()(a()),d=c()(l);u.push([e.id,`.cometchat-conversation-summary__wrapper {\n  width: 100%;\n  height: 100%;\n  padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-conversation-summary {\n  display: flex;\n  height: 100%;\n  width: 100%;\n  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);\n  flex-direction: column;\n  align-items: flex-start;\n  border: 1px solid var(--cometchat-border-color-light, #F5F5F5);\n  border-radius: var(--cometchat-radius-2, 8px);\n  background: var(--cometchat-background-color-01, #FFF);\n  box-shadow: 0px 12px 16px -4px rgb(16 24 40 / 2%), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-conversation-summary__header {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  align-self: stretch;\n}\n\n.cometchat-conversation-summary__header-title {\n  overflow: hidden;\n  color: var(--cometchat-text-color-primary, #141414);\n  text-overflow: ellipsis;\n  font: var(--cometchat-font-body-medium);\n  font-style: normal;\n}\n\n.cometchat-conversation-summary__header-close-button {\n  mask: url(${d}) center center no-repeat;\n  -webkit-mask: url(${d}) center center no-repeat;\n  background-color: var(--cometchat-icon-color-primary, #141414);\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n}\n\n.cometchat-conversation-summary__body {\n  width: 100%;\n  flex: 1 0 0;\n  color: var(--cometchat-text-color-primary, #141414);\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n  text-align: left;\n}\n\n.cometchat-conversation-summary__shimmer {\n  display: flex;\n  width: 100%;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  gap: var(--cometchat-padding-2, 8px);\n}\n\n.cometchat-conversation-summary__shimmer-item {\n  width: 100%;\n  display: flex;\n  height: 14px;\n  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);\n  align-items: center;\n  align-content: center;\n  gap: 4px var(--cometchat-padding-1, 4px);\n  align-self: stretch;\n  flex-wrap: wrap;\n  border-radius: var(--cometchat-radius-max, 1000px);\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  background-size: 800px 104px;\n  /* Increase background size for smooth animation */\n  animation: shimmerAnimation 1.5s infinite linear;\n  /* Add animation properties */\n}\n\n.cometchat-conversation-summary__shimmer .cometchat-conversation-summary__shimmer-item:last-child {\n  width: 70%;\n}\n\n@keyframes shimmerAnimation {\n  0% {\n    background-position: -468px 0;\n  }\n\n  100% {\n    background-position: 468px 0;\n  }\n}\n\n.cometchat-conversation-summary__shimmer-item {\n  background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));\n  background-size: 800px 104px;\n  /* Consistent background size for animation */\n  animation: shimmerAnimation 1.5s infinite linear;\n  /* Apply shimmer animation */\n}\n\n\n.cometchat-conversation-summary__error-view,\n.cometchat-conversation-summary__empty-view {\n  color: var(--cometchat-text-color-secondary, #727272);\n  text-align: center;\n  font: var(--cometchat-font-body-regular);\n  font-style: normal;\n}`,""]);const p=u},9721:(e,t,n)=>{"use strict";e.exports=n.p+"assets/svg/conversations_link.cfde67f9dcdc9ad112cc.svg"},9779:e=>{window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AI_ASSISTANT_EVENTS=t.ModerationStatus=t.AttachmentType=t.AI_SLUG_ENABLED=t.AI_SLUG_ACCESSIBLE=t.AI_FEATURE_ENABLED=t.AI_FEATURE_ACCESSIBLE=t.ADDITIONAL_CONSTANTS=t.ONLINE_MEMBER_COUNT_API=t.JWT_API=t.ProsodyApiErrors=t.PROSODY_API=t.API_ERROR_CODES=t.REACTION_ACTION=t.SESSION_STORE=t.CONNECTION_STATUS=t.COMMON_UTILITY_CONSTANTS=t.APP_SETTINGS=t.PresenceConstants=t.PresenceConstatnts=t.FeatureRestrictionErrors=t.MessageErrors=t.AIFeatureError=t.ExtensionErrors=t.AIErrors=t.ConversationErrors=t.GroupErrors=t.UserErrors=t.ReceiptErrors=t.GENERAL_ERROR=t.PARAMETER_ERROR=t.CALL_ERROR=t.Errors=t.UserConstants=t.GroupMemersConstans=t.GroupConstants=t.CallConstants=t.BlockedUsersConstants=t.ActionConstatnts=t.TYPING_NOTIFICATION=t.GoalType=t.MessageCategory=t.ATTACHMENTS_CONSTANTS=t.MessageConstatnts=t.READ_RECEIPTS=t.DELIVERY_RECEIPTS=t.ResponseConstants=t.LOCAL_STORE=t.ANALYTICS=t.WS=t.SDKHeader=t.APPINFO=t.GROUP_MEMBER_SCOPE=t.StorageMode=t.GroupMemberScope=t.GROUP_TYPE=t.GroupType=t.CALLING_COMPONENT_VERSION=t.DEFAULT_VALUES=t.constants=void 0;var r,a,o,i,s,c,l,u,d=n(2);t.constants={DEFAULT_STORE:"cometchat",MSG_VER_PRE:"store-ver-pre",MSG_VER_POST:"store-ver-post"},t.DEFAULT_VALUES={ZERO:0,MSGS_LIMIT:30,REACTIONS_LIMIT:10,MSGS_MAX_LIMIT:100,USERS_LIMIT:30,USERS_MAX_LIMIT:100,GROUPS_LIMIT:30,GROUPS_MAX_LIMIT:100,CONVERSATION_MAX_LIMIT:50,CALL_TIMEOUT:45,DEFAULT_MSG_ID:0,DEFAULT_MAX_TYPING_INDICATOR_LIMIT:5,REGION_DEFAULT:"eu",REGION_DEFAULT_EU:"eu",REGION_DEFAULT_US:"us",REGION_DEFAULT_IN:"in",REGION_DEFAULT_PRIVATE:"private",REACTIONS_MAX_LIMIT:20},t.CALLING_COMPONENT_VERSION=5,(r=t.GroupType||(t.GroupType={})).Public="public",r.Private="private",r.Protected="protected",r.Password="password",t.GROUP_TYPE={PUBLIC:"public",PRIVATE:"private",PROTECTED:"password",PASSWORD:"password"},(a=t.GroupMemberScope||(t.GroupMemberScope={})).Admin="admin",a.Moderator="moderator",a.Member="member",(o=t.StorageMode||(t.StorageMode={})).LOCAL="local",o.SESSION="session",t.GROUP_MEMBER_SCOPE={ADMIN:"admin",MODERATOR:"moderator",PARTICIPANT:"participant"},t.APPINFO={platform:"WEB",sdkVersion:"v4.1.9",apiVersion:"v3.0",sdkVersionWithUnderScore:"4_1_9"},t.SDKHeader={platform:"javascript",sdkVersion:"4.1.9",sdk:"%s@%s"},t.WS={CONVERSATION:{TYPE:{CHAT:"chat",GROUP_CHAT:"groupchat"}}},t.ANALYTICS={analyticsHost:"metrics-%s.cometchat.io",analyticsVersion:"v1"},t.LOCAL_STORE={COMMON_STORE:"common_store",MESSAGE_LISTENERS_LIST:"message_listeners_list",USERS_STORE:"users_store",MESSAGES_STORE:"messages_store",KEYS_STORE:"keys_store",STORE_STRING:"%s:%s",KEY_STRING:"%s/%s",KEY_USER:"user",KEY_APP_SETTINGS:"app_settings",KEY_APP_ID:"appId",KEY_DEVICE_ID:"deviceId",KEY_SESSION_ID:"sessionId",KEY_MESSAGE_LISTENER_LIST:"all"},t.ResponseConstants={RESPONSE_KEYS:{KEY_DATA:"data",KEY_META:"meta",KEY_CURSOR:"cursor",KEY_NEXT:"next",KEY_PREVIOUS:"previous",KEY_ACTION:"action",KEY_MESSAGE:"message",KEY_ERROR:"error",KEY_ERROR_DETAILS:"details",KEY_ERROR_CODE:"code",KEY_ERROR_MESSAGE:"message",KEY_AUTH_TOKEN:"authToken",KEY_WS_CHANNEL:"wsChannel",KEY_IDENTITY:"identity",KEY_SERVICE:"identity",KEY_ENTITIES:"entities",KEY_REACTIONS:"reactions",KEY_ENTITITY:"entity",KEY_ENTITYTYPE:"entityType",KEY_ATTACHMENTS:"attachments",CODE_REQUEST_OK:200,CODE_BAD_REQUEST:401,UNREAD_UNDELIVERED_KEYS:{ENTITY:"entity",ENTITY_TYPE:"entityType",ENTITY_Id:"entityId",COUNT:"count"},GROUP_MEMBERS_RESPONSE:{SUCCESS:"success",ERROR:"error",MESSAGE:"message"},KEY_ENTITY_TYPE:{USER:"user",GROUP:"group"},KEY_CONVERSATION_STARTER:"conversation-starter",KEY_SMART_REPLIES:"smart-replies",KEY_CONVERSATION_SUMMARY:"conversation-summary",KEY_BOT_REPLY:"bot-reply"}},t.DELIVERY_RECEIPTS={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",RECEIVED:"delivered",DELIVERED_AT:"deliveredAt",ID:"id",TIME:"time",DELIVERED_TO_ME_AT:"deliveredToMeAt"},t.READ_RECEIPTS={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"type",RECIPIENT:"recipient",MESSAGE_ID:"messageId",READ:"read",READ_AT:"readAt",ID:"id",TIME:"time",READ_BY_ME_AT:"readByMeAt"},t.MessageConstatnts={TYPE:{TEXT:"text",MEDIA:"media",IMAGE:"image",VIDEO:"video",AUDIO:"audio",FILE:"file",CUSTOM:"custom",ASSISTANT:"assistant",TOOL_RESULT:"tool-result",TOOL_ARGUMENTS:"tool-arguments"},CATEGORY:{MESSAGE:"message",ACTION:"action",CALL:"call",CUSTOM:"custom",INTERACTIVE:"interactive",AGENTIC:"agentic"},RECEIVER_TYPE:{USER:"user",GROUP:"group"},KEYS:{ATTATCHMENT:"attatchment",ATTATCHMENTS:"attachments",ACTION:"action",TYPE:"type",DATA:"data",ID:"id",MUID:"muid",SENDER:"sender",RECEIVER:"receiver",RECEIVER_ID:"receiverId",CATEGORY:"category",RECEIVER_TYPE:"receiverType",SENT_AT:"sentAt",STATUS:"status",TEXT:"text",URL:"url",METADATA:"metadata",RECEIPTS:"receipts",MY_RECEIPTS:"myReceipt",CUSTOM_DATA:"customData",CUSTOM_SUB_TYPE:"subType",RESOURCE:"resource",MENTIONS:"mentions",INTERACTIVE_DATA:"interactiveData",INTERACTION_GOAL:"interactionGoal",INTERACTIONS:"interactions",ALLOW_SENDER_INTERACTION:"allowSenderInteraction",ELEMENT_ID:"elementId",INTERACTED_AT:"interactedAt",ELEMENT_IDS:"elementIds",RUN_ID:"runId",THREAD_ID:"threadId",TOOL_CALLS:"toolCalls",FUNCTION:"function",NAME:"name",ARGUMENTS:"arguments",TOOL_CALL_ID:"toolCallId",DISPLAY_NAME:"displayName",EXECUTION_TEXT:"executionText"},KNOWN_MEDIA_TYPE:{IMAGE:[],VIDEO:[],AUDIO:[],FILE:[]},PAGINATION:{AFFIX:{APPEND:"append",PREPEND:"prepend"},CURSOR_FILEDS:{ID:"id",SENT_AT:"sentAt"},CURSOR_AFFIX_DEFAULT:"prepend",CURSOR_FIELD_DEFAULT:"sentAt",KEYS:{PER_PAGE:"per_page",CURSOR_AFFIX:"cursorAffix",AFFIX:"affix",CURSOR_FIELD:"cursorField",CURSOR_VALUE:"cursorValue",UID:"uid",SENT_AT:"sentAt",ID:"id",CURRENT_PAGE:"page",UNREAD:"unread",HIDE_MESSAGES_FROM_BLOCKED_USER:"hideMessagesFromBlockedUsers",SEARCH_KEY:"searchKey",ONLY_UPDATES:"onlyUpdates",UPDATED_AT:"updatedAt",CATEGORY:"category",CATEGORIES:"categories",TYPE:"type",TYPES:"types",HIDE_REPLIES:"hideReplies",HIDE_DELETED_MESSAGES:"hideDeleted",WITH_TAGS:"withTags",TAGS:"tags",MENTIONS_WITH_TAG_INFO:"mentionsWithTagInfo",MENTIONS_WITH_BLOCKED_INFO:"mentionsWithBlockedInfo",ONLY_INTERACTION_GOAL_COMPLETED:"onlyInteractionGoalCompleted",HAS_ATTACHMENTS:"hasAttachments",HAS_LINKS:"hasLinks",HAS_MENTIONS:"hasMentions",HAS_REACTIONS:"hasReactions",MENTIONED_UIDS:"mentionedUids",ATTACHMENT_TYPES:"attachmentTypes",WITH_PARENT:"withParent",HIDE_QUOTED_MESSAGES:"hideQuotedMessages"}}},t.ATTACHMENTS_CONSTANTS={KEYS:{EXTENSION:"extension",MIME_TYPE:"mimeType",NAME:"name",SIZE:"size",URL:"url"}},(i=t.MessageCategory||(t.MessageCategory={})).ACTION="action",i.MESSAGE="message",i.CALL="call",i.CUSTOM="custom",i.INTERACTIVE="interactive",i.AGENTIC="agentic",(s=t.GoalType||(t.GoalType={})).ANY_ACTION="anyAction",s.ANY_OF="anyOf",s.ALL_OF="allOf",s.NONE="none",t.TYPING_NOTIFICATION={RECEIVER_ID:"receiverId",RECEIVER_TYPE:"receiverType",META:"metadata",KEYS:{TYPING_NOTIFICATION:"typingNotification",TIMESTAMP:"timestamp"},ACTIONS:{STARTED:"started",ENDED:"ended"}},t.ActionConstatnts={ACTION_SUBJECTS:{ACTION_ON:"on",ACTION_BY:"by",ACTION_FOR:"for"},ACTION_ENTITY_TYPE:{GROUP_USER:"groupuser",USER:"user",GROUP:"group",MESSAGE:"message"},ACTION_KEYS:{ACTION_CREATED:"created",ACTION_UPDATED:"updated",ACTION_DELETED:"deleted",ENTITIES:"entities",ENTITY:"entity",ENTITY_TYPE:"entityType",TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_ADDED:"added",ACTION_SCOPE_CHANGED:"scopeChanged",ACTION_TYPE_USER:"user",ACTION_TYPE_GROUP:"group",ACTION_TYPE_GROUP_MEMBER:"groupMember",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",ACTION_TYPE_CALL:"call",EXTRAS:"extras",SCOPE:"scope",NEW:"new",OLD:"old"},ActionMessages:{ACTION_GROUP_JOINED_MESSAGE:"%s joined",ACTION_GROUP_LEFT_MESSAGE:"%s left",ACTION_MEMBER_KICKED_MESSAGE:"%s kicked %s",ACTION_MEMBER_BANNED_MESSAGE:"%s banned %s",ACTION_MEMBER_UNBANNED_MESSAGE:"%s unbanned %s",ACTION_MEMBER_INVITED_MESSAGE:"%s banned %s",ACTION_MESSAGE_EDITED_MESSAGE:" Message Edited",ACTION_MESSAGE_DELETED_MESSAGE:"Message Deleted",ACTION_MEMBER_SCOPE_CHANGED:"%s made %s %s",ACTION_MEMBER_ADDED_TO_GROUP:"%s added %s"},ACTION_TYPE:{TYPE_MEMBER_JOINED:"joined",TYPE_MEMBER_LEFT:"left",TYPE_MEMBER_KICKED:"kicked",TYPE_MEMBER_BANNED:"banned",TYPE_MEMBER_UNBANNED:"unbanned",TYPE_MEMBER_INVITED:"invited",TYPE_MEMBER_SCOPE_CHANGED:"scopeChanged",TYPE_MESSAGE:"message",TYPE_MESSAGE_EDITED:"edited",TYPE_MESSAGE_DELETED:"deleted",TYPE_MEMBER_ADDED:"added"},ACTIONS:{MEMBER_ADDED:"added",MEMBER_JOINED:"joined",MEMBER_LEFT:"left",MEMBER_KICKED:"kicked",MEMBER_BANNED:"banned",MEMBER_UNBANNED:"unbanned",MEMBER_INVITED:"invited",MEMBER_SCOPE_CHANGED:"scopeChanged",MESSAGE_EDITED:"edited",MESSSAGE_DELETED:"deleted",TYPE_USER:"user",TYPE_GROUP:"group",TYPE_GROUP_MEMBER:"groupMember"}},t.BlockedUsersConstants={REQUEST_KEYS:{DIRECTIONS:{BOTH:"both",HAS_BLOCKED_ME:"hasBlockedMe",BLOCKED_BY_ME:"blockedByMe"}}},t.CallConstants={CALL_MODE:{DEFAULT:"DEFAULT",SPOTLIGHT:"SPOTLIGHT",SINGLE:"SINGLE",TILE:"TILE",GRID:"GRID"},CALL_TYPE:{AUDIO:"audio",VIDEO:"video"},RECEIVER_TYPE_GROUP:"group",RECEIVER_TYPE_USER:"user",CALL_KEYS:{CALL_DATA:"data",CALL_ID:"id",CALL_SESSION_ID:"sessionid",CALL_RECEIVER:"receiver",CALL_SENDER:"sender",CALL_RECEIVER_TYPE:"receiverType",CALL_STATUS:"status",CALL_TYPE:"type",CALL_INITIATED_AT:"initiatedAt",CALL_JOINED_AT:"joinedAt",CALL_LEFT_AT:"leftAt",CALL_METADATA:"metadata",CALL_ENTITIES:"entities",CALL_ENTITY_TYPE:"entityType",CALL_ENTITY:"entity",CALL_ENTITY_USER:"user",CALL_ENTITY_GROUP:"group"},CALL_STATUS:{INITIATED:"initiated",ONGOING:"ongoing",UNANSWERED:"unanswered",REJECTED:"rejected",BUSY:"busy",CANCELLED:"cancelled",ENDED:"ended"},AUDIO_INPUT_DEVICES:"audioInputDevices",AUDIO_OUTPUT_DEVICES:"audioOutputDevices",VIDEO_INPUT_DEVICES:"videoInputDevices",POST_MESSAGES:{TYPES:{ACTION_MESSAGE:"cometchat_action_message",HANGUP:"hangup",COMETCHAT_RTC_SETTINGS:"cometchat_rtc_settings"},ACTIONS:{USER_JOINED:"onUserJoined",USER_LEFT:"onUserLeft",USER_LIST_CHANGED:"onUserListChanged",INITIAL_DEVICE_LIST:"initialDeviceList",DEVICE_CHANGE:"onDeviceChange",LOAD:"LOAD",CHANGE_AUDIO_INPUT:"changeAudioInput",CHANGE_AUDIO_OUTPUT:"changeAudioOutput",CHANGE_VIDEO_INPUT:"changeVideoInput",MUTE_AUDIO:"muteAudio",UNMUTE_AUDIO:"unMuteAudio",PAUSE_VIDEO:"pauseVideo",UNPAUSE_VIDEO:"unPauseVideo",SWITCH_MODE:"switchMode",START_SCREENSHARE:"startScreenShare",STOP_SCREENSHARE:"stopScreenShare",END_CALL:"endCall",START_RECORDING:"startRecording",STOP_RECORDING:"stopRecording",RECORDING_TOGGLED:"onRecordingToggled",USER_MUTED:"onUserMuted",SCREEN_SHARE_STARTED:"SCREEN_SHARE_STARTED",SCREEN_SHARE_STOPPED:"SCREEN_SHARE_ENDED",SWITCH_TO_VIDEO_CALL:"switchedToVideo",SWITCHED_TO_VIDEO_CALL:"onCallSwitchedToVideo",OPEN_VIRTUAL_BACKGROUND:"openVirtualBackgroundMenu",SET_BACKGROUND_BLUR:"setBackgroundBlur",SET_BACKGROUND_IMAGE:"setBackgroundImage"}},MEDIA_DEVICE:{ID:"id",NAME:"name",ACTIVE:"active"},ZOOM_BUTTON_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},NAME_LABEL_DEFAULT_PARAMS:{position:"bottom-left",visible:!0,color:"rgba(27, 27, 27, 0.4)"},NETWORK_LABEL_DEFAULT_PARAMS:{position:"bottom-right",visible:!0},MAIN_VIDEO_CONTAINER_SETTINGS:{KEYS:{POSITION:"position",VISIBILITY:"visible",COLOR:"color"}}},t.GroupConstants={KEYS:{NAME:"name",GUID:"guid",TYPE:"type",PASSWORD:"password",ICON:"icon",DESCRIPTION:"description",OWNER:"owner",METADATA:"metadata",CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",HAS_JOINED:"hasJoined",WS_CHANNEL:"wsChannel",TAGS:"tags"}},t.GroupMemersConstans={KEYS:{SCOPE:"scope",UID:"uid",GUID:"guid",USER:"user",NAME:"name"}},t.UserConstants={UID:"uid",NAME:"name",AUTH_TOKEN:"authToken",AVATAR:"avatar",LAST_ACTIVE_AT:"lastActiveAt",LINK:"link",META_DATA:"metadata",ROLE:"role",STATUS:"status",STATUS_MESSAGE:"statusMessage",USER_NAME:"user_name",TAGS:"tags",SORT_BY:{NAME:"name",STATUS:"status"},SORT_ORDER:{ASCENDING:"asc",DESCENDING:"desc"}},t.Errors={ERROR_IO_EXCEPTION:"ERROR_IO_EXCEPTION",ERROR_JSON_EXCEPTION:"ERROR_JSON_EXCEPTION",ERROR_PASSWORD_MISSING:"ERROR_PASSWORD_MISSING",ERROR_LIMIT_EXCEEDED:"ERROR_LIMIT_EXCEEDED",ERROR_USER_NOT_LOGGED_IN:"ERROR_USER_NOT_LOGGED_IN",ERROR_INVALID_GUID:"ERROR_INVALID_GUID",ERROR_PASSWORD_MISSING_MESSAGE:"Password is mandatory for a password group",ERROR_LIMIT_EXCEEDED_MESSAGE:"Limit Exceeded Max limit of %s",ERROR_USER_NOT_LOGGED_IN_MESSAGE:"Please log in to CometChat before calling this method",ERROR_INVALID_GUID_MESSAGE:"Please provide a valid GUID",ERROR_DEFAULT_MESSAGE:"Something went wrong",ERR_SETTINGS_HASH_OUTDATED:"ERR_SETTINGS_HASH_OUTDATED",ERR_NO_AUTH:"ERR_NO_AUTH"},t.CALL_ERROR={CALL_ALREADY_INITIATED:{code:"CALL_ALREADY_INITIATED",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},ERROR_IN_CALLING:{code:"CALL_IN_PROGRESS",name:"CALL_ALREADY_INITIATED",message:"There is already call in progress",details:{}},CANNOT_ACCEPT_CALL:{code:"CALL_IN_PROGRESS",name:"CALL_IN_PROGRESS",message:"There is already a call in progress",details:{}},NOT_INITIALIZED:{code:"NOT_INITIALIZED",name:"NOT_INITIALIZED",message:"Please call the CometChat.init() method before calling any other methods related to CometChat.",details:{}},NOT_LOGGED_IN:{code:"NOT_LOGGED_IN",name:"NOT_LOGGED_IN",message:"Please login before starting a call.",details:{}},SESSION_ID_REQUIRED:{code:"SESSION_ID_REQUIRED",name:"SESSION_ID_REQUIRED",message:"Please make sure you are passing correct session id.",details:{}},CALL_SETTINGS_REQUIRED:{code:"CALL_SETTINGS_REQUIRED",name:"CALL_SETTINGS_REQUIRED",message:"Please make sure you are passing the call settings object.",details:{}},JWT_NOT_FOUND:{code:"JWT_NOT_FOUND",name:"JWT_NOT_FOUND",message:"There was some issue while fetching JWT from API.",details:{}}},t.PARAMETER_ERROR={PARAMETER_REQUIRED:{code:"%s_NOT_PROVIDED",name:"%s_NOT_PROVIDED",message:"please provide the %s.",details:{}}},t.GENERAL_ERROR={MUST_BE_A_STRING:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a string.",details:{}},MUST_BE_A_NUMBER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a number.",details:{}},MUST_BE_A_OBJECT:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a object.",details:{}},MUST_BE_AN_ARRAY:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be an array.",details:{}},MUST_BE_A_BOOLEAN:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a boolean.",details:{}},MUST_BE_A_BLOB:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a blob.",details:{}},INVALID:{code:"INVALID_%s",name:"INVALID_%s",message:"Invalid %s. Please provide a valid %s.",details:{}},METHOD_COMPULSORY:{code:"%s_IS_COMPULSORY",name:"%s_IS_COMPULSORY",message:"%s is required.",details:{}},LIMIT_EXCEEDED:{code:"ERROR_%s_EXCEEDED",name:"ERROR_%s_EXCEEDED",message:"Limit exceeded max limit of %s.",details:{}},MUST_BE_A_POSITIVE_NUMBER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s should be a postive integer greater than 0.",details:{}},INVALID_MEDIA_FILE:{code:"INVALID_%s",name:"INVALID_%s",message:"The message type does not match the file's mime type.",details:{}},EMPTY_STRING:{code:"INVALID_%s",name:"INVALID_%s",message:"%s cannot be empty.",details:{}},MISSING_KEY:{code:"MISSING_KEY",name:"MISSING_KEY",message:"The key %s is missing from the %s object.",details:{}},EMPTY_ARRAY:{code:"INVALID_%s",name:"INVALID_%s",message:"The parameter %s should be an array and it cannot be empty.",details:{}},INVALID_SEARCH_KEYWORD:{code:"INVALID_SEARCH_KEYWORD",name:"INVALID_SEARCH_KEYWORD",message:"Invalid search keyword. Please provide a valid search keyword.",details:{}},INVALID_GROUP_PROPERTY:{code:"INVALID_%s",name:"INVALID_%s",message:"Invalid %s provided for the group. Please provide a valid %s.",details:{}},INVALID_USER_PROPERTY:{code:"INVALID_%s",name:"INVALID_%s",message:"Invalid %s provided for a user. Please provide a valid %s.",details:{}},PARAMETER_MUST_BE_A_NUMBER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s method accepts parameter as a number.",details:{}},PARAMETER_MUST_BE_AN_ARRAY:{code:"INVALID_%s",name:"INVALID_%s",message:"%s method accepts parameter as an array.",details:{}},PARAMETER_MUST_BE_A_BOOLEAN:{code:"INVALID_%s",name:"INVALID_%s",message:"%s method accepts parameter as a boolean.",details:{}},PARAMETER_MUST_BE_A_POSITIVE_NUMBER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s method accepts parameter to be a positive number greater than 0.",details:{}},PARAMETER_MUST_BE_A_STRING:{code:"INVALID_%s",name:"INVALID_%s",message:"%s method accepts parameter as a string.",details:{}},PARAMETER_COMPULSORY:{code:"%s_IS_COMPULSORY",name:"%s_IS_COMPULSORY",message:"%s cannot be blank. Please provide a valid %s.",details:{}},PASSWORD_COMPULSORY:{code:"%s_IS_COMPULSORY",name:"%s_IS_COMPULSORY",message:"Password is mandatory for a password group.",details:{}},INVALID_ARRAY:{code:"INVALID_%s",name:"INVALID_%s",message:"%s",details:{}}},t.ReceiptErrors={MISSING_PARAMETERS:{code:"MISSING_PARAMETERS",name:"MISSING_PARAMETERS",message:"Expected 4 parameters received 3",details:{}},INVALID_PARAMETER:{code:"INVALID_%s",name:"INVALID_%s",message:"%s",details:{}},NO_WEBSOCKET_CONNECTION:{code:"NO_WEBSOCKET_CONNECTION",name:"NO_WEBSOCKET_CONNECTION",message:"Connection to our Websockets server is broken. Please retry after some time.",details:{}},RECEIPTS_TEMPORARILY_BLOCKED:{code:"RECEIPTS_TEMPORARILY_BLOCKED",name:"RECEIPTS_TEMPORARILY_BLOCKED",message:"Due to high load. Receipts have been blocked for your app.",details:{}},UNKNOWN_ERROR_OCCURRED:{code:"UNKNOWN_ERROR_OCCURRED",name:"UNKNOWN_ERROR_OCCURRED",message:"Unknown error occurred while marking a message as read.",details:{}}},t.UserErrors={INVALID_STATUS:new d.CometChatException({code:"INVALID_STATUS_VALUE",name:"INVALID_STATUS_VALUE",message:"The `status` parameter accepts only `online` or `offline`.",details:""}),INVALID_DIRECTION:new d.CometChatException({code:"INVALID_DIRECTION_VALUE",name:"INVALID_DIRECTION_VALUE",message:"The `direction` parameter accepts only `both`, `blockeyByMe` or `hasBlockedMe`.",details:""}),USER_NOT_LOGGED_IN:new d.CometChatException({code:"USER_NOT_LOGGED_IN",name:"USER_NOT_LOGGED_IN",message:"Please log in to CometChat before calling this method.",details:""})},t.GroupErrors={NOT_A_GROUP:new d.CometChatException({code:"NOT_A_GROUP",message:"Please use group class to construct a new group."}),INVALID_SCOPE:new d.CometChatException({code:"INVALID_SCOPE_VALUE",name:"INVALID_SCOPE_VALUE",message:"Scope can be `admin`, `moderator` or `participant`.",details:""}),INVALID_GROUP_TYPE:new d.CometChatException({code:"INVALID_GROUP_TYPE",name:"INVALID_GROUP_TYPE",message:"Group type can be `public`, `private`, `protected` or `password`.",details:""})},t.ConversationErrors={INVALID_CONVERSATION_TYPE:{code:"INVALID_CONVERSATION_TYPE",name:"INVALID_CONVERSATION_TYPE",message:"Conversation type can be `user` or `group`.",details:"Please check the value of conversationType."},CONVERSATION_NOT_FOUND:{code:"CONVERSATION_NOT_FOUND",name:"CONVERSATION_NOT_FOUND",message:"Conversation for %s %s not found.",details:"Please check the value of conversationWith and conversationType."}},t.AIErrors={NO_CONVERSATION_STARTER:{code:"NO_CONVERSATION_STARTER",name:"NO_CONVERSATION_STARTER",message:"Unable to get conversation starter for this conversation.",details:""},NO_SMART_REPLY:{code:"NO_SMART_REPLY",name:"NO_SMART_REPLY",message:"Unable to get smart reply for this conversation.",details:""},NO_CONVERSATION_SUMMARY:{code:"NO_CONVERSATION_SUMMARY",name:"NO_CONVERSATION_SUMMARY",message:"Unable to get summary of the conversation.",details:""},NO_ASSISTANCE:{code:"EMPTY_RESPONSE",name:"EMPTY_RESPONSE",message:"Unable to get a suggestion.",details:""}},t.ExtensionErrors={INVALID_EXTENSION:{code:"ERROR_INVALID_EXTENSION",name:"ERROR_INVALID_EXTENSION",message:"The provided extension cannot be null or empty. Please provide a valid extension.",details:{}},EXTENSION_NOT_FOUND:{code:"ERROR_EXTENSION_NOT_FOUND",name:"ERROR_EXTENSION_NOT_FOUND",message:"The provided extension could not be found.",details:{}}},t.AIFeatureError={INVALID_AI_FEATURE:{code:"ERROR_INVALID_AI_FEATURE",name:"ERROR_INVALID_AI_FEATURE",message:"The provided AI Feature cannot be null or empty. Please provide a valid AI Feature.",details:{}}},t.MessageErrors={INVALID_RECEIVER_TYPE:{code:"INVALID_RECEIVER_TYPE",name:"INVALID_RECEIVER_TYPE",message:"Receiver type can be `user` or `group`.",details:"Please check the value of receiverType."}},t.FeatureRestrictionErrors={INVALID_FEATURE:{code:"ERROR_INVALID_FEATURE",name:"ERROR_INVALID_FEATURE",message:"The provided feature cannot be null or empty. Please provide a valid feature.",details:{}},FEATURE_NOT_FOUND:{code:"ERROR_FEATURE_NOT_FOUND",name:"ERROR_FEATURE_NOT_FOUND",message:"The provided feature could not be found.",details:{}}},t.PresenceConstatnts={STATUS:{ONLINE:"online",AVAILABLE:"available",OFFLINE:"offline",JOINED:"JOINED",LEFT:"LEFT"}},t.PresenceConstants={STATUS:{ONLINE:"online",AVAILABLE:"available",OFFLINE:"offline",JOINED:"JOINED",LEFT:"LEFT"}},t.APP_SETTINGS={APP_SETTINGS:"app_settings",KEYS:{CHAT_HOST:"CHAT_HOST",CHAT_USE_SSL:"CHAT_USE_SSL",GROUP_SERVICE:"GROUP_SERVICE",CALL_SERVICE:"CALL_SERVICE",CHAT_WS_PORT:"CHAT_WS_PORT",CHAT_WSS_PORT:"CHAT_WSS_PORT",CHAT_HTTP_BIND_PORT:"CHAT_HTTP_BIND_PORT",CHAT_HTTPS_BIND_PORT:"CHAT_HTTPS_BIND_PORT",ADMIN_API_HOST:"ADMIN_API_HOST",CLIENT_API_HOST:"CLIENT_API_HOST",WEBRTC_HOST:"WEBRTC_HOST",WEBRTC_USE_SSL:"WEBRTC_USE_SSL",WEBRTC_WS_PORT:"WEBRTC_WS_PORT",WEBRTC_WSS_PORT:"WEBRTC_WSS_PORT",WEBRTC_HTTP_BIND_PORT:"WEBRTC_HTTP_BIND_PORT",WEBRTC_HTTPS_BIND_PORT:"WEBRTC_HTTPS_BIND_PORT",EXTENSION_LIST:"extensions",EXTENSION_KEYS:{ID:"id",NAME:"name"},JID_HOST_OVERRIDE:"JID_HOST_OVERRIDE",CHAT_HOST_OVERRIDE:"CHAT_HOST_OVERRIDE",CHAT_HOST_APP_SPECIFIC:"CHAT_HOST_APP_SPECIFIC",MODE:"MODE",CONNECTION_TYPE:"connection_type",DEFAULT_MODE:"DEFAULT",LIMITED_TRANSIENT:"LIMITED_TRANSIENT",NO_TRANSIENT:"NO_TRANSIENT",POLLING_ENABLED:"POLLING_ENABLED",POLLING_INTERVAL:"POLLING_INTERVAL",ANALYTICS_PING_DISABLED:"ANALYTICS_PING_DISABLED",ANALYTICS_HOST:"ANALYTICS_HOST",ANALYTICS_VERSION:"ANALYTICS_VERSION",ANALYTICS_USE_SSL:"ANALYTICS_USE_SSL",SETTINGS_HASH:"settingsHash",SETTINGS_HASH_RECEIVED_AT:"settingsHashReceivedAt",DENY_FALLBACK_TO_POLLING:"DENY_FALLBACK_TO_POLLING",APP_VERSION:"APP_VERSION",MAIN_DOMAIN:"MAIN_DOMAIN",CHAT_API_VERSION:"CHAT_API_VERSION",WS_API_VERSION:"WS_API_VERSION",REGION:"REGION",EXTENSION_DOMAIN:"EXTENSION_DOMAIN",WEBRTC_API_SUBDOMAIN:"WEBRTC_API_SUBDOMAIN",WEBRTC_WEB_FRONTEND_HOST:"WEBRTC_WEB_FRONTEND_HOST",WEBRTC_WEB_FRONTEND_VERSION:"WEBRTC_WEB_FRONTEND_VERSION",SECURED_MEDIA_HOST:"SECURED_MEDIA_HOST",PARAMETERS:"parameters",CORE_CONVERSATIONS_UPDATE_ON_CALL_ACTIVITIES:"core.conversations.updateOnCallActivity",CORE_CONVERSATIONS_UPDATE_ON_GROUP_ACTIONS:"core.conversations.updateOnGroupActions",CORE_CONVERSATIONS_UPDATE_ON_CUSTOM_MESSAGES:"core.conversations.updateOnCustomMessage",CORE_CONVERSATIONS_UPDATE_ON_REPLIES:"core.conversations.updateOnReplies",FLAG_REASONS:"flagReasons"}},t.COMMON_UTILITY_CONSTANTS={TYPE_CONSTANTS:{BOOLEAN:"boolean",STRING:"string",OBJECT:"object",NUMBER:"number"}},t.CONNECTION_STATUS={CONNECTED:"connected",CONNECTING:"connecting",DISCONNECTED:"disconnected",FEATURE_THROTTLED:"featureThrottled"},t.SESSION_STORE={SESSION_ID:"sessionId"},(c=t.REACTION_ACTION||(t.REACTION_ACTION={})).REACTION_ADDED="message_reaction_added",c.REACTION_REMOVED="message_reaction_removed",t.API_ERROR_CODES={AUTH_ERR_AUTH_TOKEN_NOT_FOUND:"AUTH_ERR_AUTH_TOKEN_NOT_FOUND"},t.PROSODY_API={DOMAIN_PREFIX:"xmpp",PATH:{ROOM:"room",ROOM_SIZE:"room-size",SESSIONS:"sessions"},RESPONSE:{PARTICIPANTS:"participants"},QUERY_PARAMETERS:{DOMAIN:"domain",ROOM:"room"}},t.ProsodyApiErrors={INVALID_SESSIONID:{code:"ERROR_INVALID_SESSIONID",name:"ERROR_INVALID_SESSIONID",message:"The provided sessionId cannot be null or empty. Please provide a valid sessionId.",details:""},INVALID_TYPE:{code:"ERROR_INVALID_TYPE",name:"ERROR_INVALID_TYPE",message:"The provided type cannot be null or empty. Please provide a valid type.",details:""}},t.JWT_API={KEYS:{PASSTHROUGH:"passthrough",EXPAND:"expand"}},t.ONLINE_MEMBER_COUNT_API={ENDPOINTS:{GET_ONLINE_MEMBER_COUNT:"api/%s/online-members"},RESPONSE:{ONLINE_USERS_COUNT:"onlineUsersCount",GROUPS:"groups"},ERRORS:{INVALID_GROUPLIST:{code:"ERROR_INVALID_GROUPLIST",name:"ERROR_INVALID_GROUPLIST",message:"Grouplist cannot be null or empty.",details:""}}},t.ADDITIONAL_CONSTANTS={SECURE_URL_PROPERTY:"fat"},t.AI_FEATURE_ACCESSIBLE="features.ai.accessible",t.AI_FEATURE_ENABLED="features.ai.enabled",t.AI_SLUG_ACCESSIBLE="features.ai.%s.accessible",t.AI_SLUG_ENABLED="features.ai.%s.enabled",(l=t.AttachmentType||(t.AttachmentType={})).IMAGE="image",l.VIDEO="video",l.AUDIO="audio",l.FILE="file",(u=t.ModerationStatus||(t.ModerationStatus={})).PENDING="pending",u.APPROVED="approved",u.DISAPPROVED="disapproved",u.UNMODERATED="unmoderated",t.AI_ASSISTANT_EVENTS={RUN_STARTED:"run_started",RUN_FINISHED:"run_finished",TEXT_MESSAGE_START:"text_message_start",TEXT_MESSAGE_END:"text_message_end",TEXT_MESSAGE_CONTENT:"text_message_content",TOOL_CALL_STARTED:"tool_call_start",TOOL_CALL_ENDED:"tool_call_end",TOOL_CALL_RESULT:"tool_call_result",TOOL_CALL_ARGUMENT:"tool_call_args"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateQuestion=t.updatePropertiesWithDynamicValue=t.validateConversationType=t.validateUpdateUser=t.validateCreateUser=t.validateMessage=t.validateChatType=t.validateMsgId=t.validateArray=t.validateHideMessagesFromBlockedUsers=t.validateId=t.validateCreateGroup=t.validateJoinGroup=t.validateUpdateGroup=t.validateScope=t.isAudio=t.isVideo=t.isImage=t.getUpdatedSettings=t.getAppSettings=t.getCurrentTime=t.Logger=t.createUidFromJid=t.format=t.getOrdinalSuffix=t.isFalsy=t.isTruthy=t.isObject=t.getJidHost=t.getChatHost=t.resolveTimeout=void 0;var r=n(17),a=n(0),o=n(6),i=n(2),s=n(20),c=n(22),l=n(24),u=n(5),d=n(12),p=n(25);function h(e){return null!=e&&("string"==typeof e&&(e=e.trim()),"object"==typeof e&&0===Object.keys(e).length&&(e=void 0)),["",0,"0",!1,null,"null",void 0,"undefined"].includes(e)}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.split("%s").reduce(function(e,n,r){return e+n+(t[r]||"")},"")}t.resolveTimeout=function(e){if(null==e||null==e)return u.DEFAULT_TIMEOUT;var t=Math.floor(e);return t<=0?u.DEFAULT_TIMEOUT:t},t.getChatHost=function(e){return e[a.APP_SETTINGS.KEYS.CHAT_HOST_OVERRIDE]?e[a.APP_SETTINGS.KEYS.CHAT_HOST_OVERRIDE]:e[a.APP_SETTINGS.KEYS.CHAT_HOST_APP_SPECIFIC]?e[a.APP_SETTINGS.KEYS.CHAT_HOST_APP_SPECIFIC]:e[a.APP_SETTINGS.KEYS.CHAT_HOST]},t.getJidHost=function(e){return e[a.APP_SETTINGS.KEYS.JID_HOST_OVERRIDE]?e[a.APP_SETTINGS.KEYS.JID_HOST_OVERRIDE]:e[a.APP_SETTINGS.KEYS.CHAT_HOST]},t.isObject=function(e){return e instanceof Object&&e.constructor===Object},t.isTruthy=function(e){return[!0,1,"1","true","TRUE"].includes(e)},t.isFalsy=h,t.getOrdinalSuffix=function(e){var t=e%10,n=e%100;return 1==t&&11!=n?e+"st":2==t&&12!=n?e+"nd":3==t&&13!=n?e+"rd":e+"th"},t.format=m,t.createUidFromJid=function(e){return e.substring(e.lastIndexOf("]")+1,e.lastIndexOf("@"))};var g=function(){function e(){}return e.log=function(e,t){},e.error=function(e,t){},e.info=function(e,t){},e}();function f(){return new Promise(function(e,t){o.makeApiCall("appSettings").then(function(t){r.LocalStorage.getInstance().set(a.LOCAL_STORE.KEY_APP_SETTINGS,t.data),t.data.MODE&&u.CometChat.setMode(t.data.MODE),e(t.data)},function(e){t(new i.CometChatException(e.error))})})}t.Logger=g,t.getCurrentTime=function(){return(new Date).getTime()},t.getAppSettings=function(){return new Promise(function(e,t){r.LocalStorage.getInstance().get(a.LOCAL_STORE.KEY_APP_SETTINGS).then(function(n){h(n)?f().then(function(t){e(t)},function(e){t(e)}):e(n)},function(e){t(e)})})},t.getUpdatedSettings=f,t.isImage=function(e){var t;return e.type&&e.type.toLowerCase().includes("image")&&(t=!0),t},t.isVideo=function(e){var t;return e.type&&e.type.toLowerCase().includes("video")&&(t=!0),t},t.isAudio=function(e){var t;return e.type&&e.type.toLowerCase().includes("audio")&&(t=!0),t},t.validateScope=function(e){return typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"SCOPE","SCOPE","Scope"))):h(e)?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"SCOPE","SCOPE","scope","scope"))):e!=u.CometChat.GROUP_MEMBER_SCOPE.ADMIN&&e!=u.CometChat.GROUP_MEMBER_SCOPE.MODERATOR&&e!=u.CometChat.GROUP_MEMBER_SCOPE.PARTICIPANT?new i.CometChatException(a.GroupErrors.INVALID_SCOPE):void 0},t.validateUpdateGroup=function(e){return e.hasOwnProperty(a.GroupConstants.KEYS.GUID)?typeof e[a.GroupConstants.KEYS.GUID]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GUID","GUID","GUID"))):h(e[a.GroupConstants.KEYS.GUID])?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GUID","GUID","GUID","GUID"))):e.hasOwnProperty(a.GroupConstants.KEYS.NAME)&&""===e[a.GroupConstants.KEYS.NAME]?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"GROUP_NAME","GROUP_NAME","Group name"))):void 0:new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GUID","GUID","GUID","GUID")))},t.validateJoinGroup=function(e,t,n){if(typeof e==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.OBJECT){if(!e.hasOwnProperty(a.GroupConstants.KEYS.GUID))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GUID","GUID","GUID","GUID")));if(typeof e[a.GroupConstants.KEYS.GUID]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GUID","GUID","GUID")));if(h(e[a.GroupConstants.KEYS.GUID]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GUID","GUID","GUID","GUID")));if(!e.hasOwnProperty(a.GroupConstants.KEYS.TYPE))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GROUP_TYPE","GROUP_TYPE","Group type","Group type")));if(typeof e[a.GroupConstants.KEYS.TYPE]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GROUP_TYPE","GROUP_TYPE","Group type")));if(h(e[a.GroupConstants.KEYS.TYPE]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GROUP_TYPE","GROUP_TYPE","type","type")));if(e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PUBLIC&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PASSWORD&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PROTECTED&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PRIVATE)return new i.CometChatException(a.GroupErrors.INVALID_GROUP_TYPE);if(e[a.GroupConstants.KEYS.TYPE].toLowerCase()==u.CometChat.GROUP_TYPE.PASSWORD){if(!e.hasOwnProperty(a.GroupConstants.KEYS.PASSWORD))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PASSWORD_COMPULSORY),"PASSWORD","PASSWORD")));if(typeof e[a.GroupConstants.KEYS.PASSWORD]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"PASSWORD","PASSWORD","Password")));if(h(e[a.GroupConstants.KEYS.PASSWORD]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"PASSWORD","PASSWORD","password","password")))}}else{if(void 0!==e){if(typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GUID","GUID","GUID")));if(h(e))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GUID","GUID","GUID","GUID")))}if(void 0!==t){if(typeof t!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GROUP_TYPE","GROUP_TYPE","Group type")));if(h(t))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GROUP_TYPE","GROUP_TYPE","type","type")));if(t.toLowerCase()!=u.CometChat.GROUP_TYPE.PUBLIC&&t.toLowerCase()!=u.CometChat.GROUP_TYPE.PASSWORD&&t.toLowerCase()!=u.CometChat.GROUP_TYPE.PROTECTED&&t.toLowerCase()!=u.CometChat.GROUP_TYPE.PRIVATE)return new i.CometChatException(a.GroupErrors.INVALID_GROUP_TYPE);if(t.toLowerCase()==u.CometChat.GROUP_TYPE.PASSWORD){if(typeof n!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"PASSWORD","PASSWORD","Password")));if(h(n))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"PASSWORD","PASSWORD","password","password")))}}}},t.validateCreateGroup=function(e){if(!e.hasOwnProperty(a.GroupConstants.KEYS.GUID))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GUID","GUID","GUID","GUID")));if(typeof e[a.GroupConstants.KEYS.GUID]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GUID","GUID","GUID")));if(h(e[a.GroupConstants.KEYS.GUID]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GUID","GUID","GUID","GUID")));if(!e.hasOwnProperty(a.GroupConstants.KEYS.NAME))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GROUP_NAME","GROUP_NAME","Group name","Group name")));if(typeof e[a.GroupConstants.KEYS.NAME]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GROUP_NAME","GROUP_NAME","Group name")));if(h(e[a.GroupConstants.KEYS.NAME]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GROUP_NAME","GROUP_NAME","name","name")));if(!e.hasOwnProperty(a.GroupConstants.KEYS.TYPE))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"GROUP_TYPE","GROUP_TYPE","Group type","Group type")));if(typeof e[a.GroupConstants.KEYS.TYPE]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GROUP_TYPE","GROUP_TYPE","Group type")));if(h(e[a.GroupConstants.KEYS.TYPE]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"GROUP_TYPE","GROUP_TYPE","type","type")));if(e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PUBLIC&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PASSWORD&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PROTECTED&&e[a.GroupConstants.KEYS.TYPE].toLowerCase()!=u.CometChat.GROUP_TYPE.PRIVATE)return new i.CometChatException(a.GroupErrors.INVALID_GROUP_TYPE);if(e[a.GroupConstants.KEYS.TYPE].toLowerCase()==u.CometChat.GROUP_TYPE.PASSWORD){if(!e.hasOwnProperty(a.GroupConstants.KEYS.PASSWORD))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PASSWORD_COMPULSORY),"PASSWORD","PASSWORD")));if(typeof e[a.GroupConstants.KEYS.PASSWORD]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"PASSWORD","PASSWORD","Password")));if(h(e[a.GroupConstants.KEYS.PASSWORD]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_GROUP_PROPERTY),"PASSWORD","PASSWORD","password","password")))}if(e.hasOwnProperty(a.GroupConstants.KEYS.TAGS)){if(!Array.isArray(e[a.GroupConstants.KEYS.TAGS]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_AN_ARRAY),"GROUP_TAGS","GROUP_TAGS","Group tags")));if(0===e[a.GroupConstants.KEYS.TAGS].length)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_ARRAY),"GROUP_TAGS","GROUP_TAGS","Group tags")))}},t.validateId=function(e,t){if("user"===t){if(typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"UID","UID","UID")));if(h(e))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"UID","UID","UID","UID")))}if("group"===t){if(typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"GUID","GUID","GUID")));if(h(e))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"GUID","GUID","GUID","GUID")))}if("bot"===t){if(typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"BOT_ID","BOT_ID","BOT_ID")));if(h(e))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"BOT_ID","BOT_ID","BOT_ID","BOT_ID")))}},t.validateHideMessagesFromBlockedUsers=function(e){if(typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.BOOLEAN)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_BOOLEAN),"HIDE_MESSAGES_FROM_BLOCKED_USERS","HIDE_MESSAGES_FROM_BLOCKED_USERS","hideMessagesFromBlockedUsers")))},t.validateArray=function(e,t){var n;return n="blockUsers"===t?"blockUsers() method accepts an array of users.":"unblockUsers"===t?"unblockUsers() method accepts an array of users.":"groupMembers"===t?"addMembersToGroup() method accepts members list as an array of users.":"addMembersToGroup() method accepts bannedMembers list as an array of users.",typeof e!=a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.OBJECT?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_ARRAY),"USER_LIST","USER_LIST",n))):Array.isArray(e)?void 0:new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_ARRAY),"USER_LIST","USER_LIST",n)))},t.validateMsgId=function(e){return isNaN(e)?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_NUMBER),"MESSAGE_ID","MESSAGE_ID","Message Id"))):h(e)?new i.CometChatException(d.ERRORS.PARAMETER_MISSING):void 0},t.validateChatType=function(e){return typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"RECEIVER_TYPE","RECEIVER_TYPE","Receiver type"))):h(e)?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"RECEIVER_TYPE","RECEIVER_TYPE","receiver type","receiver type"))):e!=a.MessageConstatnts.RECEIVER_TYPE.GROUP&&e!=a.MessageConstatnts.RECEIVER_TYPE.USER?new i.CometChatException(a.MessageErrors.INVALID_RECEIVER_TYPE):void 0},t.validateMessage=function(e){var t=e;if(typeof t.getReceiverId()!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"RECEIVER_ID","RECEIVER_ID","Receiver Id")));if(h(t.getReceiverId()))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"RECEIVER_ID","RECEIVER_ID","receiver id","receiver id")));if(typeof t.getReceiverType()!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"RECEIVER_TYPE","RECEIVER_TYPE","Receiver Type")));if(h(t.getReceiverType()))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"RECEIVER_TYPE","RECEIVER_TYPE","receiver type","receiver type")));if(t.getReceiverType()!=a.MessageConstatnts.RECEIVER_TYPE.GROUP&&t.getReceiverType()!=a.MessageConstatnts.RECEIVER_TYPE.USER)return new i.CometChatException(a.MessageErrors.INVALID_RECEIVER_TYPE);if(e instanceof s.TextMessage){var n=e;if(typeof n.getText()!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"MESSAGE_TEXT","MESSAGE_TEXT","Message text")));if(""===n.getText().trim())return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"MESSAGE_TEXT","MESSAGE_TEXT","Message text")))}if(e instanceof c.MediaMessage){var r=e;if(r.getData()&&r.getData().hasOwnProperty("attachments"))for(var o=r.getAttachments(),u=0;u<o.length;u++){if(!o[u].getExtension())return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MISSING_KEY),"extension","Attachment")));if(!o[u].getMimeType())return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MISSING_KEY),"mimeType","Attachment")));if(!o[u].getName())return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MISSING_KEY),"name","Attachment")));if(!o[u].getUrl())return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MISSING_KEY),"url","Attachment")))}if(r.hasOwnProperty("files"))for(u=0;u<r.files.length;u++)if(!(r.files[u]instanceof Blob))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_BLOB),"MEDIA_OBJECT","MEDIA_OBJECT","Media object")))}return e instanceof l.CustomMessage&&h(e.getCustomData())?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"CUSTOM_DATA","CUSTOM_DATA","custom data","custom data"))):e instanceof p.InteractiveMessage&&h(e.getInteractiveData())?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"INTERACTIVE_DATA","INTERACTIVE_DATA","interactive data","interactive data"))):void 0},t.validateCreateUser=function(e){if(!e.hasOwnProperty(a.UserConstants.UID))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"UID","UID","UID","UID")));if(typeof e[a.UserConstants.UID]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"UID","UID","UID")));if(h(e[a.UserConstants.UID]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_USER_PROPERTY),"UID","UID","UID","UID")));if(!e.hasOwnProperty(a.UserConstants.NAME))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"USER_NAME","USER_NAME","User name","User name")));if(typeof e[a.UserConstants.NAME]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"USER_NAME","USER_NAME","User name")));if(h(e[a.UserConstants.NAME]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_USER_PROPERTY),"USER_NAME","USER_NAME","name","name")));if(e.hasOwnProperty(a.UserConstants.AVATAR)&&""===e[a.UserConstants.AVATAR])return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_AVATAR","USER_AVATAR","User avatar")));if(e.hasOwnProperty(a.UserConstants.META_DATA)&&""===e[a.UserConstants.META_DATA])return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_METADATA","USER_METADATA","User metadata")));if(e.hasOwnProperty(a.UserConstants.LINK)&&""===e[a.UserConstants.LINK])return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_LINK","USER_LINK","User link")));if(e.hasOwnProperty(a.UserConstants.STATUS_MESSAGE)&&""===e[a.UserConstants.STATUS_MESSAGE])return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_STATUS_MESSAGE","USER_STATUS_MESSAGE","User status message")));if(e.hasOwnProperty(a.UserConstants.ROLE)&&""===e[a.UserConstants.ROLE])return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_ROLE","USER_ROLE","User role")));if(e.hasOwnProperty(a.UserConstants.TAGS)){if(!Array.isArray(e[a.UserConstants.TAGS]))return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_AN_ARRAY),"USER_TAGS","USER_TAGS","User tags")));if(0===e[a.UserConstants.TAGS].length)return new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_ARRAY),"USER_TAGS","USER_TAGS","User tags")))}},t.validateUpdateUser=function(e){return e.hasOwnProperty(a.UserConstants.UID)?typeof e[a.UserConstants.UID]!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"UID","UID","UID"))):h(e[a.UserConstants.UID])?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID_USER_PROPERTY),"UID","UID","UID","UID"))):e.hasOwnProperty(a.UserConstants.NAME)&&""===e[a.UserConstants.NAME]?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.EMPTY_STRING),"USER_NAME","USER_NAME","User name"))):void 0:new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.PARAMETER_COMPULSORY),"UID","UID","UID","UID")))},t.validateConversationType=function(e){return typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"CONVERSATION_TYPE","CONVERSATION_TYPE","Conversation type"))):h(e)?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"CONVERSATION_TYPE","CONVERSATION_TYPE","conversation type","conversation type"))):(e=e.toLowerCase())!=u.CometChat.RECEIVER_TYPE.USER&&e!=u.CometChat.RECEIVER_TYPE.GROUP?new i.CometChatException(a.ConversationErrors.INVALID_CONVERSATION_TYPE):void 0},t.updatePropertiesWithDynamicValue=function(e,t,n){return function e(r){for(var o in r)r.hasOwnProperty(o)&&("object"==typeof r[o]?e(r[o]):"string"==typeof r[o]&&r[o].includes(t)&&!r[o].includes(a.ADDITIONAL_CONSTANTS.SECURE_URL_PROPERTY)&&(r[o]+=n))}(e),e},t.validateQuestion=function(e){return typeof e!==a.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.MUST_BE_A_STRING),"QUESTION","QUESTION","Question"))):h(e)?new i.CometChatException(JSON.parse(m(JSON.stringify(a.GENERAL_ERROR.INVALID),"QUESTION","QUESTION","question","question"))):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CometChatException=void 0;t.CometChatException=function(e){null!==e.code&&void 0!==e.code&&""!==e.code&&(this.code=e.code),null!==e.name&&void 0!==e.name&&""!==e.name&&(this.name=e.name),null!==e.message&&void 0!==e.message&&""!==e.message&&(this.message=e.message),null!==e.details&&void 0!==e.details&&""!==e.details&&(this.details=e.details)}},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Me=t.User=void 0;var o=n(2),i=n(12),s=n(0),c=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.hasBlockedMe=!1,this.blockedByMe=!1,this.deactivatedAt=0,1===e.length)typeof e[0]===s.COMMON_UTILITY_CONSTANTS.TYPE_CONSTANTS.STRING?this.uid=e[0]:(this.uid=e[0].uid,this.name=e[0].name,e[0].authToken&&(this.authToken=e[0].authToken),e[0].avatar&&(this.avatar=e[0].avatar),e[0].lastActiveAt&&(this.lastActiveAt=e[0].lastActiveAt),e[0].link&&(this.link=e[0].link),e[0].metadata&&(this.metadata=e[0].metadata),e[0].role&&(this.role=e[0].role),e[0].statusMessage&&(this.statusMessage=e[0].statusMessage),e[0].status&&"offline"!==e[0].status?this.status="online":this.status="offline",e[0].tags&&(this.tags=e[0].tags),e[0].deactivatedAt&&(this.deactivatedAt=e[0].deactivatedAt));else{if(2!==e.length)throw new o.CometChatException(i.ERRORS.PARAMETER_MISSING);this.uid=e[0],this.name=e[1]}}return e.prototype.getUid=function(){return this.uid.toString()},e.prototype.setUid=function(e){this.uid=e},e.prototype.getName=function(){return this.name.toString()},e.prototype.setName=function(e){e&&(this.name=e)},e.prototype.getAuthToken=function(){return this.authToken},e.prototype.setAuthToken=function(e){this.authToken=e},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.getLastActiveAt=function(){return this.lastActiveAt},e.prototype.setLastActiveAt=function(e){this.lastActiveAt=e},e.prototype.getLink=function(){return this.link},e.prototype.setLink=function(e){return this.link=e},e.prototype.getMetadata=function(){return this.metadata},e.prototype.setMetadata=function(e){this.metadata=e},e.prototype.getRole=function(){return this.role},e.prototype.setRole=function(e){this.role=e},e.prototype.getStatus=function(){return this.status},e.prototype.setStatus=function(e){this.status=e},e.prototype.getStatusMessage=function(){return this.statusMessage},e.prototype.setStatusMessage=function(e){this.statusMessage=e},e.prototype.setBlockedByMe=function(e){this.blockedByMe=e},e.prototype.getBlockedByMe=function(){return this.blockedByMe},e.prototype.setHasBlockedMe=function(e){this.hasBlockedMe=e},e.prototype.getHasBlockedMe=function(){return this.hasBlockedMe},e.prototype.setTags=function(e){this.tags=e},e.prototype.getTags=function(){return this.tags},e.prototype.setDeactivatedAt=function(e){this.deactivatedAt=e},e.prototype.getDeactivatedAt=function(){return this.deactivatedAt},e}(),l=function(e){function t(t){var n=e.call(this,t)||this;return n.wsChannel=t.wsChannel,t.jwt&&(n.jwt=t.jwt),t.fat&&(n.fat=t.fat),n}return a(t,e),t.prototype.getWsChannel=function(){return this.wsChannel},t.prototype.getJWT=function(){return this.jwt},t.prototype.getFat=function(){return this.fat},t}(t.User=c);t.Me=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STREAM_MESSAGE=t.MODERATION_STATUS_CHANGED=t.KEYS=t.AUTH=t.MESSAGE=t.PRESENCE=t.INTERACTION_RECEIPT=t.RECEIPTS=t.TRANSIENT_MESSAGE=t.MESSAGE_REACTION=t.TYPING_INDICATOR=t.LOGOUT_REASON=t.LOGOUT_CODE=t.READY_STATE=t.WS=void 0,t.WS={protocol:"wss://"},t.READY_STATE={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3,INVALID_JWT:4},t.LOGOUT_CODE=1e3,t.LOGOUT_REASON="User logged out",t.TYPING_INDICATOR={TYPE:"typing_indicator",ACTION:{STARTED:"started",ENDED:"ended"}},t.MESSAGE_REACTION={TYPE:"reaction",ACTION:{ADDED:"message_reaction_added",REMOVED:"message_reaction_removed"}},t.TRANSIENT_MESSAGE={TYPE:"transient_message"},t.RECEIPTS={TYPE:"receipts",ACTION:{READ:"read",DELIVERED:"delivered",READ_BY_ALL:"readByAll",DELIVERED_TO_ALL:"deliveredToAll"},RECEIPT_TYPE:{READ_RECEIPT:"read",DELIVERY_RECEIPT:"delivery",READ_BY_ALL_RECEIPT:"readByAll",DELIVERY_TO_ALL_RECEIPT:"deliveredToAll"}},t.INTERACTION_RECEIPT={TYPE:"interaction_completed"},t.PRESENCE={TYPE:"presence",ACTION:{ONLINE:"online",AVAILABLE:"available",OFFLINE:"offline"}},t.MESSAGE={TYPE:"message"},t.AUTH={TYPE:"auth"},t.KEYS={TYPE:"type",ACTION:"action",APP_ID:"appId",RECEIVER:"receiver",RECEIVER_TYPE:"receiverType",DEVICE_ID:"deviceId",BODY:"body",USER:"user",METADATA:"metadata",MESSAGE_ID:"messageId",TIMESTAMP:"timestamp",STATUS:"status",CODE:"code",SENDER:"sender",MESSAGE_SENDER:"messageSender",PRESENCE_SUBSCRIPTION:"presenceSubscription",AUTH:"auth",PING:"ping",DATA:"data",PARAMS:"params",ACK:"ack",PONG:"pong",INTERACTIONS:"interactions",REACTION:"reaction",REACTED_AT:"reactedAt",REACTED_BY:"reactedBy",ID:"id",UID:"uid",CONVERSATION_ID:"conversationId",PARENT_ID:"parentId",ROLES:"roles"},t.MODERATION_STATUS_CHANGED={TYPE:"on_moderation_status_changed"},t.STREAM_MESSAGE={TYPE:"streamed_message"}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=0<(a=i.trys).length&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CometChat=t.DEFAULT_TIMEOUT=void 0;var i=n(38),s=n(1),c=n(2),l=n(6),u=n(3),d=n(17),p=n(22),h=n(7),m=n(20),g=n(13),f=n(15),_=n(0),b=n(8),v=n(19),y=n(29),E=n(30),C=n(28),S=n(45),w=n(12),k=n(27),x=n(57),T=n(58),A=n(59),R=n(60),I=n(62),O=n(63),N=n(32),M=n(33),D=n(50),L=n(24),P=n(48),j=n(65),U=n(34),F=n(66),B=n(49),G=n(31),V=n(23),H=n(67),z=n(68),Y=n(69),q=n(51),K=n(4),W=n(91),J=n(40),Z=n(46),$=n(36),Q=n(25),X=n(41),ee=n(26),te=n(52),ne=n(92),re=n(93),ae=n(21),oe=n(53),ie=n(35),se=n(94),ce=n(18),le=n(54),ue=n(42),de=n(43),pe=n(44),he=n(11),me=n(39),ge=n(14),fe=n(95);t.DEFAULT_TIMEOUT=45;var _e=Y.WSConnectionHelper.getInstance(),be=q.ListenerHandlers.getInstance(),ve=function(){function e(t){try{e.appId=t,e.localStorage=d.LocalStorage.getInstance(),e.keyStore=y.KeyStore.getInstance()}catch(t){s.Logger.error("CometChat: constructor",t)}}return e.setAuthToken=function(t){try{e.authToken=t}catch(t){s.Logger.error("CometChat: setAuthToken",t)}},e.prototype.getAuthToken=function(){try{return e.authToken}catch(e){s.Logger.error("CometChat: getAuthToken",e)}},e.getAppId=function(){try{return e.appId}catch(e){s.Logger.error("CometChat: getAppId",e)}},e.prototype.getApiKey=function(){try{return e.apiKey}catch(e){s.Logger.error("CometChat: getApiKey",e)}},e.getMode=function(){try{return e.mode}catch(e){s.Logger.error("CometChat: getMode",e)}},e.setMode=function(t){try{e.mode=t}catch(t){s.Logger.error("CometChat: getMode",t)}},e.getSessionId=function(){try{return e.sessionId}catch(e){s.Logger.error("CometChat: getSessionId",e)}},e.initializeStorage=function(){var t;return a(this,void 0,void 0,function(){var n,r;return o(this,function(a){switch(a.label){case 0:if(e.keyStore)return[2];a.label=1;case 1:return a.trys.push([1,3,,5]),n=(null===(t=e.appSettings)||void 0===t?void 0:t.getStorageMode())||_.StorageMode.LOCAL,[4,(r=ge.StorageManager.getInstance()).initialize(n)];case 2:return a.sent(),e.keyStore=r.getStorage(e.getAppId(),_.LOCAL_STORE.KEYS_STORE),[3,5];case 3:return a.sent(),[4,(e.keyStore=he.createInstance({name:s.format(_.LOCAL_STORE.STORE_STRING,e.getAppId(),_.LOCAL_STORE.KEYS_STORE)})).setDriver([he.LOCALSTORAGE,he.INDEXEDDB,he.WEBSQL])];case 4:return a.sent(),[3,5];case 5:return[2]}})})},e.onStorageEvent=function(t){if(document&&!document.hasFocus()){var n=e.appId+":common_store/user";t.key===n&&null===t.newValue&&(e.authToken=void 0,e.didAnalyticsPingStart()&&e.clearAnalyticsPingTimer(),_e.WSLogout(),e.pushToLoginListener("","Logout_Success")),t.key===n&&null===t.oldValue&&d.LocalStorage.getInstance().get("user").then(function(t){t&&(e.user=new u.Me(t),e.setAuthToken(e.user.getAuthToken()),t.jwt&&(e.jwt=t.jwt),d.LocalStorage.getInstance().get("app_settings").then(function(t){if(t){if(t.hasOwnProperty(_.APP_SETTINGS.KEYS.APP_VERSION)){var n=parseInt(_.APPINFO.sdkVersion.charAt(1));t[_.APP_SETTINGS.KEYS.APP_VERSION]<n&&(e.appSettings.shouldAutoEstablishSocketConnection()||(e.shouldConnectToWS=!1),e.getInstance().internalRestart(e.user.getAuthToken()))}else e.appSettings.shouldAutoEstablishSocketConnection()||(e.shouldConnectToWS=!1),e.getInstance().internalRestart(e.user.getAuthToken());if(t[_.APP_SETTINGS.KEYS.MODE]&&(e.mode=t[_.APP_SETTINGS.KEYS.MODE]),t[_.APP_SETTINGS.KEYS.SETTINGS_HASH]&&(e.settingsHash=t[_.APP_SETTINGS.KEYS.SETTINGS_HASH]),t[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]&&(e.settingsHashReceivedAt=t[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]),e.isAnalyticsDisabled=!!t[_.APP_SETTINGS.KEYS.ANALYTICS_PING_DISABLED],e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!e.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),e.getConnectionStatus()!==_.CONNECTION_STATUS.CONNECTED){var r=new u.User(e.user);e.pushToLoginListener(r,"Login_Success"),e.appSettings.shouldAutoEstablishSocketConnection()&&e.WSLogin(e.user)}}}))})}},e.beforeUnload=function(t){var n=e.getDataFromSessionStorage(_.SESSION_STORE.SESSION_ID);e.removeDataFromSessionStorage(_.SESSION_STORE.SESSION_ID),d.LocalStorage.getInstance().set(_.SESSION_STORE.SESSION_ID,n)},e.didAnalyticsPingStart=function(){try{return e.isAnalyticsPingStarted}catch(e){s.Logger.error("CometChat: didAnalyticsPingStart",e)}},e.getDataFromSessionStorage=function(e){if(window.sessionStorage)return window.sessionStorage.getItem(e)},e.addDataToSessionStorage=function(e,t){window.sessionStorage&&window.sessionStorage.setItem(e,t)},e.removeDataFromSessionStorage=function(e){window.sessionStorage&&window.sessionStorage.removeItem(e)},e.init=function(t,n){var r=this;return void 0===t&&(t=""),new Promise(function(i,l){return a(r,void 0,void 0,function(){var r,a,p=this;return o(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),"object"==typeof t&&(t.hasOwnProperty("appId")&&(t=t.appId),t.hasOwnProperty("appSettings")&&(n=t.appSettings)),s.isFalsy(n)?n=(new U.AppSettingsBuilder).setRegion(U.AppSettings.REGION_EU).build():n.getRegion()==U.AppSettings.REGION_PRIVATE&&(n.region=t),(this.appSettings=n).getStorageMode()!==_.StorageMode.SESSION)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,me.registerSessionStorageDriver()];case 2:return o.sent(),[3,4];case 3:return r=o.sent(),l(new c.CometChatException(r)),[3,4];case 4:return s.isFalsy(t)?(l(new c.CometChatException(w.INIT_ERROR.NO_APP_ID)),[3,7]):[3,5];case 5:return window.addEventListener&&(window.addEventListener("storage",e.onStorageEvent,!1),window.addEventListener("beforeunload",e.beforeUnload,!1)),this.initialzed=!0,e.appId=t,e.getInstance(t),[4,e.initializeStorage()];case 6:o.sent(),d.LocalStorage.getInstance().get(_.SESSION_STORE.SESSION_ID).then(function(n){null==n||null==n?(e.sessionId=_.APPINFO.platform+"-"+_.APPINFO.sdkVersionWithUnderScore+"-"+fe()+"-"+(new Date).getTime(),e.addDataToSessionStorage(_.SESSION_STORE.SESSION_ID,e.getSessionId()),d.LocalStorage.getInstance().remove(_.SESSION_STORE.SESSION_ID)):(e.sessionId=n.toLocaleString(),d.LocalStorage.getInstance().remove(_.SESSION_STORE.SESSION_ID),e.addDataToSessionStorage(_.SESSION_STORE.SESSION_ID,e.getSessionId())),d.LocalStorage.getInstance().get(_.LOCAL_STORE.KEY_APP_ID).then(function(n){if(null==n||null==n)e.appId=t,e.getInstance(t),d.LocalStorage.getInstance().set(_.LOCAL_STORE.KEY_APP_ID,t),i(!0);else{var r=n.toLocaleString();r===t?(e.appId=r,e.getInstance(r),d.LocalStorage.getInstance().get(_.LOCAL_STORE.KEY_USER).then(function(t){t?(e.isLoggedOut=!1,e.user=new u.Me(t),new ne.PostDetails,e.setAuthToken(e.user.getAuthToken()),t.jwt&&(e.jwt=t.jwt),i(!0),d.LocalStorage.getInstance().get(_.LOCAL_STORE.KEY_APP_SETTINGS).then(function(t){if(t){if(t.hasOwnProperty(_.APP_SETTINGS.KEYS.APP_VERSION)){var n=parseInt(_.APPINFO.sdkVersion.charAt(1));t[_.APP_SETTINGS.KEYS.APP_VERSION]<n&&3!==t[_.APP_SETTINGS.KEYS.APP_VERSION]&&(p.appSettings.shouldAutoEstablishSocketConnection()||(e.shouldConnectToWS=!1),e.getInstance().internalRestart(e.user.getAuthToken()))}else p.appSettings.shouldAutoEstablishSocketConnection()||(e.shouldConnectToWS=!1),e.getInstance().internalRestart(e.user.getAuthToken());t[_.APP_SETTINGS.KEYS.SECURED_MEDIA_HOST]&&(e.SECURED_MEDIA_HOST=t[_.APP_SETTINGS.KEYS.SECURED_MEDIA_HOST]),t[_.APP_SETTINGS.KEYS.MODE]&&(e.mode=t[_.APP_SETTINGS.KEYS.MODE]),t[_.APP_SETTINGS.KEYS.SETTINGS_HASH]&&(e.settingsHash=t[_.APP_SETTINGS.KEYS.SETTINGS_HASH]),t[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]&&(e.settingsHashReceivedAt=t[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]),e.isAnalyticsDisabled=!!t[_.APP_SETTINGS.KEYS.ANALYTICS_PING_DISABLED],e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!p.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),_e&&!_e.connection&&p.appSettings.shouldAutoEstablishSocketConnection()&&(e.isConnectingFromInit=!0,e.WSLogin(e.user))}})):i(!0)})):p.clearCache().then(function(){e.apiKey=void 0,e.user=void 0,e.authToken=void 0,e.cometChat=void 0,e.mode=void 0,_e.WSLogout(),e.appId=t,d.LocalStorage.getInstance().set(_.LOCAL_STORE.KEY_APP_ID,t),e.getInstance(t),i(!0)})}y.KeyStore.getInstance().get(_.LOCAL_STORE.KEY_DEVICE_ID).then(function(e){if(null==e){var n=fe(),r=(new Date).getTime(),a=t+"_"+n+"_"+r;y.KeyStore.getInstance().set(_.LOCAL_STORE.KEY_DEVICE_ID,a)}})})}),o.label=7;case 7:return[3,9];case 8:return a=o.sent(),l(new c.CometChatException(a)),[3,9];case 9:return[2]}})})})},e.isInitialized=function(){try{return this.initialzed}catch(e){s.Logger.error("CometChat: isInitialized",e)}},e.getInstance=function(t){try{return this.cometChat||(this.cometChat=new e(t)),this.cometChat}catch(t){s.Logger.error("CometChat: getInstance",t)}},e.registerTokenForPushNotification=function(t,n){var r=this;return new Promise(function(a,o){try{e.keyStore.get(_.LOCAL_STORE.KEY_DEVICE_ID).then(function(i){s.getAppSettings().then(function(s){var u="",d=i,p=_.APPINFO.platform,h=_.APPINFO.sdkVersion,m=s[_.APP_SETTINGS.KEYS.CHAT_API_VERSION];if(navigator&&(u=navigator.userAgent),null==d){var g=fe(),f=(new Date).getTime();d=r.appId+"_"+g+"_"+f,e.keyStore.set(_.LOCAL_STORE.KEY_DEVICE_ID,d)}var b={platform:p,deviceId:d,appInfo:{version:h,apiVersion:m,userAgent:u,pushNotification:{fcmDeviceToken:t,settings:n}}};l.makeApiCall("updateMyDetails",{},b,!1).then(function(e){a("Token Registration successful")},function(e){o(new c.CometChatException(e.error))}).catch(function(e){o(new c.CometChatException(e))})},function(e){o(new c.CometChatException(e))})})}catch(e){o(new c.CometChatException(e))}})},e.pushToLoginListener=function(e,t){be.loginHandlers.map(function(n){try{if(n._eventListener)switch(t){case"Login_Success":s.isFalsy(n._eventListener.loginSuccess)||n._eventListener.loginSuccess(e);break;case"Login_Failure":s.isFalsy(n._eventListener.loginFailure)||n._eventListener.loginFailure(e);break;case"Logout_Success":s.isFalsy(n._eventListener.logoutSuccess)||n._eventListener.logoutSuccess()}}catch(n){s.Logger.error("ConnectionHandlers: onConnected Status",n)}})},e.login=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new Promise(function(r,i){return a(t,void 0,void 0,function(){var t,a,l=this;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.initializeStorage()];case 1:return o.sent(),e.loginInProgress?(e.isLoggedOut=!0,a=new c.CometChatException(w.LOGIN_ERROR.REQUEST_IN_PROGRESS),[2,i(a)]):(e.loginInProgress=!0,e.isConnectingFromInit=!1,e.localStorage.get(_.LOCAL_STORE.KEY_APP_ID).then(function(t){if(null==t||null==t){var a=new c.CometChatException(w.LOGIN_ERROR.NOT_INITIALIZED);return e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(a)}var o=t.toLocaleString();if(l.getInstance(o),e.appId=o,d.LocalStorage.getInstance().set(_.LOCAL_STORE.KEY_APP_ID,o),"object"==typeof n[0]){var p=n[0];n[0].hasOwnProperty("authToken")?n[0]=p.authToken:n[0].hasOwnProperty("username")&&n[0].hasOwnProperty("apiKey")&&(n[0]=p.username,n[1]=p.apiKey)}if(2==n.length){if(s.isFalsy(n[0])||s.isFalsy(n[1]))return a=new c.CometChatException(w.ERRORS.PARAMETER_MISSING),e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(a)}else{if(1!=n.length)return a=new c.CometChatException(w.ERRORS.PARAMETER_MISSING),e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(a);if(s.isFalsy(n[0]))return a=new c.CometChatException(w.ERRORS.PARAMETER_MISSING),e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(a)}return s.isFalsy(l.getAppId())?(a=new c.CometChatException(w.LOGIN_ERROR.NOT_INITIALIZED),e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(a)):e.localStorage.get(_.LOCAL_STORE.KEY_USER).then(function(t){if(2==n.length){e.apiKey=n[1];var a=n[0];if(null!=t&&t.uid!==n[0])e.localStorage.clearStore().then(function(){_e.WSLogout(),e.generateAuthToken(a).then(function(t){e.user=new u.Me(t),e.setAuthToken(e.user.getAuthToken()),e.getLoggedInUser().then(function(t){(e.user=new u.Me(t)).setAuthToken(e.authToken),e.setAuthToken(e.user.getAuthToken());var n=e.user;n.setStatus(_.PresenceConstatnts.STATUS.ONLINE),e.localStorage.set("user",n);var a=new u.User(n);r(a),e.isConnectingFromInit||e.internalRestart||(e.pushToLoginListener(a,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!e.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),e.isLoggedOut=!1,(e.appSettings.shouldAutoEstablishSocketConnection()||e.internalRestart)&&e.shouldConnectToWS&&e.WSLogin(e.user)},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})});else{if(!s.isFalsy(e.authToken)){var o=new u.User(l.user);return e.internalRestart||(e.pushToLoginListener(o,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.isLoggedOut=!1,r(o)}if(!s.isFalsy(a)){if(s.isFalsy(e.apiKey)){var d=new c.CometChatException(w.LOGIN_ERROR.UNAUTHORISED);return e.internalRestart||e.pushToLoginListener(d,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(d)}l.generateAuthToken(a).then(function(t){l.user=new u.Me(t),l.setAuthToken(e.user.getAuthToken()),l.getLoggedInUser().then(function(t){l.user=new u.Me(t),l.user.setAuthToken(e.authToken),l.setAuthToken(l.user.getAuthToken()),_e.WSLogout();var n=l.user;n.setStatus(_.PresenceConstatnts.STATUS.ONLINE),l.localStorage.set("user",n);var a=new u.User(n);r(a),e.isConnectingFromInit||e.internalRestart||(e.pushToLoginListener(a,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!e.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),e.isLoggedOut=!1,(e.appSettings.shouldAutoEstablishSocketConnection()||e.internalRestart)&&e.shouldConnectToWS&&l.WSLogin(l.user)},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})}}}else e.authToken=n[0],l.getLoggedInUser().then(function(a){if(a.authToken!=n[0]){var o=l;o.localStorage.clearStore().then(function(){_e.WSLogout(),o.getLoggedInUser().then(function(t){(e.user=new u.Me(t)).setAuthToken(e.authToken),e.setAuthToken(e.user.getAuthToken());var n=e.user;n.setStatus(_.PresenceConstatnts.STATUS.ONLINE),o.localStorage.set("user",n);var a=new u.User(n);r(a),e.isConnectingFromInit||e.internalRestart||(e.pushToLoginListener(a,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!e.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),e.isLoggedOut=!1,(e.appSettings.shouldAutoEstablishSocketConnection()||e.internalRestart)&&e.shouldConnectToWS&&e.WSLogin(new u.Me(t))},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})})}else{if(t){var s=new u.User(a);return e.internalRestart||(e.pushToLoginListener(s,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.isLoggedOut=!1,r(s)}(e.user=new u.Me(a)).setAuthToken(e.authToken),e.setAuthToken(e.user.getAuthToken());var c=e.user;c.setStatus(_.PresenceConstatnts.STATUS.ONLINE),e.localStorage.set("user",c);var d=new u.User(c);r(d),e.isConnectingFromInit||e.internalRestart||(e.pushToLoginListener(d,"Login_Success"),new ne.PostDetails),e.loginInProgress=!1,e.didAnalyticsPingStart()||e.isAnalyticsDisabled||!e.appSettings.shouldAutoEstablishSocketConnection()||(e.pingAnalytics(),e.startAnalyticsPingTimer()),e.isLoggedOut=!1,(e.appSettings.shouldAutoEstablishSocketConnection()||e.internalRestart)&&e.shouldConnectToWS&&e.WSLogin(new u.Me(a))}},function(t){return e.internalRestart||e.pushToLoginListener(t,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,i(t)})})}),[3,3]);case 2:return t=o.sent(),a=new c.CometChatException(t),e.internalRestart||e.pushToLoginListener(a,"Login_Failure"),e.loginInProgress=!1,e.isLoggedOut=!0,[2,i(a)];case 3:return[2]}})})})},e.sendMessage=function(e){var t=this;return new Promise(function(n,r){return a(t,void 0,void 0,function(){var t,i,u,d=this;return o(this,function(h){try{return e instanceof m.TextMessage||e instanceof p.MediaMessage||e instanceof L.CustomMessage||e instanceof Q.InteractiveMessage||(e=e[_.MessageConstatnts.KEYS.ATTATCHMENT]?(t=_.MessageConstatnts.TYPE.FILE,s.isImage(e[_.MessageConstatnts.KEYS.ATTATCHMENT])?t=_.MessageConstatnts.TYPE.IMAGE:s.isAudio(e[_.MessageConstatnts.KEYS.ATTATCHMENT])?t=_.MessageConstatnts.TYPE.AUDIO:s.isVideo(e[_.MessageConstatnts.KEYS.ATTATCHMENT])&&(t=_.MessageConstatnts.TYPE.VIDEO),new p.MediaMessage(e[_.MessageConstatnts.KEYS.RECEIVER_ID],e[_.MessageConstatnts.KEYS.ATTATCHMENT],t,e[_.MessageConstatnts.KEYS.RECEIVER_TYPE])):new m.TextMessage(e[_.MessageConstatnts.KEYS.RECEIVER_ID],e[_.MessageConstatnts.KEYS.TEXT],e[_.MessageConstatnts.KEYS.RECEIVER_TYPE])),(i=s.validateMessage(e))instanceof c.CometChatException?(r(i),[2]):(e.receiver=e.receiverId,delete e.receiverId,u=e.parentMessageId,[2,l.makeApiCall(u?"sendMessageInThread":"sendMessage",u?{parentId:u}:{},e,e instanceof p.MediaMessage).then(function(e){return a(d,void 0,void 0,function(){var t;return o(this,function(r){return t=g.MessageController.trasformJSONMessge(e.data),N.MessageListnerMaping.getInstance().set("all",parseInt(t.id)),n(t),[2]})})},function(e){r(new c.CometChatException(e.error))})])}catch(h){r(new c.CometChatException(h))}return[2]})})})},e.sendDirectMessage=function(e){try{return Object.assign(e,{receiverType:_.MessageConstatnts.RECEIVER_TYPE.USER}),this.sendMessage(e)}catch(e){s.Logger.error("CometChat: sendDirectMessage",e)}},e.sendGroupMessage=function(e){try{return Object.assign(e,{receiverType:_.MessageConstatnts.RECEIVER_TYPE.GROUP}),this.sendMessage(e)}catch(e){s.Logger.error("CometChat: sendGroupMessage",e)}},e.sendMediaMessage=function(e){try{return this.sendMessage(e)}catch(e){s.Logger.error("CometChat: sendMediaMessage",e)}},e.sendCustomMessage=function(e){try{return this.sendMessage(e)}catch(e){s.Logger.error("CometChat: sendCustomMessage",e)}},e.sendInteractiveMessage=function(e){try{return this.sendMessage(e)}catch(e){s.Logger.error("CometChat: sendInteractiveMessage",e)}},e.getLastDeliveredMessageId=function(){return a(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N.MessageListnerMaping.getInstance().get(_.LOCAL_STORE.KEY_MESSAGE_LISTENER_LIST)];case 1:return[2,t.sent()];case 2:return e=t.sent(),s.Logger.error("CometChat: getLastDeliveredMessageId",e),[3,3];case 3:return[2]}})})},e.startTyping=function(t){try{if(s.isFalsy(t))return;var n=void 0,r=this.RECEIVER_TYPE.USER,a={};if(t instanceof M.TypingIndicator)n=t.getReceiverId(),r=t.getReceiverType(),a=t.getMetadata();else{if(!t.hasOwnProperty(_.TYPING_NOTIFICATION.RECEIVER_ID))return;n=t[_.TYPING_NOTIFICATION.RECEIVER_ID],t.hasOwnProperty(_.TYPING_NOTIFICATION.RECEIVER_TYPE)&&(r=t[_.TYPING_NOTIFICATION.RECEIVER_TYPE]),t.hasOwnProperty(_.TYPING_NOTIFICATION.META)&&(a=t[_.TYPING_NOTIFICATION.META])}if(s.isFalsy(n))return;if(null==D.TypingNotificationController.getTypingStartedMap(n)){var o=e.getMode();return s.isFalsy(o)||o&&o!==_.APP_SETTINGS.KEYS.NO_TRANSIENT&&o!==_.APP_SETTINGS.KEYS.LIMITED_TRANSIENT?(_e.startTypingIndicator(n,r,a),D.TypingNotificationController.addTypingStarted(n),void D.TypingNotificationController.removeTypingEnded(n)):void 0}}catch(t){s.Logger.error("CometChat: startTyping",t)}},e.endTyping=function(t){try{if(s.isFalsy(t))return;var n=void 0,r=this.RECEIVER_TYPE.USER,a={};if(t instanceof M.TypingIndicator)n=t.getReceiverId(),r=t.getReceiverType(),a=t.getMetadata();else{if(!t.hasOwnProperty(_.TYPING_NOTIFICATION.RECEIVER_ID))return;n=t[_.TYPING_NOTIFICATION.RECEIVER_ID],t.hasOwnProperty(_.TYPING_NOTIFICATION.RECEIVER_TYPE)&&(r=t[_.TYPING_NOTIFICATION.RECEIVER_TYPE]),r=r==this.RECEIVER_TYPE.USER?_.WS.CONVERSATION.TYPE.CHAT:_.WS.CONVERSATION.TYPE.GROUP_CHAT,t.hasOwnProperty(_.TYPING_NOTIFICATION.META)&&(a=t[_.TYPING_NOTIFICATION.META])}if(s.isFalsy(n))return;if(null==D.TypingNotificationController.getTypingEndedMap(n)){var o=e.getMode();return s.isFalsy(o)||o&&o!==_.APP_SETTINGS.KEYS.NO_TRANSIENT&&o!==_.APP_SETTINGS.KEYS.LIMITED_TRANSIENT?(_e.pauseTypingIndicator(n,r,a),D.TypingNotificationController.addTypingEnded(n),void D.TypingNotificationController.removeTypingStarted(n)):void 0}}catch(t){s.Logger.error("CometChat: endTyping",t)}},e.markAsRead=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise(function(n,r){try{var a=void 0,o=void 0,i=void 0,l=void 0;if(3===t.length)return r(new c.CometChatException(_.ReceiptErrors.MISSING_PARAMETERS));if(4===t.length){if(s.isFalsy(t[0])||"string"!=typeof t[0])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE_ID","MESSAGE_ID","Message ID should be a string."))));if(a=t[0],s.isFalsy(t[1])||"string"!=typeof t[1])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"RECEIVER_ID","RECEIVER_ID","Receiver ID should be a string."))));if(o=t[1],s.isFalsy(t[2])||"string"!=typeof t[2])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"RECEIVER_TYPE","RECEIVER_TYPE","Receiver type should be a string."))));if(i=t[2],s.isFalsy(t[3])||"string"!=typeof t[3])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"SENDER_ID","SENDER_ID","Sender ID should be a string."))));l=t[3]}else{if(1!==t.length)return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"ARGUMENTS","ARGUMENTS","markAsRead() expects either 1 or 4 arguments."))));if(s.isFalsy(t[0])||!(t[0]instanceof h.BaseMessage))return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE","MESSAGE","Invalid message object received."))));var u=t[0];a=u.getId().toString(),o=(i=u.getReceiverType())===_.MessageConstatnts.RECEIVER_TYPE.USER?u.getSender().getUid()===e.user.getUid()?u.getReceiverId():u.getSender().getUid():u.getReceiverId(),l=u.getSender().getUid()}var d=e.getMode();return s.isFalsy(d)||d&&d!==_.APP_SETTINGS.KEYS.NO_TRANSIENT&&d!==_.APP_SETTINGS.KEYS.LIMITED_TRANSIENT?e.getConnectionStatus()===_.CONNECTION_STATUS.CONNECTED?(_e.markAsRead(o,i,a,l),n()):r(new c.CometChatException(_.ReceiptErrors.NO_WEBSOCKET_CONNECTION)):r(new c.CometChatException(_.ReceiptErrors.RECEIPTS_TEMPORARILY_BLOCKED))}catch(n){return s.Logger.error("CometChat: markAsRead",n),r(new c.CometChatException(_.ReceiptErrors.UNKNOWN_ERROR_OCCURRED))}})},e.markAsDelivered=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise(function(n,r){try{var a=void 0,o=void 0,i=void 0,l=void 0;if(3===t.length)return r(new c.CometChatException(_.ReceiptErrors.MISSING_PARAMETERS));if(4===t.length){if(s.isFalsy(t[0])||"string"!=typeof t[0])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE_ID","MESSAGE_ID","Message ID should be a string."))));if(a=t[0],s.isFalsy(t[1])||"string"!=typeof t[1])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"RECEIVER_ID","RECEIVER_ID","Receiver ID should be a string."))));if(o=t[1],s.isFalsy(t[2])||"string"!=typeof t[2])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"RECEIVER_TYPE","RECEIVER_TYPE","Receiver type should be a string."))));if(i=t[2],s.isFalsy(t[3])||"string"!=typeof t[3])return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"SENDER_ID","SENDER_ID","Sender ID should be a string."))));l=t[3]}else{if(1!==t.length)return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"ARGUMENTS","ARGUMENTS","markAsDelivered() expects either 1 or 4 arguments."))));if(s.isFalsy(t[0])||!(t[0]instanceof h.BaseMessage))return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE","MESSAGE","Invalid message object received."))));var u=t[0];a=u.getId().toString(),o=(i=u.getReceiverType())===_.MessageConstatnts.RECEIVER_TYPE.USER?u.getSender().getUid()===e.user.getUid()?u.getReceiverId():u.getSender().getUid():u.getReceiverId(),l=u.getSender().getUid()}var d=e.getMode();return s.isFalsy(d)||d&&d!==_.APP_SETTINGS.KEYS.NO_TRANSIENT&&d!==_.APP_SETTINGS.KEYS.LIMITED_TRANSIENT?e.getConnectionStatus()===_.CONNECTION_STATUS.CONNECTED?(_e.markAsDelivered(o,i,a,l),n()):r(new c.CometChatException(_.ReceiptErrors.NO_WEBSOCKET_CONNECTION)):r(new c.CometChatException(_.ReceiptErrors.RECEIPTS_TEMPORARILY_BLOCKED))}catch(n){return s.Logger.error("CometChat: markAsDelivered",n),r(new c.CometChatException(_.ReceiptErrors.UNKNOWN_ERROR_OCCURRED))}})},e.markConversationAsRead=function(e,t){return new Promise(function(n,r){try{var a=s.validateConversationType(t);if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(e,t);if(o instanceof c.CometChatException)return void r(o);var i={},u="";t=t.toLowerCase(),e=e.toLowerCase(),t===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(u="markGroupConversationAsRead",i.guid=e):(u="markUserConversationAsRead",i.uid=e),l.makeApiCall(u,i,{}).then(function(e){n("Conversation marked as read successfully.")},function(e){return r(new c.CometChatException(e.error))})}catch(a){return s.Logger.error("CometChat: markConversationAsRead",a),r(new c.CometChatException(a))}})},e.markConversationAsDelivered=function(e,t){return new Promise(function(n,r){try{var a=s.validateConversationType(t);if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(e,t);if(o instanceof c.CometChatException)return void r(o);var i={},u="";t=t.toLowerCase(),e=e.toLowerCase(),t===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(u="markGroupConversationAsDelivered",i.guid=e):(u="markUserConversationAsDelivered",i.uid=e),l.makeApiCall(u,i,{}).then(function(e){n("Conversation marked as delivered successfully.")},function(e){return r(new c.CometChatException(e.error))})}catch(a){return s.Logger.error("CometChat: markConversationAsDelivered",a),r(new c.CometChatException(a))}})},e.markAsUnread=function(e){var t=this;return new Promise(function(n,r){try{var a;if(s.isFalsy(e)||!(e instanceof h.BaseMessage))return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE","MESSAGE","Invalid message object received."))));a=e.getId().toString();var o={},i="";e.getReceiverType()===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(i="markGroupMessagesAsUnread",o.guid=e.getReceiverId()):(i="markUserMessagesAsUnread",t.user&&e.getSender().getUid()===t.user.getUid()?o.uid=e.getReceiverId():o.uid=e.getSender().getUid()),l.makeApiCall(i,o,{messageId:a}).then(function(e){return n("Messages marked as unread successfully.")},function(e){return r(new c.CometChatException(e.error))})}catch(a){return s.Logger.error("CometChat: markAsUnread",a),r(new c.CometChatException(a))}})},e.markMessageAsUnread=function(e){var t=this;return B.Conversation,new Promise(function(n,r){try{var a;if(s.isFalsy(e)||!(e instanceof h.BaseMessage))return r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ReceiptErrors.INVALID_PARAMETER),"MESSAGE","MESSAGE","Invalid message object received."))));a=e.getId().toString();var o={},i="";e.getReceiverType()===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(i="markGroupMessagesAsUnread",o.guid=e.getReceiverId()):(i="markUserMessagesAsUnread",t.user&&e.getSender().getUid()===t.user.getUid()?o.uid=e.getReceiverId():o.uid=e.getSender().getUid()),l.makeApiCall(i,o,{messageId:a}).then(function(e){var t,r=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.conversation;return n(G.ConversationController.trasformJSONConversation(r.conversationId,r.conversationType,r.lastMessage,r.conversationWith,parseInt(r.unreadMessageCount),r.tags?r.tags:[],r.unreadMentionsCount,r.lastReadMessageId,r.latestMessageId))},function(e){return r(new c.CometChatException(e.error))})}catch(a){return s.Logger.error("CometChat: markMessageAsUnread",a),r(new c.CometChatException(a))}})},e.sendTransientMessage=function(t){try{if(s.isFalsy(t))return;var n,r,a;if(!(t instanceof $.TransientMessage))return;if(n=t.getReceiverId(),r=t.getReceiverType(),a=t.getData(),s.isFalsy(n)||s.isFalsy(r))return;var o=e.getMode();return s.isFalsy(o)||o&&o!==_.APP_SETTINGS.KEYS.NO_TRANSIENT?void _e.sendTransientMessage(n,r,a):void 0}catch(t){s.Logger.error("CometChat: sendTransientMessage",t)}},e.sendTestMessage=function(e){return a(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),(t=e)instanceof h.BaseMessage?[3,2]:[4,F.CometChatHelper.processMessage(e)];case 1:t=r.sent(),r.label=2;case 2:return t instanceof m.TextMessage&&Y.WSConnectionHelper.getInstance().publishMessage(t),[3,4];case 3:return n=r.sent(),s.Logger.error("CometChat: sendTestMessage",n),[3,4];case 4:return[2]}})})},e.getMessageDetails=function(e){return new Promise(function(t,n){try{s.isFalsy(e)?n(new c.CometChatException(w.ERRORS.PARAMETER_MISSING)):l.makeApiCall("getMessageDetails",{messageId:e}).then(function(e){t(g.MessageController.trasformJSONMessge(e.data))},function(e){s.Logger.error("CometChat:GetMessageDetails:",e),n(new c.CometChatException(e.error))})}catch(e){n(new c.CometChatException(e))}})},e.getMessageReceipts=function(e){return new Promise(function(t,n){try{var r=s.validateMsgId(e);if(r instanceof c.CometChatException)return void n(r);s.isFalsy(e)?n(new c.CometChatException(w.ERRORS.PARAMETER_MISSING)):l.makeApiCall("getMessageDetails",{messageId:e}).then(function(e){g.MessageController.getReceiptsFromJSON(e.data).then(function(e){t(e)},function(e){n(new c.CometChatException(e))})},function(e){s.Logger.error("CometChat:GetMessageDetails:",e),n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.getUnreadMessageCount=function(e){void 0===e&&(e=!1);var t=0;return new Promise(function(n,r){try{var a=s.validateHideMessagesFromBlockedUsers(e);if(a instanceof c.CometChatException)return void r(a);e&&(t=1),l.makeApiCall("getMessages",{},{unread:1,count:1,hideMessagesFromBlockedUsers:t}).then(function(e){var t={},r={};e.data.map(function(e){e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_TYPE]==_.MessageConstatnts.RECEIVER_TYPE.GROUP?r[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT]:t[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT]}),n({users:t,groups:r})},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.getUnreadMessageCountForAllUsers=function(e){void 0===e&&(e=!1);var t=0;return new Promise(function(n,a){try{var o=s.validateHideMessagesFromBlockedUsers(e);if(o instanceof c.CometChatException)return void a(o);e&&(t=1),l.makeApiCall("getMessages",{},{hideMessagesFromBlockedUsers:t,receiverType:_.MessageConstatnts.RECEIVER_TYPE.USER,unread:1,count:1}).then(function(e){var t={};e.data.map(function(e){t[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT]}),n(r({},t))},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.getUnreadMessageCountForAllGroups=function(e){void 0===e&&(e=!1);var t=0;return new Promise(function(n,a){try{var o=s.validateHideMessagesFromBlockedUsers(e);if(o instanceof c.CometChatException)return void a(o);e&&(t=1),l.makeApiCall("getMessages",{},{hideMessagesFromBlockedUsers:t,receiverType:_.MessageConstatnts.RECEIVER_TYPE.GROUP,unread:1,count:1}).then(function(e){var t={};e.data.map(function(e){e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_TYPE]==_.MessageConstatnts.RECEIVER_TYPE.GROUP&&(t[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT])}),n(r({},t))},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.getUnreadMessageCountForUser=function(e,t){void 0===t&&(t=!1);var n=0;return new Promise(function(a,o){try{var i=s.validateId(e,"user");if(i instanceof c.CometChatException)return void o(i);var u=s.validateHideMessagesFromBlockedUsers(t);if(u instanceof c.CometChatException)return void o(u);t&&(n=1),l.makeApiCall("getUserMessages",{listId:e},{hideMessagesFromBlockedUsers:n,unread:1,count:1,uid:e}).then(function(e){var t={};e.data.map(function(e){t[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT]}),a(r({},t))},function(e){o(new c.CometChatException(e.error))})}catch(i){o(new c.CometChatException(i))}})},e.getUnreadMessageCountForGroup=function(e,t){void 0===t&&(t=!1);var n=0;return new Promise(function(a,o){try{var i=s.validateId(e,"group");if(i instanceof c.CometChatException)return void o(i);var u=s.validateHideMessagesFromBlockedUsers(t);if(u instanceof c.CometChatException)return void o(u);t&&(n=1),l.makeApiCall("getGroupMessages",{listId:e},{hideMessagesFromBlockedUsers:n,unread:1,count:1,guid:e}).then(function(e){var t={};e.data.map(function(e){e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_TYPE]==_.MessageConstatnts.RECEIVER_TYPE.GROUP&&(t[e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.ENTITY_Id]]=e[_.ResponseConstants.RESPONSE_KEYS.UNREAD_UNDELIVERED_KEYS.COUNT])}),a(r({},t))},function(e){o(new c.CometChatException(e.error))})}catch(i){o(new c.CometChatException(i))}})},e.addReaction=function(e,t){return new Promise(function(n,r){try{var a=s.validateMsgId(e);if(a instanceof c.CometChatException)return void r(a);s.isFalsy(e)||s.isFalsy(t)?r(new c.CometChatException(w.ERRORS.PARAMETER_MISSING)):l.makeApiCall("addReaction",{messageId:e,reaction:encodeURIComponent(t)}).then(function(e){var t=g.MessageController.trasformJSONMessge(e.data);n(t)},function(e){s.Logger.error("CometChat:addReaction:",e),r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.removeReaction=function(e,t){return new Promise(function(n,r){try{var a=s.validateMsgId(e);if(a instanceof c.CometChatException)return void r(a);s.isFalsy(e)||s.isFalsy(t)?r(new c.CometChatException(w.ERRORS.PARAMETER_MISSING)):l.makeApiCall("removeReaction",{messageId:e,reaction:encodeURIComponent(t)}).then(function(e){var t=g.MessageController.trasformJSONMessge(e.data);n(t)},function(e){s.Logger.error("CometChat:removeReaction:",e),r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.editMessage=function(e){return new Promise(function(t,n){try{var r=s.validateMsgId(e.getId());if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("updateMessage",{messageId:e.getId()},e).then(function(e){t(g.MessageController.trasformJSONMessge(e.data).getActionOn())},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.deleteMessage=function(e){return new Promise(function(t,n){try{var r=s.validateMsgId(e);if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("deleteMessage",{messageId:e},{id:e}).then(function(e){t(g.MessageController.trasformJSONMessge(e.data).getActionOn())},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.getOnlineUserCount=function(){return new Promise(function(t,n){try{s.getAppSettings().then(function(r){var a=s.format((new i.EndpointFactory).wsApi,s.getChatHost(r),s.format(_.ONLINE_MEMBER_COUNT_API.ENDPOINTS.GET_ONLINE_MEMBER_COUNT,r[_.APP_SETTINGS.KEYS.WS_API_VERSION])),o={appId:e.appId,Authorization:e.jwt,Accept:"application/json","Content-Type":"application/json"};l.postData(a,"POST",{},o,!1).then(function(e){return e.json()}).then(function(e){return e.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_DATA)?t(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ONLINE_MEMBER_COUNT_API.RESPONSE.ONLINE_USERS_COUNT]):n(new c.CometChatException(e.error))}).catch(function(){var e={error:w.FETCH_ERROR.ERROR_IN_API_CALL};return n(e)})},function(e){return n(new c.CometChatException(e))})}catch(e){return n(new c.CometChatException(e))}})},e.getOnlineGroupMemberCount=function(t){return new Promise(function(n,r){try{if(!t||0==t.length)return r(new c.CometChatException(_.ONLINE_MEMBER_COUNT_API.ERRORS.INVALID_GROUPLIST));s.getAppSettings().then(function(a){var o=s.format((new i.EndpointFactory).wsApi,s.getChatHost(a),s.format(_.ONLINE_MEMBER_COUNT_API.ENDPOINTS.GET_ONLINE_MEMBER_COUNT,a[_.APP_SETTINGS.KEYS.WS_API_VERSION])),u={groups:t},d={appId:e.appId,Authorization:e.jwt,Accept:"application/json","Content-Type":"application/json"};l.postData(o,"POST",u,d,!1).then(function(e){return e.json()}).then(function(e){return e.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_DATA)?n(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ONLINE_MEMBER_COUNT_API.RESPONSE.GROUPS]):r(new c.CometChatException(e.error))}).catch(function(){var e={error:w.FETCH_ERROR.ERROR_IN_API_CALL};return r(e)})},function(e){return r(new c.CometChatException(e))})}catch(e){return r(new c.CometChatException(e))}})},e.createUser=function(t,n){return new Promise(function(r,a){try{if(s.isFalsy(n))return void a(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.GENERAL_ERROR.INVALID),"AUTH_KEY","AUTH_KEY","AUTH_KEY","AUTH_KEY"))));e.apiKey=n;var o=s.validateCreateUser(t);if(o instanceof c.CometChatException)return void a(o);if(!(t instanceof u.User)){var i=void 0;if(!t.hasOwnProperty(_.UserConstants.UID))return void a(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));if(!t.hasOwnProperty(_.UserConstants.NAME))return void a(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));i=new u.User(t[_.UserConstants.UID],t[_.UserConstants.NAME]),t.hasOwnProperty(_.UserConstants.AVATAR)&&i.setAvatar(t[_.UserConstants.AVATAR]),t.hasOwnProperty(_.UserConstants.ROLE)&&i.setRole(t[_.UserConstants.ROLE]),t.hasOwnProperty(_.UserConstants.META_DATA)&&i.setMetadata(t[_.UserConstants.META_DATA]),t.hasOwnProperty(_.UserConstants.LINK)&&i.setLink(t[_.UserConstants.LINK]),t.hasOwnProperty(_.UserConstants.STATUS_MESSAGE)&&i.setStatusMessage(t[_.UserConstants.STATUS_MESSAGE]),t.hasOwnProperty(_.UserConstants.TAGS)&&i.setTags(t[_.UserConstants.TAGS]),t=i}l.makeApiCall("createUser",{},t).then(function(e){var t=f.UsersController.trasformJSONUser(e.data);r(t)},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.updateUser=function(t,n){var r=this;return new Promise(function(a,o){try{if(s.isFalsy(n))return void o(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.GENERAL_ERROR.INVALID),"AUTH_KEY","AUTH_KEY","AUTH_KEY","AUTH_KEY"))));e.apiKey=n;var i=s.validateUpdateUser(t);if(i instanceof c.CometChatException)return void o(i);if(!(t instanceof u.User)){var p=void 0;if(!t.hasOwnProperty(_.UserConstants.UID))return void o(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));p=new u.User(t[_.UserConstants.UID]),t.hasOwnProperty(_.UserConstants.NAME)&&p.setName(t[_.UserConstants.NAME]),t.hasOwnProperty(_.UserConstants.AVATAR)&&p.setAvatar(t[_.UserConstants.AVATAR]),t.hasOwnProperty(_.UserConstants.ROLE)&&p.setRole(t[_.UserConstants.ROLE]),t.hasOwnProperty(_.UserConstants.META_DATA)&&p.setMetadata(t[_.UserConstants.META_DATA]),t.hasOwnProperty(_.UserConstants.LINK)&&p.setLink(t[_.UserConstants.LINK]),t.hasOwnProperty(_.UserConstants.STATUS_MESSAGE)&&p.setStatusMessage(t[_.UserConstants.STATUS_MESSAGE]),t.hasOwnProperty(_.UserConstants.TAGS)&&p.setTags(t[_.UserConstants.TAGS]),t=p}var h=t.uid;l.makeApiCall("updateUser",{uid:h},t).then(function(t){if(r.user&&h.toLocaleLowerCase()===r.user.getUid().toLocaleLowerCase())d.LocalStorage.getInstance().get("user").then(function(n){if(n){var o=f.UsersController.trasformJSONUser(t.data),i=t.data;i.wsChannel=n.wsChannel,i.authToken=e.authToken,i.status=_.PresenceConstatnts.STATUS.ONLINE,n.jwt&&(i.jwt=n.jwt),e.user=new u.Me(i),r.localStorage.set("user",e.user),a(o)}});else{var n=f.UsersController.trasformJSONUser(t.data);a(n)}},function(e){o(new c.CometChatException(e.error))})}catch(i){o(new c.CometChatException(i))}})},e.updateCurrentUserDetails=function(t){var n=this;return new Promise(function(r,a){try{t.uid=n.user.uid;var o=s.validateUpdateUser(t);if(o instanceof c.CometChatException)return void a(o);if(!(t instanceof u.User)){var i=void 0;t.hasOwnProperty(_.UserConstants.UID)&&(i=new u.User(t[_.UserConstants.UID])),t.hasOwnProperty(_.UserConstants.NAME)&&i.setName(t[_.UserConstants.NAME]),t.hasOwnProperty(_.UserConstants.AVATAR)&&i.setAvatar(t[_.UserConstants.AVATAR]),t.hasOwnProperty(_.UserConstants.ROLE)&&i.setRole(t[_.UserConstants.ROLE]),t.hasOwnProperty(_.UserConstants.META_DATA)&&i.setMetadata(t[_.UserConstants.META_DATA]),t.hasOwnProperty(_.UserConstants.LINK)&&i.setLink(t[_.UserConstants.LINK]),t.hasOwnProperty(_.UserConstants.STATUS_MESSAGE)&&i.setStatusMessage(t[_.UserConstants.STATUS_MESSAGE]),t.hasOwnProperty(_.UserConstants.TAGS)&&i.setTags(t[_.UserConstants.TAGS]),t=i}l.makeApiCall("updateMyDetails",{},t).then(function(t){var n=f.UsersController.trasformJSONUser(t.data),a=e.user=new u.Me(t.data);a.setStatus(_.PresenceConstatnts.STATUS.ONLINE),e.localStorage.set("user",a),r(n)},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.getUser=function(e){return new Promise(function(t,n){try{"object"==typeof e&&e.hasOwnProperty("uid")&&(e=e.uid);var r=s.validateId(e,"user");if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("user",{uid:e}).then(function(e){var n=f.UsersController.trasformJSONUser(e.data);t(n)}).catch(function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.getLoggedInUser=function(){var t=this;return new Promise(function(n,r){try{e.localStorage.get(_.LOCAL_STORE.KEY_USER).then(function(a){if(a)e.user=new u.Me(a),n(e.user);else{var o="",i="",p=_.APPINFO.platform,h=_.APPINFO.sdkVersion,m=_.APPINFO.apiVersion;e.keyStore.get(_.LOCAL_STORE.KEY_DEVICE_ID).then(function(a){if(i=a,navigator&&(o=navigator.userAgent),null==i){var g=fe(),f=(new Date).getTime();i=t.appId+"_"+g+"_"+f,e.keyStore.set(_.LOCAL_STORE.KEY_DEVICE_ID,i)}var b={version:h,apiVersion:m,userAgent:o};s.isFalsy(t.platform)||(b.platform=t.platform),s.isFalsy(t.language)||(b.language=t.language),s.isFalsy(t.resource)||(b.resource=t.resource);var v={platform:p,deviceId:i,appInfo:b};l.makeApiCall("updateMyDetails",{},v,!1).then(function(t){t.data.jwt&&(e.jwt=t.data.jwt);var r=t.data.settings;r&&(d.LocalStorage.getInstance().set("app_settings",r),r[_.APP_SETTINGS.KEYS.MODE]&&e.setMode(r[_.APP_SETTINGS.KEYS.MODE]),r[_.APP_SETTINGS.KEYS.SETTINGS_HASH]&&(e.settingsHash=r[_.APP_SETTINGS.KEYS.SETTINGS_HASH]),r[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]&&(e.settingsHashReceivedAt=r[_.APP_SETTINGS.KEYS.SETTINGS_HASH_RECEIVED_AT]),e.isAnalyticsDisabled=!!r[_.APP_SETTINGS.KEYS.ANALYTICS_PING_DISABLED],r[_.APP_SETTINGS.KEYS.SECURED_MEDIA_HOST]&&(e.SECURED_MEDIA_HOST=r[_.APP_SETTINGS.KEYS.SECURED_MEDIA_HOST])),n(new u.Me(t.data))},function(e){r(new c.CometChatException(e.error))}).catch(function(e){r(new c.CometChatException(e))})})}})}catch(e){r(new c.CometChatException(e))}})},e.getLoggedinUser=function(){return new Promise(function(t,n){try{e.localStorage.get(_.LOCAL_STORE.KEY_USER).then(function(e){t(e?new u.User(e):null)},function(e){t(null)})}catch(e){n(new c.CometChatException(e))}})},e.blockUsers=function(e){return new Promise(function(t,n){try{var r=s.validateArray(e,"blockUsers");if(r instanceof c.CometChatException)return void n(r);s.isFalsy(e)?n(new c.CometChatException(w.USERS_REQUEST_ERRORS.EMPTY_USERS_LIST)):l.makeApiCall("blockUsers",{},{blockedUids:e}).then(function(e){t(e.data)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.unblockUsers=function(e){return new Promise(function(t,n){try{var r=s.validateArray(e,"unblockUsers");if(r instanceof c.CometChatException)return void n(r);s.isFalsy(e)?n(new c.CometChatException(w.USERS_REQUEST_ERRORS.EMPTY_USERS_LIST)):l.makeApiCall("unblockUsers",{},{blockedUids:e}).then(function(e){t(e.data)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.getConversation=function(e,t){return new Promise(function(n,r){try{var a=s.validateConversationType(t);if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(e,t);if(o instanceof c.CometChatException)return void r(o);t=t.toLowerCase(),e=e.toLowerCase();var i={},u="";t===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(u="getGroupConversation",i.guid=e):(u="getUserConversation",i.uid=e),l.makeApiCall(u,i).then(function(a){if(a.data){var o=a.data;n(G.ConversationController.trasformJSONConversation(o.conversationId,o.conversationType,o.lastMessage,o.conversationWith,parseInt(o.unreadMessageCount),o.tags?o.tags:[],o.unreadMentionsCount,o.lastReadMessageId,o.latestMessageId))}else r(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ConversationErrors.CONVERSATION_NOT_FOUND),t,e))))},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.tagConversation=function(e,t,n){return void 0===n&&(n=[]),new Promise(function(r,a){try{var o=s.validateConversationType(t);if(o instanceof c.CometChatException)return void a(o);var i=s.validateId(e,t);if(i instanceof c.CometChatException)return void a(i);t=t.toLowerCase(),e=e.toLowerCase();var u={},d="";t===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(d="updateGroupConversation",u.guid=e):(d="updateUserConversation",u.uid=e),l.makeApiCall(d,u,{tags:n}).then(function(n){if(n.data){var o=n.data;r(G.ConversationController.trasformJSONConversation(o.conversationId,o.conversationType,o.lastMessage,o.conversationWith,parseInt(o.unreadMessageCount),o.tags?o.tags:[],o.unreadMentionsCount,o.lastReadMessageId,o.latestMessageId))}else a(new c.CometChatException(JSON.parse(s.format(JSON.stringify(_.ConversationErrors.CONVERSATION_NOT_FOUND),t,e))))},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.deleteConversation=function(e,t){return new Promise(function(n,r){try{var a=s.validateConversationType(t);if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(e,t);if(o instanceof c.CometChatException)return void r(o);var i={},u="";t=t.toLowerCase(),e=e.toLowerCase(),t===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(u="deleteGroupConversation",i.guid=e):(u="deleteUserConversation",i.uid=e),l.makeApiCall(u,i).then(function(e){n("Conversation deleted successfully.")},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.createGroup=function(e){return new Promise(function(t,n){try{var r=s.validateCreateGroup(e);if(r instanceof c.CometChatException)return void n(r);if(!(e instanceof b.Group)){var a=void 0;if(!e.hasOwnProperty(_.GroupConstants.KEYS.GUID))return void n(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));if(!e.hasOwnProperty(_.GroupConstants.KEYS.NAME))return void n(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));if(a=new b.Group(e[_.GroupConstants.KEYS.GUID],e[_.GroupConstants.KEYS.NAME],""),e.hasOwnProperty(_.GroupConstants.KEYS.TYPE))if(e[_.GroupConstants.KEYS.TYPE].toLocaleLowerCase()==_.GroupType.Password){if(!e.hasOwnProperty(_.GroupConstants.KEYS.PASSWORD))return void n(new c.CometChatException(w.GROUP_CREATION_ERRORS.EMPTY_PASSWORD));a.setType(_.GROUP_TYPE.PASSWORD),a.setPassword(e[_.GroupConstants.KEYS.PASSWORD])}else a.setType(e[_.GroupConstants.KEYS.TYPE]);else a.setType(_.GROUP_TYPE.PUBLIC);e.hasOwnProperty(_.GroupConstants.KEYS.ICON)&&a.setIcon(e[_.GroupConstants.KEYS.ICON]),e.hasOwnProperty(_.GroupConstants.KEYS.DESCRIPTION)&&a.setDescription(e[_.GroupConstants.KEYS.DESCRIPTION]),e.hasOwnProperty(_.GroupConstants.KEYS.TAGS)&&a.setTags(e[_.GroupConstants.KEYS.TAGS]),e=a}l.makeApiCall("createGroup",{},e).then(function(e){v.GroupsController.trasformJSONGroup(e.data).setHasJoined(!0),t(v.GroupsController.trasformJSONGroup(e.data))},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.getGroup=function(e){return new Promise(function(t,n){try{"object"==typeof e&&e.hasOwnProperty("guid")&&(e=e.guid);var r=s.validateId(e,"group");if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("getGroup",{guid:e}).then(function(e){t(v.GroupsController.trasformJSONGroup(e.data))},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.joinGroup=function(e,t,n){return void 0===t&&(t=_.GroupType.Public),void 0===n&&(n=""),new Promise(function(r,a){try{var o=s.validateJoinGroup(e,t,n);if(o instanceof c.CometChatException)return void a(o);var i;"object"==typeof e&&(e.hasOwnProperty(_.GroupConstants.KEYS.GUID)?(e.hasOwnProperty(_.GroupConstants.KEYS.TYPE)&&(t=e[_.GroupConstants.KEYS.TYPE],e[_.GroupConstants.KEYS.TYPE].toLocaleLowerCase()===_.GroupType.Password&&e.hasOwnProperty(_.GroupConstants.KEYS.PASSWORD)&&(n=e[_.GroupConstants.KEYS.PASSWORD])),e=e[_.GroupConstants.KEYS.GUID]):a(new c.CometChatException(w.ERRORS.PARAMETER_MISSING))),i=s.isFalsy(n)?new b.Group(e,"name",t):new b.Group(e,"name",t,n),l.makeApiCall("joinGroup",i,i).then(function(e){var t=v.GroupsController.trasformJSONGroup(e.data[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ActionConstatnts.ACTION_KEYS.ENTITIES][_.ActionConstatnts.ACTION_SUBJECTS.ACTION_FOR][_.ActionConstatnts.ACTION_KEYS.ENTITY]);t.setHasJoined(!0),r(t)},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.updateGroup=function(e){return new Promise(function(t,n){try{var r=s.validateUpdateGroup(e);if(r instanceof c.CometChatException)return void n(r);if(!(e instanceof b.Group)){var a=void 0;if(!e.hasOwnProperty(_.GroupConstants.KEYS.GUID))return void n(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));a=new b.Group(_.GroupConstants.KEYS.GUID,"",""),e.hasOwnProperty(_.GroupConstants.KEYS.TYPE)?a.setType(e[_.GroupConstants.KEYS.TYPE]):(e[_.GroupConstants.KEYS.TYPE]=_.GROUP_TYPE.PUBLIC,a.setType[_.GROUP_TYPE.PUBLIC]),e.hasOwnProperty(_.GroupConstants.KEYS.NAME)&&a.setName(e[_.GroupConstants.KEYS.NAME]),e.hasOwnProperty(_.GroupConstants.KEYS.ICON)&&a.setIcon(e[_.GroupConstants.KEYS.ICON]),e.hasOwnProperty(_.GroupConstants.KEYS.DESCRIPTION)&&a.setDescription(e[_.GroupConstants.KEYS.DESCRIPTION]),e.hasOwnProperty(_.GroupConstants.KEYS.TAGS)&&a.setTags(e[_.GroupConstants.KEYS.TAGS]),e=a}l.makeApiCall("updateGroup",e,e).then(function(e){t(v.GroupsController.trasformJSONGroup(e.data))},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.deleteGroup=function(e){return new Promise(function(t,n){try{var r=s.validateId(e,"group");if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("deleteGroup",{guid:e}).then(function(e){t(!0)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.leaveGroup=function(e){return new Promise(function(t,n){try{var r=s.validateId(e,"group");if(r instanceof c.CometChatException)return void n(r);l.makeApiCall("leaveGroup",{guid:e}).then(function(e){t(!0)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.kickGroupMember=function(e,t){return new Promise(function(n,r){try{var a=s.validateId(e,"group");if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(t,"user");if(o instanceof c.CometChatException)return void r(o);l.makeApiCall("kickGroupMembers",{guid:e,uid:t}).then(function(e){n(!0)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.updateGroupMemberScope=function(e,t,n){return new Promise(function(r,a){try{var o=s.validateId(e,"group");if(o instanceof c.CometChatException)return void a(o);var i=s.validateId(t,"user");if(i instanceof c.CometChatException)return void a(i);var u=s.validateScope(n);if(u instanceof c.CometChatException)return void a(u);l.makeApiCall("changeScopeOfMember",{guid:e,uid:t},{scope:n}).then(function(e){r(!0)},function(e){a(new c.CometChatException(e.error))})}catch(o){a(new c.CometChatException(o))}})},e.banGroupMember=function(e,t){return new Promise(function(n,r){try{var a=s.validateId(e,"group");if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(t,"user");if(o instanceof c.CometChatException)return void r(o);l.makeApiCall("banGroupMember",{guid:e,uid:t}).then(function(e){n(!0)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.unbanGroupMember=function(e,t){return new Promise(function(n,r){try{var a=s.validateId(e,"group");if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(t,"user");if(o instanceof c.CometChatException)return void r(o);l.makeApiCall("unbanGroupMember",{guid:e,uid:t}).then(function(e){n(!0)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.addMembersToGroup=function(e,t,n){var a=[],o=[],i=[],u=[];return new Promise(function(d,p){try{var h=s.validateId(e,"group");if(h instanceof c.CometChatException)return void p(h);var m=s.validateArray(t,"groupMembers");if(m instanceof c.CometChatException)return void p(m);if(n){var g=s.validateArray(n,"bannedMembers");if(g instanceof c.CometChatException)return void p(g)}s.isFalsy(t)&&s.isFalsy(n)?p(new c.CometChatException({})):s.isFalsy(t)||s.isFalsy(n)?s.isFalsy(t)?n.map(function(e){u.push(e)}):(t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.ADMIN)return!0}).map(function(e){a.push(e.getUid())}),t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.MODERATOR)return!0}).map(function(e){o.push(e.getUid())}),t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.PARTICIPANT)return!0}).map(function(e){i.push(e.getUid())})):(t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.ADMIN)return!0}).map(function(e){a.push(e.getUid())}),t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.MODERATOR)return!0}).map(function(e){o.push(e.getUid())}),t.filter(function(e){if(e.getScope()==_.GROUP_MEMBER_SCOPE.PARTICIPANT)return!0}).map(function(e){i.push(e.getUid())}),n.map(function(e){u.push(e)}));var f={};s.isFalsy(a)||(f=r(r({},f),{admins:a})),s.isFalsy(i)||(f=r(r({},f),{participants:i})),s.isFalsy(o)||(f=r(r({},f),{moderators:o})),s.isFalsy(u)||(f=r(r({},f),{usersToBan:u})),l.makeApiCall("addMemebersToGroup",{guid:e},f).then(function(e){var t={};Object.keys(e.data.admins).map(function(n){e.data.admins[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t[n]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t[n]=e.data.admins[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(e.data.participants).map(function(n){e.data.participants[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t[n]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t[n]=e.data.participants[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(e.data.moderators).map(function(n){e.data.moderators[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t[n]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t[n]=e.data.moderators[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(e.data.usersToBan).map(function(n){e.data.usersToBan[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t[n]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t[n]=e.data.usersToBan[n][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),d(t)},function(e){p(new c.CometChatException(e.error))})}catch(d){p(new c.CometChatException(d))}})},e.transferGroupOwnership=function(e,t){return new Promise(function(n,r){try{var a=s.validateId(e,"group");if(a instanceof c.CometChatException)return void r(a);var o=s.validateId(t,"user");if(o instanceof c.CometChatException)return void r(o);l.makeApiCall("transferOwnership",{guid:e},{owner:t}).then(function(r){var a;a=r&&r.data&&r.data.message?r.data.message:"Ownership transferred to user "+t+" for the group with guid "+e+".",n(a)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.createGroupWithMembers=function(e,t,n){var a=[],o=[],i=[],u=[];return new Promise(function(d,p){try{var h=s.validateCreateGroup(e);if(h instanceof c.CometChatException)return void p(h);if(t&&0<t.length){var m=s.validateArray(t,"groupMembers");if(m instanceof c.CometChatException)return void p(m);t.map(function(e){e.getScope()===_.GROUP_MEMBER_SCOPE.ADMIN&&a.push(e.getUid()),e.getScope()===_.GROUP_MEMBER_SCOPE.MODERATOR&&o.push(e.getUid()),e.getScope()===_.GROUP_MEMBER_SCOPE.PARTICIPANT&&i.push(e.getUid())})}if(n&&0<n.length){var g=s.validateArray(n,"bannedMembers");if(g instanceof c.CometChatException)return void p(g);n.map(function(e){u.push(e)})}var f={};f=r({},e),s.isFalsy(a)||(f.members=r(r({},f.members),{admins:a})),s.isFalsy(i)||(f.members=r(r({},f.members),{participants:i})),s.isFalsy(o)||(f.members=r(r({},f.members),{moderators:o})),s.isFalsy(u)||(f.members=r(r({},f.members),{usersToBan:u})),l.makeApiCall("createGroup",{},f).then(function(e){var t={members:{}},n=e.data.members.data?e.data.members.data:{admins:{},moderators:{},participants:{},usersToBan:{}};Object.keys(n.admins).map(function(e){n.admins[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t.members[e]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t.members[e]=n.admins[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(n.participants).map(function(e){n.participants[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t.members[e]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t.members[e]=n.participants[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(n.moderators).map(function(e){n.moderators[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t.members[e]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t.members[e]=n.moderators[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),Object.keys(n.usersToBan).map(function(e){n.usersToBan[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS]?t.members[e]=_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.SUCCESS:t.members[e]=n.usersToBan[e][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.ERROR][_.ResponseConstants.RESPONSE_KEYS.GROUP_MEMBERS_RESPONSE.MESSAGE]}),delete e.data.members;var a=e.data,o=v.GroupsController.trasformJSONGroup(a);o.setHasJoined(!0),t=r(r({},t),{group:o}),d(t)},function(e){p(new c.CometChatException(e.error))})}catch(h){p(new c.CometChatException(h))}})},e.initiateCall=function(e,n){var r=this;return void 0===n&&(n=t.DEFAULT_TIMEOUT),new Promise(function(t,a){var o=s.resolveTimeout(n),i=r.getActiveCall();if(null===i)try{s.isFalsy(JSON.parse(JSON.stringify(e)).sender)?s.isFalsy(i)?(e.setStatus(_.CallConstants.CALL_STATUS.INITIATED),e.receiver=e.receiverId.toString(),delete e.receiverId,l.makeApiCall("createCallSession",{},e).then(function(e){var n=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);S.CallController.getInstance().initiateCall(n,o).then(function(e){t(n)}).catch(function(e){a(new c.CometChatException(e))})},function(e){a(new c.CometChatException(e.error))})):a(new c.CometChatException(_.CALL_ERROR.ERROR_IN_CALLING)):S.CallController.getInstance().initiateCall(e,o).then(function(n){t(Object.assign(e))}).catch(function(e){a(new c.CometChatException(e))})}catch(i){a(new c.CometChatException(i))}else a(new c.CometChatException(_.CALL_ERROR.CALL_ALREADY_INITIATED))})},e.acceptCall=function(e){var t=this;return new Promise(function(n,r){if(null===t.getActiveCall())try{var a={};a[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.ONGOING,l.makeApiCall("updateCallSession",{sessionid:e},a).then(function(e){var t=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);S.CallController.getInstance().onCallStarted(t),n(t)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}else r(new c.CometChatException(_.CALL_ERROR.CANNOT_ACCEPT_CALL))})},e.rejectCall=function(e,t){try{switch(t){case _.CallConstants.CALL_STATUS.REJECTED:return this.rejectIncomingCall(e);case _.CallConstants.CALL_STATUS.CANCELLED:return this.cancelCall(e);case _.CallConstants.CALL_STATUS.BUSY:return this.sendBusyResponse(e);default:return this.endCall(e,!0)}}catch(e){s.Logger.error("CometChat: rejectCall",e)}},e.endCall=function(e,t){var n=this;return new Promise(function(r,a){s.isFalsy(t)&&(t=!1);var o=n.getActiveCall();if(null!==o){if(o.getSessionId()===e)try{var i={};i[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.ENDED,o.getJoinedAt()&&(i[_.CallConstants.CALL_KEYS.CALL_JOINED_AT]=o.getJoinedAt()),l.makeApiCall("updateCallSession",{sessionid:e},i).then(function(e){t||S.CallController.getInstance().endSession();var n=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);r(n),S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onCallEnded(n),S.CallController.getInstance().endCall()},function(e){s.Logger.log("calling Log",{error:e}),t||S.CallController.getInstance().endSession(),o.setStatus(_.CallConstants.CALL_STATUS.ENDED),r(o),S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onCallEnded(o),S.CallController.getInstance().endCall()})}catch(i){a(new c.CometChatException(i))}}else t||S.CallController.getInstance().endSession(),r(null),S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onCallEnded(null),S.CallController.getInstance().endCall()})},e.getActiveCall=function(){try{return S.CallController.getInstance().getActiveCall()}catch(e){s.Logger.error("CometChat: getActiveCall",e)}},e.clearActiveCall=function(){S.CallController.getInstance().clearActiveCall()},e.startCall=function(t,n,r){var a=this;try{var o,i,l,u,d,p,h,m,g,f,b=this.getActiveCall(),v=!1,y=!0,E=!0,C=!0,w=!0,k=!0,x=!0,T=!1,A=!1,R=_.CallConstants.CALL_MODE.DEFAULT,I=!1,O=!1,N=!1,M=!0,D=!0,L={},P=this.user;u=(new H.VirtualBackgroundBuilder).build(),d=new H.MainVideoContainerSetting,s.getAppSettings().then(function(j){if(m=j[_.APP_SETTINGS.KEYS.WEBRTC_HOST],L[_.APP_SETTINGS.KEYS.ANALYTICS_HOST]=j[_.APP_SETTINGS.KEYS.ANALYTICS_HOST],L[_.APP_SETTINGS.KEYS.ANALYTICS_VERSION]=j[_.APP_SETTINGS.KEYS.ANALYTICS_VERSION],L[_.APP_SETTINGS.KEYS.ANALYTICS_PING_DISABLED]=j[_.APP_SETTINGS.KEYS.ANALYTICS_PING_DISABLED],L[_.APP_SETTINGS.KEYS.ANALYTICS_USE_SSL]=j[_.APP_SETTINGS.KEYS.ANALYTICS_USE_SSL],p=j[_.APP_SETTINGS.KEYS.REGION],s.isFalsy(r)||S.CallController.getInstance().setCallListner(r),s.isFalsy(a.appSettings))S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.NOT_INITIALIZED));else if(p)if(P)if((f=new z.RTCUser(P.getUid())).setName(P.getName()),f.setAvatar(P.getAvatar()),f.setResource(e.getSessionId()),e.appId)if(h=e.appId,"string"==typeof t){if(b){var U=b.getType();v=U===_.CallConstants.CALL_TYPE.AUDIO,i=b.getSessionId()}else{if(s.isFalsy(t))return void(S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.SESSION_ID_REQUIRED)));i=("v1."+p+"."+e.getAppId()+"."+t).toLowerCase()}if(!i)return void(S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.SESSION_ID_REQUIRED)));M=!!v;var F={uid:P.getUid(),sessionId:i};e.getJWT(F).then(function(e){e.hasOwnProperty("token")?(f.setJWT(e.token),o=(new H.CallSettingsBuilder).setSessionID(i).enableDefaultLayout(y).setIsAudioOnlyCall(v).setUser(f).setRegion(p).setAppId(h).setDomain(m).showEndCallButton(w).showMuteAudioButton(C).showPauseVideoButton(E).showScreenShareButton(k).showModeButton(x).setMode(R).setAnalyticsSettings(L).startWithAudioMuted(T).startWithVideoMuted(A).showRecordingButton(I).startRecordingOnCallStart(O).forceLegacyUI(N).showSwitchToVideoCallButton(M).setVirtualBackground(u).showVirtualBackgroundSetting(D).setMainVideoContainerSetting(d).build(),S.CallController.getInstance().startCall(o,n)):S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.JWT_NOT_FOUND))},function(e){S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(e))})}else{if(s.isFalsy(t))return void(S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.CALL_SETTINGS_REQUIRED)));if(b)U=b.getType(),v=U===_.CallConstants.CALL_TYPE.AUDIO,i=b.getSessionId();else{if(v=t.isAudioOnlyCall(),s.isFalsy(t.getSessionId()))return void(S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.SESSION_ID_REQUIRED)));i=("v1."+p+"."+e.getAppId()+"."+t.getSessionId()).toLowerCase()}if(!i)return void(S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.SESSION_ID_REQUIRED)));y=t.isDefaultLayoutEnabled(),E=t.isPauseVideoButtonEnabled(),C=t.isMuteAudioButtonEnabled(),w=t.isEndCallButtonEnabled(),k=t.isScreenShareButtonEnabled(),R=t.getMode(),g=t.getLocalizedStringObject(),l=t.getCustomCSS(),x=t.isModeButtonEnabled(),T=t.getStartWithAudioMuted(),A=t.getStartWithVideoMuted(),I=t.isRecordingButtonEnabled(),O=t.shouldStartRecordingOnCallStart(),N=t.shouldUseLegacyUI(),M=!!v&&t.isAudioToVideoButtonEnabled(),u=t.getVirtualBackground(),D=t.isVirtualBackgroundSettingEnabled(),d=t.getMainVideoContainerSetting(),F={uid:P.getUid(),sessionId:i},e.getJWT(F).then(function(e){e.hasOwnProperty("token")?(f.setJWT(e.token),o=(new H.CallSettingsBuilder).setSessionID(i).enableDefaultLayout(y).setIsAudioOnlyCall(v).setUser(f).setRegion(p).setAppId(h).setDomain(m).showEndCallButton(w).showMuteAudioButton(C).showPauseVideoButton(E).showScreenShareButton(k).showModeButton(x).setMode(R).setLocalizedStringObject(g).setCustomCSS(l).setAnalyticsSettings(L).startWithAudioMuted(T).startWithVideoMuted(A).showRecordingButton(I).startRecordingOnCallStart(O).forceLegacyUI(N).showSwitchToVideoCallButton(M).setVirtualBackground(u).showVirtualBackgroundSetting(D).setMainVideoContainerSetting(d).build(),S.CallController.getInstance().startCall(o,n)):S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.JWT_NOT_FOUND))},function(e){S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(e))})}else S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.NOT_INITIALIZED));else S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.NOT_LOGGED_IN));else S.CallController.getInstance().getCallListner()&&S.CallController.getInstance().getCallListner()._eventListener.onError(new c.CometChatException(_.CALL_ERROR.NOT_INITIALIZED))},function(e){s.Logger.error("CometChat: startCall",e)})}catch(e){s.Logger.error("CometChat: startCall",e)}},e.getCallParticipantCount=function(t,n){return new Promise(function(r,a){try{s.getAppSettings().then(function(o){if(s.isFalsy(t))return a(new c.CometChatException(_.ProsodyApiErrors.INVALID_SESSIONID));if(s.isFalsy(n))return a(new c.CometChatException(_.ProsodyApiErrors.INVALID_TYPE));var u=o[_.APP_SETTINGS.KEYS.REGION],d={},p=o[_.APP_SETTINGS.KEYS.WEBRTC_HOST],h=o[_.APP_SETTINGS.KEYS.WEBRTC_API_SUBDOMAIN],m=s.format((new i.EndpointFactory).prosodyApi,h,p,_.PROSODY_API.PATH.ROOM_SIZE);"direct"===n.toLowerCase()&&(t=("v1."+u+"."+e.getAppId()+"."+t).toLowerCase()),d[_.PROSODY_API.QUERY_PARAMETERS.DOMAIN]=p,d[_.PROSODY_API.QUERY_PARAMETERS.ROOM]=t,l.postData(m,"GET",d,{},!1).then(function(e){return e.text()}).then(function(e){var t=e?JSON.parse(e):{};return t.hasOwnProperty(_.PROSODY_API.RESPONSE.PARTICIPANTS)?r(t[_.PROSODY_API.RESPONSE.PARTICIPANTS]):r(0)}).catch(function(){var e={error:w.FETCH_ERROR.ERROR_IN_API_CALL};return a(e)})},function(e){return a(new c.CometChatException(e))})}catch(e){return a(new c.CometChatException(e))}})},e.rejectIncomingCall=function(e){return new Promise(function(t,n){try{var r={};r[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.REJECTED,l.makeApiCall("updateCallSession",{sessionid:e},r).then(function(e){var n=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);t(n)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.cancelCall=function(e){var t=this;return new Promise(function(n,r){try{var a={};a[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.CANCELLED,l.makeApiCall("updateCallSession",{sessionid:e},a).then(function(r){var a=g.MessageController.trasformJSONMessge(r[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);t.getActiveCall().getSessionId()===e&&S.CallController.getInstance().endCallSession(),n(a)},function(e){r(new c.CometChatException(e.error))})}catch(a){r(new c.CometChatException(a))}})},e.sendBusyResponse=function(e){return new Promise(function(t,n){try{var r={};r[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.BUSY,l.makeApiCall("updateCallSession",{sessionid:e},r).then(function(e){var n=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);t(n)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.sendUnansweredResponse=function(e){return new Promise(function(t,n){try{var r={};r[_.CallConstants.CALL_KEYS.CALL_STATUS]=_.CallConstants.CALL_STATUS.UNANSWERED,l.makeApiCall("updateCallSession",{sessionid:e},r).then(function(e){var n=g.MessageController.trasformJSONMessge(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);_e.publishCallMessage(n),t(n)},function(e){n(new c.CometChatException(e.error))})}catch(r){n(new c.CometChatException(r))}})},e.addConnectionListener=function(e,t){try{be.addConnectionEventListener(e,t)}catch(e){s.Logger.error("CometChat: addConnectionListener",e)}},e.removeConnectionListener=function(e){try{be.removeConnectionEventListener(e)}catch(e){s.Logger.error("CometChat: removeConnectionListener",e)}},e.addMessageListener=function(e,t){try{be.addMessageEventListener(e,t)}catch(e){s.Logger.error("CometChat: addMessageListener",e)}},e.removeMessageListener=function(e){try{be.removeMessageEventListener(e)}catch(e){s.Logger.error("CometChat: removeMessageListener",e)}},e.addCallListener=function(e,t){try{be.addCallEventListener(e,t)}catch(e){s.Logger.error("CometChat: addCallListener",e)}},e.removeCallListener=function(e){try{be.removeCallEventListener(e)}catch(e){s.Logger.error("CometChat: removeCallListener",e)}},e.addAIAssistantListener=function(e,t){try{be.addAIAssistantListener(e,t)}catch(e){s.Logger.error("CometChat: addAIAssistantListener",e)}},e.removeAIAssistantListener=function(e){try{be.removeAIAssistantListener(e)}catch(e){s.Logger.error("CometChat: removeAIAssistantListener",e)}},e.addUserListener=function(e,t){try{be.addUserEventListener(e,t)}catch(e){s.Logger.error("CometChat: addUserListener",e)}},e.removeUserListener=function(e){try{be.removeUserEventListener(e)}catch(e){s.Logger.error("CometChat: removeUserListener",e)}},e.addGroupListener=function(e,t){try{be.addGroupEventListener(e,t)}catch(e){s.Logger.error("CometChat: addGroupListener",e)}},e.removeGroupListener=function(e){try{be.removeGroupEventListener(e)}catch(e){s.Logger.error("CometChat: removeGroupListener",e)}},e.addLoginListener=function(e,t){try{be.addLoginEventListener(e,t)}catch(e){s.Logger.error("CometChat: addLoginListener",e)}},e.removeLoginListener=function(e){try{be.removeLoginEventListener(e)}catch(e){s.Logger.error("CometChat: removeLoginListener",e)}},e.generateAuthToken=function(t){var n=this;return new Promise(function(r,a){try{var o={},i="",u="",d=_.APPINFO.platform,p=_.APPINFO.sdkVersion,h=_.APPINFO.apiVersion;navigator&&(u=navigator.userAgent),e.keyStore.get(_.LOCAL_STORE.KEY_DEVICE_ID).then(function(s){if(null==(i=s)){var m=fe(),g=(new Date).getTime();i=n.appId+"_"+m+"_"+g,e.keyStore.set(_.LOCAL_STORE.KEY_DEVICE_ID,i)}o={platform:d,deviceId:i,appInfo:{version:p,apiVersion:h,userAgent:u}},l.makeApiCall("authToken",{uid:t},o).then(function(e){r(e.data)}).catch(function(e){a(new c.CometChatException(e.error))})},function(e){s.Logger.error("Got error while fetching data from key store",e)})}catch(e){a(new c.CometChatException(e))}})},e.tryReconnectingToWS=function(){e.WSReconnectionInProgress||e.startWSReconnectionTimer()},e.prototype.makeWSConnection=function(){e.WSLogin(e.user)},e.prototype.accidentallyDisconnected=function(){e.currentConnectionStatus=_.CONNECTION_STATUS.CONNECTING,be.connectionHandlers.map(function(e){try{e._eventListener&&(s.isFalsy(e._eventListener.inConnecting)||e._eventListener.inConnecting())}catch(e){s.Logger.error("ConnectionHandlers: inConnecting Status",e)}}),e.tryReconnectingToWS()},e.WSLogin=function(t){var n=this;if(_e.connection){var r=_e.connection.readyState;if(r!==K.READY_STATE.CLOSING&&r!==K.READY_STATE.CLOSED)return void s.Logger.error("CometChat :: WSLogin",_e.connection);_e.connection=null}_e.WSLogin(t.getJWT(),function(t){switch(t){case K.READY_STATE.CONNECTING:(r=e.getConnectionStatus())==_.CONNECTION_STATUS.DISCONNECTED&&(n.currentConnectionStatus=_.CONNECTION_STATUS.CONNECTING,be.connectionHandlers.map(function(e){try{e._eventListener&&(s.isFalsy(e._eventListener.inConnecting)||e._eventListener.inConnecting())}catch(e){s.Logger.error("connectionHandlers: Connecting Status",e)}}));break;case K.READY_STATE.OPEN:(r=e.getConnectionStatus())==_.CONNECTION_STATUS.CONNECTING&&(n.currentConnectionStatus=_.CONNECTION_STATUS.CONNECTED,be.connectionHandlers.map(function(e){try{e._eventListener&&(s.isFalsy(e._eventListener.onConnected)||e._eventListener.onConnected())}catch(e){s.Logger.error("connectionHandlers: Connected Status",e)}})),e.WSReconnectionInProgress&&e.clearWSReconnectionTimer();break;case K.READY_STATE.CLOSING:break;case K.READY_STATE.CLOSED:var r;(r=e.getConnectionStatus())!==_.CONNECTION_STATUS.DISCONNECTED&&r!==_.CONNECTION_STATUS.CONNECTING&&(n.currentConnectionStatus=_.CONNECTION_STATUS.DISCONNECTED,be.connectionHandlers.map(function(e){try{e._eventListener&&(s.isFalsy(e._eventListener.onDisconnected)||e._eventListener.onDisconnected())}catch(e){s.Logger.error("connectionHandlers: Disconnected Status",e)}})),_e.connection&&(_e.connection=null),e.isLoggedOut||e.disconnectedByUser||n.tryReconnectingToWS()}})},e.pingAnalytics=function(){var t=this;try{e.keyStore.get("deviceId").then(function(n){s.getAppSettings().then(function(r){var a=null;window&&window.location&&window.location.origin&&(a=window.location.origin);var o="",i=n,u={version:_.SDKHeader.sdkVersion,apiVersion:r[_.APP_SETTINGS.KEYS.CHAT_API_VERSION],origin:a,uts:(new Date).getTime()};s.isFalsy(t.resource)||(u.resource=t.resource),s.isFalsy(t.platform)||(u.platform=t.platform),s.isFalsy(t.language)||(u.language=t.language),navigator&&(o=navigator.userAgent);var d={appInfo:u,uid:e.user.getUid(),userAgent:o,deviceId:i,platform:_.SDKHeader.platform};s.isFalsy(e.getSessionId())||(d.wsId=e.getSessionId());var p="https://"+r[_.APP_SETTINGS.KEYS.ANALYTICS_HOST]+"/"+r[_.APP_SETTINGS.KEYS.ANALYTICS_VERSION]+"/ping",h={appId:e.appId,sdk:s.format(_.SDKHeader.sdk,_.SDKHeader.platform,_.SDKHeader.sdkVersion),"Content-Type":"application/json"};e.settingsHash&&(h.settingsHash=e.settingsHash),e.settingsHashReceivedAt&&(h.settingsHashReceivedAt=e.settingsHashReceivedAt),e.jwt&&(h.Authorization="Bearer "+e.jwt),e.authToken&&(h.authToken=e.authToken),l.postData(p,"POST",d,h,!1).then(function(e){return e.json()}).then(function(n){if(n.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_DATA))s.Logger.log("Analytics Ping Request Data",n[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]);else if(n.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_ERROR)){var r=n[_.ResponseConstants.RESPONSE_KEYS.KEY_ERROR];s.Logger.log("Analytics Ping Request Error",new c.CometChatException(r));var a=r.code;if(a===_.Errors.ERR_SETTINGS_HASH_OUTDATED){var o=e.authToken;e.getInstance().internalRestart(o)}a===_.Errors.ERR_NO_AUTH&&t.updateJWT()}}).catch(function(e){s.Logger.error("CometChat: pingAnalytics Fetch Error",e)})},function(e){s.Logger.error("CometChat: pingAnalytics getSettings Error",e)})},function(e){s.Logger.error("CometChat: pingAnalytics getDeviceId Error",e)})}catch(e){s.Logger.error("CometChat: pingAnalytics",e)}},e.updateJWT=function(){l.makeApiCall("getMyDetails",{},{},!1).then(function(t){var n=t.data,r=n.settings,a=new u.Me(n);if(e.user=a,n.hasOwnProperty("jwt")&&n.jwt&&(e.jwt=n.jwt),d.LocalStorage.getInstance().set("user",a),r&&r[_.APP_SETTINGS.KEYS.SETTINGS_HASH]&&e.settingsHash!==r[_.APP_SETTINGS.KEYS.SETTINGS_HASH]){var o=e.getInstance().getAuthToken();e.getInstance().internalRestart(o)}s.Logger.log("CometChat: updateJWT response",t)},function(e){s.Logger.error("CometChat: updateJWT Fetch Error",e)}).catch(function(e){s.Logger.error("CometChat: updateJWT",e)})},e.startAnalyticsPingTimer=function(){var t=this;e.isAnalyticsPingStarted=!0,e.analyticsPingTimer=setInterval(function(){try{t.pingAnalytics()}catch(e){s.Logger.error("CometChat: startAnalyticsPingTimer",e)}},e.settingsInterval)},e.clearAnalyticsPingTimer=function(){try{e.isAnalyticsPingStarted=!1,clearInterval(e.analyticsPingTimer)}catch(e){s.Logger.error("CometChat: clearAnalyticsPingTimer",e)}},e.startWSReconnectionTimer=function(){e.WSReconnectionInProgress=!0,e.WSReconnectionTimer=setInterval(function(){try{e.WSLogin(e.user)}catch(e){s.Logger.error("CometChat: startWSReconnectionTimer",e)}},e.WSReconnectionTimerInterval)},e.clearWSReconnectionTimer=function(){e.WSReconnectionInProgress=!1,clearInterval(e.WSReconnectionTimer)},e.getJWT=function(t){return new Promise(function(n,r){try{J.getEndPoint("getJWT").then(function(a){var o={appId:e.appId,Accept:"application/json",authToken:e.authToken,resource:e.getSessionId(),sdk:s.format(_.SDKHeader.sdk,_.SDKHeader.platform,_.SDKHeader.sdkVersion),"Content-Type":"application/json"},i={};i[_.JWT_API.KEYS.PASSTHROUGH]=t,l.postData(a.endpoint,a.method,i,o,!1).then(function(e){return e.json()}).then(function(e){e.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_DATA)?n(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]):r(new c.CometChatException(e.error))}).catch(function(e){var t={error:w.FETCH_ERROR.ERROR_IN_API_CALL};r(new c.CometChatException(t))})},function(e){r(new c.CometChatException(e))})}catch(e){r(new c.CometChatException(e))}})},e.getConnectionStatus=function(){return this.currentConnectionStatus},e.prototype.setConnectionStatus=function(t){e.currentConnectionStatus=t},e.isExtensionEnabled=function(e){return new Promise(function(t,n){try{if(s.isFalsy(e))return n(new c.CometChatException(_.ExtensionErrors.INVALID_EXTENSION));s.getAppSettings().then(function(r){if(r.extensions){var a=r.extensions;if(0<a.length){var o=a.some(function(t){return t.id===e});return t(o)}return t(!1)}return n(new c.CometChatException(_.ExtensionErrors.EXTENSION_NOT_FOUND))},function(e){return n(new c.CometChatException(e))})}catch(e){return n(new c.CometChatException(e))}})},e.isAIFeatureEnabled=function(e){return new Promise(function(t,n){try{if(s.isFalsy(e))return n(new c.CometChatException(_.AIFeatureError.INVALID_AI_FEATURE));var r=_.AI_FEATURE_ACCESSIBLE,a=_.AI_FEATURE_ENABLED,o=s.format(_.AI_SLUG_ACCESSIBLE,e),i=s.format(_.AI_SLUG_ENABLED,e);s.getAppSettings().then(function(e){if(null==e?void 0:e.parameters){var n=null==e?void 0:e.parameters;return n[r]&&n[a]&&n[o]&&n[i]?t(!0):t(!1)}return t(!1)},function(e){return n(new c.CometChatException(e))})}catch(e){return n(new c.CometChatException(e))}})},e.getExtensionDetails=function(e){return new Promise(function(t,n){try{if(s.isFalsy(e))return n(new c.CometChatException(_.ExtensionErrors.INVALID_EXTENSION));s.getAppSettings().then(function(r){if(r.extensions){var a=r.extensions;if(0<a.length){var o=a.filter(function(t){return t.id===e});if(0<o.length){var i=new W.CCExtension(o[0]);return t(i)}return n(new c.CometChatException(_.ExtensionErrors.EXTENSION_NOT_FOUND))}return n(new c.CometChatException(_.ExtensionErrors.EXTENSION_NOT_FOUND))}return n(new c.CometChatException(_.ExtensionErrors.EXTENSION_NOT_FOUND))},function(e){return n(new c.CometChatException(e))})}catch(e){return n(new c.CometChatException(e))}})},e.getAppSettings=function(){return new Promise(function(e,t){try{l.makeApiCall("appSettings").then(function(t){d.LocalStorage.getInstance().set(_.LOCAL_STORE.KEY_APP_SETTINGS,t.data),e(t.data)},function(e){t(new c.CometChatException(e.error))})}catch(e){t(new c.CometChatException(e))}})},e.isFeatureEnabled=function(e){return new Promise(function(t,n){try{if(s.isFalsy(e))return n(new c.CometChatException(_.FeatureRestrictionErrors.INVALID_FEATURE));s.getAppSettings().then(function(r){if(r.parameters){var a=r.parameters;return a.hasOwnProperty(e)?t(a[e]):t(!1)}return n(new c.CometChatException(_.FeatureRestrictionErrors.FEATURE_NOT_FOUND))},function(e){return n(new c.CometChatException(e))})}catch(e){return n(new c.CometChatException(e))}})},e.logout=function(){var t=this;return new Promise(function(n,r){try{e.didAnalyticsPingStart()&&e.clearAnalyticsPingTimer(),e.WSReconnectionInProgress&&e.clearWSReconnectionTimer(),e.isLoggedOut=!0,e.WSReconnectionInProgress=!1,e.isAnalyticsDisabled=!1,l.makeApiCall("userLogout").then(function(r){t.clearCache().then(function(){e.apiKey=void 0,e.user=void 0,e.authToken=void 0,e.cometChat=void 0,e.mode=void 0,_e.WSLogout(),e.pushToLoginListener("","Logout_Success"),n(r.data)})},function(a){t.clearCache().then(function(){e.apiKey=void 0,e.user=void 0,e.authToken=void 0,e.cometChat=void 0,e.mode=void 0,_e.WSLogout(),e.pushToLoginListener("","Logout_Success"),new c.CometChatException(a.error).code==w.SERVER_ERRORS.AUTH_ERR.code?n({}):r(new c.CometChatException(a.error))})})}catch(e){r(new c.CometChatException(e))}})},e.callExtension=function(t,n,r,a){return void 0===a&&(a={}),new Promise(function(o,u){try{s.getAppSettings().then(function(d){var p=s.format((new i.EndpointFactory).extensionApi,t,d[_.APP_SETTINGS.KEYS.REGION],d[_.APP_SETTINGS.KEYS.EXTENSION_DOMAIN],r),h={appId:e.appId,Accept:"application/json",authToken:e.authToken,resource:e.getSessionId(),sdk:s.format(_.SDKHeader.sdk,_.SDKHeader.platform,_.SDKHeader.sdkVersion),chatApiVersion:d[_.APP_SETTINGS.KEYS.CHAT_API_VERSION],"Content-Type":"application/json"};e.jwt&&(h.Authorization="Bearer "+e.jwt),l.postData(p,n,a,h,!1).then(function(e){return e.json()}).then(function(e){e.hasOwnProperty(_.ResponseConstants.RESPONSE_KEYS.KEY_DATA)?o(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]):u(new c.CometChatException(e.error))}).catch(function(e){var t={error:w.FETCH_ERROR.ERROR_IN_API_CALL};u(t)})},function(e){return u(new c.CometChatException(e))})}catch(e){return u(new c.CometChatException(e))}})},e.getConversationStarter=function(t,n,r){return new Promise(function(a,o){try{t=t.toLowerCase(),n=n.toLowerCase();var i=s.validateChatType(n);if(i instanceof c.CometChatException)return void o(i);var u=s.validateId(t,n);if(u instanceof c.CometChatException)return void o(u);var d={},p="";n===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(p="getGroupConversationStarter",d.guid=t):(p="getUserConversationStarter",d.uid=t);var h={uid:e.user.uid,name:e.user.name};d.onbehalfofuser=btoa(JSON.stringify(h)),l.makeApiCall(p,d,r||{}).then(function(e){return e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]&&e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_CONVERSATION_STARTER]?a(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_CONVERSATION_STARTER]):o(new c.CometChatException(_.AIErrors.NO_CONVERSATION_STARTER))},function(e){return o(new c.CometChatException(e.error))})}catch(i){return o(new c.CometChatException(i))}})},e.getSmartReplies=function(t,n,r){return new Promise(function(a,o){try{t=t.toLowerCase(),n=n.toLowerCase();var i=s.validateChatType(n);if(i instanceof c.CometChatException)return void o(i);var u=s.validateId(t,n);if(u instanceof c.CometChatException)return void o(u);var d={},p="";n===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(p="getGroupSmartReply",d.guid=t):(p="getUserSmartReply",d.uid=t);var h={uid:e.user.uid,name:e.user.name};d.onbehalfofuser=btoa(JSON.stringify(h)),l.makeApiCall(p,d,r||{}).then(function(e){return e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]&&e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_SMART_REPLIES]?a(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_SMART_REPLIES]):o(new c.CometChatException(_.AIErrors.NO_SMART_REPLY))},function(e){return o(new c.CometChatException(e.error))})}catch(i){return o(new c.CometChatException(i))}})},e.askBot=function(t,n,r,a,o){return new Promise(function(i,u){try{var d={},p="";t=t.toLowerCase(),n=n.toLowerCase();var h=s.validateChatType(n);if(h instanceof c.CometChatException)return void u(h);var m=s.validateId(t,n);if(m instanceof c.CometChatException)return void u(m);var g=s.validateId(r,"bot");if(g instanceof c.CometChatException)return void u(g);d.botId=r,s.isFalsy(o)&&(o={});var f=s.validateQuestion(a);if(f instanceof c.CometChatException)return void u(f);o.question=a,n===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(p="getBotAssistanceInGroupConversation",d.guid=t):(p="getBotAssistanceInUserConversation",d.uid=t);var b={uid:e.user.uid,name:e.user.name};d.onbehalfofuser=btoa(JSON.stringify(b)),l.makeApiCall(p,d,o).then(function(e){if(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]&&e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_BOT_REPLY]){var t=e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_BOT_REPLY];return i(t.toString())}return u(new c.CometChatException(_.AIErrors.NO_ASSISTANCE))},function(e){return u(new c.CometChatException(e.error))})}catch(d){return u(new c.CometChatException(d))}})},e.getConversationSummary=function(t,n,r){return new Promise(function(a,o){try{t=t.toLowerCase(),n=n.toLowerCase();var i=s.validateChatType(n);if(i instanceof c.CometChatException)return void o(i);var u=s.validateId(t,n);if(u instanceof c.CometChatException)return void o(u);var d={},p="";n===_.MessageConstatnts.RECEIVER_TYPE.GROUP?(p="getGroupConversationSummary",d.guid=t):(p="getUserConversationSummary",d.uid=t);var h={uid:e.user.uid,name:e.user.name};d.onbehalfofuser=btoa(JSON.stringify(h)),l.makeApiCall(p,d,r||{}).then(function(e){if(e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA]&&e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_CONVERSATION_SUMMARY]){var t=e[_.ResponseConstants.RESPONSE_KEYS.KEY_DATA][_.ResponseConstants.RESPONSE_KEYS.KEY_CONVERSATION_SUMMARY];return a(t.toString())}return o(new c.CometChatException(_.AIErrors.NO_CONVERSATION_SUMMARY))},function(e){return o(new c.CometChatException(e.error))})}catch(i){return o(new c.CometChatException(i))}})},e.setSource=function(e,t,n){s.isFalsy(e)||(this.resource=e),s.isFalsy(t)||(this.platform=t),s.isFalsy(n)||(this.language=n)},e.setDemoMetaInfo=function(t){e.demoMetaInfo=t},e.clearCache=function(){return new Promise(function(t,n){try{d.LocalStorage.getInstance().clearStore().then(function(){e.removeDataFromSessionStorage(_.SESSION_STORE.SESSION_ID),s.Logger.info("CometChat: clearCache => All store cleared successfully","true"),t(!0)})}catch(t){s.Logger.error("CometChat: clearCache",t),n(t)}})},e.connect=function(){e.user&&(_e.connection||(e.disconnectedByUser=!1,e.WSLogin(e.user)),e.didAnalyticsPingStart()||e.isAnalyticsDisabled||(e.pingAnalytics(),e.startAnalyticsPingTimer()))},e.disconnect=function(){e.user&&(e.disconnectedByUser=!0,_e.connection&&_e.WSLogout(),e.didAnalyticsPingStart()&&e.clearAnalyticsPingTimer())},e.prototype.internalRestart=function(t){e.internalRestart||e.getInstance().internalLogout(!1).then(function(){e.internalRestart=!0,e.login(t).then(function(t){e.shouldConnectToWS=!0,e.internalRestart=!1},function(t){s.Logger.error("CometChat: internalRestart :: login",t),e.internalRestart=!1})},function(e){s.Logger.error("CometChat: internalRestart :: internalLogout",e)})},e.prototype.internalLogout=function(t){return void 0===t&&(t=!0),new Promise(function(n,r){try{e.didAnalyticsPingStart()&&e.clearAnalyticsPingTimer(),e.WSReconnectionInProgress&&e.clearWSReconnectionTimer(),e.isLoggedOut=!0,e.WSReconnectionInProgress=!1,e.isAnalyticsDisabled=!1,e.clearCache().then(function(){e.apiKey=void 0,e.user=void 0,e.authToken=void 0,e.cometChat=void 0,e.mode=void 0,_e.WSLogout(),t&&e.pushToLoginListener("","Logout_Success"),n(!0)})}catch(n){s.Logger.error("CometChat: internalLogout",n),r(n)}})},e.markAsInteracted=function(e,t){return new Promise(function(n,r){try{s.isFalsy(e)?r(new c.CometChatException(w.ERRORS.PARAMETER_MISSING)):l.makeApiCall("markInteracted",{messageId:e},{interactions:[t]}).then(function(e){var t;t=e&&e.data&&e.data.message?e.data.message:"Marked interacted",n(t)},function(e){r(new c.CometChatException(e.error))})}catch(e){r(new c.CometChatException(e))}})},e.getConversationUpdateSettings=function(){return a(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,s.getAppSettings()];case 1:return e=t.sent(),[2,se.ConversationUpdateSettings.fromJSON(e)];case 2:return t.sent(),[2,new se.ConversationUpdateSettings];case 3:return[2]}})})},e.getFlagReasons=function(){return new Promise(function(e,t){try{s.getAppSettings().then(function(t){if(t&&t[_.APP_SETTINGS.KEYS.FLAG_REASONS]&&Array.isArray(t[_.APP_SETTINGS.KEYS.FLAG_REASONS])){var n=t[_.APP_SETTINGS.KEYS.FLAG_REASONS].map(function(e){return{id:e.id,name:e.name,description:e.description,createdAt:parseInt(e.createdAt),updatedAt:parseInt(e.updatedAt),default:!!e.hasOwnProperty("default")&&e.default}});e(n)}else e([])},function(e){t(new c.CometChatException(e))}).catch(function(e){t(new c.CometChatException(e))})}catch(e){t(new c.CometChatException(e))}})},e.flagMessage=function(e,t){var n=this;return new Promise(function(r,a){try{if(s.isFalsy(e))return void a(new c.CometChatException(w.ERRORS.PARAMETER_MISSING));s.isFalsy(t.reasonId)||n.getFlagReasons().then(function(o){o.find(function(e){return e.id===t.reasonId})?n.performFlagMessage(e,t,r,a):a(new c.CometChatException(w.ERRORS.INVALID_REASON_ID))},function(e){a(e)})}catch(e){a(new c.CometChatException(e))}})},e.performFlagMessage=function(e,t,n,r){var a={};t.reasonId&&(a.id=t.reasonId),t.remark&&(a.remark=t.remark),l.makeApiCall("flagMessage",{messageId:e},a,!1).then(function(e){(null==e?void 0:e.data)?n(null==e?void 0:e.data):n(e)},function(e){r(new c.CometChatException(e.error))}).catch(function(e){r(new c.CometChatException(e))})},e.AIAssistantBaseEvent=le.AIAssistantBaseEvent,e.AIAssistantRunStartedEvent=le.AIAssistantRunStartedEvent,e.AIAssistantRunFinishedEvent=le.AIAssistantRunFinishedEvent,e.AIAssistantMessageStartedEvent=le.AIAssistantMessageStartedEvent,e.AIAssistantMessageEndedEvent=le.AIAssistantMessageEndedEvent,e.AIAssistantContentReceivedEvent=le.AIAssistantContentReceivedEvent,e.AIAssistantToolStartedEvent=le.AIAssistantToolStartedEvent,e.AIAssistantToolEndedEvent=le.AIAssistantToolEndedEvent,e.AIAssistantToolArgumentEvent=le.AIAssistantToolArgumentEvent,e.AIAssistantToolResultEvent=le.AIAssistantToolResultEvent,e.AI_ASSISTANT_EVENTS=_.AI_ASSISTANT_EVENTS,e.GroupType=_.GroupType,e.GroupMemberScope=_.GroupMemberScope,e.ResponseConstants=_.ResponseConstants,e.CallConstants=_.CallConstants,e.ActionConstatnts=_.ActionConstatnts,e.CALL_ERROR=_.CALL_ERROR,e.MessageConstatnts=_.MessageConstatnts,e.APP_SETTINGS=_.APP_SETTINGS,e.GroupConstants=_.GroupConstants,e.TYPING_NOTIFICATION=_.TYPING_NOTIFICATION,e.PresenceConstatnts=_.PresenceConstatnts,e.PresenceConstants=_.PresenceConstants,e.APPINFO=_.APPINFO,e.UserConstants=_.UserConstants,e.GENERAL_ERROR=_.GENERAL_ERROR,e.ConversationErrors=_.ConversationErrors,e.LOCAL_STORE=_.LOCAL_STORE,e.SDKHeader=_.SDKHeader,e.Errors=_.Errors,e.SESSION_STORE=_.SESSION_STORE,e.REACTION_ACTION=_.REACTION_ACTION,e.ExtensionErrors=_.ExtensionErrors,e.FeatureRestrictionErrors=_.FeatureRestrictionErrors,e.WS=_.WS,e.JWT_API=_.JWT_API,e.PROSODY_API=_.PROSODY_API,e.ProsodyApiErrors=_.ProsodyApiErrors,e.ONLINE_MEMBER_COUNT_API=_.ONLINE_MEMBER_COUNT_API,e.ReceiptErrors=_.ReceiptErrors,e.ANALYTICS=_.ANALYTICS,e.API_ERROR_CODES=_.API_ERROR_CODES,e.ATTACHMENTS_CONSTANTS=_.ATTACHMENTS_CONSTANTS,e.BlockedUsersConstants=_.BlockedUsersConstants,e.CALLING_COMPONENT_VERSION=_.CALLING_COMPONENT_VERSION,e.COMMON_UTILITY_CONSTANTS=_.COMMON_UTILITY_CONSTANTS,e.DEFAULT_VALUES=_.DEFAULT_VALUES,e.DELIVERY_RECEIPTS=_.DELIVERY_RECEIPTS,e.GroupErrors=_.GroupErrors,e.GroupMemersConstans=_.GroupMemersConstans,e.MessageCategory=_.MessageCategory,e.MessageErrors=_.MessageErrors,e.PARAMETER_ERROR=_.PARAMETER_ERROR,e.READ_RECEIPTS=_.READ_RECEIPTS,e.UserErrors=_.UserErrors,e.constants=_.constants,e.GoalType=_.GoalType,e.AttachmentType=_.AttachmentType,e.ModerationStatus=_.ModerationStatus,e.initialzed=!1,e.CometChatException=c.CometChatException,e.TextMessage=m.TextMessage,e.MediaMessage=p.MediaMessage,e.CustomMessage=L.CustomMessage,e.BaseMessage=h.BaseMessage,e.Action=k.Action,e.Call=C.Call,e.TypingIndicator=M.TypingIndicator,e.TransientMessage=$.TransientMessage,e.InteractiveMessage=Q.InteractiveMessage,e.InteractionGoal=X.InteractionGoal,e.Interaction=ee.Interaction,e.InteractionReceipt=te.InteractionReceipt,e.MessageReceipt=ce.MessageReceipt,e.AIAssistantMessage=ue.AIAssistantMessage,e.AIToolCall=pe.AIToolCall,e.AIToolCallFunction=pe.AIToolCallFunction,e.AIAssistantMessageData=ue.AIAssistantMessageData,e.AIToolResultMessage=de.AIToolResultMessage,e.AIToolResultMessageData=de.AIToolResultMessageData,e.AIToolArgumentMessage=pe.AIToolArgumentMessage,e.AIToolArgumentMessageData=pe.AIToolArgumentMessageData,e.Group=b.Group,e.User=u.User,e.GroupMember=P.GroupMember,e.Conversation=B.Conversation,e.ReactionCount=ae.ReactionCount,e.ReactionEvent=oe.ReactionEvent,e.Reaction=ie.Reaction,e.USER_STATUS={ONLINE:_.PresenceConstatnts.STATUS.ONLINE,OFFLINE:_.PresenceConstatnts.STATUS.OFFLINE},e.MessagesRequest=O.MessagesRequest,e.MessagesRequestBuilder=O.MessagesRequestBuilder,e.ReactionsRequest=re.ReactionsRequest,e.ReactionsRequestBuilder=re.ReactionsRequestBuilder,e.UsersRequest=R.UsersRequest,e.UsersRequestBuilder=R.UsersRequestBuilder,e.ConversationsRequest=I.ConversationsRequest,e.ConversationsRequestBuilder=I.ConversationsRequestBuilder,e.BlockedUsersRequest=j.BlockedUsersRequest,e.BlockedUsersRequestBuilder=j.BlockedUsersRequestBuilder,e.GroupsRequest=x.GroupsRequest,e.GroupsRequestBuilder=x.GroupsRequestBuilder,e.GroupMembersRequest=T.GroupMembersRequest,e.GroupMembersRequestBuilder=T.GroupMembersRequestBuilder,e.BannedMembersRequest=A.BannedMembersRequest,e.BannedMembersRequestBuilder=A.BannedMembersRequestBuilder,e.CallSettings=H.CallSettings,e.CallSettingsBuilder=H.CallSettingsBuilder,e.MainVideoContainerSetting=H.MainVideoContainerSetting,e.VirtualBackground=H.VirtualBackground,e.VirtualBackgroundBuilder=H.VirtualBackgroundBuilder,e.AppSettings=U.AppSettings,e.AppSettingsBuilder=U.AppSettingsBuilder,e.MessageListener=E.MessageListener,e.UserListener=E.UserListener,e.GroupListener=E.GroupListener,e.OngoingCallListener=E.OngoingCallListener,e.CallListener=E.CallListener,e.ConnectionListener=E.ConnectionListener,e.LoginListener=E.LoginListener,e.AIAssistantListener=E.AIAssistantListener,e.CallController=S.CallController,e.CometChatHelper=F.CometChatHelper,e.Attachment=V.Attachment,e.MediaDevice=Z.MediaDevice,e.StorageMode=_.StorageMode,e.MESSAGE_TYPE=_.MessageConstatnts.TYPE,e.CATEGORY_MESSAGE=_.MessageConstatnts.CATEGORY.MESSAGE,e.CATEGORY_ACTION=_.MessageConstatnts.CATEGORY.ACTION,e.CATEGORY_CALL=_.MessageConstatnts.CATEGORY.CALL,e.CATEGORY_CUSTOM=_.MessageConstatnts.CATEGORY.CUSTOM,e.CATEGORY_INTERACTIVE=_.MessageConstatnts.CATEGORY.INTERACTIVE,e.ACTION_TYPE=_.ActionConstatnts.ACTIONS,e.CALL_TYPE=_.CallConstants.CALL_TYPE,e.SORT_BY=_.UserConstants.SORT_BY,e.SORT_ORDER=_.UserConstants.SORT_ORDER,e.CALL_MODE=_.CallConstants.CALL_MODE,e.RECEIVER_TYPE=_.MessageConstatnts.RECEIVER_TYPE,e.CONNECTION_STATUS=_.CONNECTION_STATUS,e.CALL_STATUS=_.CallConstants.CALL_STATUS,e.GROUP_MEMBER_SCOPE=_.GROUP_MEMBER_SCOPE,e.GROUP_TYPE=_.GROUP_TYPE,e.MESSAGE_REQUEST=_.MessageConstatnts.PAGINATION.CURSOR_FILEDS,e.WSReconnectionInProgress=!1,e.WSReconnectionTimerInterval=5e3,e.currentConnectionStatus=_.CONNECTION_STATUS.DISCONNECTED,e.isConnectingFromInit=!1,e.loginInProgress=!1,e.internalRestart=!1,e.settingsInterval=6e4,e.isAnalyticsPingStarted=!1,e.isLoggedOut=!0,e.isAnalyticsDisabled=!1,e.disconnectedByUser=!1,e.shouldConnectToWS=!0,e}();t.CometChat=ve},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.postData=t.makeAdminApiCall=t.makeApiCall=void 0;var a=n(40),o=n(5),i=n(1),s=n(2),c=n(12),l=n(0);function u(e,t,n,r,a){var o;return void 0===e&&(e=""),void 0===t&&(t="GET"),void 0===n&&(n={}),void 0===r&&(r={}),n=i.isFalsy(n)?void 0:("GET"==t&&(e+="?",Object.keys(n).map(function(t,r){e=r===Object.keys(n).length-1?e+t+"="+n[t]:e+t+"="+n[t]+"&"}),n=void 0),a&&(o=new FormData,Object.keys(n).map(function(e){if("data"!=e){if("tags"==e)for(var t=0;t<n[e].length;t++)o.append(e+"[]",n[e][t]);else if("metadata"!=e)if("files"===e)for(t=0;t<n[e].length;t++)o.append(e+"[]",n[e][t]);else o.append(e,n[e])}else o.append(e,JSON.stringify(n[e]))})),JSON.stringify(n)),fetch(e,{method:t,mode:"cors",cache:"no-cache",headers:r,redirect:"follow",referrer:"no-referrer",body:a?o:n})}t.makeApiCall=function(e,t,n,d,p){void 0===e&&(e=""),void 0===t&&(t={}),void 0===n&&(n={});var h=o.CometChat.getInstance(o.CometChat.getAppId());return new Promise(function(m,g){try{a.getEndPoint(e,t).then(function(a){var s=r({resource:o.CometChat.getSessionId(),appId:o.CometChat.getAppId(),Accept:"application/json",sdk:i.format(l.SDKHeader.sdk,l.SDKHeader.platform,l.SDKHeader.sdkVersion)},p);d||(s["Content-Type"]="application/json"),a.hasOwnProperty("isAIApi")&&a.isAIApi&&(s.onbehalfofuser=t.onbehalfofuser),a.hasOwnProperty("isAdminApi")&&a.isAdminApi?h.getApiKey()?s.apiKey=h.getApiKey():g({error:{code:"API_KEY_NOT_SET",message:"An apiKey is needed to use the "+e+" api.",name:"API_KEY_NOT_SET"}}):h.getAuthToken()?s.authToken=h.getAuthToken():g({error:{code:"USER_NOT_LOGED_IN",message:"An authToken is need to use the "+e+" end-point. PS- We are aware of the spelling mistake, but in order to maintain backward compatibility we cannot change it :(",name:"User not logged-in"}}),u(a.endpoint,a.method,n,s,d).then(function(e){return e.json()}).then(function(e){if(e.hasOwnProperty("data"))e.data.hasOwnProperty("authToken")&&o.CometChat.setAuthToken(e.data.authToken),m(e);else{if(e.hasOwnProperty("error")){var t=e.error;t.hasOwnProperty("code")&&t.code===l.API_ERROR_CODES.AUTH_ERR_AUTH_TOKEN_NOT_FOUND&&o.CometChat.getInstance().internalLogout().then(function(){i.Logger.log("CometChat: makeApiCall","User logged out")})}g(e)}}).catch(function(e){var t={error:c.FETCH_ERROR.ERROR_IN_API_CALL};g(t)})}).catch(function(e){return g})}catch(e){g(new s.CometChatException(e))}})},t.makeAdminApiCall=function(e,t,n,r){void 0===e&&(e=""),void 0===t&&(t={}),void 0===n&&(n={});var s=o.CometChat.getInstance(o.CometChat.getAppId());return new Promise(function(d,p){a.getEndPoint(e,t).then(function(t){var a={appId:o.CometChat.getAppId(),Accept:"application/json",sdk:i.format(l.SDKHeader.sdk,l.SDKHeader.platform,l.SDKHeader.sdkVersion)};r||(a["Content-Type"]="application/json"),t.hasOwnProperty("isAdminApi")&&t.isAdminApi?s.getApiKey()?a.apiKey=s.getApiKey():p({error:"An apiKey is need to use the "+e+" api."}):s.getAuthToken()?a.authToken=s.getAuthToken():p({error:"An authToken is need to use the "+e+" api."}),u(t.endpoint,t.method,n,a,r).then(function(e){return e.json()}).then(function(e){e.hasOwnProperty("data")?(e.data.hasOwnProperty("authToken")&&o.CometChat.setAuthToken(e.data.authToken),d(e)):p(e)}).catch(function(e){var t={error:c.FETCH_ERROR.ERROR_IN_API_CALL};p(t)})}).catch(function(e){return p})})},t.postData=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseMessage=void 0;var r=n(0),a=n(21),o=n(1),i=function(){function e(e,t,n,r){this.receiverId=e,this.type=t,this.receiverType=n,this.category=r}return e.prototype.getUnreadRepliesCount=function(){return this.unreadRepliesCount},e.prototype.setUnreadRepliesCount=function(e){this.unreadRepliesCount=e},e.prototype.getId=function(){return this.id},e.prototype.setId=function(e){this.id=e},e.prototype.getConversationId=function(){return this.conversationId},e.prototype.setConversationId=function(e){this.conversationId=e},e.prototype.getParentMessageId=function(){return this.parentMessageId},e.prototype.setParentMessageId=function(e){this.parentMessageId=e},e.prototype.getMuid=function(){return this.muid},e.prototype.setMuid=function(e){this.muid=e},e.prototype.getSender=function(){return this.sender},e.prototype.setSender=function(e){this.sender=e},e.prototype.getReceiver=function(){return this.receiver},e.prototype.setReceiver=function(e){this.receiver=e},e.prototype.getReceiverId=function(){return this.receiverId},e.prototype.setReceiverId=function(e){this.receiverId=e},e.prototype.getType=function(){return this.type},e.prototype.setType=function(e){this.type=e},e.prototype.getReceiverType=function(){return this.receiverType},e.prototype.setReceiverType=function(e){this.receiverType=e},e.prototype.getSentAt=function(){return this.sentAt},e.prototype.setSentAt=function(e){this.sentAt=e},e.prototype.getStatus=function(){return this.status},e.prototype.setStatus=function(e){this.status=e},e.prototype.getDeliveredAt=function(){return this.deliveredAt},e.prototype.setDeliveredAt=function(e){this.deliveredAt=e},e.prototype.getDeliveredToMeAt=function(){return this.deliveredToMeAt},e.prototype.setDeliveredToMeAt=function(e){this.deliveredToMeAt=e},e.prototype.getReadAt=function(){return this.readAt},e.prototype.setReadAt=function(e){this.readAt=e},e.prototype.getReadByMeAt=function(){return this.readByMeAt},e.prototype.setReadByMeAt=function(e){this.readByMeAt=e},e.prototype.getCategory=function(){return this.category},e.prototype.setCategory=function(e){this.category=e},e.prototype.getEditedAt=function(){return this.editedAt},e.prototype.setEditedAt=function(e){this.editedAt=e},e.prototype.getEditedBy=function(){return this.editedBy},e.prototype.setEditedBy=function(e){this.editedBy=e},e.prototype.getDeletedAt=function(){return this.deletedAt},e.prototype.setDeletedAt=function(e){this.deletedAt=e},e.prototype.getDeletedBy=function(){return this.deletedBy},e.prototype.setDeletedBy=function(e){this.deletedBy=e},e.prototype.getReplyCount=function(){return this.replyCount},e.prototype.setReplyCount=function(e){this.replyCount=e},e.prototype.getRawMessage=function(){return this.rawMessage},e.prototype.setRawMessage=function(e){this.rawMessage=e},e.prototype.setMentionedUsers=function(e){this.mentionedUsers=e},e.prototype.getMentionedUsers=function(){var e;return null!==(e=this.mentionedUsers)&&void 0!==e?e:[]},e.prototype.setHasMentionedMe=function(e){this.mentionedMe=e},e.prototype.hasMentionedMe=function(){var e;return null!==(e=this.mentionedMe)&&void 0!==e&&e},e.prototype.getData=function(){return this.data},e.prototype.setData=function(e){this.data=e},e.prototype.setReactions=function(e){try{this.setReactionsToData(e)}catch(t){this.reactions=e}},e.prototype.getReactions=function(){var e;try{return this.getReactionsFromData()}catch(t){return null!==(e=this.reactions)&&void 0!==e?e:[]}},e.prototype.getQuotedMessageId=function(){return this.quotedMessageId},e.prototype.setQuotedMessageId=function(e){this.quotedMessageId=e},e.prototype.getQuotedMessage=function(){return this.quotedMessage},e.prototype.setQuotedMessage=function(e){this.quotedMessage=e},e.prototype.setReactionsToData=function(e){var t=this.getData();if(t[r.ResponseConstants.RESPONSE_KEYS.KEY_REACTIONS]){var n=e.map(function(e){return new a.ReactionCount(e.reaction,e.count,!!e.reactedByMe&&e.reactedByMe)});t[r.ResponseConstants.RESPONSE_KEYS.KEY_REACTIONS]=n,this.setData(t),this.reactions=n}else t[r.ResponseConstants.RESPONSE_KEYS.KEY_REACTIONS]=e,this.setData(t),this.reactions=e},e.prototype.getReactionsFromData=function(){try{var e=this.getData(),t=[];return e[r.ResponseConstants.RESPONSE_KEYS.KEY_REACTIONS]&&e[r.ResponseConstants.RESPONSE_KEYS.KEY_REACTIONS].forEach(function(e){var n=new a.ReactionCount(e.reaction,e.count,!!e.reactedByMe&&e.reactedByMe);t.push(n)}),t}catch(e){throw o.Logger.error("BaseMessageModel: getReactionsFromData",e),e}},e}();t.BaseMessage=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var r=n(0),a=function(){function e(e,t,n,r,a,o,i){this.hasJoined=!1,this.membersCount=0,this.isBanned=!1,this.guid=e,t&&(this.name=t),n&&(this.type=n),!r&&""!==r||"password"!=n||(this.password=r),(a||""===a)&&(this.icon=a),(o||""===o)&&(this.description=o),i&&(this.hasJoined=i)}return e.prototype.getGuid=function(){return this.guid},e.prototype.setGuid=function(e){this.guid=e},e.prototype.getName=function(){return this.name},e.prototype.setName=function(e){e&&(this.name=e)},e.prototype.getType=function(){return this.type},e.prototype.setType=function(e){this.type=e},e.prototype.getPassword=function(){return this.password},e.prototype.setPassword=function(e){this.password=e},e.prototype.getIcon=function(){return this.icon},e.prototype.setIcon=function(e){this.icon=e},e.prototype.getDescription=function(){return this.description},e.prototype.setDescription=function(e){this.description=e},e.prototype.getOwner=function(){return this.owner},e.prototype.setOwner=function(e){this.owner=e},e.prototype.getMetadata=function(){return this.metadata},e.prototype.setMetadata=function(e){this.metadata=e},e.prototype.getCreatedAt=function(){return this.createdAt},e.prototype.setCreatedAt=function(e){this.createdAt=e},e.prototype.getUpdatedAt=function(){return this.updatedAt},e.prototype.setUpdatedAt=function(e){this.updatedAt=e},e.prototype.getHasJoined=function(){return this.hasJoined},e.prototype.setHasJoined=function(e){this.hasJoined=e},e.prototype.getWsChannel=function(){return this.wsChannel},e.prototype.setWsChannel=function(e){this.wsChannel=e},e.prototype.setScope=function(e){this.scope=e},e.prototype.getScope=function(){return this.scope},e.prototype.getJoinedAt=function(){return this.joinedAt},e.prototype.setJoinedAt=function(e){this.joinedAt=e},e.prototype.getMembersCount=function(){return this.membersCount},e.prototype.setMembersCount=function(e){this.membersCount=e},e.prototype.setTags=function(e){this.tags=e},e.prototype.getTags=function(){return this.tags},e.prototype.isBannedFromGroup=function(){return this.isBanned},e.TYPE=r.GroupType,e.Type=e.TYPE,e}();t.Group=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CometChatEvent=void 0;var r=n(1),a=n(4),o=function(){function e(e,t,n,a,o,i){r.isFalsy(e)||(this.appId=e),r.isFalsy(t)||(this.receiver=t),r.isFalsy(n)||(this.receiverType=n),r.isFalsy(o)||(this.deviceId=o),r.isFalsy(a)||(this.sender=a),r.isFalsy(i)||(this.messageSender=i)}return e.prototype.getAppId=function(){return this.appId},e.prototype.setAppId=function(e){this.appId=e},e.prototype.getReceiver=function(){return this.receiver},e.prototype.setReceiver=function(e){this.receiver=e},e.prototype.getSender=function(){return this.sender},e.prototype.setSender=function(e){this.sender=e},e.prototype.getReceiverType=function(){return this.receiverType},e.prototype.setReceiverType=function(e){this.receiverType=e},e.prototype.getType=function(){return this.type},e.prototype.setType=function(e){this.type=e},e.prototype.getDeviceId=function(){return this.deviceId},e.prototype.setDeviceId=function(e){this.deviceId=e},e.prototype.getMessageSender=function(){return this.messageSender},e.prototype.setMessageSender=function(e){this.messageSender=e},e.prototype.getCometChatEventJSON=function(){var e={};return e[a.KEYS.APP_ID]=this.getAppId(),e[a.KEYS.RECEIVER]=this.getReceiver(),e[a.KEYS.RECEIVER_TYPE]=this.getReceiverType(),e[a.KEYS.DEVICE_ID]=this.getDeviceId(),e[a.KEYS.TYPE]=this.getType(),e[a.KEYS.SENDER]=this.getSender(),r.isFalsy(this.getMessageSender())||(e[a.KEYS.MESSAGE_SENDER]=this.getMessageSender()),e},e}();t.CometChatEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIAssistantBaseEvent=void 0;var r=function(){function e(e,t,n,r,a){this.type=e,this.conversationId=t,this.messageId=n,this.parentMessageId=r,this.data=a}return e.prototype.getType=function(){return this.type},e.prototype.setType=function(e){this.type=e},e.prototype.getConversationId=function(){return this.conversationId},e.prototype.setConversationId=function(e){this.conversationId=e},e.prototype.getMessageId=function(){return this.messageId},e.prototype.setMessageId=function(e){this.messageId=e},e.prototype.getPatentMessageId=function(){return this.parentMessageId},e.prototype.getParentMessageId=function(){return this.parentMessageId},e.prototype.setPatentMessageId=function(e){this.parentMessageId=e},e.prototype.setParentMessageId=function(e){this.parentMessageId=e},e.prototype.getData=function(){return this.data},e.prototype.setData=function(e){this.data=e},e.prototype.getTimestamp=function(){return this.data.timestamp},e.prototype.setTimestamp=function(e){this.data.timestamp=e},e.prototype.getRunId=function(){return this.data.runId},e.prototype.setRunId=function(e){this.data.runId=e},e.prototype.getThreadId=function(){return this.data.threadId},e.prototype.setThreadId=function(e){this.data.threadId=e},e.prototype.toJSON=function(){return{type:this.type,conversationId:this.conversationId,messageId:this.messageId,parentMessageId:this.parentMessageId,data:this.data}},e.fromJSON=function(t){return new e(t.type,t.conversationId,t.messageId,t.parentMessageId,t.data)},e}();t.AIAssistantBaseEvent=r},function(e,t,n){(function(t){e.exports=function e(t,n,r){function a(i,s){if(!n[i]){if(!t[i]){if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){return a(t[i][1][e]||e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var o=!1,i=0;i<r.length;i++)a(r[i]);return a}({1:[function(e,n,r){(function(e){"use strict";var t,r,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var o=0,i=new a(u),s=e.document.createTextNode("");i.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,t=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}n.exports=function(e){1!==l.push(e)||r||t()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function a(){}var o={},i=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==a&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function a(t){n||(n=!0,o.resolve(e,t))}var i=m(function(){t(a,r)});"error"===i.status&&r(i.value)}function m(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=l).prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===i)return this;var n=new this.constructor(a);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=m(p,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var a=-1,i=e.queue.length;++a<i;)e.queue[a].callFulfilled(t)}return e},o.reject=function(e,t){e.state=i,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(a),e)},l.reject=function(e){var t=new this(a);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var i=new Array(n),s=0,c=-1,l=new this(a);++c<n;)u(e[c],c);return l;function u(e,a){t.resolve(e).then(function(e){i[a]=e,++s!==n||r||(r=!0,o.resolve(l,i))},function(e){r||(r=!0,o.reject(l,e))})}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,i=-1,s=new this(a);++i<t;)r=e[i],this.resolve(r).then(function(e){n||(n=!0,o.resolve(s,e))},function(e){n||(n=!0,o.reject(s,e))});return s}},{1:1}],3:[function(e,n,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var i=Promise;function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",p=void 0,h={},m=Object.prototype.toString,g="readonly",f="readwrite";function _(e){return"boolean"==typeof p?i.resolve(p):(t=e,new i(function(e){var n=t.transaction(d,f),r=o([""]);n.objectStore(d).put(r,"key"),n.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},n.onc